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 D5684C43458 for ; Fri, 10 Jul 2026 15:02:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To: References:Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version: Subject:Date:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Dhu/wa9/53J5My72TqIAFYi9b6UcVUBqq24dYlO5bCA=; b=HCqRBLFL4V6Gg5/t8S6H4ojS4q oOmkUKZxHOaGEzANLPXRINpWG8Z5H+LzN11N5c2OLmJfDrtAUBZdXC9yKurkycwJbniWtMn9uYPF3 f7jlGmkFjUjllVoy3IOMgaHAsjncCie+Fju3VyPO1+qMZMpFnnSwdHhgPIBktW1eoSk2fm1Xxz65T g9DNbl3Zun4oIwY0JZ4U9hqcdiFkyzlPRa6lVYCWj3e0LlJoD5gRAuPENhBF7wxU293Rnsltvc5SL eGOz9Dxk1uXNMzcnpdFXyWGzwBUgM1sP08+all5mp7k63QEHPcwBRaQSggv43Eu5J8QGuCZ4jIXyE AywJPRGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wiCjp-0000000596o-25oV; Fri, 10 Jul 2026 15:02:01 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wiCjk-0000000593I-2Hay; Fri, 10 Jul 2026 15:01:56 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 7493F6132C; Fri, 10 Jul 2026 15:01:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 1D573C2BCB8; Fri, 10 Jul 2026 15:01:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1783695715; bh=fEgklhfhmHG7bwMmCsB0xVCcnH1pZ9hR34yuztE2xUo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=YOiMqXonQx7l0LYs+m1a4I5YTkgs7JGLb8Aiy/FEHWfHq+nDMK6WFmK0DN052AEfY KcKvS6WjzC8jGDmAeXpOd1+LZ1EGwZCknh7gblLvtsq/Tq/ZebH/WLixiu7HAQR1aH ZjDB10moWoXJp8eCS4HEE4NIvhxi5sMoZzdA2G9cKIBrm+PA+OOUbOVYMdnkMy+OVW krejke8TlNY/vrdJ2GuPN1uHk4Anssa6aHBevF/QvIXoelshsK4+sVshHYfwatjEzW fWiDJXr1SwrZzu+ZHT/vZHp0t+rL+U1woOXBCw8z7dtPrUt6esTQ16iGWEZjKYBB0f mkLrNYoPQL7Aw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2C1FC44506; Fri, 10 Jul 2026 15:01:54 +0000 (UTC) From: Nikolai Burov via B4 Relay Date: Fri, 10 Jul 2026 18:00:23 +0300 Subject: [PATCH 1/3] dt-bindings: pinctrl: mediatek: Add MT6858 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260710-mt6858-pinctrl-v1-1-f75ab558f0df@jolla.com> References: <20260710-mt6858-pinctrl-v1-0-f75ab558f0df@jolla.com> In-Reply-To: <20260710-mt6858-pinctrl-v1-0-f75ab558f0df@jolla.com> To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Sean Wang Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Nikolai Burov , Nikolai Burov X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1783695712; l=6222; i=nikolai.burov@jolla.com; s=20260707; h=from:subject:message-id; bh=U7dRrQcnHMvcUYGQp4E4aCTMv/3kcFO5A3mfR3b5VKA=; b=HnotYZqqNjHTI6n5qlMRKSVHw1W9kEEfyE9QXNGgwP1ATHxQ6tj83dkPGYQtzxEk8kGcJLy37 lvuLV55ZwQJBz82+nH896hN2cMrwqh2so7FTxOJpob0uCdU4c7g1YO/ X-Developer-Key: i=nikolai.burov@jolla.com; a=ed25519; pk=yzpa+PD+ovHUFMIOBA9o2QqGwI110jM6hdGHLc7jtoQ= X-Endpoint-Received: by B4 Relay for nikolai.burov@jolla.com/20260707 with auth_id=859 X-Original-From: Nikolai Burov 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: , Reply-To: nikolai.burov@jolla.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Nikolai Burov Add new DT bindings for the pin controller found in the MT6858 (MediaTek Dimensity 7100) SoC. Signed-off-by: Nikolai Burov --- .../bindings/pinctrl/mediatek,mt6858-pinctrl.yaml | 190 +++++++++++++++++++++ 1 file changed, 190 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt6858-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt6858-pinctrl.yaml new file mode 100644 index 000000000000..263830a6e9db --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt6858-pinctrl.yaml @@ -0,0 +1,190 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/mediatek,mt6858-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek MT6858 Pin Controller + +maintainers: + - Nikolai Burov + +description: + The MediaTek's MT6858 Pin controller is used to control SoC pins. + +properties: + compatible: + const: mediatek,mt6858-pinctrl + + reg: + items: + - description: gpio base + - description: lm group IO + - description: rb group IO + - description: bm2 group IO + - description: bm group IO + - description: bm1 group IO + - description: lt group IO + - description: lt1 group IO + - description: rt group IO + - description: rt1 group IO + - description: eint-s group IO + - description: eint-w group IO + - description: eint-e group IO + - description: eint-c group IO + + reg-names: + items: + - const: base + - const: lm + - const: rb + - const: bm2 + - const: bm + - const: bm1 + - const: lt + - const: lt1 + - const: rt + - const: rt1 + - const: eint-s + - const: eint-w + - const: eint-e + - const: eint-c + + interrupts: + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + + gpio-controller: true + + '#gpio-cells': + const: 2 + + gpio-ranges: + maxItems: 1 + + gpio-line-names: true + +# PIN CONFIGURATION NODES +patternProperties: + '-pins$': + type: object + additionalProperties: false + + patternProperties: + '^pins': + type: object + $ref: /schemas/pinctrl/pincfg-node.yaml + additionalProperties: false + description: + A pinctrl node should contain at least one subnodes representing the + pinctrl groups available on the machine. Each subnode will list the + pins it needs, and how they should be configured, with regard to muxer + configuration, pullups, drive strength, input enable/disable and input + schmitt. + + properties: + pinmux: + description: + Integer array, represents gpio pin number and mux setting. + Supported pin number and mux varies for different SoCs, and are + defined as macros in arch/arm64/boot/dts/mediatek/mt6858-pinfunc.h + for this SoC. + + drive-strength: + enum: [2, 4, 6, 8, 10, 12, 14, 16] + + bias-pull-down: + oneOf: + - type: boolean + description: normal pull down. + - enum: [100, 101, 102, 103] + description: PUPD/R1/R0 pull down type. See MTK_PUPD_SET_R1R0_ + defines in dt-bindings/pinctrl/mt65xx.h. + - enum: [200, 201, 202, 203] + description: RSEL pull down type. See MTK_PULL_SET_RSEL_ defines + in dt-bindings/pinctrl/mt65xx.h. + + bias-pull-up: + oneOf: + - type: boolean + description: normal pull up. + - enum: [100, 101, 102, 103] + description: PUPD/R1/R0 pull up type. See MTK_PUPD_SET_R1R0_ + defines in dt-bindings/pinctrl/mt65xx.h. + - enum: [200, 201, 202, 203] + description: RSEL pull up type. See MTK_PULL_SET_RSEL_ defines + in dt-bindings/pinctrl/mt65xx.h. + + bias-disable: true + + output-high: true + + output-low: true + + input-enable: true + + input-disable: true + + input-schmitt-enable: true + + input-schmitt-disable: true + + required: + - pinmux + +required: + - compatible + - reg + - interrupts + - interrupt-controller + - '#interrupt-cells' + - gpio-controller + - '#gpio-cells' + - gpio-ranges + +additionalProperties: false + +examples: + - | + #include + #include + #define PINMUX_GPIO149__FUNC_SCL5 (MTK_PIN_NO(149) | 1) + #define PINMUX_GPIO150__FUNC_SDA5 (MTK_PIN_NO(150) | 1) + + pio: pinctrl@10005000 { + compatible = "mediatek,mt6858-pinctrl"; + reg = <0x10005000 0x1000>, + <0x11b20000 0x1000>, + <0x11c10000 0x1000>, + <0x11d10000 0x1000>, + <0x11d30000 0x1000>, + <0x11d40000 0x1000>, + <0x11e20000 0x1000>, + <0x11e30000 0x1000>, + <0x11ed0000 0x1000>, + <0x11ee0000 0x1000>, + <0x11b00000 0x1000>, + <0x11e60000 0x1000>, + <0x11e80000 0x1000>, + <0x1c01e000 0x1000>; + reg-names = "base", "lm", "rb", "bm2", "bm", "bm1", "lt", "lt1", + "rt", "rt1", "eint-s", "eint-w", "eint-e", "eint-c"; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pio 0 0 197>; + interrupt-controller; + interrupts = ; + #interrupt-cells = <2>; + + i2c5-pins { + pins { + pinmux = , + ; + bias-disable; + }; + }; + }; -- 2.54.0