2 * Copyright (c) 2016 Andreas Färber
3 * Copyright (c) 2016 BayLibre, Inc.
4 * Author: Kevin Hilman <khilman@kernel.org>
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
11 * a) This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
47 #include "meson-gxbb.dtsi"
48 #include <dt-bindings/gpio/gpio.h>
51 compatible = "hardkernel,odroid-c2", "amlogic,meson-gxbb";
52 model = "Hardkernel ODROID-C2";
59 stdout-path = "serial0:115200n8";
63 device_type = "memory";
64 reg = <0x0 0x0 0x0 0x80000000>;
67 usb_otg_pwr: regulator-usb-pwrs {
68 compatible = "regulator-fixed";
70 regulator-name = "USB_OTG_PWR";
72 regulator-min-microvolt = <5000000>;
73 regulator-max-microvolt = <5000000>;
75 gpio = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>;
80 compatible = "gpio-leds";
82 label = "c2:blue:alive";
83 gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_LOW>;
84 linux,default-trigger = "heartbeat";
85 default-state = "off";
89 tflash_vdd: regulator-tflash_vdd {
91 * signal name from schematics: TFLASH_VDD_EN
93 compatible = "regulator-fixed";
95 regulator-name = "TFLASH_VDD";
96 regulator-min-microvolt = <3300000>;
97 regulator-max-microvolt = <3300000>;
99 gpio = <&gpio GPIOY_12 GPIO_ACTIVE_HIGH>;
103 tf_io: gpio-regulator-tf_io {
104 compatible = "regulator-gpio";
106 regulator-name = "TF_IO";
107 regulator-min-microvolt = <1800000>;
108 regulator-max-microvolt = <3300000>;
111 * signal name from schematics: TF_3V3N_1V8_EN
113 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
120 vcc1v8: regulator-vcc1v8 {
121 compatible = "regulator-fixed";
122 regulator-name = "VCC1V8";
123 regulator-min-microvolt = <1800000>;
124 regulator-max-microvolt = <1800000>;
127 vcc3v3: regulator-vcc3v3 {
128 compatible = "regulator-fixed";
129 regulator-name = "VCC3V3";
130 regulator-min-microvolt = <3300000>;
131 regulator-max-microvolt = <3300000>;
134 emmc_pwrseq: emmc-pwrseq {
135 compatible = "mmc-pwrseq-emmc";
136 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
142 pinctrl-0 = <ð_rgmii_pins>;
143 pinctrl-names = "default";
144 phy-handle = <ð_phy0>;
147 snps,reset-gpio = <&gpio GPIOZ_14 0>;
148 snps,reset-delays-us = <0 10000 1000000>;
149 snps,reset-active-low;
151 amlogic,tx-delay-ns = <2>;
154 compatible = "snps,dwmac-mdio";
155 #address-cells = <1>;
158 eth_phy0: ethernet-phy@0 {
167 * WARNING: The USB Hub on the Odroid-C2 needs a reset signal
168 * to be turned high in order to be detected by the USB Controller
169 * This signal should be handled by a USB specific power sequence
170 * in order to reset the Hub when USB bus is powered down.
174 gpios = <GPIOAO_4 GPIO_ACTIVE_HIGH>;
176 line-name = "usb-hub-reset";
182 pinctrl-0 = <&i2c_a_pins>;
183 pinctrl-names = "default";
188 pinctrl-0 = <&remote_input_ao_pins>;
189 pinctrl-names = "default";
193 gpio-line-names = "UART TX", "UART RX", "VCCK En", "TF 3V3/1V8 En",
194 "USB HUB nRESET", "USB OTG Power En",
195 "J7 Header Pin2", "IR In", "J7 Header Pin4",
196 "J7 Header Pin6", "J7 Header Pin5", "J7 Header Pin7",
197 "HDMI CEC", "SYS LED";
201 gpio-line-names = /* Bank GPIOZ */
202 "Eth MDIO", "Eth MDC", "Eth RGMII RX Clk",
203 "Eth RX DV", "Eth RX D0", "Eth RX D1", "Eth RX D2",
204 "Eth RX D3", "Eth RGMII TX Clk", "Eth TX En",
205 "Eth TX D0", "Eth TX D1", "Eth TX D2", "Eth TX D3",
206 "Eth PHY nRESET", "Eth PHY Intc",
208 "HDMI HPD", "HDMI DDC SDA", "HDMI DDC SCL", "",
210 "eMMC D0", "eMMC D1", "eMMC D2", "eMMC D3", "eMMC D4",
211 "eMMC D5", "eMMC D6", "eMMC D7", "eMMC Clk",
212 "eMMC Reset", "eMMC CMD",
213 "", "", "", "", "", "", "",
215 "SDCard D1", "SDCard D0", "SDCard CLK", "SDCard CMD",
216 "SDCard D3", "SDCard D2", "SDCard Det",
218 "", "", "", "", "", "", "", "", "", "", "", "", "",
219 "", "", "", "", "", "", "", "", "", "", "",
220 "I2C A SDA", "I2C A SCK", "I2C B SDA", "I2C B SCK",
223 "Revision Bit0", "Revision Bit1", "",
224 "J2 Header Pin35", "", "", "", "J2 Header Pin36",
225 "J2 Header Pin31", "", "", "", "TF VDD En",
226 "J2 Header Pin32", "J2 Header Pin26", "", "",
228 "J2 Header Pin29", "J2 Header Pin24",
229 "J2 Header Pin23", "J2 Header Pin22",
230 "J2 Header Pin21", "J2 Header Pin18",
231 "J2 Header Pin33", "J2 Header Pin19",
232 "J2 Header Pin16", "J2 Header Pin15",
233 "J2 Header Pin12", "J2 Header Pin13",
234 "J2 Header Pin8", "J2 Header Pin10",
236 "J2 Header Pin11", "", "J2 Header Pin7",
245 vref-supply = <&vcc1v8>;
255 pinctrl-0 = <&sdcard_pins>;
256 pinctrl-names = "default";
260 max-frequency = <100000000>;
263 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
266 vmmc-supply = <&tflash_vdd>;
267 vqmmc-supply = <&tf_io>;
273 pinctrl-0 = <&emmc_pins>;
274 pinctrl-names = "default";
278 max-frequency = <200000000>;
285 mmc-pwrseq = <&emmc_pwrseq>;
286 vmmc-supply = <&vcc3v3>;
287 vqmmc-supply = <&vcc1v8>;
292 pinctrl-0 = <&uart_ao_a_pins>;
293 pinctrl-names = "default";
298 phy-supply = <&usb_otg_pwr>;