1 ST Ericsson Nomadik pinmux controller
4 - compatible: "stericsson,nmk-pinctrl", "stericsson,nmk-pinctrl-db8540",
5 "stericsson,nmk-pinctrl-stn8815"
6 - reg: Should contain the register physical address and length of the PRCMU.
8 Please refer to pinctrl-bindings.txt in this directory for details of the
9 common pinctrl bindings used by client devices, including the meaning of the
10 phrase "pin configuration node".
12 ST Ericsson's pin configuration nodes act as a container for an arbitrary number of
13 subnodes. Each of these subnodes represents some desired configuration for a
14 pin, a group, or a list of pins or groups. This configuration can include the
15 mux function to select on those pin(s)/group(s), and various pin configuration
16 parameters, such as input, output, pull up, pull down...
18 The name of each subnode is not important; all subnodes should be enumerated
19 and processed purely based on their content.
21 Required subnode-properties:
22 - ste,pins : An array of strings. Each string contains the name of a pin or
25 Optional subnode-properties:
26 - ste,function: A string containing the name of the function to mux to the
29 - ste,config: Handle of pin configuration node (e.g. ste,config = <&slpm_in_wkup_pdis>)
33 1: input with pull up,
34 2: input with pull down,
39 2: output (value is not specified).
42 0: sleep mode disable,
45 - ste,sleep-input: <0/1/2/3>
46 0: sleep input with no pull,
47 1: sleep input with pull up,
48 2: sleep input with pull down.
49 3: sleep input and keep last input configuration (no pull, pull up or pull down).
51 - ste,sleep-output: <0/1/2>
54 2: sleep output (value is not specified).
56 - ste,sleep-gpio: <0/1>
57 0: disable sleep gpio mode,
58 1: enable sleep gpio mode.
60 - ste,sleep-wakeup: <0/1>
61 0: wake-up detection enabled,
62 1: wake-up detection disabled.
64 - ste,sleep-pull-disable: <0/1>
65 0: GPIO pull-up or pull-down resistor is enabled, when pin is an input,
66 1: GPIO pull-up and pull-down resistor are disabled.
68 Example board file extract:
71 compatible = "stericsson,nmk-pinctrl";
72 reg = <0x80157000 0x2000>;
74 pinctrl-names = "default";
76 slpm_in_wkup_pdis: slpm_in_wkup_pdis {
78 ste,sleep-input = <3>;
79 ste,sleep-wakeup = <1>;
80 ste,sleep-pull-disable = <0>;
83 slpm_out_hi_wkup_pdis: slpm_out_hi_wkup_pdis {
85 ste,sleep-output = <1>;
86 ste,sleep-wakeup = <1>;
87 ste,sleep-pull-disable = <0>;
90 slpm_out_wkup_pdis: slpm_out_wkup_pdis {
92 ste,sleep-output = <2>;
93 ste,sleep-wakeup = <1>;
94 ste,sleep-pull-disable = <0>;
98 uart0_default_mux: uart0_mux {
104 uart0_default_mode: uart0_default {
106 ste,pins = "GPIO0", "GPIO2";
111 ste,pins = "GPIO1", "GPIO3";
115 uart0_sleep_mode: uart0_sleep {
117 ste,pins = "GPIO0", "GPIO2";
118 ste,config = <&slpm_in_wkup_pdis>;
122 ste,config = <&slpm_out_hi_wkup_pdis>;
126 ste,config = <&slpm_out_wkup_pdis>;
133 compatible = "arm,pl011", "arm,primecell";
134 reg = <0x80120000 0x1000>;
135 interrupts = <0 11 0x4>;
137 pinctrl-names = "default","sleep";
138 pinctrl-0 = <&uart0_default_mux>, <&uart0_default_mode>;
139 pinctrl-1 = <&uart0_sleep_mode>;