Neil Armstrong | 8e8aec2 | 2018-06-05 10:10:44 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2016 Endless Computers, Inc. |
| 4 | * Author: Carlo Caione <carlo@endlessm.com> |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include "meson-gx.dtsi" |
| 8 | #include <dt-bindings/clock/gxbb-clkc.h> |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 9 | #include <dt-bindings/clock/gxbb-aoclkc.h> |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 10 | #include <dt-bindings/gpio/meson-gxl-gpio.h> |
| 11 | #include <dt-bindings/reset/amlogic,meson-gxbb-reset.h> |
| 12 | |
| 13 | / { |
| 14 | compatible = "amlogic,meson-gxl"; |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 15 | |
Neil Armstrong | 8e8aec2 | 2018-06-05 10:10:44 +0200 | [diff] [blame] | 16 | soc { |
Neil Armstrong | 14708b1 | 2020-09-10 10:48:12 +0200 | [diff] [blame] | 17 | usb: usb@d0078080 { |
| 18 | compatible = "amlogic,meson-gxl-usb-ctrl"; |
| 19 | reg = <0x0 0xd0078080 0x0 0x20>; |
| 20 | interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; |
Neil Armstrong | 8e8aec2 | 2018-06-05 10:10:44 +0200 | [diff] [blame] | 21 | #address-cells = <2>; |
| 22 | #size-cells = <2>; |
| 23 | ranges; |
| 24 | |
Neil Armstrong | 14708b1 | 2020-09-10 10:48:12 +0200 | [diff] [blame] | 25 | clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1_DDR_BRIDGE>; |
| 26 | clock-names = "usb_ctrl", "ddr"; |
Neil Armstrong | 8e8aec2 | 2018-06-05 10:10:44 +0200 | [diff] [blame] | 27 | resets = <&reset RESET_USB_OTG>; |
Neil Armstrong | 14708b1 | 2020-09-10 10:48:12 +0200 | [diff] [blame] | 28 | |
| 29 | dr_mode = "otg"; |
Neil Armstrong | 8e8aec2 | 2018-06-05 10:10:44 +0200 | [diff] [blame] | 30 | |
Neil Armstrong | 14708b1 | 2020-09-10 10:48:12 +0200 | [diff] [blame] | 31 | phys = <&usb2_phy0>, <&usb2_phy1>; |
| 32 | phy-names = "usb2-phy0", "usb2-phy1"; |
| 33 | |
| 34 | dwc2: usb@c9100000 { |
| 35 | compatible = "amlogic,meson-g12a-usb", "snps,dwc2"; |
| 36 | reg = <0x0 0xc9100000 0x0 0x40000>; |
| 37 | interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; |
| 38 | clocks = <&clkc CLKID_USB1>; |
| 39 | clock-names = "otg"; |
| 40 | phys = <&usb2_phy1>; |
| 41 | dr_mode = "peripheral"; |
| 42 | g-rx-fifo-size = <192>; |
| 43 | g-np-tx-fifo-size = <128>; |
| 44 | g-tx-fifo-size = <128 128 16 16 16>; |
| 45 | }; |
| 46 | |
| 47 | dwc3: usb@c9000000 { |
Neil Armstrong | 8e8aec2 | 2018-06-05 10:10:44 +0200 | [diff] [blame] | 48 | compatible = "snps,dwc3"; |
| 49 | reg = <0x0 0xc9000000 0x0 0x100000>; |
| 50 | interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>; |
| 51 | dr_mode = "host"; |
| 52 | maximum-speed = "high-speed"; |
| 53 | snps,dis_u2_susphy_quirk; |
Neil Armstrong | 8e8aec2 | 2018-06-05 10:10:44 +0200 | [diff] [blame] | 54 | }; |
| 55 | }; |
Jerome Brunet | d34d5ef | 2020-03-05 12:12:38 +0100 | [diff] [blame] | 56 | |
Neil Armstrong | 14708b1 | 2020-09-10 10:48:12 +0200 | [diff] [blame] | 57 | acodec: audio-controller@c8832000 { |
| 58 | compatible = "amlogic,t9015"; |
| 59 | reg = <0x0 0xc8832000 0x0 0x14>; |
| 60 | #sound-dai-cells = <0>; |
| 61 | sound-name-prefix = "ACODEC"; |
| 62 | clocks = <&clkc CLKID_ACODEC>; |
| 63 | clock-names = "pclk"; |
| 64 | resets = <&reset RESET_ACODEC>; |
| 65 | status = "disabled"; |
| 66 | }; |
| 67 | |
Jerome Brunet | d34d5ef | 2020-03-05 12:12:38 +0100 | [diff] [blame] | 68 | crypto: crypto@c883e000 { |
| 69 | compatible = "amlogic,gxl-crypto"; |
| 70 | reg = <0x0 0xc883e000 0x0 0x36>; |
| 71 | interrupts = <GIC_SPI 188 IRQ_TYPE_EDGE_RISING>, |
| 72 | <GIC_SPI 189 IRQ_TYPE_EDGE_RISING>; |
| 73 | clocks = <&clkc CLKID_BLKMV>; |
| 74 | clock-names = "blkmv"; |
| 75 | status = "okay"; |
| 76 | }; |
Neil Armstrong | 8e8aec2 | 2018-06-05 10:10:44 +0200 | [diff] [blame] | 77 | }; |
| 78 | }; |
| 79 | |
Neil Armstrong | 14708b1 | 2020-09-10 10:48:12 +0200 | [diff] [blame] | 80 | &aiu { |
| 81 | compatible = "amlogic,aiu-gxl", "amlogic,aiu"; |
| 82 | clocks = <&clkc CLKID_AIU_GLUE>, |
| 83 | <&clkc CLKID_I2S_OUT>, |
| 84 | <&clkc CLKID_AOCLK_GATE>, |
| 85 | <&clkc CLKID_CTS_AMCLK>, |
| 86 | <&clkc CLKID_MIXER_IFACE>, |
| 87 | <&clkc CLKID_IEC958>, |
| 88 | <&clkc CLKID_IEC958_GATE>, |
| 89 | <&clkc CLKID_CTS_MCLK_I958>, |
| 90 | <&clkc CLKID_CTS_I958>; |
| 91 | clock-names = "pclk", |
| 92 | "i2s_pclk", |
| 93 | "i2s_aoclk", |
| 94 | "i2s_mclk", |
| 95 | "i2s_mixer", |
| 96 | "spdif_pclk", |
| 97 | "spdif_aoclk", |
| 98 | "spdif_mclk", |
| 99 | "spdif_mclk_sel"; |
| 100 | resets = <&reset RESET_AIU>; |
| 101 | }; |
| 102 | |
Neil Armstrong | 8e8aec2 | 2018-06-05 10:10:44 +0200 | [diff] [blame] | 103 | &apb { |
| 104 | usb2_phy0: phy@78000 { |
| 105 | compatible = "amlogic,meson-gxl-usb2-phy"; |
| 106 | #phy-cells = <0>; |
| 107 | reg = <0x0 0x78000 0x0 0x20>; |
| 108 | clocks = <&clkc CLKID_USB>; |
| 109 | clock-names = "phy"; |
| 110 | resets = <&reset RESET_USB_OTG>; |
| 111 | reset-names = "phy"; |
| 112 | status = "okay"; |
| 113 | }; |
| 114 | |
| 115 | usb2_phy1: phy@78020 { |
| 116 | compatible = "amlogic,meson-gxl-usb2-phy"; |
| 117 | #phy-cells = <0>; |
| 118 | reg = <0x0 0x78020 0x0 0x20>; |
| 119 | clocks = <&clkc CLKID_USB>; |
| 120 | clock-names = "phy"; |
| 121 | resets = <&reset RESET_USB_OTG>; |
| 122 | reset-names = "phy"; |
| 123 | status = "okay"; |
| 124 | }; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 125 | }; |
| 126 | |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 127 | &efuse { |
| 128 | clocks = <&clkc CLKID_EFUSE>; |
| 129 | }; |
| 130 | |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 131 | ðmac { |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 132 | clocks = <&clkc CLKID_ETH>, |
| 133 | <&clkc CLKID_FCLK_DIV2>, |
Neil Armstrong | 7d7da1f | 2020-10-02 09:47:37 +0200 | [diff] [blame] | 134 | <&clkc CLKID_MPLL2>, |
| 135 | <&clkc CLKID_FCLK_DIV2>; |
| 136 | clock-names = "stmmaceth", "clkin0", "clkin1", "timing-adjustment"; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 137 | |
| 138 | mdio0: mdio { |
| 139 | #address-cells = <1>; |
| 140 | #size-cells = <0>; |
| 141 | compatible = "snps,dwmac-mdio"; |
| 142 | }; |
| 143 | }; |
| 144 | |
| 145 | &aobus { |
| 146 | pinctrl_aobus: pinctrl@14 { |
| 147 | compatible = "amlogic,meson-gxl-aobus-pinctrl"; |
| 148 | #address-cells = <2>; |
| 149 | #size-cells = <2>; |
| 150 | ranges; |
| 151 | |
| 152 | gpio_ao: bank@14 { |
| 153 | reg = <0x0 0x00014 0x0 0x8>, |
| 154 | <0x0 0x0002c 0x0 0x4>, |
| 155 | <0x0 0x00024 0x0 0x8>; |
| 156 | reg-names = "mux", "pull", "gpio"; |
| 157 | gpio-controller; |
| 158 | #gpio-cells = <2>; |
| 159 | gpio-ranges = <&pinctrl_aobus 0 0 14>; |
| 160 | }; |
| 161 | |
| 162 | uart_ao_a_pins: uart_ao_a { |
| 163 | mux { |
| 164 | groups = "uart_tx_ao_a", "uart_rx_ao_a"; |
| 165 | function = "uart_ao"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 166 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 167 | }; |
| 168 | }; |
| 169 | |
| 170 | uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts { |
| 171 | mux { |
| 172 | groups = "uart_cts_ao_a", |
| 173 | "uart_rts_ao_a"; |
| 174 | function = "uart_ao"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 175 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 176 | }; |
| 177 | }; |
| 178 | |
| 179 | uart_ao_b_pins: uart_ao_b { |
| 180 | mux { |
| 181 | groups = "uart_tx_ao_b", "uart_rx_ao_b"; |
| 182 | function = "uart_ao_b"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 183 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 184 | }; |
| 185 | }; |
| 186 | |
| 187 | uart_ao_b_0_1_pins: uart_ao_b_0_1 { |
| 188 | mux { |
| 189 | groups = "uart_tx_ao_b_0", "uart_rx_ao_b_1"; |
| 190 | function = "uart_ao_b"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 191 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 192 | }; |
| 193 | }; |
| 194 | |
| 195 | uart_ao_b_cts_rts_pins: uart_ao_b_cts_rts { |
| 196 | mux { |
| 197 | groups = "uart_cts_ao_b", |
| 198 | "uart_rts_ao_b"; |
| 199 | function = "uart_ao_b"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 200 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 201 | }; |
| 202 | }; |
| 203 | |
| 204 | remote_input_ao_pins: remote_input_ao { |
| 205 | mux { |
| 206 | groups = "remote_input_ao"; |
| 207 | function = "remote_input_ao"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 208 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 209 | }; |
| 210 | }; |
| 211 | |
| 212 | i2c_ao_pins: i2c_ao { |
| 213 | mux { |
| 214 | groups = "i2c_sck_ao", |
| 215 | "i2c_sda_ao"; |
| 216 | function = "i2c_ao"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 217 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 218 | }; |
| 219 | }; |
| 220 | |
| 221 | pwm_ao_a_3_pins: pwm_ao_a_3 { |
| 222 | mux { |
| 223 | groups = "pwm_ao_a_3"; |
| 224 | function = "pwm_ao_a"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 225 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 226 | }; |
| 227 | }; |
| 228 | |
| 229 | pwm_ao_a_8_pins: pwm_ao_a_8 { |
| 230 | mux { |
| 231 | groups = "pwm_ao_a_8"; |
| 232 | function = "pwm_ao_a"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 233 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 234 | }; |
| 235 | }; |
| 236 | |
| 237 | pwm_ao_b_pins: pwm_ao_b { |
| 238 | mux { |
| 239 | groups = "pwm_ao_b"; |
| 240 | function = "pwm_ao_b"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 241 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 242 | }; |
| 243 | }; |
| 244 | |
| 245 | pwm_ao_b_6_pins: pwm_ao_b_6 { |
| 246 | mux { |
| 247 | groups = "pwm_ao_b_6"; |
| 248 | function = "pwm_ao_b"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 249 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 250 | }; |
| 251 | }; |
| 252 | |
| 253 | i2s_out_ch23_ao_pins: i2s_out_ch23_ao { |
| 254 | mux { |
| 255 | groups = "i2s_out_ch23_ao"; |
| 256 | function = "i2s_out_ao"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 257 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 258 | }; |
| 259 | }; |
| 260 | |
| 261 | i2s_out_ch45_ao_pins: i2s_out_ch45_ao { |
| 262 | mux { |
| 263 | groups = "i2s_out_ch45_ao"; |
| 264 | function = "i2s_out_ao"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 265 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 266 | }; |
| 267 | }; |
| 268 | |
| 269 | spdif_out_ao_6_pins: spdif_out_ao_6 { |
| 270 | mux { |
| 271 | groups = "spdif_out_ao_6"; |
| 272 | function = "spdif_out_ao"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 273 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 274 | }; |
| 275 | }; |
| 276 | |
| 277 | spdif_out_ao_9_pins: spdif_out_ao_9 { |
| 278 | mux { |
| 279 | groups = "spdif_out_ao_9"; |
| 280 | function = "spdif_out_ao"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 281 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 282 | }; |
| 283 | }; |
| 284 | |
| 285 | ao_cec_pins: ao_cec { |
| 286 | mux { |
| 287 | groups = "ao_cec"; |
| 288 | function = "cec_ao"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 289 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 290 | }; |
| 291 | }; |
| 292 | |
| 293 | ee_cec_pins: ee_cec { |
| 294 | mux { |
| 295 | groups = "ee_cec"; |
| 296 | function = "cec_ao"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 297 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 298 | }; |
| 299 | }; |
| 300 | }; |
| 301 | }; |
| 302 | |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 303 | &cec_AO { |
| 304 | clocks = <&clkc_AO CLKID_AO_CEC_32K>; |
| 305 | clock-names = "core"; |
| 306 | }; |
| 307 | |
| 308 | &clkc_AO { |
| 309 | compatible = "amlogic,meson-gxl-aoclkc", "amlogic,meson-gx-aoclkc"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 310 | clocks = <&xtal>, <&clkc CLKID_CLK81>; |
| 311 | clock-names = "xtal", "mpeg-clk"; |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 312 | }; |
| 313 | |
| 314 | &gpio_intc { |
Neil Armstrong | 5eb9e67 | 2023-12-13 10:30:13 +0100 | [diff] [blame] | 315 | compatible = "amlogic,meson-gxl-gpio-intc", |
| 316 | "amlogic,meson-gpio-intc"; |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 317 | status = "okay"; |
| 318 | }; |
| 319 | |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 320 | &hdmi_tx { |
| 321 | compatible = "amlogic,meson-gxl-dw-hdmi", "amlogic,meson-gx-dw-hdmi"; |
| 322 | resets = <&reset RESET_HDMITX_CAPB3>, |
| 323 | <&reset RESET_HDMI_SYSTEM_RESET>, |
| 324 | <&reset RESET_HDMI_TX>; |
| 325 | reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy"; |
| 326 | clocks = <&clkc CLKID_HDMI_PCLK>, |
| 327 | <&clkc CLKID_CLK81>, |
| 328 | <&clkc CLKID_GCLK_VENCI_INT0>; |
| 329 | clock-names = "isfr", "iahb", "venci"; |
| 330 | }; |
| 331 | |
Loic Devulder | c037903 | 2018-11-27 17:41:18 +0100 | [diff] [blame] | 332 | &sysctrl { |
| 333 | clkc: clock-controller { |
| 334 | compatible = "amlogic,gxl-clkc"; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 335 | #clock-cells = <1>; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 336 | clocks = <&xtal>; |
| 337 | clock-names = "xtal"; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 338 | }; |
| 339 | }; |
| 340 | |
Neil Armstrong | 7d7da1f | 2020-10-02 09:47:37 +0200 | [diff] [blame] | 341 | &hwrng { |
| 342 | clocks = <&clkc CLKID_RNG0>; |
| 343 | clock-names = "core"; |
| 344 | }; |
| 345 | |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 346 | &i2c_A { |
| 347 | clocks = <&clkc CLKID_I2C>; |
| 348 | }; |
| 349 | |
| 350 | &i2c_AO { |
| 351 | clocks = <&clkc CLKID_AO_I2C>; |
| 352 | }; |
| 353 | |
| 354 | &i2c_B { |
| 355 | clocks = <&clkc CLKID_I2C>; |
| 356 | }; |
| 357 | |
| 358 | &i2c_C { |
| 359 | clocks = <&clkc CLKID_I2C>; |
| 360 | }; |
| 361 | |
| 362 | &periphs { |
| 363 | pinctrl_periphs: pinctrl@4b0 { |
| 364 | compatible = "amlogic,meson-gxl-periphs-pinctrl"; |
| 365 | #address-cells = <2>; |
| 366 | #size-cells = <2>; |
| 367 | ranges; |
| 368 | |
| 369 | gpio: bank@4b0 { |
| 370 | reg = <0x0 0x004b0 0x0 0x28>, |
| 371 | <0x0 0x004e8 0x0 0x14>, |
| 372 | <0x0 0x00520 0x0 0x14>, |
| 373 | <0x0 0x00430 0x0 0x40>; |
| 374 | reg-names = "mux", "pull", "pull-enable", "gpio"; |
| 375 | gpio-controller; |
| 376 | #gpio-cells = <2>; |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 377 | gpio-ranges = <&pinctrl_periphs 0 0 100>; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 378 | }; |
| 379 | |
| 380 | emmc_pins: emmc { |
Jerome Brunet | d34d5ef | 2020-03-05 12:12:38 +0100 | [diff] [blame] | 381 | mux-0 { |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 382 | groups = "emmc_nand_d07", |
Jerome Brunet | d34d5ef | 2020-03-05 12:12:38 +0100 | [diff] [blame] | 383 | "emmc_cmd"; |
| 384 | function = "emmc"; |
| 385 | bias-pull-up; |
| 386 | }; |
| 387 | |
| 388 | mux-1 { |
| 389 | groups = "emmc_clk"; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 390 | function = "emmc"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 391 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 392 | }; |
| 393 | }; |
| 394 | |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 395 | emmc_ds_pins: emmc-ds { |
| 396 | mux { |
| 397 | groups = "emmc_ds"; |
| 398 | function = "emmc"; |
Jerome Brunet | d34d5ef | 2020-03-05 12:12:38 +0100 | [diff] [blame] | 399 | bias-pull-down; |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 400 | }; |
| 401 | }; |
| 402 | |
| 403 | emmc_clk_gate_pins: emmc_clk_gate { |
| 404 | mux { |
| 405 | groups = "BOOT_8"; |
| 406 | function = "gpio_periphs"; |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 407 | bias-pull-down; |
| 408 | }; |
| 409 | }; |
| 410 | |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 411 | nor_pins: nor { |
| 412 | mux { |
| 413 | groups = "nor_d", |
| 414 | "nor_q", |
| 415 | "nor_c", |
| 416 | "nor_cs"; |
| 417 | function = "nor"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 418 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 419 | }; |
| 420 | }; |
| 421 | |
Loic Devulder | c037903 | 2018-11-27 17:41:18 +0100 | [diff] [blame] | 422 | spi_pins: spi-pins { |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 423 | mux { |
| 424 | groups = "spi_miso", |
| 425 | "spi_mosi", |
| 426 | "spi_sclk"; |
| 427 | function = "spi"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 428 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 429 | }; |
| 430 | }; |
| 431 | |
Neil Armstrong | 5eb9e67 | 2023-12-13 10:30:13 +0100 | [diff] [blame] | 432 | spi_idle_high_pins: spi-idle-high-pins { |
| 433 | mux { |
| 434 | groups = "spi_sclk"; |
| 435 | bias-pull-up; |
| 436 | }; |
| 437 | }; |
| 438 | |
| 439 | spi_idle_low_pins: spi-idle-low-pins { |
| 440 | mux { |
| 441 | groups = "spi_sclk"; |
| 442 | bias-pull-down; |
| 443 | }; |
| 444 | }; |
| 445 | |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 446 | spi_ss0_pins: spi-ss0 { |
| 447 | mux { |
| 448 | groups = "spi_ss0"; |
| 449 | function = "spi"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 450 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 451 | }; |
| 452 | }; |
| 453 | |
| 454 | sdcard_pins: sdcard { |
Jerome Brunet | d34d5ef | 2020-03-05 12:12:38 +0100 | [diff] [blame] | 455 | mux-0 { |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 456 | groups = "sdcard_d0", |
| 457 | "sdcard_d1", |
| 458 | "sdcard_d2", |
| 459 | "sdcard_d3", |
Jerome Brunet | d34d5ef | 2020-03-05 12:12:38 +0100 | [diff] [blame] | 460 | "sdcard_cmd"; |
| 461 | function = "sdcard"; |
| 462 | bias-pull-up; |
| 463 | }; |
| 464 | |
| 465 | mux-1 { |
| 466 | groups = "sdcard_clk"; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 467 | function = "sdcard"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 468 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 469 | }; |
| 470 | }; |
| 471 | |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 472 | sdcard_clk_gate_pins: sdcard_clk_gate { |
| 473 | mux { |
| 474 | groups = "CARD_2"; |
| 475 | function = "gpio_periphs"; |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 476 | bias-pull-down; |
| 477 | }; |
| 478 | }; |
| 479 | |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 480 | sdio_pins: sdio { |
Jerome Brunet | d34d5ef | 2020-03-05 12:12:38 +0100 | [diff] [blame] | 481 | mux-0 { |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 482 | groups = "sdio_d0", |
| 483 | "sdio_d1", |
| 484 | "sdio_d2", |
| 485 | "sdio_d3", |
Jerome Brunet | d34d5ef | 2020-03-05 12:12:38 +0100 | [diff] [blame] | 486 | "sdio_cmd"; |
| 487 | function = "sdio"; |
| 488 | bias-pull-up; |
| 489 | }; |
| 490 | |
| 491 | mux-1 { |
| 492 | groups = "sdio_clk"; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 493 | function = "sdio"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 494 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 495 | }; |
| 496 | }; |
| 497 | |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 498 | sdio_clk_gate_pins: sdio_clk_gate { |
| 499 | mux { |
| 500 | groups = "GPIOX_4"; |
| 501 | function = "gpio_periphs"; |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 502 | bias-pull-down; |
| 503 | }; |
| 504 | }; |
| 505 | |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 506 | sdio_irq_pins: sdio_irq { |
| 507 | mux { |
| 508 | groups = "sdio_irq"; |
| 509 | function = "sdio"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 510 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 511 | }; |
| 512 | }; |
| 513 | |
| 514 | uart_a_pins: uart_a { |
| 515 | mux { |
| 516 | groups = "uart_tx_a", |
| 517 | "uart_rx_a"; |
| 518 | function = "uart_a"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 519 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 520 | }; |
| 521 | }; |
| 522 | |
| 523 | uart_a_cts_rts_pins: uart_a_cts_rts { |
| 524 | mux { |
| 525 | groups = "uart_cts_a", |
| 526 | "uart_rts_a"; |
| 527 | function = "uart_a"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 528 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 529 | }; |
| 530 | }; |
| 531 | |
| 532 | uart_b_pins: uart_b { |
| 533 | mux { |
| 534 | groups = "uart_tx_b", |
| 535 | "uart_rx_b"; |
| 536 | function = "uart_b"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 537 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 538 | }; |
| 539 | }; |
| 540 | |
| 541 | uart_b_cts_rts_pins: uart_b_cts_rts { |
| 542 | mux { |
| 543 | groups = "uart_cts_b", |
| 544 | "uart_rts_b"; |
| 545 | function = "uart_b"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 546 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 547 | }; |
| 548 | }; |
| 549 | |
| 550 | uart_c_pins: uart_c { |
| 551 | mux { |
| 552 | groups = "uart_tx_c", |
| 553 | "uart_rx_c"; |
| 554 | function = "uart_c"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 555 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 556 | }; |
| 557 | }; |
| 558 | |
| 559 | uart_c_cts_rts_pins: uart_c_cts_rts { |
| 560 | mux { |
| 561 | groups = "uart_cts_c", |
| 562 | "uart_rts_c"; |
| 563 | function = "uart_c"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 564 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 565 | }; |
| 566 | }; |
| 567 | |
| 568 | i2c_a_pins: i2c_a { |
| 569 | mux { |
| 570 | groups = "i2c_sck_a", |
| 571 | "i2c_sda_a"; |
| 572 | function = "i2c_a"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 573 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 574 | }; |
| 575 | }; |
| 576 | |
| 577 | i2c_b_pins: i2c_b { |
| 578 | mux { |
| 579 | groups = "i2c_sck_b", |
| 580 | "i2c_sda_b"; |
| 581 | function = "i2c_b"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 582 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 583 | }; |
| 584 | }; |
| 585 | |
| 586 | i2c_c_pins: i2c_c { |
| 587 | mux { |
| 588 | groups = "i2c_sck_c", |
| 589 | "i2c_sda_c"; |
| 590 | function = "i2c_c"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 591 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 592 | }; |
| 593 | }; |
| 594 | |
Jerome Brunet | d34d5ef | 2020-03-05 12:12:38 +0100 | [diff] [blame] | 595 | i2c_c_dv18_pins: i2c_c_dv18 { |
| 596 | mux { |
| 597 | groups = "i2c_sck_c_dv19", |
| 598 | "i2c_sda_c_dv18"; |
| 599 | function = "i2c_c"; |
| 600 | bias-disable; |
| 601 | }; |
| 602 | }; |
| 603 | |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 604 | eth_pins: eth_c { |
| 605 | mux { |
| 606 | groups = "eth_mdio", |
| 607 | "eth_mdc", |
| 608 | "eth_clk_rx_clk", |
| 609 | "eth_rx_dv", |
| 610 | "eth_rxd0", |
| 611 | "eth_rxd1", |
| 612 | "eth_rxd2", |
| 613 | "eth_rxd3", |
| 614 | "eth_rgmii_tx_clk", |
| 615 | "eth_tx_en", |
| 616 | "eth_txd0", |
| 617 | "eth_txd1", |
| 618 | "eth_txd2", |
| 619 | "eth_txd3"; |
| 620 | function = "eth"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 621 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 622 | }; |
| 623 | }; |
| 624 | |
| 625 | eth_link_led_pins: eth_link_led { |
| 626 | mux { |
| 627 | groups = "eth_link_led"; |
| 628 | function = "eth_led"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 629 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 630 | }; |
| 631 | }; |
| 632 | |
| 633 | eth_act_led_pins: eth_act_led { |
| 634 | mux { |
| 635 | groups = "eth_act_led"; |
| 636 | function = "eth_led"; |
| 637 | }; |
| 638 | }; |
| 639 | |
| 640 | pwm_a_pins: pwm_a { |
| 641 | mux { |
| 642 | groups = "pwm_a"; |
| 643 | function = "pwm_a"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 644 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 645 | }; |
| 646 | }; |
| 647 | |
| 648 | pwm_b_pins: pwm_b { |
| 649 | mux { |
| 650 | groups = "pwm_b"; |
| 651 | function = "pwm_b"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 652 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 653 | }; |
| 654 | }; |
| 655 | |
| 656 | pwm_c_pins: pwm_c { |
| 657 | mux { |
| 658 | groups = "pwm_c"; |
| 659 | function = "pwm_c"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 660 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 661 | }; |
| 662 | }; |
| 663 | |
| 664 | pwm_d_pins: pwm_d { |
| 665 | mux { |
| 666 | groups = "pwm_d"; |
| 667 | function = "pwm_d"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 668 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 669 | }; |
| 670 | }; |
| 671 | |
| 672 | pwm_e_pins: pwm_e { |
| 673 | mux { |
| 674 | groups = "pwm_e"; |
| 675 | function = "pwm_e"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 676 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 677 | }; |
| 678 | }; |
| 679 | |
| 680 | pwm_f_clk_pins: pwm_f_clk { |
| 681 | mux { |
| 682 | groups = "pwm_f_clk"; |
| 683 | function = "pwm_f"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 684 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 685 | }; |
| 686 | }; |
| 687 | |
| 688 | pwm_f_x_pins: pwm_f_x { |
| 689 | mux { |
| 690 | groups = "pwm_f_x"; |
| 691 | function = "pwm_f"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 692 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 693 | }; |
| 694 | }; |
| 695 | |
| 696 | hdmi_hpd_pins: hdmi_hpd { |
| 697 | mux { |
| 698 | groups = "hdmi_hpd"; |
| 699 | function = "hdmi_hpd"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 700 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 701 | }; |
| 702 | }; |
| 703 | |
| 704 | hdmi_i2c_pins: hdmi_i2c { |
| 705 | mux { |
| 706 | groups = "hdmi_sda", "hdmi_scl"; |
| 707 | function = "hdmi_i2c"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 708 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 709 | }; |
| 710 | }; |
| 711 | |
| 712 | i2s_am_clk_pins: i2s_am_clk { |
| 713 | mux { |
| 714 | groups = "i2s_am_clk"; |
| 715 | function = "i2s_out"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 716 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 717 | }; |
| 718 | }; |
| 719 | |
| 720 | i2s_out_ao_clk_pins: i2s_out_ao_clk { |
| 721 | mux { |
| 722 | groups = "i2s_out_ao_clk"; |
| 723 | function = "i2s_out"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 724 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 725 | }; |
| 726 | }; |
| 727 | |
| 728 | i2s_out_lr_clk_pins: i2s_out_lr_clk { |
| 729 | mux { |
| 730 | groups = "i2s_out_lr_clk"; |
| 731 | function = "i2s_out"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 732 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 733 | }; |
| 734 | }; |
| 735 | |
| 736 | i2s_out_ch01_pins: i2s_out_ch01 { |
| 737 | mux { |
| 738 | groups = "i2s_out_ch01"; |
| 739 | function = "i2s_out"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 740 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 741 | }; |
| 742 | }; |
| 743 | i2sout_ch23_z_pins: i2sout_ch23_z { |
| 744 | mux { |
| 745 | groups = "i2sout_ch23_z"; |
| 746 | function = "i2s_out"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 747 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 748 | }; |
| 749 | }; |
| 750 | |
| 751 | i2sout_ch45_z_pins: i2sout_ch45_z { |
| 752 | mux { |
| 753 | groups = "i2sout_ch45_z"; |
| 754 | function = "i2s_out"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 755 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 756 | }; |
| 757 | }; |
| 758 | |
| 759 | i2sout_ch67_z_pins: i2sout_ch67_z { |
| 760 | mux { |
| 761 | groups = "i2sout_ch67_z"; |
| 762 | function = "i2s_out"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 763 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 764 | }; |
| 765 | }; |
| 766 | |
| 767 | spdif_out_h_pins: spdif_out_ao_h { |
| 768 | mux { |
| 769 | groups = "spdif_out_h"; |
| 770 | function = "spdif_out"; |
Neil Armstrong | b95305a | 2019-03-26 11:20:34 +0100 | [diff] [blame] | 771 | bias-disable; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 772 | }; |
| 773 | }; |
| 774 | }; |
| 775 | |
Neil Armstrong | 5eb9e67 | 2023-12-13 10:30:13 +0100 | [diff] [blame] | 776 | eth_phy_mux: mdio@558 { |
| 777 | reg = <0x0 0x558 0x0 0xc>; |
| 778 | compatible = "amlogic,gxl-mdio-mux"; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 779 | #address-cells = <1>; |
| 780 | #size-cells = <0>; |
Neil Armstrong | 5eb9e67 | 2023-12-13 10:30:13 +0100 | [diff] [blame] | 781 | clocks = <&clkc CLKID_FCLK_DIV4>; |
| 782 | clock-names = "ref"; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 783 | mdio-parent-bus = <&mdio0>; |
| 784 | |
Neil Armstrong | 5eb9e67 | 2023-12-13 10:30:13 +0100 | [diff] [blame] | 785 | external_mdio: mdio@0 { |
| 786 | reg = <0x0>; |
| 787 | #address-cells = <1>; |
| 788 | #size-cells = <0>; |
| 789 | }; |
| 790 | |
| 791 | internal_mdio: mdio@1 { |
| 792 | reg = <0x1>; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 793 | #address-cells = <1>; |
| 794 | #size-cells = <0>; |
| 795 | |
| 796 | internal_phy: ethernet-phy@8 { |
Jerome Brunet | d34d5ef | 2020-03-05 12:12:38 +0100 | [diff] [blame] | 797 | compatible = "ethernet-phy-id0181.4400"; |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 798 | interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 799 | reg = <8>; |
| 800 | max-speed = <100>; |
| 801 | }; |
| 802 | }; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 803 | }; |
| 804 | }; |
| 805 | |
Neil Armstrong | 7d7da1f | 2020-10-02 09:47:37 +0200 | [diff] [blame] | 806 | &pwrc { |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 807 | resets = <&reset RESET_VIU>, |
| 808 | <&reset RESET_VENC>, |
| 809 | <&reset RESET_VCBUS>, |
| 810 | <&reset RESET_BT656>, |
| 811 | <&reset RESET_DVIN_RESET>, |
| 812 | <&reset RESET_RDMA>, |
| 813 | <&reset RESET_VENCI>, |
| 814 | <&reset RESET_VENCP>, |
| 815 | <&reset RESET_VDAC>, |
| 816 | <&reset RESET_VDI6>, |
| 817 | <&reset RESET_VENCL>, |
| 818 | <&reset RESET_VID_LOCK>; |
Neil Armstrong | 7d7da1f | 2020-10-02 09:47:37 +0200 | [diff] [blame] | 819 | reset-names = "viu", "venc", "vcbus", "bt656", |
| 820 | "dvin", "rdma", "venci", "vencp", |
| 821 | "vdac", "vdi6", "vencl", "vid_lock"; |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 822 | clocks = <&clkc CLKID_VPU>, |
| 823 | <&clkc CLKID_VAPB>; |
| 824 | clock-names = "vpu", "vapb"; |
| 825 | /* |
| 826 | * VPU clocking is provided by two identical clock paths |
| 827 | * VPU_0 and VPU_1 muxed to a single clock by a glitch |
| 828 | * free mux to safely change frequency while running. |
| 829 | * Same for VAPB but with a final gate after the glitch free mux. |
| 830 | */ |
| 831 | assigned-clocks = <&clkc CLKID_VPU_0_SEL>, |
| 832 | <&clkc CLKID_VPU_0>, |
| 833 | <&clkc CLKID_VPU>, /* Glitch free mux */ |
| 834 | <&clkc CLKID_VAPB_0_SEL>, |
| 835 | <&clkc CLKID_VAPB_0>, |
| 836 | <&clkc CLKID_VAPB_SEL>; /* Glitch free mux */ |
| 837 | assigned-clock-parents = <&clkc CLKID_FCLK_DIV3>, |
| 838 | <0>, /* Do Nothing */ |
| 839 | <&clkc CLKID_VPU_0>, |
| 840 | <&clkc CLKID_FCLK_DIV4>, |
| 841 | <0>, /* Do Nothing */ |
| 842 | <&clkc CLKID_VAPB_0>; |
| 843 | assigned-clock-rates = <0>, /* Do Nothing */ |
| 844 | <666666666>, |
| 845 | <0>, /* Do Nothing */ |
| 846 | <0>, /* Do Nothing */ |
| 847 | <250000000>, |
| 848 | <0>; /* Do Nothing */ |
| 849 | }; |
| 850 | |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 851 | &saradc { |
| 852 | compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc"; |
| 853 | clocks = <&xtal>, |
| 854 | <&clkc CLKID_SAR_ADC>, |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 855 | <&clkc CLKID_SAR_ADC_CLK>, |
| 856 | <&clkc CLKID_SAR_ADC_SEL>; |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 857 | clock-names = "clkin", "core", "adc_clk", "adc_sel"; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 858 | }; |
| 859 | |
| 860 | &sd_emmc_a { |
| 861 | clocks = <&clkc CLKID_SD_EMMC_A>, |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 862 | <&clkc CLKID_SD_EMMC_A_CLK0>, |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 863 | <&clkc CLKID_FCLK_DIV2>; |
| 864 | clock-names = "core", "clkin0", "clkin1"; |
Loic Devulder | c037903 | 2018-11-27 17:41:18 +0100 | [diff] [blame] | 865 | resets = <&reset RESET_SD_EMMC_A>; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 866 | }; |
| 867 | |
| 868 | &sd_emmc_b { |
| 869 | clocks = <&clkc CLKID_SD_EMMC_B>, |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 870 | <&clkc CLKID_SD_EMMC_B_CLK0>, |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 871 | <&clkc CLKID_FCLK_DIV2>; |
Loic Devulder | c037903 | 2018-11-27 17:41:18 +0100 | [diff] [blame] | 872 | clock-names = "core", "clkin0", "clkin1"; |
| 873 | resets = <&reset RESET_SD_EMMC_B>; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 874 | }; |
| 875 | |
| 876 | &sd_emmc_c { |
| 877 | clocks = <&clkc CLKID_SD_EMMC_C>, |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 878 | <&clkc CLKID_SD_EMMC_C_CLK0>, |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 879 | <&clkc CLKID_FCLK_DIV2>; |
| 880 | clock-names = "core", "clkin0", "clkin1"; |
Loic Devulder | c037903 | 2018-11-27 17:41:18 +0100 | [diff] [blame] | 881 | resets = <&reset RESET_SD_EMMC_C>; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 882 | }; |
| 883 | |
Jerome Brunet | d34d5ef | 2020-03-05 12:12:38 +0100 | [diff] [blame] | 884 | &simplefb_hdmi { |
| 885 | clocks = <&clkc CLKID_HDMI_PCLK>, |
| 886 | <&clkc CLKID_CLK81>, |
| 887 | <&clkc CLKID_GCLK_VENCI_INT0>; |
| 888 | }; |
| 889 | |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 890 | &spicc { |
| 891 | clocks = <&clkc CLKID_SPICC>; |
| 892 | clock-names = "core"; |
| 893 | resets = <&reset RESET_PERIPHS_SPICC>; |
| 894 | num-cs = <1>; |
| 895 | }; |
| 896 | |
| 897 | &spifc { |
| 898 | clocks = <&clkc CLKID_SPI>; |
| 899 | }; |
| 900 | |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 901 | &uart_A { |
| 902 | clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>; |
| 903 | clock-names = "xtal", "pclk", "baud"; |
| 904 | }; |
| 905 | |
| 906 | &uart_AO { |
Loic Devulder | c037903 | 2018-11-27 17:41:18 +0100 | [diff] [blame] | 907 | clocks = <&xtal>, <&clkc_AO CLKID_AO_UART1>, <&xtal>; |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 908 | clock-names = "xtal", "pclk", "baud"; |
| 909 | }; |
| 910 | |
| 911 | &uart_AO_B { |
Loic Devulder | c037903 | 2018-11-27 17:41:18 +0100 | [diff] [blame] | 912 | clocks = <&xtal>, <&clkc_AO CLKID_AO_UART2>, <&xtal>; |
Neil Armstrong | 5d54d1b | 2018-04-11 17:40:40 +0200 | [diff] [blame] | 913 | clock-names = "xtal", "pclk", "baud"; |
| 914 | }; |
| 915 | |
| 916 | &uart_B { |
| 917 | clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>; |
| 918 | clock-names = "xtal", "pclk", "baud"; |
| 919 | }; |
| 920 | |
| 921 | &uart_C { |
| 922 | clocks = <&xtal>, <&clkc CLKID_UART2>, <&xtal>; |
| 923 | clock-names = "xtal", "pclk", "baud"; |
| 924 | }; |
| 925 | |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 926 | &vpu { |
| 927 | compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu"; |
Neil Armstrong | 7d7da1f | 2020-10-02 09:47:37 +0200 | [diff] [blame] | 928 | power-domains = <&pwrc PWRC_GXBB_VPU_ID>; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 929 | }; |
Jerome Brunet | d34d5ef | 2020-03-05 12:12:38 +0100 | [diff] [blame] | 930 | |
| 931 | &vdec { |
| 932 | compatible = "amlogic,gxl-vdec", "amlogic,gx-vdec"; |
| 933 | clocks = <&clkc CLKID_DOS_PARSER>, |
| 934 | <&clkc CLKID_DOS>, |
| 935 | <&clkc CLKID_VDEC_1>, |
| 936 | <&clkc CLKID_VDEC_HEVC>; |
| 937 | clock-names = "dos_parser", "dos", "vdec_1", "vdec_hevc"; |
| 938 | resets = <&reset RESET_PARSER>; |
| 939 | reset-names = "esparser"; |
| 940 | }; |