Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1776829rdh; Sat, 25 Nov 2023 02:44:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGYI+L7EiilDCbmX/s6VLl1E99EgNpOhnKQbIxesveW6FYW4MlDyK43ZRZyAiwZ+/2NWfTR X-Received: by 2002:a05:6e02:d06:b0:35c:611c:c2b0 with SMTP id g6-20020a056e020d0600b0035c611cc2b0mr4806683ilj.21.1700909094907; Sat, 25 Nov 2023 02:44:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700909094; cv=none; d=google.com; s=arc-20160816; b=DQhejf0HMHFYvzJ7n6vOcvaGhF08vnK12EK5FVkj3h8BqrXuAl5RAe+jIxZsoCAUJP 0NjyQ/3S+aALRF9WKSSkDSfnngR5ldHCqt9CSjFZ4M/b3BgvUV8ZUdLaZu6hYnDDmpBH YsApqcItNwEMnweYeKi7xkW1RHHG5nXxauEiDvsUfS9AFA8duENreIZFFb6YIeWs5J0X Gy5XNpwnIHeqizxyL+6pERZ3EwDQZJXJQOhTqUUktEaEnf+LMNIyqk143Kn2/TbQ/aIM UTTo802e6QpCOXYsm4YisITduiQF0eFge/CHppqpCNaJGm2cb38IkU9mPyRbJd8w9ILV Z06g== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=i5Cp1vx3gVvbCmj7yjPQKKD5FRRXR8fk4il/qJSsZs0=; fh=nJ2ZLdca/gmmgcBXD1OqSTbRwx8kxQEy6dfnEo/wZMU=; b=xjbewHyIlekoRx/3a5LRmwWL9FtTND3ftYtttQb2OzxhY9z25uXHe+61Xx06ttulsR d9MgNozGZNuqXejoc/CuBHYegyvSGEfKgvmgeJmf0OXpSt1SQo/PcaiF83BDBcasS0MX kE3V+bOHCPPah0ysPGr1Skd7c0fcGiKhek2IrnNHKB0q/6WafSdOglmLWicQ0/5rc1yV LWfGxKqok8Jvm/uPLFEu84cNE/bVPwBlOUb9UMCYp1Vrj6Md9Ttpbavf9S7JTzYzyZGx ejkyCiwhEm+Dofbk/SM6HeoIxknSOTL8GmJk6a0SifFbdY477oZWbi4UsmSHx8Cs0rvG agWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v9Nq8PC4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id bn22-20020a056a02031600b005bd27295abcsi6123007pgb.682.2023.11.25.02.44.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 02:44:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v9Nq8PC4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 2526A8024C53; Sat, 25 Nov 2023 02:44:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231802AbjKYKoe (ORCPT + 99 others); Sat, 25 Nov 2023 05:44:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjKYKoe (ORCPT ); Sat, 25 Nov 2023 05:44:34 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B80710E4 for ; Sat, 25 Nov 2023 02:44:40 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a00d5b0ec44so378476866b.0 for ; Sat, 25 Nov 2023 02:44:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700909079; x=1701513879; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=i5Cp1vx3gVvbCmj7yjPQKKD5FRRXR8fk4il/qJSsZs0=; b=v9Nq8PC4mXighOO2LDVjbya0mSFSGvbPl4mJtqAydwomeEji8ya1m3WTHm4FWNqAm8 nyTxENv6Sf8E4R3Y02wfgjDiyoP/y3E3MuqKtxtxbGvYDnJan025CjY9CyN/oYARAKbr cl98TZmINNW6PkBqXigIOdhO7HvA66NFwWyCICZ0X2lZVdakK5gK9njajBVlOLc1thok W/21Dc1ZzKb4KjhUQPm2MwZtrrBPqEmRBlvD3zRcbCs9OntUCtmF/ZQqmCQylVcg02GO zlyti6BVEozTfWjZ9G8qevf/UttDCapyQz8kptEr0DZUP5h8Cs8f1aCQdZ/27f+EhepM bLpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700909079; x=1701513879; h=content-transfer-encoding:in-reply-to:autocrypt: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=i5Cp1vx3gVvbCmj7yjPQKKD5FRRXR8fk4il/qJSsZs0=; b=TAhsZbMrNXW2VDKWiIlCQOKqzFFxAscjRwBrFHz5eBPNBPVUQdO8jWA8QVrPtQDGBm CSQsprsmSJjdnxRUr0nFg5XDk5xNtMhKqI6VnQb0xijNCRB14SB2FJd85HUWdPORFBVK tiz5LKIRkijqgz0BFBVPIQgbI1Cu9o4eC5DJ6L5+O6pV5fOrrWFTMEOkBOf7w2uvrFc+ 2Ya88d7vnLCGD/+hN7kuYpD0FqQDMDlwqzgqUgM5N9tJvanQNB/eboGPr8S2H6gl6XeE fGTxuVC7JkU81VoV8IWSk+ho3U4xwvnF7TbgJ+DcvQlPhZtk3pzfU9x2fVkLEafhfV6B Kq1Q== X-Gm-Message-State: AOJu0YwXiXvUZH2ZHDvq93qeVCMdpHB8sAKt9lIm3/2bBc6wVFTQ4We1 Yj6mI6LGqiZxkPWHAie2lwS2qA== X-Received: by 2002:a17:906:348c:b0:9e7:133a:5787 with SMTP id g12-20020a170906348c00b009e7133a5787mr4074090ejb.38.1700909078488; Sat, 25 Nov 2023 02:44:38 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.100]) by smtp.gmail.com with ESMTPSA id l23-20020a170906231700b009ff1997ce86sm3323512eja.149.2023.11.25.02.44.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 25 Nov 2023 02:44:37 -0800 (PST) Message-ID: <9ec78ce2-6b2f-4c31-9746-572b5e64fe87@linaro.org> Date: Sat, 25 Nov 2023 11:44:36 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] dt-bindings: leds: add mps mp3326 LED Content-Language: en-US To: Yuxi Wang , pavel@ucw.cz, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, wyx137120466@gmail.com References: <20231124093034.951-1-Yuxi.Wang@monolithicpower.com> <20231124093034.951-2-Yuxi.Wang@monolithicpower.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.koz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WEcVUqa+XdUEciwG/SgNyxBZepj41oVq FPSVE+Ni2tNrW/e16b8mgXNngHSnbsr6pAIXZH3qFW+4TKPMGZ2rZ6zITrMip+12jgw4mGjy 5y06JZvA02rZT2k9aa7i9dUUFggaanI09jNGbRA/ABEBAAHCwXwEGAEKACYCGwwWIQSb0H4O DFH41ZZ3t1Qbk0N9O0FimwUCYDzvagUJFF+UtgAKCRAbk0N9O0Fim9JzD/0auoGtUu4mgnna oEEpQEOjgT7l9TVuO3Qa/SeH+E0m55y5Fjpp6ZToc481za3xAcxK/BtIX5Wn1mQ6+szfrJQ6 59y2io437BeuWIRjQniSxHz1kgtFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231124093034.951-2-Yuxi.Wang@monolithicpower.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sat, 25 Nov 2023 02:44:52 -0800 (PST) On 24/11/2023 10:30, Yuxi Wang wrote: > Document mps mp3326 LED driver devicetree bindings. > > Signed-off-by: Yuxi Wang > --- > .../devicetree/bindings/leds/mps,mp3326.yaml | 143 ++++++++++++++++++ > 1 file changed, 143 insertions(+) > create mode 100644 Documentation/devicetree/bindings/leds/mps,mp3326.yaml > > diff --git a/Documentation/devicetree/bindings/leds/mps,mp3326.yaml b/Documentation/devicetree/bindings/leds/mps,mp3326.yaml > new file mode 100644 > index 000000000000..5f6bde46ccc8 > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/mps,mp3326.yaml > @@ -0,0 +1,143 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/leds/mps,mp3326.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MPS MP3326 RGB/White LED Driver > + > +maintainers: > + - Yuxi Wang > + > +description: | > + The MP3326 is a RGB/White LED driver with I2C interface. > + > + For more product information please see the link below: > + https://www.monolithicpower.com/en/products/mp3326.html > + > +properties: > + compatible: > + const: mps,mp3326 > + > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 0 > + > + reg: > + maxItems: 1 > + > + multi-led: > + type: object Missing ref to multi-led class. Please open existing bindings with such node and take a look how it is done there. > + unevaluatedProperties: false > + > + properties: > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 0 > + > + color: > + description: RGB module Drop property > + > + patternProperties: > + "^led@[0-3]$": This says 4... > + type: object > + $ref: common.yaml# > + unevaluatedProperties: false > + > + properties: > + reg: > + description: Index of the LED. > + minimum: 1 > + maximum: 16 But this says 16. Also reg does not match unit address. Minimum reg is 1, but unit address is 0. > + > + required: > + - reg > + - color > + > + required: > + - "#address-cells" > + - "#size-cells" > + - color Drop color, it is coming with class-multicolor > + > +patternProperties: > + "^led@[0-9]$": It's even weirded. Here you have 10 leds with indices 0-9 > + type: object > + $ref: common.yaml# > + unevaluatedProperties: false > + > + properties: > + reg: > + description: Index of the LED. > + minimum: 1 > + maximum: 16 bu there 16! With indices 1-16. It's a mess. > + required: > + - reg > + > +required: > + - compatible > + - reg > + - "#address-cells" > + - "#size-cells" > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + led-controller@30 { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "mps,mp3326"; > + reg = <0x30>; > + multi-led { > + #address-cells = <1>; > + #size-cells = <0>; > + color = ; > + > + led@0 { > + reg = <1>; OK, you did not test it. Test your DTS before sending. Also, messed indentation. Use 4 spaces. Best regards, Krzysztof