xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rk3066a-bqcurie2.dts (revision 724ba6751532055db75992fc6ae21c3e322e94a7)
1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Copyright (c) 2013 MundoReader S.L.
4*724ba675SRob Herring * Author: Heiko Stuebner <heiko@sntech.de>
5*724ba675SRob Herring */
6*724ba675SRob Herring
7*724ba675SRob Herring/dts-v1/;
8*724ba675SRob Herring#include <dt-bindings/input/input.h>
9*724ba675SRob Herring#include "rk3066a.dtsi"
10*724ba675SRob Herring
11*724ba675SRob Herring/ {
12*724ba675SRob Herring	model = "bq Curie 2";
13*724ba675SRob Herring	compatible = "mundoreader,bq-curie2", "rockchip,rk3066a";
14*724ba675SRob Herring
15*724ba675SRob Herring	aliases {
16*724ba675SRob Herring		mmc0 = &mmc0;
17*724ba675SRob Herring		mmc1 = &mmc1;
18*724ba675SRob Herring	};
19*724ba675SRob Herring
20*724ba675SRob Herring	memory@60000000 {
21*724ba675SRob Herring		device_type = "memory";
22*724ba675SRob Herring		reg = <0x60000000 0x40000000>;
23*724ba675SRob Herring	};
24*724ba675SRob Herring
25*724ba675SRob Herring	vdd_log: vdd-log {
26*724ba675SRob Herring		compatible = "pwm-regulator";
27*724ba675SRob Herring		pwms = <&pwm3 0 1000>;
28*724ba675SRob Herring		regulator-name = "vdd_log";
29*724ba675SRob Herring		regulator-min-microvolt = <1200000>;
30*724ba675SRob Herring		regulator-max-microvolt = <1200000>;
31*724ba675SRob Herring		regulator-always-on;
32*724ba675SRob Herring		voltage-table = <1000000 100>,
33*724ba675SRob Herring				<1200000 42>;
34*724ba675SRob Herring		status = "okay";
35*724ba675SRob Herring	};
36*724ba675SRob Herring
37*724ba675SRob Herring	vcc_sd0: fixed-regulator {
38*724ba675SRob Herring		compatible = "regulator-fixed";
39*724ba675SRob Herring		regulator-name = "sdmmc-supply";
40*724ba675SRob Herring		regulator-min-microvolt = <3000000>;
41*724ba675SRob Herring		regulator-max-microvolt = <3000000>;
42*724ba675SRob Herring		gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
43*724ba675SRob Herring		startup-delay-us = <100000>;
44*724ba675SRob Herring		vin-supply = <&vcc_io>;
45*724ba675SRob Herring	};
46*724ba675SRob Herring
47*724ba675SRob Herring	gpio-keys {
48*724ba675SRob Herring		compatible = "gpio-keys";
49*724ba675SRob Herring		autorepeat;
50*724ba675SRob Herring
51*724ba675SRob Herring		key-power {
52*724ba675SRob Herring			gpios = <&gpio6 RK_PA2 GPIO_ACTIVE_LOW>; /* GPIO6_A2 */
53*724ba675SRob Herring			linux,code = <KEY_POWER>;
54*724ba675SRob Herring			label = "GPIO Key Power";
55*724ba675SRob Herring			linux,input-type = <1>;
56*724ba675SRob Herring			wakeup-source;
57*724ba675SRob Herring			debounce-interval = <100>;
58*724ba675SRob Herring		};
59*724ba675SRob Herring		key-volume-down {
60*724ba675SRob Herring			gpios = <&gpio4 RK_PC5 GPIO_ACTIVE_LOW>; /* GPIO4_C5 */
61*724ba675SRob Herring			linux,code = <KEY_VOLUMEDOWN>;
62*724ba675SRob Herring			label = "GPIO Key Vol-";
63*724ba675SRob Herring			linux,input-type = <1>;
64*724ba675SRob Herring			debounce-interval = <100>;
65*724ba675SRob Herring		};
66*724ba675SRob Herring		/* VOL+ comes somehow thru the ADC */
67*724ba675SRob Herring	};
68*724ba675SRob Herring};
69*724ba675SRob Herring
70*724ba675SRob Herring&cpu0 {
71*724ba675SRob Herring	cpu-supply = <&vdd_arm>;
72*724ba675SRob Herring};
73*724ba675SRob Herring
74*724ba675SRob Herring&cpu1 {
75*724ba675SRob Herring	cpu-supply = <&vdd_arm>;
76*724ba675SRob Herring};
77*724ba675SRob Herring
78*724ba675SRob Herring&i2c1 {
79*724ba675SRob Herring	status = "okay";
80*724ba675SRob Herring	clock-frequency = <400000>;
81*724ba675SRob Herring
82*724ba675SRob Herring	tps: tps@2d {
83*724ba675SRob Herring		reg = <0x2d>;
84*724ba675SRob Herring
85*724ba675SRob Herring		interrupt-parent = <&gpio6>;
86*724ba675SRob Herring		interrupts = <RK_PA6 IRQ_TYPE_LEVEL_LOW>;
87*724ba675SRob Herring
88*724ba675SRob Herring		vcc5-supply = <&vcc_io>;
89*724ba675SRob Herring		vcc6-supply = <&vcc_io>;
90*724ba675SRob Herring
91*724ba675SRob Herring		regulators {
92*724ba675SRob Herring			vcc_rtc: regulator@0 {
93*724ba675SRob Herring				regulator-name = "vcc_rtc";
94*724ba675SRob Herring				regulator-always-on;
95*724ba675SRob Herring			};
96*724ba675SRob Herring
97*724ba675SRob Herring			vcc_io: regulator@1 {
98*724ba675SRob Herring				regulator-name = "vcc_io";
99*724ba675SRob Herring				regulator-always-on;
100*724ba675SRob Herring			};
101*724ba675SRob Herring
102*724ba675SRob Herring			vdd_arm: regulator@2 {
103*724ba675SRob Herring				regulator-name = "vdd_arm";
104*724ba675SRob Herring				regulator-min-microvolt = <600000>;
105*724ba675SRob Herring				regulator-max-microvolt = <1500000>;
106*724ba675SRob Herring				regulator-boot-on;
107*724ba675SRob Herring				regulator-always-on;
108*724ba675SRob Herring			};
109*724ba675SRob Herring
110*724ba675SRob Herring			vcc_ddr: regulator@3 {
111*724ba675SRob Herring				regulator-name = "vcc_ddr";
112*724ba675SRob Herring				regulator-min-microvolt = <600000>;
113*724ba675SRob Herring				regulator-max-microvolt = <1500000>;
114*724ba675SRob Herring				regulator-boot-on;
115*724ba675SRob Herring				regulator-always-on;
116*724ba675SRob Herring			};
117*724ba675SRob Herring
118*724ba675SRob Herring			vcc18_cif: regulator@5 {
119*724ba675SRob Herring				regulator-name = "vcc18_cif";
120*724ba675SRob Herring				regulator-always-on;
121*724ba675SRob Herring			};
122*724ba675SRob Herring
123*724ba675SRob Herring			vdd_11: regulator@6 {
124*724ba675SRob Herring				regulator-name = "vdd_11";
125*724ba675SRob Herring				regulator-always-on;
126*724ba675SRob Herring			};
127*724ba675SRob Herring
128*724ba675SRob Herring			vcc_25: regulator@7 {
129*724ba675SRob Herring				regulator-name = "vcc_25";
130*724ba675SRob Herring				regulator-always-on;
131*724ba675SRob Herring			};
132*724ba675SRob Herring
133*724ba675SRob Herring			vcc_18: regulator@8 {
134*724ba675SRob Herring				regulator-name = "vcc_18";
135*724ba675SRob Herring				regulator-always-on;
136*724ba675SRob Herring			};
137*724ba675SRob Herring
138*724ba675SRob Herring			vcc25_hdmi: regulator@9 {
139*724ba675SRob Herring				regulator-name = "vcc25_hdmi";
140*724ba675SRob Herring				regulator-always-on;
141*724ba675SRob Herring			};
142*724ba675SRob Herring
143*724ba675SRob Herring			vcca_33: regulator@10 {
144*724ba675SRob Herring				regulator-name = "vcca_33";
145*724ba675SRob Herring				regulator-always-on;
146*724ba675SRob Herring			};
147*724ba675SRob Herring
148*724ba675SRob Herring			vcc_tp: regulator@11 {
149*724ba675SRob Herring				regulator-name = "vcc_tp";
150*724ba675SRob Herring				regulator-always-on;
151*724ba675SRob Herring			};
152*724ba675SRob Herring
153*724ba675SRob Herring			vcc28_cif: regulator@12 {
154*724ba675SRob Herring				regulator-name = "vcc28_cif";
155*724ba675SRob Herring				regulator-always-on;
156*724ba675SRob Herring			};
157*724ba675SRob Herring		};
158*724ba675SRob Herring	};
159*724ba675SRob Herring};
160*724ba675SRob Herring
161*724ba675SRob Herring/* must be included after &tps gets defined */
162*724ba675SRob Herring#include "../tps65910.dtsi"
163*724ba675SRob Herring
164*724ba675SRob Herring&mmc0 { /* sdmmc */
165*724ba675SRob Herring	status = "okay";
166*724ba675SRob Herring	pinctrl-names = "default";
167*724ba675SRob Herring	pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
168*724ba675SRob Herring	vmmc-supply = <&vcc_sd0>;
169*724ba675SRob Herring	bus-width = <4>;
170*724ba675SRob Herring	cap-mmc-highspeed;
171*724ba675SRob Herring	cap-sd-highspeed;
172*724ba675SRob Herring	disable-wp;
173*724ba675SRob Herring};
174*724ba675SRob Herring
175*724ba675SRob Herring&mmc1 { /* wifi */
176*724ba675SRob Herring	status = "okay";
177*724ba675SRob Herring	non-removable;
178*724ba675SRob Herring
179*724ba675SRob Herring	pinctrl-names = "default";
180*724ba675SRob Herring	pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
181*724ba675SRob Herring
182*724ba675SRob Herring	bus-width = <4>;
183*724ba675SRob Herring};
184*724ba675SRob Herring
185*724ba675SRob Herring&pwm3 {
186*724ba675SRob Herring	status = "okay";
187*724ba675SRob Herring};
188*724ba675SRob Herring
189*724ba675SRob Herring&uart0 {
190*724ba675SRob Herring	status = "okay";
191*724ba675SRob Herring};
192*724ba675SRob Herring
193*724ba675SRob Herring&uart1 {
194*724ba675SRob Herring	status = "okay";
195*724ba675SRob Herring};
196*724ba675SRob Herring
197*724ba675SRob Herring&uart2 {
198*724ba675SRob Herring	status = "okay";
199*724ba675SRob Herring};
200*724ba675SRob Herring
201*724ba675SRob Herring&uart3 {
202*724ba675SRob Herring	status = "okay";
203*724ba675SRob Herring};
204*724ba675SRob Herring
205*724ba675SRob Herring&wdt {
206*724ba675SRob Herring	status = "okay";
207*724ba675SRob Herring};
208