Merge remote-tracking branch 'omap_dss2/for-next'
[deliverable/linux.git] / arch / arm64 / boot / dts / amlogic / meson-gxbb-odroidc2.dts
1 /*
2 * Copyright (c) 2016 Andreas Färber
3 * Copyright (c) 2016 BayLibre, Inc.
4 * Author: Kevin Hilman <khilman@kernel.org>
5 *
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
9 * whole.
10 *
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.
15 *
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.
20 *
21 * Or, alternatively,
22 *
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
30 * conditions:
31 *
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
34 *
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.
43 */
44
45 /dts-v1/;
46
47 #include "meson-gxbb.dtsi"
48 #include <dt-bindings/gpio/gpio.h>
49
50 / {
51 compatible = "hardkernel,odroid-c2", "amlogic,meson-gxbb";
52 model = "Hardkernel ODROID-C2";
53
54 aliases {
55 serial0 = &uart_AO;
56 };
57
58 chosen {
59 stdout-path = "serial0:115200n8";
60 };
61
62 memory@0 {
63 device_type = "memory";
64 reg = <0x0 0x0 0x0 0x80000000>;
65 };
66
67 leds {
68 compatible = "gpio-leds";
69 blue {
70 label = "c2:blue:alive";
71 gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_LOW>;
72 linux,default-trigger = "heartbeat";
73 default-state = "off";
74 };
75 };
76
77 mmc_iv: gpio-regulator {
78 compatible = "regulator-gpio";
79
80 regulator-name = "mmc-gpio-supply";
81 regulator-min-microvolt = <1800000>;
82 regulator-max-microvolt = <3300000>;
83
84 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
85 gpios-states = <0>;
86
87 /*
88 * Based on ODROID-C2 schematics:
89 * signal name: IO_TF_3V3N_1V8, GPIOAO bit 3
90 */
91 states = <3300000 0
92 1800000 1>;
93 };
94
95 vcc1v8: regulator-vcc1v8 {
96 compatible = "regulator-fixed";
97 regulator-name = "VCC1V8";
98 regulator-min-microvolt = <1800000>;
99 regulator-max-microvolt = <1800000>;
100 regulator-always-on;
101 };
102
103 vcc3v3: regulator-vcc3v3 {
104 compatible = "regulator-fixed";
105 regulator-name = "VCC3V3";
106 regulator-min-microvolt = <3300000>;
107 regulator-max-microvolt = <3300000>;
108 regulator-always-on;
109 };
110
111 emmc_pwrseq: emmc-pwrseq {
112 compatible = "mmc-pwrseq-emmc";
113 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
114 };
115 };
116
117 &uart_AO {
118 status = "okay";
119 pinctrl-0 = <&uart_ao_a_pins>;
120 pinctrl-names = "default";
121 };
122
123 &ethmac {
124 status = "okay";
125 pinctrl-0 = <&eth_pins>;
126 pinctrl-names = "default";
127 };
128
129 &ir {
130 status = "okay";
131 pinctrl-0 = <&remote_input_ao_pins>;
132 pinctrl-names = "default";
133 };
134
135 &sd_emmc_b {
136 status = "okay";
137 pinctrl-0 = <&sdcard_pins>;
138 pinctrl-names = "default";
139
140 bus-width = <4>;
141 cap-sd-highspeed;
142 max-frequency = <100000000>;
143
144 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
145 cd-inverted;
146
147 vmmc-supply = <&mmc_iv>;
148 voltage-ranges = <1800 3300>;
149 };
150
151 &sd_emmc_c {
152 status = "okay";
153 pinctrl-0 = <&emmc_pins>;
154 pinctrl-names = "default";
155
156 bus-width = <8>;
157 cap-sd-highspeed;
158 max-frequency = <200000000>;
159 non-removable;
160 disable-wp;
161 cap-mmc-highspeed;
162 mmc-ddr-1_8v;
163 mmc-hs200-1_8v;
164
165 mmc-pwrseq = <&emmc_pwrseq>;
166 voltage-ranges = <1800 3300>;
167 vmmc-supply = <&vcc3v3>;
168 vmmcq-sumpply = <&vcc1v8>;
169 };
This page took 0.046189 seconds and 5 git commands to generate.