Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp1083290rdb; Wed, 1 Nov 2023 10:46:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHewAqdCRIUKZ24No9ZdtlSx/9Swu1gRStpaZQ1ITghhsNn2LlnqenxqaJeV8GpopZOsJET X-Received: by 2002:a17:903:2155:b0:1cc:1dde:8680 with SMTP id s21-20020a170903215500b001cc1dde8680mr13534719ple.45.1698860782646; Wed, 01 Nov 2023 10:46:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698860782; cv=none; d=google.com; s=arc-20160816; b=ZZW7yRPwNb7tQ816pNPYmEars0QKLUyp1wNR3EzwnnaQ12vMZlAZ9/cRPRmZutrtiq KbkjPSV24+z/fzAmF/nkm+rAiVIgJiyK1GdP+zYgb4+Vcyj//ANm8KmPxpQHxUMChkjR Vjy1GT/HaO537JWit2obKeDIJu16CkdNMV0SAdToFj2WRQ2pikOpDp2LY9EgSQfQXybk uMCp0hrH22MkzuG1BOJCe8n+CamAjCZDnyWQYHeQOiU3c4IYDEyLe1+KOVHBCc+/+oaK sp3TVKwqxOeJqw+Gqb4BLW4aeI80uwA7WVqUGFH1B34UmkOpM7RxlXPZBBXVEHMpq7nh yedQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=IFMjb5EThxVctmhDxs8Q+Vp71Ug13ebnpxJJFqjaR1Y=; fh=8Un8YrvnqItyc44nFcPHHfcNtnyjNBX9cVk0f+f3cWs=; b=xTdCMlmSYtz3gnOh9cqQygdYGfQwgj+V/iL1VVtlXhrsD6+lVZb2K5YFqGfqfAtbCx g7w7airjgcV13/oy9L3JeU+AH1K3jkBFnMxh/1gRjGr3EYOghoTADv/TxhSkybxfBte/ SyibgA+MWgF43mX/t2Xw9VmIP2+/87bvdmAvlbqaICwadYYX7n0Tk2IuieW+QKBrSQ1R PKQbHqiVyx6S3YxLn3fthFE3cSfTVYSKMSO66d5tV9MeHl72Ej9QHkYGsLthSezUn2ar bdaN051/VVOpeK3ZOB5/XNXESeLroTSaxTR1Gf/FmvfIktoi+R6+3JAuoEgTlbAdes8A hLCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=ED7K3VOK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id c18-20020a170902d49200b001cc283d99a6si3485892plg.474.2023.11.01.10.46.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 10:46:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=ED7K3VOK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1CD918082877; Wed, 1 Nov 2023 10:45:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344561AbjKARoe (ORCPT + 99 others); Wed, 1 Nov 2023 13:44:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232545AbjKARod (ORCPT ); Wed, 1 Nov 2023 13:44:33 -0400 Received: from mx1.sberdevices.ru (mx2.sberdevices.ru [45.89.224.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9545110F; Wed, 1 Nov 2023 10:44:26 -0700 (PDT) Received: from p-infra-ksmg-sc-msk02 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id EAC1A120020; Wed, 1 Nov 2023 20:44:23 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru EAC1A120020 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1698860663; bh=IFMjb5EThxVctmhDxs8Q+Vp71Ug13ebnpxJJFqjaR1Y=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type:From; b=ED7K3VOKIYmV02lfi4q4r3obn44pKQEie/SSZ/VkH8lCv37v3BcVp7fO4fWKOQ1h1 jkhXZBqyxpz4RBdRH3iBZ+zdOA3pu7LcKYeQkjosVEkK8viMCPvtxT244TFboJoYZs bWlPrrxWVWcv8ENMuCLTPNhnazNLnkrOZXMSWcjzDn7sbF+Ikjghv6Z0+AaYXGXRxl eJJRVQeYl0G14xcy4Qf0DiymqcwQrH7hIlGbF83KfYU6LO/ZgFTUaqiMOwXUJ7CmnY fZsoKL/RfotwRlyk6NZVW1t0QGkLqtsZpbM9Zj/krolyux5I4apxa6apajnLktYDQR C1B90Xa0wveTg== Received: from p-i-exch-sc-m01.sberdevices.ru (p-i-exch-sc-m01.sberdevices.ru [172.16.192.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sberdevices.ru (Postfix) with ESMTPS; Wed, 1 Nov 2023 20:44:22 +0300 (MSK) Received: from localhost (100.64.160.123) by p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.37; Wed, 1 Nov 2023 20:44:22 +0300 Date: Wed, 1 Nov 2023 20:44:22 +0300 From: Dmitry Rokosov To: Conor Dooley CC: Rob Herring , , , , , , , , , , , Subject: Re: [PATCH v3 11/11] dt-bindings: leds: aw200xx: fix led pattern and add reg constraints Message-ID: <20231101174422.zs5er6tqethm46ur@CAB-WSD-L081021> References: <20231101142445.8753-1-ddrokosov@salutedevices.com> <20231101142445.8753-12-ddrokosov@salutedevices.com> <169885374980.409399.3653628333009308100.robh@kernel.org> <20231101-bolster-anaerobic-244cd1a8c205@spud> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20231101-bolster-anaerobic-244cd1a8c205@spud> User-Agent: NeoMutt/20220415 X-Originating-IP: [100.64.160.123] X-ClientProxiedBy: p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) To p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) X-KSMG-Rule-ID: 10 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 181058 [Nov 01 2023] X-KSMG-AntiSpam-Version: 6.0.0.2 X-KSMG-AntiSpam-Envelope-From: ddrokosov@salutedevices.com X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dkim=none X-KSMG-AntiSpam-Info: LuaCore: 543 543 1e3516af5cdd92079dfeb0e292c8747a62cb1ee4, {Tracking_uf_ne_domains}, {Track_E25351}, {Tracking_from_domain_doesnt_match_to}, 100.64.160.123:7.1.2;p-i-exch-sc-m01.sberdevices.ru:7.1.1,5.0.1;127.0.0.199:7.1.2;salutedevices.com:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;devicetree.org:7.1.1, FromAlignment: s, ApMailHostAddress: 100.64.160.123 X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean, bases: 2023/11/01 16:22:00 X-KSMG-LinksScanning: Clean, bases: 2023/11/01 16:22:00 X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2023/11/01 15:56:00 #22380151 X-KSMG-AntiVirus-Status: Clean, skipped 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,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 01 Nov 2023 10:45:29 -0700 (PDT) Hello Conor, On Wed, Nov 01, 2023 at 04:17:14PM +0000, Conor Dooley wrote: > On Wed, Nov 01, 2023 at 11:04:16AM -0500, Rob Herring wrote: > > > > On Wed, 01 Nov 2023 17:24:45 +0300, Dmitry Rokosov wrote: > > > AW200XX controllers have the capability to declare more than 0xf LEDs, > > > therefore, it is necessary to accept LED names using an appropriate > > > regex pattern. > > > > > > The register offsets can be adjusted within the specified range, with > > > the maximum value corresponding to the highest number of LEDs that can > > > be connected to the controller. > > > > > > Fixes: e338a05e76ca ("dt-bindings: leds: Add binding for AW200xx") > > > Signed-off-by: Dmitry Rokosov > > > --- > > > .../bindings/leds/awinic,aw200xx.yaml | 64 +++++++++++++++++-- > > > 1 file changed, 58 insertions(+), 6 deletions(-) > > > > > > > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' > > on your patch (DT_CHECKER_FLAGS is new in v5.13): > > > > yamllint warnings/errors: > > > > dtschema/dtc warnings/errors: > > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/leds/awinic,aw200xx.example.dtb: led-controller@3a: led@0: Unevaluated properties are not allowed ('reg' was unexpected) > > from schema $id: http://devicetree.org/schemas/leds/awinic,aw200xx.yaml# > > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/leds/awinic,aw200xx.example.dtb: led-controller@3a: led@1: Unevaluated properties are not allowed ('reg' was unexpected) > > from schema $id: http://devicetree.org/schemas/leds/awinic,aw200xx.yaml# > > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/leds/awinic,aw200xx.example.dtb: led-controller@3a: led@2: Unevaluated properties are not allowed ('reg' was unexpected) > > from schema $id: http://devicetree.org/schemas/leds/awinic,aw200xx.yaml# > > Looks like you need to drop the second part of this hunk from the patch. > @@ -45,17 +45,12 @@ properties: > maxItems: 1 > > patternProperties: > - "^led@[0-9a-f]$": > + "^led@[0-9a-f]+$": > type: object > $ref: common.yaml# > unevaluatedProperties: false > > properties: > - reg: > - description: > - LED number > - maxItems: 1 > - > led-max-microamp: > default: 9780 > description: | > > Each LED still only has one reg entry, right? You're right... the maxItems for 'reg' is still needed. I'll back it in the next version. But I don't understand, why my dt_binding_check run doesn't show me this problem... I don't specify DT_CHECKER_FLAGS, maybe this is a root cause. -- Thank you, Dmitry