1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/pinctrl/rockchip,pinctrl.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Rockchip Pinmux Controller
10 - Heiko Stuebner <heiko@sntech.de>
13 The Rockchip Pinmux Controller enables the IC to share one PAD
14 to several functional blocks. The sharing is done by multiplexing
15 the PAD input/output signals. For each PAD there are several muxing
16 options with option 0 being used as a GPIO.
18 Please refer to pinctrl-bindings.txt in this directory for details of the
19 common pinctrl bindings used by client devices, including the meaning of the
20 phrase "pin configuration node".
22 The Rockchip pin configuration node is a node of a group of pins which can be
23 used for a specific device or function. This node represents both mux and
24 config of the pins in that group. The 'pins' selects the function mode
25 (also named pin mode) this pin can work on and the 'config' configures
26 various pad settings such as pull-up, etc.
28 The pins are grouped into up to 9 individual pin banks which need to be
29 defined as gpio sub-nodes of the pinmux controller.
34 - rockchip,px30-pinctrl
35 - rockchip,rk2928-pinctrl
36 - rockchip,rk3036-pinctrl
37 - rockchip,rk3066a-pinctrl
38 - rockchip,rk3066b-pinctrl
39 - rockchip,rk3128-pinctrl
40 - rockchip,rk3188-pinctrl
41 - rockchip,rk3228-pinctrl
42 - rockchip,rk3288-pinctrl
43 - rockchip,rk3308-pinctrl
44 - rockchip,rk3328-pinctrl
45 - rockchip,rk3368-pinctrl
46 - rockchip,rk3399-pinctrl
47 - rockchip,rk3568-pinctrl
48 - rockchip,rk3588-pinctrl
49 - rockchip,rv1108-pinctrl
50 - rockchip,rv1126-pinctrl
53 $ref: "/schemas/types.yaml#/definitions/phandle"
55 The phandle of the syscon node for the GRF registers.
58 $ref: "/schemas/types.yaml#/definitions/phandle"
60 The phandle of the syscon node for the PMU registers,
61 as some SoCs carry parts of the iomux controller registers there.
62 Required for at least rk3188 and rk3288. On the rk3368 this should
63 point to the PMUGRF syscon.
74 - $ref: "pinctrl.yaml#"
87 $ref: "/schemas/gpio/rockchip,gpio-bank.yaml#"
89 unevaluatedProperties: false
98 bias-pull-pin-default: true
108 input-schmitt-enable: true
114 additionalProperties: false
116 additionalProperties:
118 additionalProperties:
122 $ref: "/schemas/types.yaml#/definitions/uint32-matrix"
137 Mux 0 means GPIO and mux 1 to N means
138 the specific device function.
140 The phandle of a node contains the generic pinconfig options
141 to use as described in pinctrl-bindings.txt.
145 #include <dt-bindings/interrupt-controller/arm-gic.h>
146 #include <dt-bindings/pinctrl/rockchip.h>
149 compatible = "rockchip,rk3066a-pinctrl";
150 rockchip,grf = <&grf>;
152 #address-cells = <1>;
156 gpio0: gpio@20034000 {
157 compatible = "rockchip,gpio-bank";
158 reg = <0x20034000 0x100>;
159 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
160 clocks = <&clk_gates8 9>;
165 interrupt-controller;
166 #interrupt-cells = <2>;
169 pcfg_pull_default: pcfg-pull-default {
170 bias-pull-pin-default;
174 uart2_xfer: uart2-xfer {
175 rockchip,pins = <1 RK_PB0 1 &pcfg_pull_default>,
176 <1 RK_PB1 1 &pcfg_pull_default>;
181 uart2: serial@20064000 {
182 compatible = "snps,dw-apb-uart";
183 reg = <0x20064000 0x400>;
184 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
185 clocks = <&mux_uart2>;
186 pinctrl-0 = <&uart2_xfer>;
187 pinctrl-names = "default";