Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp1027838rdb; Wed, 1 Nov 2023 09:18:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEPUqCFhcv6fIVZuVMTe5nUHIUkMVBdB5pdVvbjr45hP/0spy6FsK4n6T/08622MqThoLw+ X-Received: by 2002:a05:6871:b07:b0:1c8:39a6:779e with SMTP id fq7-20020a0568710b0700b001c839a6779emr20381632oab.19.1698855497204; Wed, 01 Nov 2023 09:18:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698855497; cv=none; d=google.com; s=arc-20160816; b=UFq3xeVf84qYc8Zp44liEdxAoHpJO4ch5HWvB4MI7MKPbRKSaASqo8Gpfzm0CXAYSJ AT98keZHT+UOQiG+HmrZPK1IH250OTNEqZdCMpVAW5DcRA62J0O5wOOIM9be6O3NXoFC XbyVZF0/pfANq6Rt1vplAB3GLL1uG1RZCSIz4ZsqKFHXSZNJc5mtc7vJzPIQ6xcbC8xA 5QRU1Cd2LzDGJrHe+kXAyIC5OTNCAg2bikKwLQdCPR4VVUYpY+OBA8HJQI3AE1FGtDik O1yrszo3vttvpXqb+sMX6svq7Fcmwg5PTJZu2fihfK/DBwMx54WMmCqmiv6kJXeU9dx2 Tr5w== 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=2E68qE1bbxccP+dKA9GdcYSKcHi4k8zvBa/CJEs9yoQ=; fh=liM5A/mcLC4uAR6wT+69lsAL/95W92GmfbwA4+okUfQ=; b=EXaXt8IJwxZvGcn2qpJWfpRa41U5x/Kx2sRMsqlnuw8cbACZP0HhYER2Or94l0RJiF zjyRM8DPKLVTtsRwBH+x42seryNEVcnhUGWin64MWEE7XjhB2R5hwYHatErovqQ6PiTX oNgGnLDvpEQpHzLZz/sqnvALL8x+2ztzJwIHXqdEx43A0EGWOnQCRGTv6nKMrDAOXjwg PYoOso221Ua4A74c5No3Oq/wjgnIHOVYms5NQufkrn88Y1IaM64Y8VASiPSFq1jNRO7h jkzOzjYX6c+cCA0ujq38/n+vNDPLU03CbwBQE7yP1KGiyeXTbtSXK7y3CvP7g5q3ZAyM D7UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uj34ciNw; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id a27-20020a63705b000000b0057c7d7036b8si197382pgn.389.2023.11.01.09.18.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 09:18:17 -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=@kernel.org header.s=k20201202 header.b=uj34ciNw; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id B78AA80C4785; Wed, 1 Nov 2023 09:18:07 -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 S232538AbjKAQR0 (ORCPT + 99 others); Wed, 1 Nov 2023 12:17:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjKAQRY (ORCPT ); Wed, 1 Nov 2023 12:17:24 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52AAFFD; Wed, 1 Nov 2023 09:17:19 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 643B2C433C9; Wed, 1 Nov 2023 16:17:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698855438; bh=RzPC3u+sBenTEVtjN/LgXO2kCsI4d3YAfRrFeJzfKLQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uj34ciNwfSdgbc621GZN/IT1umuDWUtTGONDSvZS5D8cygmgdD8f7TDWG8KT0E2T6 vA5WmvwPex6a+Q7qE5oh3ET1GdYKxKVc2zVN6sVcNfg+GXql0UK9FRJRvlo0SwcuKw ROHkd6hD4xe972XVN1M4k/sLpFEVMVg43XnfXpUtkVjkKPLGCRrCfwiiULtKolwcTd Ze8qNwqdSFSlHHNETRevPct6BsLjy8Moj9NmWaQgVkQGM4uAXvsDo0dRnyk3dFVfTC FgBQSxyBeNiULNQcyQhIhUHvy8OPZ0+e++Baxp0K6s4eH8Ljhz5+B7eDlkDxLMFWaV JP0WCUvUuGt2w== Date: Wed, 1 Nov 2023 16:17:14 +0000 From: Conor Dooley To: Rob Herring Cc: Dmitry Rokosov , 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: <20231101-bolster-anaerobic-244cd1a8c205@spud> References: <20231101142445.8753-1-ddrokosov@salutedevices.com> <20231101142445.8753-12-ddrokosov@salutedevices.com> <169885374980.409399.3653628333009308100.robh@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Wj/1IL1Pi5arDIEg" Content-Disposition: inline In-Reply-To: <169885374980.409399.3653628333009308100.robh@kernel.org> 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 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 09:18:07 -0700 (PDT) --Wj/1IL1Pi5arDIEg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 LEDs, > > therefore, it is necessary to accept LED names using an appropriate > > regex pattern. > >=20 > > 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. > >=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_check' > 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/bindings/l= eds/awinic,aw200xx.example.dtb: led-controller@3a: led@0: Unevaluated prope= rties 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/l= eds/awinic,aw200xx.example.dtb: led-controller@3a: led@1: Unevaluated prope= rties 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/l= eds/awinic,aw200xx.example.dtb: led-controller@3a: led@2: Unevaluated prope= rties 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 =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: | Each LED still only has one reg entry, right? Cheers, Conor. --Wj/1IL1Pi5arDIEg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZUJ6CQAKCRB4tDGHoIJi 0gxIAP99M/1guv/mcRC8vBLVHWGdy/7u4GS3C2KuIrGknM6UpQD+IAK7kPUnl+MM UaKEaY+OtvOULeDUyiYn28TZADH3VQ0= =ZZ3i -----END PGP SIGNATURE----- --Wj/1IL1Pi5arDIEg--