2 * Copyright 2015 Endless Mobile, Inc.
3 * Author: Carlo Caione <carlo@endlessm.com>
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
10 * a) This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
25 * b) Permission is hereby granted, free of charge, to any person
26 * obtaining a copy of this software and associated documentation
27 * files (the "Software"), to deal in the Software without
28 * restriction, including without limitation the rights to use,
29 * copy, modify, merge, publish, distribute, sublicense, and/or
30 * sell copies of the Software, and to permit persons to whom the
31 * Software is furnished to do so, subject to the following
34 * The above copyright notice and this permission notice shall be
35 * included in all copies or substantial portions of the Software.
37 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
38 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
39 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
40 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
41 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
42 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
43 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
44 * OTHER DEALINGS IN THE SOFTWARE.
48 #include "meson8b.dtsi"
49 #include <dt-bindings/gpio/gpio.h>
52 model = "Hardkernel ODROID-C1";
53 compatible = "hardkernel,odroid-c1", "amlogic,meson8b";
61 stdout-path = "serial0:115200n8";
65 device_type = "memory";
66 reg = <0x40000000 0x40000000>;
70 compatible = "gpio-leds";
72 label = "c1:blue:alive";
73 gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_LOW>;
74 linux,default-trigger = "heartbeat";
75 default-state = "off";
79 p5v0: regulator-p5v0 {
80 compatible = "regulator-fixed";
82 regulator-name = "P5V0";
83 regulator-min-microvolt = <5000000>;
84 regulator-max-microvolt = <5000000>;
87 tflash_vdd: regulator-tflash_vdd {
89 * signal name from schematics: TFLASH_VDD_EN
91 compatible = "regulator-fixed";
93 regulator-name = "TFLASH_VDD";
94 regulator-min-microvolt = <3300000>;
95 regulator-max-microvolt = <3300000>;
97 vin-supply = <&vcc_3v3>;
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>;
110 vin-supply = <&vcc_3v3>;
113 * signal name from schematics: TF_3V3N_1V8_EN
115 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
123 compatible = "iio-hwmon";
124 io-channels = <&saradc 8>;
127 vcc_1v8: regulator-vcc-1v8 {
129 * RICHTEK RT9179 configured for a fixed output voltage of
130 * 1.8V. This supplies not only VCC1V8 but also IOREF_1V8 and
131 * VDD1V8 according to the schematics.
133 compatible = "regulator-fixed";
135 regulator-name = "VCC1V8";
136 regulator-min-microvolt = <1800000>;
137 regulator-max-microvolt = <1800000>;
139 vin-supply = <&p5v0>;
142 vcc_3v3: regulator-vcc-3v3 {
144 * Monolithic Power Systems MP2161 configured for a fixed
145 * output voltage of 3.3V. This supplies not only VCC3V3 but
146 * also VDD3V3 and VDDIO_AO3V3 according to the schematics.
148 compatible = "regulator-fixed";
150 regulator-name = "VCC3V3";
151 regulator-min-microvolt = <3300000>;
152 regulator-max-microvolt = <3300000>;
154 vin-supply = <&p5v0>;
157 vcck: regulator-vcck {
158 /* Monolithic Power Systems MP2161 */
159 compatible = "pwm-regulator";
161 regulator-name = "VCCK";
162 regulator-min-microvolt = <860000>;
163 regulator-max-microvolt = <1140000>;
165 vin-supply = <&p5v0>;
167 pwms = <&pwm_cd 0 12218 0>;
168 pwm-dutycycle-range = <91 0>;
174 vddc_ddr: regulator-vddc-ddr {
176 * Monolithic Power Systems MP2161 configured for a fixed
177 * output voltage of 1.5V. This supplies not only DDR_VDDC but
178 * also DDR3_1V5 according to the schematics.
180 compatible = "regulator-fixed";
182 regulator-name = "DDR_VDDC";
183 regulator-min-microvolt = <1500000>;
184 regulator-max-microvolt = <1500000>;
186 vin-supply = <&p5v0>;
189 vdd_rtc: regulator-vdd-rtc {
191 * Torex Semiconductor XC6215 configured for a fixed output of
194 compatible = "regulator-fixed";
196 regulator-name = "VDD_RTC";
197 regulator-min-microvolt = <900000>;
198 regulator-max-microvolt = <900000>;
200 vin-supply = <&vcc_3v3>;
205 cpu-supply = <&vcck>;
211 snps,reset-gpio = <&gpio GPIOH_4 GPIO_ACTIVE_HIGH>;
212 snps,reset-active-low;
213 snps,reset-delays-us = <0 10000 30000>;
215 pinctrl-0 = <ð_rgmii_pins>;
216 pinctrl-names = "default";
219 phy-handle = <ð_phy>;
220 amlogic,tx-delay-ns = <4>;
223 compatible = "snps,dwmac-mdio";
224 #address-cells = <1>;
227 /* Realtek RTL8211F (0x001cc916) */
228 eth_phy: ethernet-phy@0 {
230 interrupt-parent = <&gpio_intc>;
232 interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
239 * WARNING: The USB Hub on the Odroid-C1/C1+ needs a reset signal
240 * to be turned high in order to be detected by the USB Controller.
241 * This signal should be handled by a USB specific power sequence
242 * in order to reset the Hub when USB bus is powered down.
246 gpios = <GPIOAO_4 GPIO_ACTIVE_HIGH>;
248 line-name = "usb-hub-reset";
254 pinctrl-0 = <&ir_recv_pins>;
255 pinctrl-names = "default";
260 vref-supply = <&vcc_1v8>;
266 pinctrl-0 = <&sd_b_pins>;
267 pinctrl-names = "default";
270 sd_card_slot: slot@1 {
271 compatible = "mmc-slot";
281 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
283 vmmc-supply = <&tflash_vdd>;
284 vqmmc-supply = <&tf_io>;
290 pinctrl-0 = <&pwm_c1_pins>;
291 pinctrl-names = "default";
292 clocks = <&clkc CLKID_XTAL>;
293 clock-names = "clkin0";
298 pinctrl-0 = <&uart_ao_a_pins>;
299 pinctrl-names = "default";