From patchwork Tue Jun 7 07:52:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 579686 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05C5BC43334 for ; Tue, 7 Jun 2022 07:52:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235955AbiFGHwy (ORCPT ); Tue, 7 Jun 2022 03:52:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237942AbiFGHwx (ORCPT ); Tue, 7 Jun 2022 03:52:53 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5CE153B46 for ; Tue, 7 Jun 2022 00:52:51 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id n28so21843519edb.9 for ; Tue, 07 Jun 2022 00:52:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yz4IPbK/kjVXg2rtjKYX6ym7AFg337BC4YZaEJPRg3Y=; b=bErztxGS/sxqn/5MaEwtqSQKYl8etJxog1lP0bLx9F0yUteWXBG9NAmUfIQ0ynbJHT VeKqty9tWhHfRadz+G6Evu9yJpAiWHuvRPRY67jnsz/bD6lBhNmXVEo2/Buoo5qC9igU unmL5Twzz1YAIy74Wv4rWJCoGtDB9Jm3dtIzLDaISLt0gHWaKgnCqq6yB+D4z8p7KbCX d1xz3Knx31qe9F3lcupa+N4o/p/drV6u7zwjsAAKbYCjnI+5vyz6mh4rTZy343xVBEgK IlaZpcUvtlIJC6xEem+unWPYq9qcGRvdzBo2SvryeJaTVQ5AqtRcCjdmdbF6+rJiPIT9 U9CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yz4IPbK/kjVXg2rtjKYX6ym7AFg337BC4YZaEJPRg3Y=; b=WO7QupUJNUOKYxjRYe9SfRjMqjUIEjNrXnM4XF9C2MUUwscx67vKz2kgJRySguySeL MSVzbWABg9Z2fNJapdjWw7qbYJvzsX1n2ZMecaGNt2D/DU4o+vhbXrH6b3r9SRULK8sX 3qNDLHFwtpo61P+TLIgORbYQFs8XE2Nvc6gwWgMMWdrFKwirHi1+LftY62qfmAkyBI9o aPC8YeKjmk3FMARjQGLdDXyjBbIUlRhxYtnK2voEuRs/BxStFgJlVmxdjKO2iCuXdtIE DvWR5vXIkSOcTAb0gSO94QBPXzD/zurvpQAs0JyQjj8GX8fDxJ/beOpL2zBct//ovFs/ 6oLw== X-Gm-Message-State: AOAM531thawgJCbzj5FJC3bCvTjrOa3aReM32YiOzJU1aKgWZOKX+RCi kR8exPrZfKEjq8asMwfjCCrrag== X-Google-Smtp-Source: ABdhPJwkIeZfv38b59Ycb+if+OhPKhwi1qS4LboQmLNqhsMhCChDXB232li5lfdubeuGAHOgNuqsow== X-Received: by 2002:a05:6402:2790:b0:431:4bb6:a6dc with SMTP id b16-20020a056402279000b004314bb6a6dcmr13559114ede.48.1654588370353; Tue, 07 Jun 2022 00:52:50 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id m3-20020aa7c483000000b0042de29d8fc0sm9773731edq.94.2022.06.07.00.52.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 00:52:49 -0700 (PDT) From: Krzysztof Kozlowski To: Pavel Machek , Rob Herring , Krzysztof Kozlowski , Dan Murphy , Jacek Anaszewski , Sven Schwermer , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring , Kyle Swenson Subject: [PATCH v3 1/2] dt-bindings: leds: lp50xx: correct reg/unit addresses in example Date: Tue, 7 Jun 2022 09:52:46 +0200 Message-Id: <20220607075247.58048-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org The multi-led node defined address/size cells, so it is intended to have children with unit addresses. The second multi-led's reg property defined three LED indexes within one reg item, which is not correct - these are three separate items. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- Changes since v2: 1. Minor grammar change in commit msg. 2. Add Rb tag. Changes since v1: 1. Correct multi-led unit address as well (Rob). Cc: Kyle Swenson --- .../devicetree/bindings/leds/leds-lp50xx.yaml | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml b/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml index f12fe5b53f30..29ce0cb7d449 100644 --- a/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml +++ b/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml @@ -99,35 +99,41 @@ examples: color = ; function = LED_FUNCTION_CHARGING; - led-0 { + led@0 { + reg = <0x0>; color = ; }; - led-1 { + led@1 { + reg = <0x1>; color = ; }; - led-2 { + led@2 { + reg = <0x2>; color = ; }; }; - multi-led@2 { + multi-led@3 { #address-cells = <1>; - #size-cells = <2>; - reg = <0x2 0x3 0x5>; + #size-cells = <0>; + reg = <0x3>, <0x4>, <0x5>; color = ; function = LED_FUNCTION_STANDBY; - led-6 { + led@3 { + reg = <0x3>; color = ; }; - led-7 { + led@4 { + reg = <0x4>; color = ; }; - led-8 { + led@5 { + reg = <0x5>; color = ; }; };