Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp872537rwb; Fri, 28 Jul 2023 00:43:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlFb44fwqWnn1ibt27NtpKE2IP5abHnZwsQLBldhg1BdSNCQ0/VJKg4F5wKql/cpN/KgKfF3 X-Received: by 2002:aa7:c443:0:b0:522:2bc8:cbb8 with SMTP id n3-20020aa7c443000000b005222bc8cbb8mr861781edr.6.1690530216585; Fri, 28 Jul 2023 00:43:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690530216; cv=none; d=google.com; s=arc-20160816; b=awyOV9/2aG+1+SgQOMgnx6dzvzaBbuKGTSJk2WUY4uKj26GbCqqXK+DEQ0r3LpsLTb 3XxSBRc1lBD1zAXiRXQLqdt+brVEHGOR6sCZUQX8xdcIAePvQz0lqOyq7XiwZS+cZVmO 7HPA+BCDaOIRwjALCPQ2vbdQk28TwK6Bs0hwXpu8iEWiF/fqEnQ6xao+YJQ9gtRmOIpf 62wiPIBOzVqfHLoDuvNj+RO+qmA3yS0IscZVO4iHkTPuiThFT8jT8N+5oCz6BQlA1v/v 7g4yDm40DJRSelERgiSX2k76h2BvVB3xVv8raX8x17vd6TFhPXT3zqJOM8hdv0xYgDKD rFXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=iJmb5dhR/A69axFp1n/g3w1WP4NZBl+VMQ8J3r8W4Go=; fh=slGiytXxOrxE2atudXDjSPsEhn9fz1kEJtzCBuHjlyo=; b=gaQd+1852eRenc0YwtfewIS6Fgo4r1uzJTfzwJEep+WQW7yIMA4fALU2RgserkGz+g 8TJT7hV9LySiVUWdSn9ufGUTeWBhtb9FMiu+r5ECbEU8UnHOdHyNb/o9vRNx74DDCqIy nadQBBEy+fe0Aw1lQGHtyzyuJoaM3Z5WNglqidaeo1M+lklUbTK8jTcJV1AwzK4e53mD ncs4mE7XMb/vvz9LhuqP0aYGSxbPIswXbhsyuEL36a4hh7OcnQ+PjmXfJtZGmajk+oBW J221c8ToUA6MRFy6DGIjXDLNME/xGmdGnJm0Opi2ogs+Ov5nGEO9TgQgZtci+nc/fjyc tC6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CMCbVYq2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f3-20020a056402160300b0052228551730si2202249edv.279.2023.07.28.00.43.11; Fri, 28 Jul 2023 00:43:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CMCbVYq2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232749AbjG1Hbe (ORCPT + 99 others); Fri, 28 Jul 2023 03:31:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233708AbjG1Hbc (ORCPT ); Fri, 28 Jul 2023 03:31:32 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE7AB2735 for ; Fri, 28 Jul 2023 00:31:30 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-98df3dea907so244525966b.3 for ; Fri, 28 Jul 2023 00:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690529489; x=1691134289; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=iJmb5dhR/A69axFp1n/g3w1WP4NZBl+VMQ8J3r8W4Go=; b=CMCbVYq2we1aK2YgyhLbvUPjHv8upf6iecEYG445wcF7z+ZtnBl11qU/H7Bj19u460 1y4KjJvJfBx/Vl3xllxT5aqmSQ6RH+kUFvp69q4awuzJ+EFcE6nLAhd70usmByNh691z ICJ/ReEyhmU1uDTH6tTDY4uIG1iI+9fyksVihIKHTbBLEi0FUqTHXHlKwRDu2CmKUeFE afBKX9LJQ9+HBerptlPVYAdx+LCppFn5rJjhopLk5cJwX/Ahf/DL5Zi8HATEbvYYUjxz cSvemKUlV8xr60sg1SAqQzPWhvm/zujwxNjGrk7F0W224PPu+rfjVL151HRgM2gmLCMZ hRcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690529489; x=1691134289; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iJmb5dhR/A69axFp1n/g3w1WP4NZBl+VMQ8J3r8W4Go=; b=FdDCiww+uzv9EPnghAYn34ABWe6joqKudqvuynKlXF9mqua6afM6qth6D/JqxK8vlr 8F9/vL1XmwFohm7V3p8UDWsTzzQXOh3bHr6sNjrpOB3zzmbNZNOeFHXn0LOmI2Tbpug2 lNWtQ5e8Q+PNaXjmBEOH7MRmi4meXMOlINENCzYELEMPQkJdgocAq+ANNl2wrIoBRpPu cIEDTcdk2jx8VgAMKyDBWep7pN+ocAvOI7nKAEYLb/Y3LtasbPtj/tXFmAIouRIwjRqc +TT3crAnpD0HbXDHN8gHMnWPchgfFexJ6e0RTf6fLlazRCys+AstIF0ctYTjiVV8uVF3 qadA== X-Gm-Message-State: ABy/qLYO82ijoDuyTkSA9ojcOpiVMPLlHHYpDVleQqwhN0PLDwxldN4a gR+GSUaxhNQaSocBZPasefgMfA== X-Received: by 2002:a17:906:328d:b0:993:d1b6:61cc with SMTP id 13-20020a170906328d00b00993d1b661ccmr1157247ejw.44.1690529489331; Fri, 28 Jul 2023 00:31:29 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id u7-20020a170906408700b009786ae9ed50sm1698270ejj.194.2023.07.28.00.31.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Jul 2023 00:31:28 -0700 (PDT) Message-ID: Date: Fri, 28 Jul 2023 09:31:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 2/3] dt-bindings: leds: Add binding for Broadchip BCT3024 LED driver Content-Language: en-US To: Matus Gajdos , Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230727160525.23312-1-matuszpd@gmail.com> <20230727160525.23312-3-matuszpd@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <20230727160525.23312-3-matuszpd@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/07/2023 18:05, Matus Gajdos wrote: > The BCT3024 chip is an I2C LED driver with independent 24 output > channels. Each channel supports 256 levels. > > Signed-off-by: Matus Gajdos Thank you for your patch. There is something to discuss/improve. A nit, subject: drop second/last, redundant "binding for". The "dt-bindings" prefix is already stating that these are bindings. > --- > .../bindings/leds/broadchip,bct3024.yaml | 89 +++++++++++++++++++ > 1 file changed, 89 insertions(+) > create mode 100644 Documentation/devicetree/bindings/leds/broadchip,bct3024.yaml > > diff --git a/Documentation/devicetree/bindings/leds/broadchip,bct3024.yaml b/Documentation/devicetree/bindings/leds/broadchip,bct3024.yaml > new file mode 100644 > index 000000000000..0d622894e79c > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/broadchip,bct3024.yaml > @@ -0,0 +1,89 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/leds/broadchip,bct3024.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Broadchip BCT3024 LED Driver > + > +maintainers: > + - Matus Gajdos > + > +description: | > + The BCT3024 is an I2C LED driver with independent 24 output channels. Each > + channel supports 256 levels and its output current can be scaled by a factor > + of 1, 1/2, 1/3 and 1/4. > + > +properties: > + compatible: > + const: broadchip,bct3024 > + > + reg: > + description: I2C slave address of the driver. Drop description, it is obvious. > + maxItems: 1 > + > + vdd-supply: > + description: Regulator providing power to the VDD pin. > + > + shutdown-gpios: powerdown-gpios instead. See gpio-consumer-common.yaml > + maxItems: 1 And this won't be needed. > + description: GPIO attached to the SDB pin. > + > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 0 > + Best regards, Krzysztof