Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2088534rda; Tue, 24 Oct 2023 11:56:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG29d21Rwap4gynw7XoQnAVgE5/j8mMNswwBT4AfCoZ84WEMzKEmBwT/DdWjNr6PU28s0JB X-Received: by 2002:a17:902:c949:b0:1c5:7d49:570e with SMTP id i9-20020a170902c94900b001c57d49570emr7112941pla.29.1698173812617; Tue, 24 Oct 2023 11:56:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698173812; cv=none; d=google.com; s=arc-20160816; b=ZSA/Mn46k3ulPrsHScREojmOb30jxnlPwDHz1Rnf7dHuTBBkVofZhuhxMkevC/9M5E rP064nUjVljOvet9VevO+YIr5yf9G+ifdlczelBY+tVd2q0UXnkgoBrd8yyJ147fviHC 8ubxWHEcvlF2CIfmhKgEHeGa1FcTmQJe4SSB7mOzay8GC1e73i+hDTaX1kItU4+JIDIb 08H7sswNPqZ72SWmU39PjJp11ZUJDSICq/45aFPFQknVraoqcG9S3oIBy9I6I7uftKq0 0Oft/EAQzAxfEEembd4bGyeQ/TEO2tNXZsgl70T9I2HEXgfDFV+zvpEIpIDm+BSbpDEm a9yQ== 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=naFGpJDVgQfr3ddLjEs1a+Y7mXYdp8rLT1hvnu+LyxE=; fh=qUbJuLN0kIdia5QGvC7qV355HaQ/m6eU67xGhi2P/UQ=; b=tox0Z/WoQBIHgaqepO6tn4NRFVxYtS6u+OIWKKHC89QRiVdKtfd/7IlJNu4VZOjh+2 0edzDrE2/MlA+L1j4sYwyNnfCQBX02h4yV3MRUx2WhPe+7M9jwYzXvvW1Rq5xWO3G49C 5t2l0IKeADva85gZz1tYFsMMFed/hUr2Wt2HM1pqaDntnuydD/D5ltIiH1DTL8ZGULC1 2knCnsXJBB6FvVEeDGSyNXvvL2T4MnPDhixp5gzVSzdoZY86HbYKS3AKG/5RPMsDM8bh 9X3FKL20TbCeHf/KLW6xKX4oK1+vuK0j3MBFhC1u8SU8vb9HmZ7W9eOfKVjwIuon/OyX gOlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=RqHVRAC3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id h12-20020a170902eecc00b001ca81fa0661si8329216plb.508.2023.10.24.11.56.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 11:56:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=RqHVRAC3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 04069809BE42; Tue, 24 Oct 2023 11:56:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343817AbjJXS4n (ORCPT + 99 others); Tue, 24 Oct 2023 14:56:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233104AbjJXS4l (ORCPT ); Tue, 24 Oct 2023 14:56:41 -0400 Received: from mx1.sberdevices.ru (mx2.sberdevices.ru [45.89.224.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 133D0A6; Tue, 24 Oct 2023 11:56:39 -0700 (PDT) Received: from p-infra-ksmg-sc-msk02 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id B59D0120046; Tue, 24 Oct 2023 21:56:37 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru B59D0120046 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1698173797; bh=naFGpJDVgQfr3ddLjEs1a+Y7mXYdp8rLT1hvnu+LyxE=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type:From; b=RqHVRAC3JhqwsufFpiXSmn//sM7+Y6nbudl68bFHjokJzgOks/bCpLk3kgYQzKoqk c4yIKd60G769WLQ7v7Lb3ROV+GiIaIFPRQfLBDeQZbp+jKr+zSlwuMM3elj/QeKuwm SoscwNAg9Hgr7dnJsMhSW2engr0JwB3zvog62C0ecS2sE5M20zoujtbMIdNZLWYzJj zMkFPItamNwzgydqNiTicH1k0RdJJaQAOFlJEmoaCHkPrY9WCRU3qMuE2Ovp3OBXy6 yCdcFqdAn0rb6Oxwxi7/CIDkGqzpXadrRVZg5WOfmINf0z8atKsHJmff6kSd8IFGRJ KgWeZpGdcG+Dg== 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; Tue, 24 Oct 2023 21:56:37 +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; Tue, 24 Oct 2023 21:56:37 +0300 Date: Tue, 24 Oct 2023 21:56:37 +0300 From: Dmitry Rokosov To: Conor Dooley CC: , , , , , , , , , , Subject: Re: [PATCH v2 11/11] dt-bindings: leds: aw200xx: fix led pattern and add reg constraints Message-ID: <20231024185637.5v6yycfpjnu7xka6@CAB-WSD-L081021> References: <20231018182943.18700-1-ddrokosov@salutedevices.com> <20231018182943.18700-12-ddrokosov@salutedevices.com> <20231019-clarify-unstopped-71fe018b6a8b@spud> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20231019-clarify-unstopped-71fe018b6a8b@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: 180848 [Oct 24 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, {Track_E25351}, {Tracking_from_domain_doesnt_match_to}, 127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;salutedevices.com:7.1.1;p-i-exch-sc-m01.sberdevices.ru:5.0.1,7.1.1;100.64.160.123:7.1.2, FromAlignment: s, ApMailHostAddress: 100.64.160.123 X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean X-KSMG-LinksScanning: Clean X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2023/10/24 17:39:00 #22277133 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 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]); Tue, 24 Oct 2023 11:56:50 -0700 (PDT) On Thu, Oct 19, 2023 at 03:08:38PM +0100, Conor Dooley wrote: > On Wed, Oct 18, 2023 at 09:29:43PM +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. > > Do all of these controllers have identical max numbers of LEDs? Nope... I believe you are hinting at some conditional logic based on the value of 'compatible'. I will figure it out and send the appropriate implementation in the next version. > > > > Fixes: e338a05e76ca ("dt-bindings: leds: Add binding for AW200xx") > > Signed-off-by: Dmitry Rokosov > > --- > > .../devicetree/bindings/leds/awinic,aw200xx.yaml | 10 ++++++---- > > 1 file changed, 6 insertions(+), 4 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml b/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml > > index efb18ddce383..677c73aa6232 100644 > > --- a/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml > > +++ b/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml > > @@ -42,16 +42,18 @@ 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 > > + items: > > + description: > > + LED number > > + minimum: 0 > > + maximum: 108 > > > > led-max-microamp: > > default: 9780 > > -- > > 2.36.0 > > -- Thank you, Dmitry