From patchwork Wed May 18 08:22:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 574051 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 27FE6C433FE for ; Wed, 18 May 2022 08:22:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232818AbiERIWX (ORCPT ); Wed, 18 May 2022 04:22:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232800AbiERIWX (ORCPT ); Wed, 18 May 2022 04:22:23 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD74B104CB9 for ; Wed, 18 May 2022 01:22:20 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id b32so1635021ljf.1 for ; Wed, 18 May 2022 01:22:20 -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=PdJpvkWYTOnWvkoIPd4KYauwa7ctY5TQOeL36DvVqdU=; b=gd2Tn1U+Uo/c2muLFCnoR47YLR9gp6z6anQ5w7ZJYGPJOQfvoBGwpYv4QXZLwlk6sa ymcB0aTJz1bo0Mt0we1suE4GGCOX1m1ujGbq/p2uItTvR2WQ58fHL58hSCYc2pQyU97V tM+WBlTwNlXBFVq5Zwc21Qq3biMfsVoLxtSU2AmU8/LIT2dFIckWJp88pAJSQ1AH3ay9 zWgVlqwTcDzMi+KMKwhcAJmd8hI2fQ7js2wVzfEK9T2UrySLL9mtC6OluGRBsdpxpY6K QIStOSOZnjIvUPmEZcFakLCBYcPstO1JsUYiZ7kauztPZouua3t+U9+SurBdRY2tgNAP QUBQ== 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=PdJpvkWYTOnWvkoIPd4KYauwa7ctY5TQOeL36DvVqdU=; b=IgKHgFIj0Kf3TlPzboE2z/NyF1pVaiG4UrxHHaIFVbJbOHuy69jqmNfnt2YE67iRtc PeNoaVaLJHX2oT+qUcQB3PuWQNxeWazrOEvmG1nym52D+QTn2dBcyECUBU+tonStsZ8Q Hc+MDTqz0dKCreDE/pdNmbK95ZLlaHAeVrRZHes+e49oeQowm4XFFsJNl4kpE7DzBj2P L7vjMBrqVkpPNLAR+atDkLkXM3LpNLKo2l2hnnVTCwFxpNEG24ez4yEMBLedPrmYkNMI os/IpirC4C9UtPBqtIOtOAC58HqkRTjunh70c/EbfjT6lv2faU0CPmUZUbuLg1ve3hDE CMgg== X-Gm-Message-State: AOAM533R0IRq5t+GJQMQiPQWCEYoDX6t3m5B8A9taXY4cnsPNJbZDEMi Ip0qL2BZEUlpBesmm79r1X6vQw== X-Google-Smtp-Source: ABdhPJwT5RTTAxwpR5t/FcglX1IVPzT00EfqYqhhyDelqjbjNAV2o8RUapTvLAbf3eCG5pBm+8TqZg== X-Received: by 2002:a2e:934f:0:b0:24f:ea1:6232 with SMTP id m15-20020a2e934f000000b0024f0ea16232mr16534478ljh.135.1652862139286; Wed, 18 May 2022 01:22:19 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id t13-20020ac243ad000000b0047255d210dbsm139264lfl.10.2022.05.18.01.22.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 01:22:18 -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 , Kyle Swenson Subject: [PATCH 1/2] dt-bindings: leds: lp50xx: correct reg/unit addresses in example Date: Wed, 18 May 2022 10:22:14 +0200 Message-Id: <20220518082215.14358-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 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 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 --- Cc: Kyle Swenson --- .../devicetree/bindings/leds/leds-lp50xx.yaml | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml b/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml index f12fe5b53f30..dc1ac905bb91 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 { #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 = ; }; };