Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2389451rwb; Fri, 9 Dec 2022 01:15:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf4etrQZ0Dxj9pg0kTjhkGlz1G0Wl6AJO1qhdK4fY/7SNrxIpdmDpafD+KY6CWNJ3q+Wu4gc X-Received: by 2002:a17:902:cf0f:b0:189:d193:91ff with SMTP id i15-20020a170902cf0f00b00189d19391ffmr6033214plg.61.1670577303541; Fri, 09 Dec 2022 01:15:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670577303; cv=none; d=google.com; s=arc-20160816; b=QRQ8tilt4ntsf7zD0XKFCqakpUE/GeWsbmhAW6MJJBZyyL3Z/8DBHGa7GFQC+4Pbqm lC8BqVO/ST/OSGfBcGyx4gGF9WwUffpejRtuzJjoRn03nYXbXoNXDQqVRVH+wDEhKngV hQtVrxca0kkSd2A3uqS+paohk+i1Odusre8uqKv01Y4l0IC8vUXi6WTxWODxg4vHKWnR rcqVQbCPSKftvrz9Qolcr5eNRb0mlHB+VpSPonHj+8Ccig28pZeRgHfTe5HSii6CGxlP vXsNG4xvElJ+2ZzgybczboZHJXlwmHBsehmV1ReViR9VBV/Z9vBp6k93tEizP1mztQVc bSfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=9b+nzUQkfFI17ZarCDIwZk6LrBaQpiedauRmlOVndtI=; b=mLX/Hybh94JOFUHZJjxXERQc/pUBHgmWDI23hMwUhSU3zXIIo3fTYHvb2uY+0I16UX n1FHZhDfiFZCpEd+a1PbbVZUyLhLvkWjIEZReCCuQI7aiQIVB3lYCzzMQH+BejTXamGS wMIgO1584tjK03u4Ls1rAudduqrOwkrdQNtMq4R4gczl8iiVXVYXxO9BL83EoVRFe2St YAvy9mXFWDcanyhCTdq8VMlOcDPyxBID+MWLj/8MAJc7EO7sDjRObhJ6pnNWJxd+9r7b 8z/xMrH8OiyE4NLIEyOW2Ef5QLw0VWqsDpQ81qNJzbBp42kqicDmjQZXnTNwci0HRlYK raAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MP3Cwhmh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h19-20020a170902eed300b0017840d9d42esi1028947plb.582.2022.12.09.01.14.54; Fri, 09 Dec 2022 01:15:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MP3Cwhmh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229756AbiLIISN (ORCPT + 73 others); Fri, 9 Dec 2022 03:18:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230105AbiLIISJ (ORCPT ); Fri, 9 Dec 2022 03:18:09 -0500 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7D8F1DDCB for ; Fri, 9 Dec 2022 00:18:07 -0800 (PST) Received: by mail-lj1-x229.google.com with SMTP id n1so4167727ljg.3 for ; Fri, 09 Dec 2022 00:18:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=9b+nzUQkfFI17ZarCDIwZk6LrBaQpiedauRmlOVndtI=; b=MP3CwhmhfT+bowc34rbCU80wMR4XjEpjYAwxPJsUEqPeN+i/yGN89NgsklJdd/Pk6o 71VoyIrQon/Vrk/acTGP33lzfmd20YH0dcHV70Hg4bTUPWmLeFuskj+7Du9sjGoEhyTg amkLN3CAWB6nFrtKKqIAXrAmYiEJr60PphupoLN3Yrf1S9DLgZU1ruaqQAsfEWj3INUs qIm70cFv3tX52c2VZmkVDXRmD9r3GeB6n8X36jG56eAv6GRYCs6Ap1A/6Ih2B8eW3xGi Ajt6YZoddzJGkliRozpmbes8OjMyw2/fLhbv5DBfuix1hfmsL0w8fe/TyEfHejWDBlX7 jmOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9b+nzUQkfFI17ZarCDIwZk6LrBaQpiedauRmlOVndtI=; b=5RelGZO+XQO0H2Ib2cLuYnZWQdZMC6G6CPVRXqa3a+td6KE2DILJ6Pzr2YZUZv+JiS zluh55uh3DQQmoTXs0g2xfgddUXeQi0NXodCHuN5TUWSJLAfOxNDCgTJQGJAkHBzFQs2 9X5RhfyE5suE0b49/MZvf44HkQWjS8nGuDJvOHm32iLGXOF12LCbP5dWAYckV+ZXDF3a UhBw2eBtSRcP76DyWR/K9T9MRVGh552zYBvoZejOx3KxwDDdSR/NUfHkUDV5ezjy2go9 fQBN9rd/5GQ9kNlbi8GSWFixXyxP9uOIG8SDeHZT2kg6+tp0iuJnqdiN4HzIMnIS7/mv wRhA== X-Gm-Message-State: ANoB5plVofgt8FKbcytjX14LQGkGRRDZttx/HQnTT3vgjdBvtYEdwTBP 0IiOonrceK9lXJIWqEJYy5Pa/A== X-Received: by 2002:a05:651c:1697:b0:279:d092:caa2 with SMTP id bd23-20020a05651c169700b00279d092caa2mr1154060ljb.32.1670573886031; Fri, 09 Dec 2022 00:18:06 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id bg32-20020a05651c0ba000b00279cf45a02asm124286ljb.132.2022.12.09.00.18.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Dec 2022 00:18:05 -0800 (PST) Message-ID: <22dacd0a-d482-d4e6-fc69-187f9ae79956@linaro.org> Date: Fri, 9 Dec 2022 09:18:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH v4 4/7] dt-bindings: pinctrl: add bindings for Mediatek MT8365 SoC Content-Language: en-US To: =?UTF-8?Q?Bernhard_Rosenkr=c3=a4nzer?= , linux-mediatek@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, khilman@baylibre.com References: <20221208153041.3965378-1-bero@baylibre.com> <20221208153041.3965378-5-bero@baylibre.com> From: Krzysztof Kozlowski In-Reply-To: <20221208153041.3965378-5-bero@baylibre.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/12/2022 16:30, Bernhard Rosenkränzer wrote: > Add devicetree bindings for Mediatek MT8365 pinctrl driver. > > Signed-off-by: Bernhard Rosenkränzer > --- > .../pinctrl/mediatek,mt8365-pinctrl.yaml | 197 ++++++++++++++++++ > 1 file changed, 197 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml > > diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml > new file mode 100644 > index 0000000000000..9560e1d2898d0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml > @@ -0,0 +1,197 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pinctrl/mediatek,mt8365-pinctrl.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Mediatek MT8365 Pin Controller > + > +maintainers: > + - Zhiyong Tao > + - Bernhard Rosenkränzer > + > +description: |+ > + The MediaTek's MT8365 Pin controller is used to control SoC pins. > + > +properties: > + compatible: > + const: mediatek,mt8365-pinctrl > + > + reg: > + maxItems: 1 > + > + mediatek,pctl-regmap: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + items: > + maxItems: 1 > + minItems: 1 > + maxItems: 2 > + description: | > + Should be phandles of the syscfg node. > + > + gpio-controller: true > + > + "#gpio-cells": > + const: 2 > + description: | > + Number of cells in GPIO specifier. Since the generic GPIO > + binding is used, the amount of cells must be specified as 2. See the below > + mentioned gpio binding representation for description of particular cells. > + > + interrupt-controller: true > + > + interrupts: > + maxItems: 1 > + > + "#interrupt-cells": Use consistent quotes - ' or " > + const: 2 > + > +patternProperties: > + '-pins$': > + type: object (...) > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + soc { > + #address-cells = <2>; > + #size-cells = <2>; > + > + pio: pinctrl@1000b000 { > + compatible = "mediatek,mt8365-pinctrl"; > + reg = <0 0x1000b000 0 0x1000>; > + mediatek,pctl-regmap = <&syscfg_pctl>; > + gpio-controller; > + #gpio-cells = <2>; > + interrupt-controller; > + #interrupt-cells = <2>; > + interrupts = ; > + > + pio-pins { > + pins { > + pinmux = , ; > + mediatek,pull-up-adv = <3>; > + mediatek,drive-strength-adv = <00>; > + bias-pull-up; > + }; > + }; > + }; > + }; > + > +required: > + - compatible > + - reg > + - gpio-controller > + - "#gpio-cells" > + > +allOf: > + - $ref: pinctrl.yaml# The order of your top-level entries is mixed up. required and allOf are never after the example. Please open example-schema and align the order. Best regards, Krzysztof