From mboxrd@z Thu Jan 1 00:00:00 1970 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 B01DCC433EF for ; Tue, 24 May 2022 06:36:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233684AbiEXGgY (ORCPT ); Tue, 24 May 2022 02:36:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233612AbiEXGgR (ORCPT ); Tue, 24 May 2022 02:36:17 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 540FA3ED15 for ; Mon, 23 May 2022 23:36:14 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id t25so29176133lfg.7 for ; Mon, 23 May 2022 23:36:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=naO7MfUZImeoXwi1QHGtkiW2IkE7ZgBBCUBLVbjErGs=; b=tdjIKMzaQGMRuZHzjqWMkQra9s66xVHja7tX0VNqSU+hLS1xiKmO98GEsEHeZz20Q4 QOovmZrew5aKqPKVV4p1RZ9PIl9t9fopan9WMpWk6KICBShIF1tpQt1OUuts2E2HdXKz PM1erRGq8wUDW1cwHx20Zohwi9i2Wt4lrqjBEp1hwNx88XexxzM4c64fUqssIJaT6+OJ DB1TJURiECE8uVjIk7F8qGvTEKr9zBlKfkoU01fmgJ9e4iQ3lrgcuPT9VaLsVtPa719n XxoDN6f+N/vWHsivFgCB9d/OVB7gDy98z28Ypnqz90lefgNwdygLE+qkIKao+lwTdUO5 OnpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=naO7MfUZImeoXwi1QHGtkiW2IkE7ZgBBCUBLVbjErGs=; b=Kxe0Xc7BnJEo1F7IF8mr+lk5Xah1J/Jn5FCp/0detTt5jmshOaxvsOmzeReJBhcKWe JkHjV4Q4yqkcH9ZuzONPPF85Ran/Nw39NWsKBT2IjZJftaftU/D+ZNBHN63upa9Ch4Cs em5iNWqI0q5ehZWsASLxGgsWuttY5BWSojdWwJEdeqYU7AqNTUo5QuhNpTZBooLC4q/n pbTNCfs2ubIJqIqL5AQEAFhFASCqLZ7PA3XvRNq4PtJ9GSa1eUFqhMl8nxVNKw+1Nev8 Z5AaiEbcajZhKzinQ+RqvR1D+zE66aHSwD8NYoGrbMaqX+i7BB2QGCYuvo2UWoMIeC1M aG6w== X-Gm-Message-State: AOAM532SwzGa8yEzelZtGIcw/08051eAgDg2cUQyWwnxTr3M4HlgC1xu V7j3GPejOyNT8K+weHWi2KvbHQ== X-Google-Smtp-Source: ABdhPJznnkdfT2gEMM9zUFDFG/znJx0xsTuJYEjWAjhGfeGvsJeGRt1A3uUGSXqiLqwuYnVjGudssA== X-Received: by 2002:a05:6512:1585:b0:448:3936:a5a0 with SMTP id bp5-20020a056512158500b004483936a5a0mr18327566lfb.108.1653374172109; Mon, 23 May 2022 23:36:12 -0700 (PDT) Received: from [192.168.0.17] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id c3-20020a056512074300b0047255d2115asm2356464lfs.137.2022.05.23.23.36.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 May 2022 23:36:11 -0700 (PDT) Message-ID: <0d48b3fa-d6db-68d8-93a0-79902a119735@linaro.org> Date: Tue, 24 May 2022 08:36:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH 1/2] dt-bindings: leds: lp50xx: correct reg/unit addresses in example Content-Language: en-US To: Rob Herring Cc: Pavel Machek , Krzysztof Kozlowski , Dan Murphy , Jacek Anaszewski , Sven Schwermer , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kyle Swenson References: <20220518082215.14358-1-krzysztof.kozlowski@linaro.org> <20220523213528.GA2227380-robh@kernel.org> From: Krzysztof Kozlowski In-Reply-To: <20220523213528.GA2227380-robh@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 23/05/2022 23:35, Rob Herring wrote: > On Wed, May 18, 2022 at 10:22:14AM +0200, Krzysztof Kozlowski wrote: >> 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>; > > The unit-address is 2, but the reg value is 3? Right, the multi-led should be also @3 to match the reg and first led in children. Thanks. Best regards, Krzysztof