1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2019 BayLibre, SAS
7 #include "meson-g12b-odroid.dtsi"
14 dio2133: audio-amplifier-0 {
15 compatible = "simple-audio-amplifier";
16 enable-gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>;
17 VCC-supply = <&vcc_5v>;
18 sound-name-prefix = "U19";
22 hub_5v: regulator-hub-5v {
23 compatible = "regulator-fixed";
24 regulator-name = "HUB_5V";
25 regulator-min-microvolt = <5000000>;
26 regulator-max-microvolt = <5000000>;
27 vin-supply = <&vcc_5v>;
29 /* Connected to the Hub CHIPENABLE, LOW sets low power state */
30 gpio = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>;
34 /* USB hub supports both USB 2.0 and USB 3.0 root hub */
40 /* 2.0 hub on port 1 */
42 compatible = "usb5e3,610";
44 peer-hub = <&hub_3_0>;
45 vdd-supply = <&usb_pwr_en>;
48 /* 3.0 hub on port 4 */
50 compatible = "usb5e3,620";
52 peer-hub = <&hub_2_0>;
53 reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
54 vdd-supply = <&vcc_5v>;
59 compatible = "amlogic,axg-sound-card";
61 audio-widgets = "Line", "Lineout";
62 audio-aux-devs = <&tdmout_b>, <&tdmout_c>, <&tdmin_a>,
63 <&tdmin_b>, <&tdmin_c>, <&tdmin_lb>,
65 audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
66 "TDMOUT_B IN 1", "FRDDR_B OUT 1",
67 "TDMOUT_B IN 2", "FRDDR_C OUT 1",
68 "TDM_B Playback", "TDMOUT_B OUT",
69 "TDMOUT_C IN 0", "FRDDR_A OUT 2",
70 "TDMOUT_C IN 1", "FRDDR_B OUT 2",
71 "TDMOUT_C IN 2", "FRDDR_C OUT 2",
72 "TDM_C Playback", "TDMOUT_C OUT",
73 "TDMIN_A IN 4", "TDM_B Loopback",
74 "TDMIN_B IN 4", "TDM_B Loopback",
75 "TDMIN_C IN 4", "TDM_B Loopback",
76 "TDMIN_LB IN 1", "TDM_B Loopback",
77 "TDMIN_A IN 5", "TDM_C Loopback",
78 "TDMIN_B IN 5", "TDM_C Loopback",
79 "TDMIN_C IN 5", "TDM_C Loopback",
80 "TDMIN_LB IN 2", "TDM_C Loopback",
81 "TODDR_A IN 0", "TDMIN_A OUT",
82 "TODDR_B IN 0", "TDMIN_A OUT",
83 "TODDR_C IN 0", "TDMIN_A OUT",
84 "TODDR_A IN 1", "TDMIN_B OUT",
85 "TODDR_B IN 1", "TDMIN_B OUT",
86 "TODDR_C IN 1", "TDMIN_B OUT",
87 "TODDR_A IN 2", "TDMIN_C OUT",
88 "TODDR_B IN 2", "TDMIN_C OUT",
89 "TODDR_C IN 2", "TDMIN_C OUT",
90 "TODDR_A IN 6", "TDMIN_LB OUT",
91 "TODDR_B IN 6", "TDMIN_LB OUT",
92 "TODDR_C IN 6", "TDMIN_LB OUT",
93 "U19 INL", "ACODEC LOLP",
94 "U19 INR", "ACODEC LORP",
95 "Lineout", "U19 OUTL",
96 "Lineout", "U19 OUTR";
98 assigned-clocks = <&clkc CLKID_MPLL2>,
101 assigned-clock-parents = <0>, <0>, <0>;
102 assigned-clock-rates = <294912000>,
107 sound-dai = <&frddr_a>;
111 sound-dai = <&frddr_b>;
115 sound-dai = <&frddr_c>;
119 sound-dai = <&toddr_a>;
123 sound-dai = <&toddr_b>;
127 sound-dai = <&toddr_c>;
130 /* 8ch hdmi interface */
132 sound-dai = <&tdmif_b>;
134 dai-tdm-slot-tx-mask-0 = <1 1>;
135 dai-tdm-slot-tx-mask-1 = <1 1>;
136 dai-tdm-slot-tx-mask-2 = <1 1>;
137 dai-tdm-slot-tx-mask-3 = <1 1>;
141 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
145 sound-dai = <&toacodec TOACODEC_IN_B>;
149 /* i2s jack output interface */
151 sound-dai = <&tdmif_c>;
153 dai-tdm-slot-tx-mask-0 = <1 1>;
157 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_C>;
161 sound-dai = <&toacodec TOACODEC_IN_C>;
167 sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
170 sound-dai = <&hdmi_tx>;
176 sound-dai = <&toacodec TOACODEC_OUT>;
179 sound-dai = <&acodec>;
186 AVDD-supply = <&vddao_1v8>;
191 pinctrl-0 = <ð_pins>, <ð_rgmii_pins>;
192 pinctrl-names = "default";
195 phy-handle = <&external_phy>;
196 amlogic,tx-delay-ns = <2>;
200 external_phy: ethernet-phy@0 {
201 /* Realtek RTL8211F (0x001cc916) */
205 reset-assert-us = <10000>;
206 reset-deassert-us = <80000>;
207 reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
209 interrupt-parent = <&gpio_intc>;
210 /* MAC_INTR on GPIOZ_14 */
211 interrupts = <IRQID_GPIOZ_14 IRQ_TYPE_LEVEL_LOW>;
218 "", "", "", "", "", "", "", "",
219 "", "", "", "", "", "", "", "",
221 "", "", "", "", "", "", "", "",
224 "", "", "", "", "", "", "", "",
225 "", "", "", "", "", "", "", "",
227 "", "", "", "", "", "", "", "",
229 "PIN_44", /* GPIOA_0 */
230 "PIN_46", /* GPIOA_1 */
231 "PIN_45", /* GPIOA_2 */
232 "PIN_47", /* GPIOA_3 */
233 "PIN_26", /* GPIOA_4 */
234 "", "", "", "", "", "",
235 "PIN_42", /* GPIOA_11 */
236 "PIN_32", /* GPIOA_12 */
237 "PIN_7", /* GPIOA_13 */
238 "PIN_27", /* GPIOA_14 */
239 "PIN_28", /* GPIOA_15 */
241 "PIN_16", /* GPIOX_0 */
242 "PIN_18", /* GPIOX_1 */
243 "PIN_22", /* GPIOX_2 */
244 "PIN_11", /* GPIOX_3 */
245 "PIN_13", /* GPIOX_4 */
246 "PIN_33", /* GPIOX_5 */
247 "PIN_35", /* GPIOX_6 */
248 "PIN_15", /* GPIOX_7 */
249 "PIN_19", /* GPIOX_8 */
250 "PIN_21", /* GPIOX_9 */
251 "PIN_24", /* GPIOX_10 */
252 "PIN_23", /* GPIOX_11 */
253 "PIN_8", /* GPIOX_12 */
254 "PIN_10", /* GPIOX_13 */
255 "PIN_29", /* GPIOX_14 */
256 "PIN_31", /* GPIOX_15 */
257 "PIN_12", /* GPIOX_16 */
258 "PIN_3", /* GPIOX_17 */
259 "PIN_5", /* GPIOX_18 */
260 "PIN_36"; /* GPIOX_19 */
265 pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>;
266 pinctrl-names = "default";
269 compatible = "nxp,pcf8563";
277 pinctrl-0 = <&remote_input_ao_pins>;
278 pinctrl-names = "default";
279 linux,rc-map-name = "rc-odroid";
283 * EMMC_D4, EMMC_D5, EMMC_D6 and EMMC_D7 pins are shared between SPI NOR pins
284 * and eMMC Data 4 to 7 pins.
285 * Replace emmc_data_8b_pins to emmc_data_4b_pins from sd_emmc_c pinctrl-0,
286 * and change bus-width to 4 then spifc can be enabled.
287 * The SW1 slide should also be set to the correct position.
291 pinctrl-0 = <&nor_pins>;
292 pinctrl-names = "default";
295 #address-cells = <1>;
297 compatible = "mxicy,mx25u6435f", "jedec,spi-nor";
299 spi-max-frequency = <104000000>;
308 vbus-supply = <&usb_pwr_en>;
312 /* Enable the hub which is connected to this port */
313 phy-supply = <&hub_5v>;