From: Ye Zhang <ye.zhang@rock-chips.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Linus Walleij <linus.walleij@linaro.org>,
Heiko Stuebner <heiko@sntech.de>,
Bartosz Golaszewski <brgl@bgdev.pl>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
tao.huang@rock-chips.com
Subject: Re: [PATCH v4 5/7] dt-bindings: pinctrl: rockchip: Add rk3506 rmio support
Date: Wed, 31 Dec 2025 18:12:44 +0800 [thread overview]
Message-ID: <7370b9a4-692d-43f8-9a48-82da0b4de939@rock-chips.com> (raw)
In-Reply-To: <20251228-olive-termite-of-painting-1bee5b@quoll>
在 2025/12/28 18:37, Krzysztof Kozlowski 写道:
> On Sat, Dec 27, 2025 at 07:49:55PM +0800, Ye Zhang wrote:
>> The RK3506 SoC introduces a secondary block-level pinmux controller called
>> RMIO (Rockchip Matrix I/O). When the primary IOMUX is selected to a
>> specific function, the pin signal is routed to the RMIO block, where a
>> secondary selection determines the final function.
>>
>> This patch adds the necessary properties to support RMIO:
>> - rockchip,rmio: phandle to the RMIO syscon node.
>> - rockchip,rmio-pins: a matrix to configure the RMIO block.
>>
>> Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
>> ---
>> .../bindings/pinctrl/rockchip,pinctrl.yaml | 24 +++++++++++++++++++
>> 1 file changed, 24 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml
>> index 97960245676d..887bec22b172 100644
>> --- a/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml
>> +++ b/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml
>> @@ -66,6 +66,13 @@ properties:
>> Required for at least rk3188 and rk3288. On the rk3368 this should
>> point to the PMUGRF syscon.
>>
>> + rockchip,rmio:
>> + $ref: /schemas/types.yaml#/definitions/phandle
>> + description:
>> + The phandle of the syscon node for the RMIO registers, used by
>> + some SoCs (e.g. rk3506) to configure the secondary block-level
>> + pinmux functions.
>> +
> You need to disallow it for other variants in if:then: block.
Will be completed in v5.
>> "#address-cells":
>> enum: [1, 2]
>>
>> @@ -144,6 +151,23 @@ additionalProperties:
>> The phandle of a node contains the generic pinconfig options
>> to use as described in pinctrl-bindings.txt.
>>
>> + rockchip,rmio-pins:
>> + $ref: /schemas/types.yaml#/definitions/uint32-matrix
>> + minItems: 1
>> + items:
>> + items:
>> + - minimum: 0
> That's redundant. 0 is already minimum.
I will remove it in v5
>> + description: RMIO ID (Controller index)
> Why do you need this? Is this pin controller having multiple RMIO IDs?
> Nothing like that was expressed in previous DTS. No other IDs are
> present in this DTS, either...
The RMIO hardware IP itself is designed to support multiple instances.
Although the RK3506 only integrates one instance, other chips (like the
RK2116) already utilize multiple RMIO blocks.
We want to define the binding based on the capabilities of the IP block
rather than the specific configuration of the RK3506. This ensures the
binding format (3 cells) remains stable when support for multi-RMIO SoCs
is added to Linux in the future, avoiding the need to handle different
cell formats in the driver.
We prefer to keep the ID column (fixed to 0 for RK3506) for this forward
compatibility.
Is this acceptable?
>> + - minimum: 0
>> + description: Pin index within the RMIO controller
>> + - minimum: 0
>> + description: Function Mux ID
>> + description:
>> + Configuration for the Rockchip Matrix I/O (RMIO) block. The format
>> + is <rmio_id pin_id function_id>. This acts as a secondary muxing
>> + layer when the primary 'rockchip,pins' mux is set to the RMIO
>> + function.
>> +
>> examples:
>> - |
>> #include <dt-bindings/interrupt-controller/arm-gic.h>
>> --
>> 2.34.1
>>
> _______________________________________________
> Linux-rockchip mailing list
> Linux-rockchip@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-rockchip
>
next prev parent reply other threads:[~2025-12-31 10:13 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-27 11:49 [PATCH v4 0/7] pinctrl: rockchip: Add RK3506 and RV1126B pinctrl and RMIO support Ye Zhang
2025-12-27 11:49 ` [PATCH v4 1/7] dt-bindings: pinctrl: Add rv1126b pinctrl support Ye Zhang
2025-12-28 10:30 ` Krzysztof Kozlowski
2025-12-27 11:49 ` [PATCH v4 2/7] pinctrl: rockchip: " Ye Zhang
2025-12-27 11:49 ` [PATCH v4 3/7] arm64: dts: rockchip: rv1126b: Add pinconf and pinctrl dtsi for rv1126b Ye Zhang
2026-01-04 11:54 ` Linus Walleij
2025-12-27 11:49 ` [PATCH v4 4/7] gpio: rockchip: support new version GPIO Ye Zhang
2025-12-27 11:49 ` [PATCH v4 5/7] dt-bindings: pinctrl: rockchip: Add rk3506 rmio support Ye Zhang
2025-12-28 10:37 ` Krzysztof Kozlowski
2025-12-31 10:12 ` Ye Zhang [this message]
2026-01-04 11:48 ` Linus Walleij
2025-12-27 11:49 ` [PATCH v4 6/7] pinctrl: rockchip: Add RK3506 RMIO support Ye Zhang
[not found] ` <20251227114957.3287944-8-ye.zhang@rock-chips.com>
2025-12-28 10:37 ` [PATCH v4 7/7] ARM: dts: rockchip: rk3506: Add pinctrl and rmio dtsi for rk3506 Krzysztof Kozlowski
[not found] ` <AGkAtwAtJy-UDFfi3M2RSaqR.3.1766993111418.Hmail.ye.zhang@rock-chips.com>
2025-12-29 8:47 ` Krzysztof Kozlowski
2025-12-31 8:12 ` Ye Zhang
2026-01-04 12:07 ` Linus Walleij
[not found] ` <543e7200-2126-490a-a7a8-4898362a910d@rock-chips.com>
2026-02-08 10:31 ` Krzysztof Kozlowski
2026-01-04 12:00 ` Linus Walleij
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7370b9a4-692d-43f8-9a48-82da0b4de939@rock-chips.com \
--to=ye.zhang@rock-chips.com \
--cc=brgl@bgdev.pl \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=robh@kernel.org \
--cc=tao.huang@rock-chips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox