diff options
author | Neil Armstrong <narmstrong@baylibre.com> | 2016-10-31 12:44:40 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@baylibre.com> | 2016-11-15 15:05:24 -0500 |
commit | fb0fe92294a944e7f7dad5ab7751ceaf76e7ba54 (patch) | |
tree | 8bc8f6dd76670bccdd0293300e598f8a7d5c5285 | |
parent | 998a9c8aa8fdff31e0de33c1c8fe090f9552f4b9 (diff) |
ARM64: dts: meson-gxl: Add pinctrl nodes
Add pinctrl nodes and pin definitions for Amlogic Meson GXL.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
[khilman: use GXBB include until GXL pinctrl support merged]
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
-rw-r--r-- | arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 168 |
1 files changed, 168 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi index 13b10eeb80b2..8ddb6868ea1d 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | |||
@@ -42,7 +42,175 @@ | |||
42 | */ | 42 | */ |
43 | 43 | ||
44 | #include "meson-gx.dtsi" | 44 | #include "meson-gx.dtsi" |
45 | #include <dt-bindings/gpio/meson-gxbb-gpio.h> | ||
45 | 46 | ||
46 | / { | 47 | / { |
47 | compatible = "amlogic,meson-gxl"; | 48 | compatible = "amlogic,meson-gxl"; |
48 | }; | 49 | }; |
50 | |||
51 | &aobus { | ||
52 | pinctrl_aobus: pinctrl@14 { | ||
53 | compatible = "amlogic,meson-gxl-aobus-pinctrl"; | ||
54 | #address-cells = <2>; | ||
55 | #size-cells = <2>; | ||
56 | ranges; | ||
57 | |||
58 | gpio_ao: bank@14 { | ||
59 | reg = <0x0 0x00014 0x0 0x8>, | ||
60 | <0x0 0x0002c 0x0 0x4>, | ||
61 | <0x0 0x00024 0x0 0x8>; | ||
62 | reg-names = "mux", "pull", "gpio"; | ||
63 | gpio-controller; | ||
64 | #gpio-cells = <2>; | ||
65 | }; | ||
66 | |||
67 | uart_ao_a_pins: uart_ao_a { | ||
68 | mux { | ||
69 | groups = "uart_tx_ao_a", "uart_rx_ao_a"; | ||
70 | function = "uart_ao"; | ||
71 | }; | ||
72 | }; | ||
73 | |||
74 | remote_input_ao_pins: remote_input_ao { | ||
75 | mux { | ||
76 | groups = "remote_input_ao"; | ||
77 | function = "remote_input_ao"; | ||
78 | }; | ||
79 | }; | ||
80 | }; | ||
81 | }; | ||
82 | |||
83 | &periphs { | ||
84 | pinctrl_periphs: pinctrl@4b0 { | ||
85 | compatible = "amlogic,meson-gxl-periphs-pinctrl"; | ||
86 | #address-cells = <2>; | ||
87 | #size-cells = <2>; | ||
88 | ranges; | ||
89 | |||
90 | gpio: bank@4b0 { | ||
91 | reg = <0x0 0x004b0 0x0 0x28>, | ||
92 | <0x0 0x004e8 0x0 0x14>, | ||
93 | <0x0 0x00120 0x0 0x14>, | ||
94 | <0x0 0x00430 0x0 0x40>; | ||
95 | reg-names = "mux", "pull", "pull-enable", "gpio"; | ||
96 | gpio-controller; | ||
97 | #gpio-cells = <2>; | ||
98 | }; | ||
99 | |||
100 | emmc_pins: emmc { | ||
101 | mux { | ||
102 | groups = "emmc_nand_d07", | ||
103 | "emmc_cmd", | ||
104 | "emmc_clk", | ||
105 | "emmc_ds"; | ||
106 | function = "emmc"; | ||
107 | }; | ||
108 | }; | ||
109 | |||
110 | sdcard_pins: sdcard { | ||
111 | mux { | ||
112 | groups = "sdcard_d0", | ||
113 | "sdcard_d1", | ||
114 | "sdcard_d2", | ||
115 | "sdcard_d3", | ||
116 | "sdcard_cmd", | ||
117 | "sdcard_clk"; | ||
118 | function = "sdcard"; | ||
119 | }; | ||
120 | }; | ||
121 | |||
122 | sdio_pins: sdio { | ||
123 | mux { | ||
124 | groups = "sdio_d0", | ||
125 | "sdio_d1", | ||
126 | "sdio_d2", | ||
127 | "sdio_d3", | ||
128 | "sdio_cmd", | ||
129 | "sdio_clk"; | ||
130 | function = "sdio"; | ||
131 | }; | ||
132 | }; | ||
133 | |||
134 | sdio_irq_pins: sdio_irq { | ||
135 | mux { | ||
136 | groups = "sdio_irq"; | ||
137 | function = "sdio"; | ||
138 | }; | ||
139 | }; | ||
140 | |||
141 | uart_a_pins: uart_a { | ||
142 | mux { | ||
143 | groups = "uart_tx_a", | ||
144 | "uart_rx_a"; | ||
145 | function = "uart_a"; | ||
146 | }; | ||
147 | }; | ||
148 | |||
149 | uart_b_pins: uart_b { | ||
150 | mux { | ||
151 | groups = "uart_tx_b", | ||
152 | "uart_rx_b"; | ||
153 | function = "uart_b"; | ||
154 | }; | ||
155 | }; | ||
156 | |||
157 | uart_c_pins: uart_c { | ||
158 | mux { | ||
159 | groups = "uart_tx_c", | ||
160 | "uart_rx_c"; | ||
161 | function = "uart_c"; | ||
162 | }; | ||
163 | }; | ||
164 | |||
165 | i2c_a_pins: i2c_a { | ||
166 | mux { | ||
167 | groups = "i2c_sck_a", | ||
168 | "i2c_sda_a"; | ||
169 | function = "i2c_a"; | ||
170 | }; | ||
171 | }; | ||
172 | |||
173 | i2c_b_pins: i2c_b { | ||
174 | mux { | ||
175 | groups = "i2c_sck_b", | ||
176 | "i2c_sda_b"; | ||
177 | function = "i2c_b"; | ||
178 | }; | ||
179 | }; | ||
180 | |||
181 | i2c_c_pins: i2c_c { | ||
182 | mux { | ||
183 | groups = "i2c_sck_c", | ||
184 | "i2c_sda_c"; | ||
185 | function = "i2c_c"; | ||
186 | }; | ||
187 | }; | ||
188 | |||
189 | eth_pins: eth_c { | ||
190 | mux { | ||
191 | groups = "eth_mdio", | ||
192 | "eth_mdc", | ||
193 | "eth_clk_rx_clk", | ||
194 | "eth_rx_dv", | ||
195 | "eth_rxd0", | ||
196 | "eth_rxd1", | ||
197 | "eth_rxd2", | ||
198 | "eth_rxd3", | ||
199 | "eth_rgmii_tx_clk", | ||
200 | "eth_tx_en", | ||
201 | "eth_txd0", | ||
202 | "eth_txd1", | ||
203 | "eth_txd2", | ||
204 | "eth_txd3"; | ||
205 | function = "eth"; | ||
206 | }; | ||
207 | }; | ||
208 | |||
209 | pwm_e_pins: pwm_e { | ||
210 | mux { | ||
211 | groups = "pwm_e"; | ||
212 | function = "pwm_e"; | ||
213 | }; | ||
214 | }; | ||
215 | }; | ||
216 | }; | ||