From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43E89C77B7A for ; Wed, 17 May 2023 09:14:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229778AbjEQJOZ (ORCPT ); Wed, 17 May 2023 05:14:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229833AbjEQJOY (ORCPT ); Wed, 17 May 2023 05:14:24 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A1A1040EA; Wed, 17 May 2023 02:14:20 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 883A58117; Wed, 17 May 2023 09:14:19 +0000 (UTC) Date: Wed, 17 May 2023 12:14:18 +0300 From: Tony Lindgren To: Krzysztof Kozlowski Cc: Conor Dooley , Linus Walleij , Krzysztof Kozlowski , Nishanth Menon , linux-arm-kernel@lists.infradead.org, Vignesh Raghavendra , Rob Herring , devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH v4 2/2] dt-bindings: pinctrl: Update pinctrl-single to use yaml Message-ID: <20230517091418.GT14287@atomide.com> References: <20230510095330.30742-1-tony@atomide.com> <20230510095330.30742-2-tony@atomide.com> <20230510124836.thqtol6qac762ggx@krzk-bin> <20230517080013.GS14287@atomide.com> <6e8ab385-8d4f-b1fc-e964-64149c085dd9@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6e8ab385-8d4f-b1fc-e964-64149c085dd9@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org * Krzysztof Kozlowski [230517 08:23]: > On 17/05/2023 10:00, Tony Lindgren wrote: > > Hi, > > > > * Krzysztof Kozlowski [230510 12:48]: > >> On Wed, 10 May 2023 12:53:29 +0300, Tony Lindgren wrote: > >>> Update binding for yaml and remove the old related txt bindings. Note that > >>> we are also adding the undocumented pinctrl-single,slew-rate property. And > >>> we only use the first example from the old binding. > > ... > >> 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/pinctrl/pinctrl-single.example.dtb: pinmux@4a100040: #pinctrl-cells: [[2]] is not of type 'object' > >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.yaml > >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.example.dtb: pinmux@4a100040: #pinctrl-cells: [[2]] is not of type 'object' > >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.yaml > >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.example.dtb: pinmux@4a100040: pinctrl-single,register-width: [[16]] is not of type 'object' > >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.yaml > >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.example.dtb: pinmux@4a100040: pinctrl-single,register-width: [[16]] is not of type 'object' > >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.yaml > >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.example.dtb: pinmux@4a100040: pinctrl-single,function-mask: [[65535]] is not of type 'object' > >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.yaml > >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.example.dtb: pinmux@4a100040: pinctrl-single,function-mask: [[65535]] is not of type 'object' > >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.yaml > >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.example.dtb: pinmux@4a100040: pinctrl-single,gpio-range: [[1, 0, 3, 0]] is not of type 'object' > >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.yaml > >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.example.dtb: pinmux@4a100040: pinctrl-single,gpio-range: [[1, 0, 3, 0]] is not of type 'object' > >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.yaml > > > > Looks like these are happening because of the patternProperties match for > > pin, will need to add more patterns like like -pin|_pin instead. > > It would be great if you can change _pin to -pin in all DTS. Underscores > are unwelcome. Yes np, I have a hackish script to change things to use -pins node naming for pin groups. Will send out patches this week. Regards, Tony From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0D95EC7EE23 for ; Wed, 17 May 2023 09:14:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RtEeXEcOgrfjVIdy2KavtA+V9lRvx85yufd2PufGNdQ=; b=4Om3vYuX1K6nIY rAEyfnABFky3Ndugjv4WVX4vEugyfYYY2ZCNSKEjc4JLXYug1sSSAoM+XeMXL0erZfyKO7tvk8ZZA fmp1s1nOX4Nqy48w0zggHuB0ELiIU6yDs89iow30UYIVbpjNxXK/2gEyS5G5ceAOKLxvm+OLk3Snx Z6YOccSFdQ2ZPT5QFQvUanI13Kf3RkCn7VmqFPfC49Mfeh7eVYiep+T7/6gBv/PLhG1hYvNDJYwda a7nVmyLc/pOKHRSUM0fIktf5UwJwN4nZIXJj6AVNKSdmqy1221PrXQGrjjSUQu03FeU49eTzc7wZb T1i4KOO4do2LJ5Nos+1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzDEn-00912X-02; Wed, 17 May 2023 09:14:25 +0000 Received: from muru.com ([72.249.23.125]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzDEk-00911x-1D for linux-arm-kernel@lists.infradead.org; Wed, 17 May 2023 09:14:23 +0000 Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 883A58117; Wed, 17 May 2023 09:14:19 +0000 (UTC) Date: Wed, 17 May 2023 12:14:18 +0300 From: Tony Lindgren To: Krzysztof Kozlowski Cc: Conor Dooley , Linus Walleij , Krzysztof Kozlowski , Nishanth Menon , linux-arm-kernel@lists.infradead.org, Vignesh Raghavendra , Rob Herring , devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH v4 2/2] dt-bindings: pinctrl: Update pinctrl-single to use yaml Message-ID: <20230517091418.GT14287@atomide.com> References: <20230510095330.30742-1-tony@atomide.com> <20230510095330.30742-2-tony@atomide.com> <20230510124836.thqtol6qac762ggx@krzk-bin> <20230517080013.GS14287@atomide.com> <6e8ab385-8d4f-b1fc-e964-64149c085dd9@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <6e8ab385-8d4f-b1fc-e964-64149c085dd9@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230517_021422_458289_E91796D2 X-CRM114-Status: GOOD ( 16.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org * Krzysztof Kozlowski [230517 08:23]: > On 17/05/2023 10:00, Tony Lindgren wrote: > > Hi, > > > > * Krzysztof Kozlowski [230510 12:48]: > >> On Wed, 10 May 2023 12:53:29 +0300, Tony Lindgren wrote: > >>> Update binding for yaml and remove the old related txt bindings. Note that > >>> we are also adding the undocumented pinctrl-single,slew-rate property. And > >>> we only use the first example from the old binding. > > ... > >> 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/pinctrl/pinctrl-single.example.dtb: pinmux@4a100040: #pinctrl-cells: [[2]] is not of type 'object' > >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.yaml > >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.example.dtb: pinmux@4a100040: #pinctrl-cells: [[2]] is not of type 'object' > >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.yaml > >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.example.dtb: pinmux@4a100040: pinctrl-single,register-width: [[16]] is not of type 'object' > >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.yaml > >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.example.dtb: pinmux@4a100040: pinctrl-single,register-width: [[16]] is not of type 'object' > >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.yaml > >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.example.dtb: pinmux@4a100040: pinctrl-single,function-mask: [[65535]] is not of type 'object' > >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.yaml > >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.example.dtb: pinmux@4a100040: pinctrl-single,function-mask: [[65535]] is not of type 'object' > >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.yaml > >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.example.dtb: pinmux@4a100040: pinctrl-single,gpio-range: [[1, 0, 3, 0]] is not of type 'object' > >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.yaml > >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.example.dtb: pinmux@4a100040: pinctrl-single,gpio-range: [[1, 0, 3, 0]] is not of type 'object' > >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pinctrl/pinctrl-single.yaml > > > > Looks like these are happening because of the patternProperties match for > > pin, will need to add more patterns like like -pin|_pin instead. > > It would be great if you can change _pin to -pin in all DTS. Underscores > are unwelcome. Yes np, I have a hackish script to change things to use -pins node naming for pin groups. Will send out patches this week. Regards, Tony _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel