From patchwork Fri Nov 25 14:33:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 26028 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp4063845wrr; Fri, 25 Nov 2022 06:34:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf79/9oHOmKuPxEff2Ev/bUaCKu7EuQnmljRDVYFWINySp7Mgb/hRYHUbAuQssEX7NHt2K6D X-Received: by 2002:a2e:be8a:0:b0:26f:c081:9aed with SMTP id a10-20020a2ebe8a000000b0026fc0819aedmr12204602ljr.222.1669386880866; Fri, 25 Nov 2022 06:34:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669386880; cv=none; d=google.com; s=arc-20160816; b=YAd3uJyaDlr3yp+/fgf4FfV0kf2i+DAbya/1CIe6Yvy/2M/PXuKb638F7DPts4jOYb Rm1kyHCLSssiNb866DOltfOPIMsGCXj/2Da6CCHU1x/JdQ9ghWsGCRDZvgcKRmtVFvss KtblAK3y95Ij1FTceL1R9WA0giYKIRDH+MeIroi5Qd1VYkOaFV5AX8DiJgUBgCR0AePj UuF+9k18E+ivDhI2em8XM+VJYy/JjKvhEoC4uuobEtIOj5HD5yQL/XjYakJ/nNGphDVl KAZxL1d2z65yljS8Q6VHcD4vt864vSzHeQWjjrRAqQ8KORKEJ5elUtRnzH/pmL4ViDUw zQGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=uCo1AkWD2FgarCrXoedmAiqLbycN5G3SgzmeYSK7Dpg=; b=ace5dlKoNI7nr+mJGO9zaav1bD1aBUwuDUdHAHhizI9xPv2zHVqzOdjgN6mduOLElh 7svydQA5VaRmQIJc2zk4hT30nmDPmMZcPzPIfTmefMazHfNpAt1wde1S0mMZiyZwcJYT 7nuCqLEpyqYsY2m15NLfkzrxQHEsPr7u6sOygZjWMSOwZFI0Q8M3QZBoZoaceH3xmrdt lOz0LqkFLpqsoRlcUKN9aGKnTP3CRO1cHPkMSLLVrhuxrkNrhqkrXGxx8UG3vQNlG3Dy GDv31wRYslVHtqYh7EwXFxqLEyLmxQna9n20HP9OAu+CWR3MGaso1Qs+GjTkpZCRpJfM bC7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="a/b4t6mq"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di13-20020a170906730d00b007adf6f0f962si2807882ejc.291.2022.11.25.06.34.16; Fri, 25 Nov 2022 06:34:40 -0800 (PST) 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="a/b4t6mq"; 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 S229995AbiKYOdp (ORCPT + 99 others); Fri, 25 Nov 2022 09:33:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229989AbiKYOdh (ORCPT ); Fri, 25 Nov 2022 09:33:37 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31E5E2EF17 for ; Fri, 25 Nov 2022 06:33:36 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id p8so7152661lfu.11 for ; Fri, 25 Nov 2022 06:33:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uCo1AkWD2FgarCrXoedmAiqLbycN5G3SgzmeYSK7Dpg=; b=a/b4t6mqId1FZXTFhl4/ax7IXwC4KMoBiYwDBaG4hEAaEj3DvhfNLxJxcO1aQ9SwJU aPmaVgbczdckQp+p5lKzgrpjtk3BFmpgfw3crNADB9wxbgtIn4p8jwcSTyaz1hDvD8Fn 31UbcmABDzolszp2S1jCH+B2kNFVfz/ZI5NEvyLNTP8v40XPSt56SjWTfXBDqk+5ZyHn UmdTd3a380vjjtdIZ3Z92/4yXq+nWNgp58lzn0J3Vuucd0UclrtEYt8r2MQRI+KpyP+y Q03LywMGzMuqlSIZBCB+0KQN6/cBnrQ2FwO5LDK19hdS8SDl0dzm+xbbpS8StMeofjGR 4Cew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uCo1AkWD2FgarCrXoedmAiqLbycN5G3SgzmeYSK7Dpg=; b=WI3D0+5mWOcBshNmwbdQtwOvQb3SNc+XnoR4UAMzKBR88O6eZpi4AYb9ulP/KIzNv9 CHvX0JTifwZYtFfMHQ0/JkN/HMwfedynzetA9dYnMz7fryNNPX5wZdk/t7cryJRFG9uP 2hROijxczwGvQDCKcSi1m5YUYeAx9SMQlJ/9psUwyhW98GQLlIxex66PL6oYAgMNHm72 crCGeoG3dJ3O/lVeVu2ZElq6D/YUnBJaKMTEYyDEP0HtYvjGGqG6M3yj8/z6wZAFTFTV pRNQrH2aTDJHk05sda1TOirPCMEWe2wGqSqqQUe1IXlBBNyJmZchKheLpyjp6fswM/dj k5Dg== X-Gm-Message-State: ANoB5pn5sthyZ5UqJ4q/tygS/yB8/IF2ouEcofkrE+lv4p117kzMbcGe xOPwTO8/ioy/mq8Lkgr1JgwC5w== X-Received: by 2002:ac2:4189:0:b0:4b1:2447:6971 with SMTP id z9-20020ac24189000000b004b124476971mr8011706lfh.83.1669386814361; Fri, 25 Nov 2022 06:33:34 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id k26-20020a05651c10ba00b002798ab42fffsm312966ljn.129.2022.11.25.06.33.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 06:33:33 -0800 (PST) From: Krzysztof Kozlowski To: Pavel Machek , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Vincent Knecht , Nikita Travkin , Jacek Anaszewski , Andrew Davis , Gene Chen , Bjorn Andersson , ChiYuan Huang , Luca Weiss , - NeilBrown , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/4] dt-bindings: leds: use unevaluatedProperties for common.yaml Date: Fri, 25 Nov 2022 15:33:28 +0100 Message-Id: <20221125143331.473981-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750479017708775935?= X-GMAIL-MSGID: =?utf-8?q?1750479017708775935?= The common.yaml schema allows further properties, so the bindings using it should restrict it with unevaluatedProperties:false. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/leds/issi,is31fl319x.yaml | 1 + .../devicetree/bindings/leds/leds-aw2013.yaml | 1 + .../devicetree/bindings/leds/leds-gpio.yaml | 2 +- .../devicetree/bindings/leds/leds-lp50xx.yaml | 8 ++++++++ Documentation/devicetree/bindings/leds/leds-pwm.yaml | 2 +- .../devicetree/bindings/leds/leds-qcom-lpg.yaml | 12 +++++++++++- .../devicetree/bindings/leds/leds-rt4505.yaml | 1 + .../devicetree/bindings/leds/leds-sgm3140.yaml | 1 + .../devicetree/bindings/leds/ti,tca6507.yaml | 2 +- 9 files changed, 26 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/issi,is31fl319x.yaml b/Documentation/devicetree/bindings/leds/issi,is31fl319x.yaml index 940333f2d69c..2929382625b6 100644 --- a/Documentation/devicetree/bindings/leds/issi,is31fl319x.yaml +++ b/Documentation/devicetree/bindings/leds/issi,is31fl319x.yaml @@ -57,6 +57,7 @@ patternProperties: "^led@[1-9]$": type: object $ref: common.yaml# + unevaluatedProperties: false properties: reg: diff --git a/Documentation/devicetree/bindings/leds/leds-aw2013.yaml b/Documentation/devicetree/bindings/leds/leds-aw2013.yaml index e24b0d15ef01..6c3ea0f06cef 100644 --- a/Documentation/devicetree/bindings/leds/leds-aw2013.yaml +++ b/Documentation/devicetree/bindings/leds/leds-aw2013.yaml @@ -33,6 +33,7 @@ patternProperties: "^led@[0-2]$": type: object $ref: common.yaml# + unevaluatedProperties: false properties: reg: diff --git a/Documentation/devicetree/bindings/leds/leds-gpio.yaml b/Documentation/devicetree/bindings/leds/leds-gpio.yaml index 7ad2baeda0b0..7e11703acbd6 100644 --- a/Documentation/devicetree/bindings/leds/leds-gpio.yaml +++ b/Documentation/devicetree/bindings/leds/leds-gpio.yaml @@ -23,8 +23,8 @@ patternProperties: # node name to at least catch some child nodes. "(^led-[0-9a-f]$|led)": type: object - $ref: common.yaml# + unevaluatedProperties: false properties: gpios: diff --git a/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml b/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml index 63da380748bf..402c25424525 100644 --- a/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml +++ b/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml @@ -77,6 +77,14 @@ patternProperties: "^led@[0-9a-f]+$": type: object $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + maxItems: 1 + + required: + - reg required: - compatible diff --git a/Documentation/devicetree/bindings/leds/leds-pwm.yaml b/Documentation/devicetree/bindings/leds/leds-pwm.yaml index fe4d5fd25913..7de6da58be3c 100644 --- a/Documentation/devicetree/bindings/leds/leds-pwm.yaml +++ b/Documentation/devicetree/bindings/leds/leds-pwm.yaml @@ -20,8 +20,8 @@ properties: patternProperties: "^led(-[0-9a-f]+)?$": type: object - $ref: common.yaml# + unevaluatedProperties: false properties: pwms: diff --git a/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml b/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml index 497db289169d..1df837798249 100644 --- a/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml +++ b/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml @@ -72,14 +72,24 @@ properties: "^led@[0-9a-f]$": type: object $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + maxItems: 1 + + required: + - reg patternProperties: "^led@[0-9a-f]$": type: object $ref: common.yaml# + unevaluatedProperties: false properties: - reg: true + reg: + maxItems: 1 required: - reg diff --git a/Documentation/devicetree/bindings/leds/leds-rt4505.yaml b/Documentation/devicetree/bindings/leds/leds-rt4505.yaml index 5b0c74aa6723..cb71fec173c1 100644 --- a/Documentation/devicetree/bindings/leds/leds-rt4505.yaml +++ b/Documentation/devicetree/bindings/leds/leds-rt4505.yaml @@ -27,6 +27,7 @@ properties: led: type: object $ref: common.yaml# + unevaluatedProperties: false required: - compatible diff --git a/Documentation/devicetree/bindings/leds/leds-sgm3140.yaml b/Documentation/devicetree/bindings/leds/leds-sgm3140.yaml index f68259619488..56b2b2630108 100644 --- a/Documentation/devicetree/bindings/leds/leds-sgm3140.yaml +++ b/Documentation/devicetree/bindings/leds/leds-sgm3140.yaml @@ -34,6 +34,7 @@ properties: led: type: object $ref: common.yaml# + unevaluatedProperties: false required: - compatible diff --git a/Documentation/devicetree/bindings/leds/ti,tca6507.yaml b/Documentation/devicetree/bindings/leds/ti,tca6507.yaml index 32c600387895..9ce5c0f16e17 100644 --- a/Documentation/devicetree/bindings/leds/ti,tca6507.yaml +++ b/Documentation/devicetree/bindings/leds/ti,tca6507.yaml @@ -38,8 +38,8 @@ properties: patternProperties: "^led@[0-6]$": type: object - $ref: common.yaml# + unevaluatedProperties: false properties: reg: From patchwork Fri Nov 25 14:33:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 26029 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp4064111wrr; Fri, 25 Nov 2022 06:35:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf4iQ8+x4jJDAMA0GV+uFiYzj5jqCM9vDGrcl5wgK5lJeA0PtiUzNzpKmeFWpJe5FRcn5vEn X-Received: by 2002:a17:906:ad9a:b0:7ad:8bc6:48e4 with SMTP id la26-20020a170906ad9a00b007ad8bc648e4mr19096014ejb.514.1669386903611; Fri, 25 Nov 2022 06:35:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669386903; cv=none; d=google.com; s=arc-20160816; b=Z+CVvp+EQotFf+XK/ETF50eQSDVKyqZObsgetEYpyv/EHbklmCYuxZ56CH2L/QLhu5 ih1h1rs+VcUPlGJEIY6qAzpyfBNaXweYqDE6JtlVglOVf+3n59GZ6krh7iCyxDkMM+qE mU9jzN288BfbsmAQczoyTdDW3hNw3092FFF+Vg8UBgc7TSnbwjXq3uL3smBaDR87cw9Y ppxSgkMprnFMKVuVtaLYwiUNoAR/CeY6b3vjBCJOkG+lNGDvUOFd92cAHSx0tAYpfENq VC/6eelWqvLLe8GsPs+3rB7xkMPxD7Ddg8rTR9qv9nx7tth/6z/Igfdypkbqsl0qCA0L 5lRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VxlrZWPFCrFQp2sHfL4Kx3y4fi4AGKGpCjaVKusjlG8=; b=o1wBioQ8TBzLpIyuDQVyLd165euT0s5S89OPMejgp/6soVlY9JXwPiPrNWKQOWRjHB g3c9fZgiRu5pSbUdOiGqDqZ+/zfR1nb83hDHRJ3ky08mMtbioWtNBmN7DagwY4ljotDz HKgjoKg3fejIHH+rPdb+ILVAovenWr/JXWP+/300QZcdexlPWMcF2OxJcgtLB6yEvOzm X4ndxy0ES8MaJYiXOO0NT4fq9csm0Yion5HuYY+7Kq1IMlFIXmf6VnHgJaGB9Y+idGHB I7vgSQ3a+/FKYvHN5QHFBuFcfJLX82TatFXyq8xf1OFwNLYsbc4Xp7DSdn4lmPxi/+7d V2vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="u7zDvcN/"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g10-20020a056402180a00b0045d3e06e4d5si2756765edy.389.2022.11.25.06.34.39; Fri, 25 Nov 2022 06:35:03 -0800 (PST) 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="u7zDvcN/"; 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 S230035AbiKYOdv (ORCPT + 99 others); Fri, 25 Nov 2022 09:33:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229991AbiKYOdi (ORCPT ); Fri, 25 Nov 2022 09:33:38 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3D8E2E9CC for ; Fri, 25 Nov 2022 06:33:37 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id j4so7222183lfk.0 for ; Fri, 25 Nov 2022 06:33:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VxlrZWPFCrFQp2sHfL4Kx3y4fi4AGKGpCjaVKusjlG8=; b=u7zDvcN/YwdQwwUSi++0dMjhKMK7C+JAG4gCC3LTftZyocaB4/tBX8OuIK8pEBmMWK +R+vLtA2DjkxmMHwu8qJ/iUP1dopSN2EHgs/NmFaa35vOendIogkE2GvTl2BSWVdWqNT 4EwTNrA9FiRrg8kwLJpy6/c1eDtbjMecDgvlFtscL14SHQ0AeTImj6LN2DVdQYavSahG 4NdQT9Fk2DDiySd1HHQ7aURbfutRqz/kmTI0Y3DphBVE1TflCqj6e/zpON8vroqRoCjE b+8s7C6LNM66Y3GwfaqF2S9H7JU02n8BgHgXkFIztErUy7oxtcGcf4AWcJHzo5UJEJCM hPww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VxlrZWPFCrFQp2sHfL4Kx3y4fi4AGKGpCjaVKusjlG8=; b=DGAbknd/iS2nj0K7wPdSkK/yvpaKfGjq8jdNVhM12bxwghx72+IetjC8EORO9ks4X8 eWJwTAuK4y8sn5LOBSlEjd2GxJI9PpXKh+m4nIhpbzOX2FkW+TxpsX9MNfzqWPYoQ5/j EE6T4T7ajDVjZdQJp7j9pd5NV8l2zJKQXvFZqiiBTtJRXaUOUgXR2bqN3wn6ucTOlTkS CKVxUTSfVflmZ1zEwNFWX9RpM4JOG2ce7k5NsvtWwHGQ8TjKtGgeMby/lRWkLLdD52NZ Oj751GQZFxar4fydCuoJtOtuzlvFE6xti5zQjIUC3vclW3zXtPUUu56/0X36gR4j4+fg 1y4w== X-Gm-Message-State: ANoB5pmtTCTJdgU3geAqxFDYJJv/xjE4xXsFUe6WQuZKr0eJpZyJ3nbX qFogbDl2Sv3mER2ok0PTcdGRig== X-Received: by 2002:a05:6512:2989:b0:4b1:753b:e677 with SMTP id du9-20020a056512298900b004b1753be677mr12245606lfb.407.1669386815560; Fri, 25 Nov 2022 06:33:35 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id k26-20020a05651c10ba00b002798ab42fffsm312966ljn.129.2022.11.25.06.33.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 06:33:35 -0800 (PST) From: Krzysztof Kozlowski To: Pavel Machek , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Vincent Knecht , Nikita Travkin , Jacek Anaszewski , Andrew Davis , Gene Chen , Bjorn Andersson , ChiYuan Huang , Luca Weiss , - NeilBrown , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/4] dt-bindings: leds: lp55xx: allow label Date: Fri, 25 Nov 2022 15:33:29 +0100 Message-Id: <20221125143331.473981-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221125143331.473981-1-krzysztof.kozlowski@linaro.org> References: <20221125143331.473981-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750479041854119156?= X-GMAIL-MSGID: =?utf-8?q?1750479041854119156?= The Linux driver and at least one upstream board use 'label' property: qcom/msm8996-xiaomi-gemini.dtb: lp5562@30: 'label' does not match any of the regexes: '^led@[0-8]$', '^multi-led@[0-8]$', 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/leds/leds-lp55xx.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml b/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml index 7ec676e53851..dfaa957eee74 100644 --- a/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml +++ b/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml @@ -48,6 +48,8 @@ properties: description: | GPIO attached to the chip's enable pin + label: true + pwr-sel: $ref: /schemas/types.yaml#/definitions/uint8 description: | From patchwork Fri Nov 25 14:33:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 26031 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp4065587wrr; Fri, 25 Nov 2022 06:37:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf6H6Sh6+rBxsh27WUOQ8AhyErhwgZ+c5f3zeUg4OefWxL2LtXMnNArql1TXr1QhKHauRpup X-Received: by 2002:a17:906:4f0b:b0:78d:aaf9:7b8c with SMTP id t11-20020a1709064f0b00b0078daaf97b8cmr32950022eju.229.1669387029473; Fri, 25 Nov 2022 06:37:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669387029; cv=none; d=google.com; s=arc-20160816; b=oym2puFyY52OSjIU8WD7W4VfEP52Qst4uf2hapbt18wDmXml0DtBjQq4yXLsaeaHA0 KOHcweP+x679quR6xVktGDnx968jcE5BE3Lxi0X/AQ5CQvuubI2Grjuj/7W+Wa2K9Hai up+vyTP2k+hGj2Fgn+91CXIF/LBB+SMJVJyqsm/WSzbYI5i7G4oC7gNk2Lk48ZJRPm0C DkBryZ9QrPq2zACteE0H1CS54qkW8sxgPlLC/y1w3qUcO0TPvrxcb0sASRab0KLdKTBQ 0Ip03tII4TdJ+RygtxURIxsMEnIf0Jbd3vozddhVjpDsuKzO9s7SLbxA4q7Dk3jtRoYi nAmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8y3a98agTTuTX1jVNEjy44NE9w3cHQ5Lb1+gIhtRkWA=; b=cnyWXqbfj8DPrXWRC9UZgTsRtVS9DGZEiujuz3ae3fKs0Wk8d41mMdgFWWMGBhM2g5 RWa2MjF6n8I/qAJNcQ+In1Bb5v6y/Yn2u/wp/w0FSLNFEdWDXFFq4bzi6ZWo7jgYddNc L4IxV+eqsoOLYmkswyg1oFWTZ8p0gQjB9eRQwQDM9jzMEiV/iUI/5vlilF3S/ewufzDj sTHqPHIQNAPfRTX4YJ5ANVVse5RLxdf3plR47DRPnzDekv5B3sTU07rVX3QhFE5SFcB3 7bdsl+SoIWmNHjh2AQWn/Wd09fUEKvnerputRLSoGSJGBRMKvawiu4TZww8ZjDHrGbzy T3Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hS5c0+dI; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xe8-20020a170907318800b0078d805901b1si2514607ejb.489.2022.11.25.06.36.43; Fri, 25 Nov 2022 06:37:09 -0800 (PST) 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=hS5c0+dI; 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 S229991AbiKYOd6 (ORCPT + 99 others); Fri, 25 Nov 2022 09:33:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230002AbiKYOdm (ORCPT ); Fri, 25 Nov 2022 09:33:42 -0500 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF64E30F62 for ; Fri, 25 Nov 2022 06:33:38 -0800 (PST) Received: by mail-lj1-x22b.google.com with SMTP id r8so5375174ljn.8 for ; Fri, 25 Nov 2022 06:33:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8y3a98agTTuTX1jVNEjy44NE9w3cHQ5Lb1+gIhtRkWA=; b=hS5c0+dIHOjIZqq0x2fAc5Qzoj15r81Mw73Pnu8/JJIerGbiPo3MpuJeeS5VxlUsvD p2sjNHNL1sLRn1lHftzKw1JIn27GlIRh+ynJfUEh1A0c7O2LtdrYDA1DyY/88SvmXib0 hkgXuKlGqC7NxEwJMC1g1A2AHkuvefwdyVbSuBpKMuJFXtTiTRQANJHype5IIv9IqQPq Z2hKOKX9RUOCuBpm9DcFG1QcZElpaiTQqrQaX7/8npQRD5CP4T161oNGGutsuxygtwWp Hq5WnZwydHGXdFq37Jb7iRjpz+0AkQuSB8dMUnf8/naXq4M0gNrTDK0rWJgJdP6pTRwk yfSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8y3a98agTTuTX1jVNEjy44NE9w3cHQ5Lb1+gIhtRkWA=; b=8FsYZpz5Wiz8AJ73oyXZlYQ75I3KrzD2teAMMMnzHve71XedfViSgJL0LSAkKzWn2F wEBUP6fL4v1PZjBwwbWM+ckDORVIFvxDUXeq2s5i6e33pYIHwcrKYUTrVNxtBHSeMBtM Vw683i37XzgBQXE8a0Kz2owTRP4VXMB3+BYkw9+X8JgEfDGuX9Zvsqq1YoYzcnPZZ+5d 0JeTLwDnDEMF6x2uCoNOu9MEaCMlgjIS8ixPDcujwqmmA1zPsVlqmoSMflW6Si7M62Fh 6LRhaxFHxhZr5AvpChiGnvBdSVjonXA+ga7CvHyFPWvm443q2kDav2ut+YNUcd4QKqv4 2i5Q== X-Gm-Message-State: ANoB5plsFLO6nMMU367ojJ9INY7AlwqwBr0szUUdUl1N6m2Bx3Zh++vZ laGN3QWg2EMb/vFsej4/1MH95w== X-Received: by 2002:a2e:a26a:0:b0:277:34bb:ea2 with SMTP id k10-20020a2ea26a000000b0027734bb0ea2mr7824151ljm.427.1669386816879; Fri, 25 Nov 2022 06:33:36 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id k26-20020a05651c10ba00b002798ab42fffsm312966ljn.129.2022.11.25.06.33.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 06:33:36 -0800 (PST) From: Krzysztof Kozlowski To: Pavel Machek , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Vincent Knecht , Nikita Travkin , Jacek Anaszewski , Andrew Davis , Gene Chen , Bjorn Andersson , ChiYuan Huang , Luca Weiss , - NeilBrown , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/4] dt-bindings: leds: lp55xx: rework to match multi-led Date: Fri, 25 Nov 2022 15:33:30 +0100 Message-Id: <20221125143331.473981-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221125143331.473981-1-krzysztof.kozlowski@linaro.org> References: <20221125143331.473981-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750479173487400745?= X-GMAIL-MSGID: =?utf-8?q?1750479173487400745?= The binding allows two type of LEDs - single and multi-color. They differ with properties, so fix the bindings to accept both cases. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/leds/leds-lp55xx.yaml | 43 ++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml b/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml index dfaa957eee74..0018e963f83a 100644 --- a/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml +++ b/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml @@ -67,9 +67,50 @@ properties: const: 0 patternProperties: - "(^led@[0-9a-f]$|led)": + '^multi-led@[0-8]$': + type: object + $ref: leds-class-multicolor.yaml# + unevaluatedProperties: false + + properties: + reg: + maximum: 8 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + patternProperties: + "^led@[0-8]$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + led-cur: + $ref: /schemas/types.yaml#/definitions/uint8 + description: | + Current setting at each LED channel (mA x10, 0 if LED is not connected) + minimum: 0 + maximum: 255 + + max-cur: + $ref: /schemas/types.yaml#/definitions/uint8 + description: Maximun current at each LED channel. + + reg: + maximum: 8 + + required: + - reg + + "^led@[0-8]$": type: object $ref: common.yaml# + unevaluatedProperties: false + properties: led-cur: $ref: /schemas/types.yaml#/definitions/uint8 From patchwork Fri Nov 25 14:33:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 26030 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp4064270wrr; Fri, 25 Nov 2022 06:35:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf6kH85xFyj2rbZXS/0C/4ihcyb61vXet2aLQUFZKFfukWoZTFE8or0x/ZoqzxSzJNmJFXOw X-Received: by 2002:a05:6402:538e:b0:468:ea55:ab40 with SMTP id ew14-20020a056402538e00b00468ea55ab40mr4478428edb.323.1669386911371; Fri, 25 Nov 2022 06:35:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669386910; cv=none; d=google.com; s=arc-20160816; b=pCPHxDJqCizzULQm6mlXeNpOxK1S3fqgfxf0DEZKmrUO86r7eXvBmMd2NvXim4kv0q DuSXWhuc5IP8YkXX0FTqruhixRZnLusTMidK7ZqGCR5YFQefqfhjvv/Hjv5TEGrsTCSa gpbisDoImudXqdo2y6HKAErGBrqFFMYgXVwjecXWwRWBl/7uFmPX+n3BESLEhP0Kn2yu B/p4wVGarfV7ZfuB3Xe7kkzyEFTCMStOrfMQKwWmKhmtHZkV6jB2QwAEuNtMuLEGsMZR PW7O3LMqj9ZXU4ZMJe4989YF2+UgdmDwAAuJRteBaXP5uXeWll5Iquogx6tBGAn0dKua rwLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CaRc1qhxO0e/vPCyLXyooIUxaaj3mmT/bRHWf+I1C6o=; b=ViyUXPcNCA2NpVuUV3oE48VZgJe8mdiLHfGi5uX91QqFIsepIMiu/+JRwURao3QlfF cJkLuOkVwqJzqkZxh+Ui37ICJjVwN7ybLIlr1XYmhpRagbEbdhEdfLB1h2kI+08Ul3b7 NxR8EaMNVFtQFujnkVayXkAdjOD2T4jP8eXBi8tryHSYRc96kZmPcy5dHKyh1zaODGYm KUHg3zUmtPz8ch2p6tWUfdN/7rAiahPclHb+QzPnn3F/hnaRQN7F/QbeDPFT6OWUE2O1 51HxqfSENfKY06NqKwFhgK7WOVcviAktkeO7Vx9qUEWEzGwfKW/zoYKI9l/xvLVVltXC mg6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rllN0hiG; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w9-20020a50d789000000b00468f6721335si3875303edi.60.2022.11.25.06.34.46; Fri, 25 Nov 2022 06:35:10 -0800 (PST) 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=rllN0hiG; 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 S230012AbiKYOdy (ORCPT + 99 others); Fri, 25 Nov 2022 09:33:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230006AbiKYOdm (ORCPT ); Fri, 25 Nov 2022 09:33:42 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A98B82EF06 for ; Fri, 25 Nov 2022 06:33:38 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id p8so7152919lfu.11 for ; Fri, 25 Nov 2022 06:33:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CaRc1qhxO0e/vPCyLXyooIUxaaj3mmT/bRHWf+I1C6o=; b=rllN0hiG7XyWbfv7uWGTtFpLbOaOJqhaGBmD9aWBUiNax9tlNEBHXmjSbF9c26/Eba +AFHp1UsDS6K6fM2IxVT5aQbKNBiX24WnJMp8ZxYmneEWkvUQ+KOvsSVGCJ4r15DFlaC tcWi+TeKmEQzAWT7jIl9mYq+iiHuqC9Hn6/IVGtajINKDRtxLtDdDPL/LdD1MR1GhF5N kReqW6p5hY4vk67nh6Sq6Hjeo6nxonhZagdUsgTCW1MRyy05vSSDivLznbS3Tz2Hr0xV mHDcs/O02Urjc6LfcyKdla8sW71IbKljr6DuPHBzArdZwZhDWgs2lUcIf5vIt608afAt ramQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CaRc1qhxO0e/vPCyLXyooIUxaaj3mmT/bRHWf+I1C6o=; b=Sm4AM4Txxzzc/U7pQObal+1vKmS2gHnkyHwA+s1c5FgEgadbFw+SSEn6cnTSUPP9++ 1xh3I0+CYfqmOpMdoXGAEOi+5NZMytmKWzfgMOn51Y/PD53/i/C6en4vr8xyqKie2BfM iGRcaKYTVcQaQ1OGUZ1R/z2FMChwOH3FLSxvtfPxLpmdXEFrdc88GIjPtH3x0TS2LDiF wV/m3I+JdbQiIrnEi6L9qxoEBDJimWlAzpc/CLdLWKg5LQd6zba1ZsJA1BEpSyxpz3Nx Osuc/0wbMNHmagp1hILRc6mHoTLME836t9TJp15uLQd6WrfojnI217q29aT7QjGkX3PL exfw== X-Gm-Message-State: ANoB5pkhzlVAz6dfS5ou4VbQdjyUWD4xW7RsrNa4yji0L5EbDzmtDZRX rkVbkN/312hQ9TAIqkE8qoA1Fg== X-Received: by 2002:a05:6512:3b0d:b0:4b4:7cb4:f932 with SMTP id f13-20020a0565123b0d00b004b47cb4f932mr8326296lfv.243.1669386818084; Fri, 25 Nov 2022 06:33:38 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id k26-20020a05651c10ba00b002798ab42fffsm312966ljn.129.2022.11.25.06.33.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 06:33:37 -0800 (PST) From: Krzysztof Kozlowski To: Pavel Machek , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Vincent Knecht , Nikita Travkin , Jacek Anaszewski , Andrew Davis , Gene Chen , Bjorn Andersson , ChiYuan Huang , Luca Weiss , - NeilBrown , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 4/4] dt-bindings: leds: mt6360: rework to match multi-led Date: Fri, 25 Nov 2022 15:33:31 +0100 Message-Id: <20221125143331.473981-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221125143331.473981-1-krzysztof.kozlowski@linaro.org> References: <20221125143331.473981-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750479049052724474?= X-GMAIL-MSGID: =?utf-8?q?1750479049052724474?= The binding allows two type of LEDs - single and multi-color. They differ with properties, so fix the bindings to accept both cases. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/leds/leds-mt6360.yaml | 43 +++++++++++++++++-- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/leds-mt6360.yaml b/Documentation/devicetree/bindings/leds/leds-mt6360.yaml index 69e579226d9b..d84e28e616d7 100644 --- a/Documentation/devicetree/bindings/leds/leds-mt6360.yaml +++ b/Documentation/devicetree/bindings/leds/leds-mt6360.yaml @@ -26,11 +26,10 @@ properties: const: 0 patternProperties: - "^(multi-)?led@[0-5]$": + "^multi-led@[0-5]$": type: object - $ref: common.yaml# - description: - Properties for a single LED. + $ref: leds-class-multicolor.yaml# + unevaluatedProperties: false properties: reg: @@ -43,6 +42,42 @@ patternProperties: - 4 # LED output FLASH1 - 5 # LED output FLASH2 + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + patternProperties: + "^led@[0-2]$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + enum: [0, 1, 2] + + required: + - reg + - color + + required: + - reg + - "#address-cells" + - "#size-cells" + + "^led@[0-5]$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + description: + Properties for a single LED. + + properties: + reg: + enum: [0, 1, 2, 3, 4, 5] + required: - compatible - "#address-cells"