Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp64953rdb; Wed, 1 Nov 2023 17:17:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFUI3uXC2m9grSeKZHkYWWgE1HpZoPJi1mZ6+dq4RwUIGimuitgfJKemvk/B+aKmyIwMHaU X-Received: by 2002:a05:6358:91e:b0:168:e493:2938 with SMTP id r30-20020a056358091e00b00168e4932938mr21926538rwi.19.1698884266893; Wed, 01 Nov 2023 17:17:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698884266; cv=none; d=google.com; s=arc-20160816; b=KuzQlSLb+Q9kR/0ExRiVEwFrYeBG1mfZEgjBKMLEaGwe7kYs178ZMZALeLUGrG5b3H N+8HEf77nEELMoElPesHCfvBizOhxvac10aj/uL2EmdQCFD8WAtameLiwWVDb89/UOve hDY5uCM692/06mbZ6aq7rp0o58XPxc1vYj9ox9nM5AGGNlHI9jhwMOlSQmHvHsb/Qpci JHCeIjw4nwqdwinQqQ4TxWdssJNXVpWYAdcdN8/gjTQek2J7S/mRQ3FWT2xLiSn9XJCO +tJF3yFKbuhdJ51iGM1ikqzRpsHVmEOmExE/6ZcQUWqIW2ZR3o+i6wc5fAexlt9DMl9o rE+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MIISeZAaDeqAT+E7ygDkFaFvhjsuDnKvMLZ43/GAjwg=; fh=ldWURpzNUIZC5yAe34WmXcTk11XKjkQ95GnHmnI0M/g=; b=KraFUc6c+m5V34Py8rGMqRheKY5vsS1bP1zXLSZ+IIXkuqYkwDadGyQEAnHkxvQMY/ ZAfxdIYv4GAra+kL1WqR2+wkjKUu+9r7MGaA5N63sg60T38IVJOUPso3nXJBxcHbOxb4 zkLKGmCjAjv8ADj34vEA8HeEqPXf8Qe0r16XzvnQip0k9iNl5T+9MjMp5TkhxJ69+lNu MgQRg72u5VryrK31OPlQLUvw+4WgrIMGUz/zPr2jMi/1FNCsFqZPjmos7VJdZ6g5XcDM k7wSSvhkOQHWY9Aexl1ZmaQ5U0PQ0OWEE2nS1lvxvzC8XIjGLG1tjDSn8/Pkt5jrJLCt riJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Fjz3k9HJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id r204-20020a632bd5000000b00553800fe4dcsi894058pgr.583.2023.11.01.17.17.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 17:17:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Fjz3k9HJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 0C5B580C6D08; Wed, 1 Nov 2023 17:17:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232827AbjKBARZ (ORCPT + 99 others); Wed, 1 Nov 2023 20:17:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230285AbjKBARY (ORCPT ); Wed, 1 Nov 2023 20:17:24 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47F38109; Wed, 1 Nov 2023 17:17:16 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C268C433C7; Thu, 2 Nov 2023 00:17:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698884235; bh=TOJiriu7zo/tOZp6wt6uoQqF/K8RoG8GBogF+O+OlHg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Fjz3k9HJotc18Y2AY4yosYabz+yl+n9B5E2DMxuLA98Igdoc8atWUGT0w+Potdj6A vwaXd+5HCxLsFFXkHLjfI2gvOJCxDD4B39nauPuyv3sEEoJDz1HkBFHu37FoJErQ/L te5TuHlyVDtNK6u6J2UM/8xVrR9NnT70JwKk2XKUcws4GzIRlHV9Qqacaodm+VE7YA lWBAms4Kg4g33Uqcu4iLejvPxtJmK4y84z9URimUl4UZ4ArqtGty5L4+6b3BZJa5sc rdN7ZED6BS2xdswu9HFD3YCyfp5gV1Dxg8wlObHLVTXRMjzkgN+Q+XTR8+CpzamRHS Uw/8gSJq2YEJg== Date: Thu, 2 Nov 2023 00:17:11 +0000 From: Conor Dooley To: Dmitry Rokosov Cc: Rob Herring , linux-leds@vger.kernel.org, lee@kernel.org, linux-kernel@vger.kernel.org, kernel@sberdevices.ru, andy.shevchenko@gmail.com, conor+dt@kernel.org, pavel@ucw.cz, krzysztof.kozlowski+dt@linaro.org, rockosov@gmail.com, robh+dt@kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v3 11/11] dt-bindings: leds: aw200xx: fix led pattern and add reg constraints Message-ID: <20231102-concave-untapped-804a5956faab@spud> References: <20231101142445.8753-1-ddrokosov@salutedevices.com> <20231101142445.8753-12-ddrokosov@salutedevices.com> <169885374980.409399.3653628333009308100.robh@kernel.org> <20231101-bolster-anaerobic-244cd1a8c205@spud> <20231101174422.zs5er6tqethm46ur@CAB-WSD-L081021> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="1KMrlXhM842v/S70" Content-Disposition: inline In-Reply-To: <20231101174422.zs5er6tqethm46ur@CAB-WSD-L081021> X-Spam-Status: No, score=-1.6 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 groat.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 (groat.vger.email [0.0.0.0]); Wed, 01 Nov 2023 17:17:42 -0700 (PDT) --1KMrlXhM842v/S70 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 01, 2023 at 08:44:22PM +0300, Dmitry Rokosov wrote: > Hello Conor, >=20 > 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: > > >=20 > > > On Wed, 01 Nov 2023 17:24:45 +0300, Dmitry Rokosov wrote: > > > > AW200XX controllers have the capability to declare more than 0xf LE= Ds, > > > > therefore, it is necessary to accept LED names using an appropriate > > > > regex pattern. > > > >=20 > > > > The register offsets can be adjusted within the specified range, wi= th > > > > the maximum value corresponding to the highest number of LEDs that = can > > > > be connected to the controller. > > > >=20 > > > > 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(-) > > > >=20 > > >=20 > > > My bot found errors running 'make DT_CHECKER_FLAGS=3D-m dt_binding_ch= eck' > > > on your patch (DT_CHECKER_FLAGS is new in v5.13): > > >=20 > > > yamllint warnings/errors: > > >=20 > > > dtschema/dtc warnings/errors: > > > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindin= gs/leds/awinic,aw200xx.example.dtb: led-controller@3a: led@0: Unevaluated p= roperties are not allowed ('reg' was unexpected) > > > from schema $id: http://devicetree.org/schemas/leds/awinic,aw200xx.y= aml# > > > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindin= gs/leds/awinic,aw200xx.example.dtb: led-controller@3a: led@1: Unevaluated p= roperties are not allowed ('reg' was unexpected) > > > from schema $id: http://devicetree.org/schemas/leds/awinic,aw200xx.y= aml# > > > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindin= gs/leds/awinic,aw200xx.example.dtb: led-controller@3a: led@2: Unevaluated p= roperties are not allowed ('reg' was unexpected) > > > from schema $id: http://devicetree.org/schemas/leds/awinic,aw200xx.y= aml# > >=20 > > Looks like you need to drop the second part of this hunk from the patch. > > @@ -45,17 +45,12 @@ properties: > > maxItems: 1 > > =20 > > patternProperties: > > - "^led@[0-9a-f]$": > > + "^led@[0-9a-f]+$": > > type: object > > $ref: common.yaml# > > unevaluatedProperties: false > > =20 > > properties: > > - reg: > > - description: > > - LED number > > - maxItems: 1 > > - > > led-max-microamp: > > default: 9780 > > description: | > >=20 > > Each LED still only has one reg entry, right? >=20 > 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. I dunno! I do `make dt_binding_check W=3D1 DT_SCHEMA_FILES=3D"$filename"` to test stuff. Also, you can keep the tag. --1KMrlXhM842v/S70 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZULqhgAKCRB4tDGHoIJi 0q4BAQC5YTzHsZRRP1WxLFh3vu211rMVno+IX+YO5RazUkgsMAEArUlNxt0UhTjw Nq+4zijW6+jINWj/Jd91+bh5kDWepgk= =fKHp -----END PGP SIGNATURE----- --1KMrlXhM842v/S70--