1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2016 Andreas Färber
4 * Copyright (c) 2016 BayLibre, Inc.
5 * Author: Kevin Hilman <khilman@kernel.org>
10 #include "meson-gxbb.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
14 compatible = "hardkernel,odroid-c2", "amlogic,meson-gxbb";
15 model = "Hardkernel ODROID-C2";
23 stdout-path = "serial0:115200n8";
27 device_type = "memory";
28 reg = <0x0 0x0 0x0 0x80000000>;
31 usb_otg_pwr: regulator-usb-pwrs {
32 compatible = "regulator-fixed";
34 regulator-name = "USB_OTG_PWR";
36 regulator-min-microvolt = <5000000>;
37 regulator-max-microvolt = <5000000>;
39 gpio = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>;
44 compatible = "gpio-leds";
46 label = "c2:blue:alive";
47 gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "heartbeat";
49 default-state = "off";
53 tflash_vdd: regulator-tflash_vdd {
55 * signal name from schematics: TFLASH_VDD_EN
57 compatible = "regulator-fixed";
59 regulator-name = "TFLASH_VDD";
60 regulator-min-microvolt = <3300000>;
61 regulator-max-microvolt = <3300000>;
63 gpio = <&gpio GPIOY_12 GPIO_ACTIVE_HIGH>;
67 tf_io: gpio-regulator-tf_io {
68 compatible = "regulator-gpio";
70 regulator-name = "TF_IO";
71 regulator-min-microvolt = <1800000>;
72 regulator-max-microvolt = <3300000>;
75 * signal name from schematics: TF_3V3N_1V8_EN
77 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
84 vcc1v8: regulator-vcc1v8 {
85 compatible = "regulator-fixed";
86 regulator-name = "VCC1V8";
87 regulator-min-microvolt = <1800000>;
88 regulator-max-microvolt = <1800000>;
91 vcc3v3: regulator-vcc3v3 {
92 compatible = "regulator-fixed";
93 regulator-name = "VCC3V3";
94 regulator-min-microvolt = <3300000>;
95 regulator-max-microvolt = <3300000>;
98 emmc_pwrseq: emmc-pwrseq {
99 compatible = "mmc-pwrseq-emmc";
100 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
104 compatible = "hdmi-connector";
108 hdmi_connector_in: endpoint {
109 remote-endpoint = <&hdmi_tx_tmds_out>;
117 pinctrl-0 = <&ao_cec_pins>;
118 pinctrl-names = "default";
119 hdmi-phandle = <&hdmi_tx>;
124 pinctrl-0 = <ð_rgmii_pins>;
125 pinctrl-names = "default";
126 phy-handle = <ð_phy0>;
129 snps,reset-gpio = <&gpio GPIOZ_14 0>;
130 snps,reset-delays-us = <0 10000 1000000>;
131 snps,reset-active-low;
133 amlogic,tx-delay-ns = <2>;
136 compatible = "snps,dwmac-mdio";
137 #address-cells = <1>;
140 eth_phy0: ethernet-phy@0 {
141 /* Realtek RTL8211F (0x001cc916) */
143 interrupt-parent = <&gpio_intc>;
144 /* MAC_INTR on GPIOZ_15 */
145 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
152 * WARNING: The USB Hub on the Odroid-C2 needs a reset signal
153 * to be turned high in order to be detected by the USB Controller
154 * This signal should be handled by a USB specific power sequence
155 * in order to reset the Hub when USB bus is powered down.
159 gpios = <GPIOAO_4 GPIO_ACTIVE_HIGH>;
161 line-name = "usb-hub-reset";
167 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
168 pinctrl-names = "default";
172 hdmi_tx_tmds_out: endpoint {
173 remote-endpoint = <&hdmi_connector_in>;
179 pinctrl-0 = <&i2c_a_pins>;
180 pinctrl-names = "default";
185 pinctrl-0 = <&remote_input_ao_pins>;
186 pinctrl-names = "default";
190 gpio-line-names = "UART TX", "UART RX", "VCCK En", "TF 3V3/1V8 En",
191 "USB HUB nRESET", "USB OTG Power En",
192 "J7 Header Pin2", "IR In", "J7 Header Pin4",
193 "J7 Header Pin6", "J7 Header Pin5", "J7 Header Pin7",
194 "HDMI CEC", "SYS LED",
200 gpio-line-names = /* Bank GPIOZ */
201 "Eth MDIO", "Eth MDC", "Eth RGMII RX Clk",
202 "Eth RX DV", "Eth RX D0", "Eth RX D1", "Eth RX D2",
203 "Eth RX D3", "Eth RGMII TX Clk", "Eth TX En",
204 "Eth TX D0", "Eth TX D1", "Eth TX D2", "Eth TX D3",
205 "Eth PHY nRESET", "Eth PHY Intc",
207 "HDMI HPD", "HDMI DDC SDA", "HDMI DDC SCL", "",
209 "eMMC D0", "eMMC D1", "eMMC D2", "eMMC D3", "eMMC D4",
210 "eMMC D5", "eMMC D6", "eMMC D7", "eMMC Clk",
211 "eMMC Reset", "eMMC CMD",
212 "", "", "", "", "", "", "",
214 "SDCard D1", "SDCard D0", "SDCard CLK", "SDCard CMD",
215 "SDCard D3", "SDCard D2", "SDCard Det",
217 "", "", "", "", "", "", "", "", "", "", "", "", "",
218 "", "", "", "", "", "", "", "", "", "", "",
219 "I2C A SDA", "I2C A SCK", "I2C B SDA", "I2C B SCK",
222 "Revision Bit0", "Revision Bit1", "",
223 "J2 Header Pin35", "", "", "", "J2 Header Pin36",
224 "J2 Header Pin31", "", "", "", "TF VDD En",
225 "J2 Header Pin32", "J2 Header Pin26", "", "",
227 "J2 Header Pin29", "J2 Header Pin24",
228 "J2 Header Pin23", "J2 Header Pin22",
229 "J2 Header Pin21", "J2 Header Pin18",
230 "J2 Header Pin33", "J2 Header Pin19",
231 "J2 Header Pin16", "J2 Header Pin15",
232 "J2 Header Pin12", "J2 Header Pin13",
233 "J2 Header Pin8", "J2 Header Pin10",
235 "J2 Header Pin11", "", "J2 Header Pin7", "",
242 vref-supply = <&vcc1v8>;
252 pinctrl-0 = <&sdcard_pins>;
253 pinctrl-1 = <&sdcard_clk_gate_pins>;
254 pinctrl-names = "default", "clk-gate";
258 max-frequency = <100000000>;
261 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
264 vmmc-supply = <&tflash_vdd>;
265 vqmmc-supply = <&tf_io>;
271 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
272 pinctrl-1 = <&emmc_clk_gate_pins>;
273 pinctrl-names = "default", "clk-gate";
276 max-frequency = <100000000>;
283 mmc-pwrseq = <&emmc_pwrseq>;
284 vmmc-supply = <&vcc3v3>;
285 vqmmc-supply = <&vcc1v8>;
290 pinctrl-0 = <&uart_ao_a_pins>;
291 pinctrl-names = "default";
296 phy-supply = <&usb_otg_pwr>;
301 phy-supply = <&usb_otg_pwr>;