xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rk3066a-bqcurie2.dts (revision c34e9ab9a612ee8b18273398ef75c207b01f516d)
1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2724ba675SRob Herring/*
3724ba675SRob Herring * Copyright (c) 2013 MundoReader S.L.
4724ba675SRob Herring * Author: Heiko Stuebner <heiko@sntech.de>
5724ba675SRob Herring */
6724ba675SRob Herring
7724ba675SRob Herring/dts-v1/;
8724ba675SRob Herring#include <dt-bindings/input/input.h>
9724ba675SRob Herring#include "rk3066a.dtsi"
10724ba675SRob Herring
11724ba675SRob Herring/ {
12724ba675SRob Herring	model = "bq Curie 2";
13724ba675SRob Herring	compatible = "mundoreader,bq-curie2", "rockchip,rk3066a";
14724ba675SRob Herring
15724ba675SRob Herring	aliases {
16724ba675SRob Herring		mmc0 = &mmc0;
17724ba675SRob Herring		mmc1 = &mmc1;
18724ba675SRob Herring	};
19724ba675SRob Herring
20724ba675SRob Herring	memory@60000000 {
21724ba675SRob Herring		device_type = "memory";
22724ba675SRob Herring		reg = <0x60000000 0x40000000>;
23724ba675SRob Herring	};
24724ba675SRob Herring
25*2c3944d9SJohan Jonker	vdd_log: regulator-vdd-log {
26724ba675SRob Herring		compatible = "pwm-regulator";
27724ba675SRob Herring		pwms = <&pwm3 0 1000>;
28724ba675SRob Herring		regulator-name = "vdd_log";
29724ba675SRob Herring		regulator-min-microvolt = <1200000>;
30724ba675SRob Herring		regulator-max-microvolt = <1200000>;
31724ba675SRob Herring		regulator-always-on;
32724ba675SRob Herring		voltage-table = <1000000 100>,
33724ba675SRob Herring				<1200000 42>;
34724ba675SRob Herring		status = "okay";
35724ba675SRob Herring	};
36724ba675SRob Herring
37*2c3944d9SJohan Jonker	vcc_sd0: regulator-fixed {
38724ba675SRob Herring		compatible = "regulator-fixed";
39724ba675SRob Herring		regulator-name = "sdmmc-supply";
40724ba675SRob Herring		regulator-min-microvolt = <3000000>;
41724ba675SRob Herring		regulator-max-microvolt = <3000000>;
42724ba675SRob Herring		gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
43724ba675SRob Herring		startup-delay-us = <100000>;
44724ba675SRob Herring		vin-supply = <&vcc_io>;
45724ba675SRob Herring	};
46724ba675SRob Herring
47724ba675SRob Herring	gpio-keys {
48724ba675SRob Herring		compatible = "gpio-keys";
49724ba675SRob Herring		autorepeat;
50724ba675SRob Herring
51724ba675SRob Herring		key-power {
52724ba675SRob Herring			gpios = <&gpio6 RK_PA2 GPIO_ACTIVE_LOW>; /* GPIO6_A2 */
53724ba675SRob Herring			linux,code = <KEY_POWER>;
54724ba675SRob Herring			label = "GPIO Key Power";
55724ba675SRob Herring			linux,input-type = <1>;
56724ba675SRob Herring			wakeup-source;
57724ba675SRob Herring			debounce-interval = <100>;
58724ba675SRob Herring		};
59724ba675SRob Herring		key-volume-down {
60724ba675SRob Herring			gpios = <&gpio4 RK_PC5 GPIO_ACTIVE_LOW>; /* GPIO4_C5 */
61724ba675SRob Herring			linux,code = <KEY_VOLUMEDOWN>;
62724ba675SRob Herring			label = "GPIO Key Vol-";
63724ba675SRob Herring			linux,input-type = <1>;
64724ba675SRob Herring			debounce-interval = <100>;
65724ba675SRob Herring		};
66724ba675SRob Herring		/* VOL+ comes somehow thru the ADC */
67724ba675SRob Herring	};
68724ba675SRob Herring};
69724ba675SRob Herring
70724ba675SRob Herring&cpu0 {
71724ba675SRob Herring	cpu-supply = <&vdd_arm>;
72724ba675SRob Herring};
73724ba675SRob Herring
74724ba675SRob Herring&cpu1 {
75724ba675SRob Herring	cpu-supply = <&vdd_arm>;
76724ba675SRob Herring};
77724ba675SRob Herring
78724ba675SRob Herring&i2c1 {
79724ba675SRob Herring	status = "okay";
80724ba675SRob Herring	clock-frequency = <400000>;
81724ba675SRob Herring
82724ba675SRob Herring	tps: tps@2d {
83724ba675SRob Herring		reg = <0x2d>;
84724ba675SRob Herring
85724ba675SRob Herring		interrupt-parent = <&gpio6>;
86724ba675SRob Herring		interrupts = <RK_PA6 IRQ_TYPE_LEVEL_LOW>;
87724ba675SRob Herring
88724ba675SRob Herring		vcc5-supply = <&vcc_io>;
89724ba675SRob Herring		vcc6-supply = <&vcc_io>;
90724ba675SRob Herring
91724ba675SRob Herring		regulators {
92724ba675SRob Herring			vcc_rtc: regulator@0 {
93724ba675SRob Herring				regulator-name = "vcc_rtc";
94724ba675SRob Herring				regulator-always-on;
95724ba675SRob Herring			};
96724ba675SRob Herring
97724ba675SRob Herring			vcc_io: regulator@1 {
98724ba675SRob Herring				regulator-name = "vcc_io";
99724ba675SRob Herring				regulator-always-on;
100724ba675SRob Herring			};
101724ba675SRob Herring
102724ba675SRob Herring			vdd_arm: regulator@2 {
103724ba675SRob Herring				regulator-name = "vdd_arm";
104724ba675SRob Herring				regulator-min-microvolt = <600000>;
105724ba675SRob Herring				regulator-max-microvolt = <1500000>;
106724ba675SRob Herring				regulator-boot-on;
107724ba675SRob Herring				regulator-always-on;
108724ba675SRob Herring			};
109724ba675SRob Herring
110724ba675SRob Herring			vcc_ddr: regulator@3 {
111724ba675SRob Herring				regulator-name = "vcc_ddr";
112724ba675SRob Herring				regulator-min-microvolt = <600000>;
113724ba675SRob Herring				regulator-max-microvolt = <1500000>;
114724ba675SRob Herring				regulator-boot-on;
115724ba675SRob Herring				regulator-always-on;
116724ba675SRob Herring			};
117724ba675SRob Herring
118724ba675SRob Herring			vcc18_cif: regulator@5 {
119724ba675SRob Herring				regulator-name = "vcc18_cif";
120724ba675SRob Herring				regulator-always-on;
121724ba675SRob Herring			};
122724ba675SRob Herring
123724ba675SRob Herring			vdd_11: regulator@6 {
124724ba675SRob Herring				regulator-name = "vdd_11";
125724ba675SRob Herring				regulator-always-on;
126724ba675SRob Herring			};
127724ba675SRob Herring
128724ba675SRob Herring			vcc_25: regulator@7 {
129724ba675SRob Herring				regulator-name = "vcc_25";
130724ba675SRob Herring				regulator-always-on;
131724ba675SRob Herring			};
132724ba675SRob Herring
133724ba675SRob Herring			vcc_18: regulator@8 {
134724ba675SRob Herring				regulator-name = "vcc_18";
135724ba675SRob Herring				regulator-always-on;
136724ba675SRob Herring			};
137724ba675SRob Herring
138724ba675SRob Herring			vcc25_hdmi: regulator@9 {
139724ba675SRob Herring				regulator-name = "vcc25_hdmi";
140724ba675SRob Herring				regulator-always-on;
141724ba675SRob Herring			};
142724ba675SRob Herring
143724ba675SRob Herring			vcca_33: regulator@10 {
144724ba675SRob Herring				regulator-name = "vcca_33";
145724ba675SRob Herring				regulator-always-on;
146724ba675SRob Herring			};
147724ba675SRob Herring
148724ba675SRob Herring			vcc_tp: regulator@11 {
149724ba675SRob Herring				regulator-name = "vcc_tp";
150724ba675SRob Herring				regulator-always-on;
151724ba675SRob Herring			};
152724ba675SRob Herring
153724ba675SRob Herring			vcc28_cif: regulator@12 {
154724ba675SRob Herring				regulator-name = "vcc28_cif";
155724ba675SRob Herring				regulator-always-on;
156724ba675SRob Herring			};
157724ba675SRob Herring		};
158724ba675SRob Herring	};
159724ba675SRob Herring};
160724ba675SRob Herring
161724ba675SRob Herring/* must be included after &tps gets defined */
162724ba675SRob Herring#include "../tps65910.dtsi"
163724ba675SRob Herring
164724ba675SRob Herring&mmc0 { /* sdmmc */
165724ba675SRob Herring	status = "okay";
166724ba675SRob Herring	pinctrl-names = "default";
167724ba675SRob Herring	pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
168724ba675SRob Herring	vmmc-supply = <&vcc_sd0>;
169724ba675SRob Herring	bus-width = <4>;
170724ba675SRob Herring	cap-mmc-highspeed;
171724ba675SRob Herring	cap-sd-highspeed;
172724ba675SRob Herring	disable-wp;
173724ba675SRob Herring};
174724ba675SRob Herring
175724ba675SRob Herring&mmc1 { /* wifi */
176724ba675SRob Herring	status = "okay";
177724ba675SRob Herring	non-removable;
178724ba675SRob Herring
179724ba675SRob Herring	pinctrl-names = "default";
180724ba675SRob Herring	pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
181724ba675SRob Herring
182724ba675SRob Herring	bus-width = <4>;
183724ba675SRob Herring};
184724ba675SRob Herring
185724ba675SRob Herring&pwm3 {
186724ba675SRob Herring	status = "okay";
187724ba675SRob Herring};
188724ba675SRob Herring
189724ba675SRob Herring&uart0 {
190724ba675SRob Herring	status = "okay";
191724ba675SRob Herring};
192724ba675SRob Herring
193724ba675SRob Herring&uart1 {
194724ba675SRob Herring	status = "okay";
195724ba675SRob Herring};
196724ba675SRob Herring
197724ba675SRob Herring&uart2 {
198724ba675SRob Herring	status = "okay";
199724ba675SRob Herring};
200724ba675SRob Herring
201724ba675SRob Herring&uart3 {
202724ba675SRob Herring	status = "okay";
203724ba675SRob Herring};
204724ba675SRob Herring
205724ba675SRob Herring&wdt {
206724ba675SRob Herring	status = "okay";
207724ba675SRob Herring};
208