From patchwork Tue Nov 15 02:54:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Bernhard_Rosenkr=C3=A4nzer?= X-Patchwork-Id: 20140 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2484609wru; Mon, 14 Nov 2022 18:56:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf46Lc9v2NhN1aHTObLD9zPOkwyqlCGwOw6G83RWoedeB6eYNkxk5h3CLSLqsdLqwzbR8YfV X-Received: by 2002:a17:906:5e4b:b0:782:9b27:94aa with SMTP id b11-20020a1709065e4b00b007829b2794aamr11738587eju.542.1668481019080; Mon, 14 Nov 2022 18:56:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668481019; cv=none; d=google.com; s=arc-20160816; b=r1I0ngrVzn9Q/+1a9yAPjwgQDzyZv2j0pd0WOZ6WHVMU9xT67lZ0KfzghCZwkpKlbi wQoxEV55BVtajgMbzk12/lmVzJQCzAnGpjWmfHoOS8E/EcQtyzCFNwPedpCygjNB8+s2 wRgD1NVTQrYx/XKiQ3D13CwteS/+FAZ221hwQxVjLx2M3rdZHzGakwR8OX/vdaqwn4OS ce4JKyaYgWcvRAD+pm9aUR12GXIWaUKIXRdB+z4xt1Z8DF3cm/idttPF6dm/ngrytQ+L /X6iCed2OOWbL7MQ30TXL5GnKyR7I0Km0LNDoVQzT+yhBbaE09Zs2VJl70aE8L4JjeEp 1g5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DpYq70iArNS2pxebGHEfValI4udhqvfJfL86oolgszo=; b=BcsSWKCgdCZw3HqQTJ3+6atNBhi0FJW7/mrZ4UdyiRHR6wPrSe6v/DVeV9Hr694PNt VbXc6ZnsyEgXWI5o8RdWCMWZCTUunKtOP6rKETKVpL06jdEbswJudSVurWzHoO4v3wPf k5Ef3ywZHf9Nxy+zB1p9fedg/lIavTibt7bE955E+0qALlUETUVLUj9/9EKuDAFcFwAG oZ9eH4XMdHno7sp5eggUimiXWgjIfxUAXXG7/a36EA4Blp1fpjKs9CDc2s9XOhwbT9WK JvH1lYptAR+ZZNKyr9hkTfbTEL3syKFKtPiYx//Cz9mVUKPjdjSs8LFLEnuHoAZO2MoF lo+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=jZpzIPCL; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i15-20020a05640242cf00b0045c3592301dsi14153434edc.191.2022.11.14.18.56.35; Mon, 14 Nov 2022 18:56:59 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=jZpzIPCL; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236567AbiKOCzO (ORCPT + 99 others); Mon, 14 Nov 2022 21:55:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232519AbiKOCyr (ORCPT ); Mon, 14 Nov 2022 21:54:47 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 658A61705E for ; Mon, 14 Nov 2022 18:54:38 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id k2so32948158ejr.2 for ; Mon, 14 Nov 2022 18:54:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DpYq70iArNS2pxebGHEfValI4udhqvfJfL86oolgszo=; b=jZpzIPCLwPszGkCTsJ4tZgikx63gFYR2GVtD0suFaV5Pfwh0wMVVIVaJc0b8n0ItKL YzPg3hQ/gSTUF8ZPCX4DJr9BEqwPUbV/hrlnbiFhg+HE5LRZYPKuCzGBqwgR4pgZB+49 dlcW4GU8+PJm+PhuTgVWwFu2hYvHDg//vUAjB/pSxW/g2O9rL1Fy+vw9G3UzNIQJHi/P RsDu0Z/SEI2Cz1qiTwUIkF4Lq+kEGUgSlq5UFSAJ0ET0tHg68E8IlWRK7gYBCHJZgc4x m+C7pVLeakd7IWfv+SIwWh/gG0q9hxzxrLljILfL38AyK94D1/zD2k1jUWVqOVXriKLa kk7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DpYq70iArNS2pxebGHEfValI4udhqvfJfL86oolgszo=; b=oo2F1h3js+E9TYae9mGK1CgF9fwVFnd9JvgysYLtfx/W/vHA93XNmGFM43PqjMPhcI K7xCeue1TRn6t6aCx8Spz09juCJNxTy02Yvnc38h3hNS6e0yCPsH5ZIxw1zxpOmbe0k0 wOFQ6gwbmSM3X1iWl380Mtp0AkoNhk5wFP9ctBxwjOYEjgNZo9/9zjyN3cObqJqiyE2l TL3YtylrvR/S6AMLGrhNB3hKoxdawcsSSdhPB/qewEeEMGrhrSkwyV49pdUoIJUFvc85 WZe9JUnFFmE4l9FvmHl+v0PfmDVB6ljhDVMdn4/tizUafivai6uF3f+AS8gDAXhoeY0S VW8g== X-Gm-Message-State: ANoB5plcfJP+SMcUaZj+q2fECWWKLl+8CYjIhu21gAwVRaaUoCDFpD5M ugWfd7O+NTNd5KbXnI17l53YRg== X-Received: by 2002:a17:906:b855:b0:7ac:f8e3:d547 with SMTP id ga21-20020a170906b85500b007acf8e3d547mr12211614ejb.53.1668480877956; Mon, 14 Nov 2022 18:54:37 -0800 (PST) Received: from c64.fritz.box ([2a01:2a8:8108:8301:7643:bec8:f62b:b074]) by smtp.gmail.com with ESMTPSA id l9-20020a1709063d2900b0073d9a0d0cbcsm4861177ejf.72.2022.11.14.18.54.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 18:54:37 -0800 (PST) From: =?utf-8?q?Bernhard_Rosenkr=C3=A4nzer?= To: 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 Subject: [PATCH v2 11/15] dt-bindings: pinctrl: add bindings for Mediatek MT8365 SoC Date: Tue, 15 Nov 2022 03:54:17 +0100 Message-Id: <20221115025421.59847-12-bero@baylibre.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221115025421.59847-1-bero@baylibre.com> References: <20221107211001.257393-1-bero@baylibre.com> <20221115025421.59847-1-bero@baylibre.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749529153114318608?= X-GMAIL-MSGID: =?utf-8?q?1749529153114318608?= Add devicetree bindings for Mediatek MT8365 pinctrl driver. Signed-off-by: Bernhard Rosenkränzer --- .../pinctrl/mediatek,mt8365-pinctrl.yaml | 68 +++++++++++++++++++ 1 file changed, 68 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..bddff8c2fd382 --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml @@ -0,0 +1,68 @@ +# 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: + - Bernhard Rosenkränzer + +description: |+ + The MediaTek's MT8365 Pin controller is used to control SoC pins. + +properties: + compatible: + const: mediatek,mt8365-pinctrl + + reg: + minItems: 1 + maxItems: 1 + + 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": + const: 2 + +allOf: + - $ref: "pinctrl.yaml#" + +required: + - compatible + - reg + - gpio-controller + - "#gpio-cells" + +additionalProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + pio: pinctrl@1000b000 { + compatible = "mediatek,mt8365-pinctrl"; + reg = <0 0x1000b000 0 0x1000>; + mediatek,pctl-regmap = <&syscfg_pctl>; + pins-are-numbered; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = ; + }; + };