Rockchip Pinmux Controller
Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/rockchip,pinctrl.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"
The Rockchip Pinmux Controller enables the IC to share one PAD to several functional blocks. The sharing is done by multiplexing the PAD input/output signals. For each PAD there are several muxing options with option 0 being used as a GPIO.
Please refer to pinctrl-bindings.txt in this directory for details of the common pinctrl bindings used by client devices, including the meaning of the phrase "pin configuration node".
The Rockchip pin configuration node is a node of a group of pins which can be used for a specific device or function. This node represents both mux and config of the pins in that group. The 'pins' selects the function mode (also named pin mode) this pin can work on and the 'config' configures various pad settings such as pull-up, etc.
The pins are grouped into up to 9 individual pin banks which need to be defined as gpio sub-nodes of the pinmux controller.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "rockchip,px30-pinctrl", "rockchip,rk2928-pinctrl", "rockchip,rk3036-pinctrl", "rockchip,rk3066a-pinctrl", "rockchip,rk3066b-pinctrl", "rockchip,rk3128-pinctrl", "rockchip,rk3188-pinctrl", "rockchip,rk3228-pinctrl", "rockchip,rk3288-pinctrl", "rockchip,rk3308-pinctrl", "rockchip,rk3328-pinctrl", "rockchip,rk3368-pinctrl", "rockchip,rk3399-pinctrl", "rockchip,rk3506-pinctrl", "rockchip,rk3528-pinctrl", "rockchip,rk3562-pinctrl", "rockchip,rk3568-pinctrl", "rockchip,rk3576-pinctrl", "rockchip,rk3588-pinctrl", "rockchip,rv1108-pinctrl", "rockchip,rv1126-pinctrl"
rockchip,grf — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
The phandle of the syscon node for the GRF registers.
rockchip,pmu — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
The phandle of the syscon node for the PMU registers, as some SoCs carry parts of the iomux controller registers there. Required for at least rk3188 and rk3288. On the rk3368 this should point to the PMUGRF syscon.
#address-cells — not listed as required here #
#size-cells — not listed as required here #
ranges — not listed as required here #
true — No constraints added by this property rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):pinctrl.yaml#
Required in this object (required): "compatible", "rockchip,grf"
Properties matching a name pattern (patternProperties) #
gpio@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): /schemas/gpio/rockchip,gpio-bank.yaml#
Deprecated (deprecated): true
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
pcfg-[a-z0-9-]+$ — name matches this regular expression #
Value type (type): "object"
Properties and child nodes (properties) #
bias-disable — not listed as required here
true — No constraints added by this property rule.
bias-pull-down — not listed as required here
true — No constraints added by this property rule.
bias-pull-pin-default — not listed as required here
true — No constraints added by this property rule.
bias-pull-up — not listed as required here
true — No constraints added by this property rule.
drive-strength — not listed as required here
Minimum value (minimum): 0
Maximum value (maximum): 20
input-enable — not listed as required here
true — No constraints added by this property rule.
input-schmitt-enable — not listed as required here
true — No constraints added by this property rule.
output-high — not listed as required here
true — No constraints added by this property rule.
output-low — not listed as required here
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
Value type (
type):"object"Properties not matched by properties or patternProperties in this schema (
additionalProperties) #Value type (
type):"object"Properties not matched by properties or patternProperties in this schema (
additionalProperties) #
falseNot allowed by this rule.
Properties and child nodes (
properties) #
rockchip,pins— not listed as required hereShared schema rule (
$ref):/schemas/types.yaml#/definitions/uint32-matrixMinimum number of items (
minItems):1Array item rules (
items)Array item rules (
items)Item 1
Minimum value (
minimum):0Maximum value (
maximum):8Pin bank.
Item 2
Minimum value (
minimum):0Maximum value (
maximum):31Pin bank index.
Item 3
Minimum value (
minimum):0Maximum value (
maximum):14Mux 0 means GPIO and mux 1 to N means the specific device function.
Item 4
The phandle of a node contains the generic pinconfig options to use as described in pinctrl-bindings.txt.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/pinctrl/rockchip.h>
pinctrl: pinctrl {
compatible = "rockchip,rk3066a-pinctrl";
rockchip,grf = <&grf>;
#address-cells = <1>;
#size-cells = <1>;
ranges;
gpio0: gpio@20034000 {
compatible = "rockchip,gpio-bank";
reg = <0x20034000 0x100>;
interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk_gates8 9>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
};
pcfg_pull_default: pcfg-pull-default {
bias-pull-pin-default;
};
uart2 {
uart2_xfer: uart2-xfer {
rockchip,pins = <1 RK_PB0 1 &pcfg_pull_default>,
<1 RK_PB1 1 &pcfg_pull_default>;
};
};
};
uart2: serial@20064000 {
compatible = "snps,dw-apb-uart";
reg = <0x20064000 0x400>;
interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mux_uart2>;
pinctrl-0 = <&uart2_xfer>;
pinctrl-names = "default";
reg-io-width = <1>;
reg-shift = <2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0