xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rk3288-phycore-rdk.dts (revision c34e9ab9a612ee8b18273398ef75c207b01f516d)
1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2724ba675SRob Herring/*
3724ba675SRob Herring * Device tree file for Phytec PCM-947 carrier board
4724ba675SRob Herring * Copyright (C) 2017 PHYTEC Messtechnik GmbH
5724ba675SRob Herring * Author: Wadim Egorov <w.egorov@phytec.de>
6724ba675SRob Herring */
7724ba675SRob Herring
8724ba675SRob Herring/dts-v1/;
9724ba675SRob Herring
10724ba675SRob Herring#include <dt-bindings/input/input.h>
11724ba675SRob Herring#include <dt-bindings/leds/leds-pca9532.h>
12724ba675SRob Herring#include "rk3288-phycore-som.dtsi"
13724ba675SRob Herring
14724ba675SRob Herring/ {
15724ba675SRob Herring	model = "Phytec RK3288 PCM-947";
16724ba675SRob Herring	compatible = "phytec,rk3288-pcm-947", "phytec,rk3288-phycore-som", "rockchip,rk3288";
17724ba675SRob Herring
18724ba675SRob Herring	user_buttons: user-buttons {
19724ba675SRob Herring		compatible = "gpio-keys";
20724ba675SRob Herring		pinctrl-names = "default";
21724ba675SRob Herring		pinctrl-0 = <&user_button_pins>;
22724ba675SRob Herring
23724ba675SRob Herring		button-0 {
24724ba675SRob Herring			label = "home";
25724ba675SRob Herring			linux,code = <KEY_HOME>;
26724ba675SRob Herring			gpios = <&gpio8 0 GPIO_ACTIVE_HIGH>;
27724ba675SRob Herring			wakeup-source;
28724ba675SRob Herring		};
29724ba675SRob Herring
30724ba675SRob Herring		button-1 {
31724ba675SRob Herring			label = "menu";
32724ba675SRob Herring			linux,code = <KEY_MENU>;
33724ba675SRob Herring			gpios = <&gpio8 3 GPIO_ACTIVE_HIGH>;
34724ba675SRob Herring			wakeup-source;
35724ba675SRob Herring		};
36724ba675SRob Herring	};
37724ba675SRob Herring
38*2c3944d9SJohan Jonker	vcc_host0_5v: regulator-usb-host0 {
39724ba675SRob Herring		compatible = "regulator-fixed";
40724ba675SRob Herring		gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>;
41724ba675SRob Herring		pinctrl-names = "default";
42724ba675SRob Herring		pinctrl-0 = <&host0_vbus_drv>;
43724ba675SRob Herring		regulator-name = "vcc_host0_5v";
44724ba675SRob Herring		regulator-min-microvolt = <5000000>;
45724ba675SRob Herring		regulator-max-microvolt = <5000000>;
46724ba675SRob Herring		regulator-always-on;
47724ba675SRob Herring		vin-supply = <&vdd_in_otg_out>;
48724ba675SRob Herring	};
49724ba675SRob Herring
50*2c3944d9SJohan Jonker	vcc_host1_5v: regulator-usb-host1 {
51724ba675SRob Herring		compatible = "regulator-fixed";
52724ba675SRob Herring		gpio = <&gpio2 0 GPIO_ACTIVE_HIGH>;
53724ba675SRob Herring		pinctrl-names = "default";
54724ba675SRob Herring		pinctrl-0 = <&host1_vbus_drv>;
55724ba675SRob Herring		regulator-name = "vcc_host1_5v";
56724ba675SRob Herring		regulator-min-microvolt = <5000000>;
57724ba675SRob Herring		regulator-max-microvolt = <5000000>;
58724ba675SRob Herring		regulator-always-on;
59724ba675SRob Herring		vin-supply = <&vdd_in_otg_out>;
60724ba675SRob Herring	};
61724ba675SRob Herring
62*2c3944d9SJohan Jonker	vcc_otg_5v: regulator-usb-otg {
63724ba675SRob Herring		compatible = "regulator-fixed";
64724ba675SRob Herring		gpio = <&gpio2 12 GPIO_ACTIVE_HIGH>;
65724ba675SRob Herring		pinctrl-names = "default";
66724ba675SRob Herring		pinctrl-0 = <&otg_vbus_drv>;
67724ba675SRob Herring		regulator-name = "vcc_otg_5v";
68724ba675SRob Herring		regulator-min-microvolt = <5000000>;
69724ba675SRob Herring		regulator-max-microvolt = <5000000>;
70724ba675SRob Herring		regulator-always-on;
71724ba675SRob Herring		vin-supply = <&vdd_in_otg_out>;
72724ba675SRob Herring	};
73724ba675SRob Herring};
74724ba675SRob Herring
75724ba675SRob Herring&gmac {
76724ba675SRob Herring	status = "okay";
77724ba675SRob Herring};
78724ba675SRob Herring
79724ba675SRob Herring&hdmi {
80724ba675SRob Herring	status = "okay";
81724ba675SRob Herring};
82724ba675SRob Herring
83724ba675SRob Herring&i2c1 {
84724ba675SRob Herring	status = "okay";
85724ba675SRob Herring
86724ba675SRob Herring	touchscreen@44 {
87724ba675SRob Herring		compatible = "st,stmpe811";
88724ba675SRob Herring		reg = <0x44>;
89724ba675SRob Herring	};
90724ba675SRob Herring
91724ba675SRob Herring	adc@64 {
92724ba675SRob Herring		compatible = "maxim,max1037";
93724ba675SRob Herring		reg = <0x64>;
94724ba675SRob Herring	};
95724ba675SRob Herring
96724ba675SRob Herring	i2c_rtc: rtc@68 {
97724ba675SRob Herring		compatible = "rv4162";
98724ba675SRob Herring		reg = <0x68>;
99724ba675SRob Herring		pinctrl-names = "default";
100724ba675SRob Herring		pinctrl-0 = <&i2c_rtc_int>;
101724ba675SRob Herring		interrupt-parent = <&gpio5>;
102724ba675SRob Herring		interrupts = <10 0>;
103724ba675SRob Herring	};
104724ba675SRob Herring};
105724ba675SRob Herring
106724ba675SRob Herring&i2c3 {
107724ba675SRob Herring	status = "okay";
108724ba675SRob Herring
109724ba675SRob Herring	i2c_eeprom_cb: eeprom@51 {
110724ba675SRob Herring		compatible = "atmel,24c32";
111724ba675SRob Herring		reg = <0x51>;
112724ba675SRob Herring		pagesize = <32>;
113724ba675SRob Herring	};
114724ba675SRob Herring};
115724ba675SRob Herring
116724ba675SRob Herring&i2c4 {
117724ba675SRob Herring	status = "okay";
118724ba675SRob Herring
119724ba675SRob Herring	/* PCA9533 - 4-bit LED dimmer */
120724ba675SRob Herring	leddim: leddimmer@62 {
121724ba675SRob Herring		compatible = "nxp,pca9533";
122724ba675SRob Herring		reg = <0x62>;
123724ba675SRob Herring
124724ba675SRob Herring		led1 {
125724ba675SRob Herring			label = "red:user1";
126724ba675SRob Herring			linux,default-trigger = "none";
127724ba675SRob Herring			type = <PCA9532_TYPE_LED>;
128724ba675SRob Herring		};
129724ba675SRob Herring
130724ba675SRob Herring		led2 {
131724ba675SRob Herring			label = "green:user2";
132724ba675SRob Herring			linux,default-trigger = "none";
133724ba675SRob Herring			type = <PCA9532_TYPE_LED>;
134724ba675SRob Herring		};
135724ba675SRob Herring
136724ba675SRob Herring		led3 {
137724ba675SRob Herring			label = "blue:user3";
138724ba675SRob Herring			linux,default-trigger = "none";
139724ba675SRob Herring			type = <PCA9532_TYPE_LED>;
140724ba675SRob Herring		};
141724ba675SRob Herring
142724ba675SRob Herring		led4 {
143724ba675SRob Herring			label = "red:user4";
144724ba675SRob Herring			linux,default-trigger = "none";
145724ba675SRob Herring			type = <PCA9532_TYPE_LED>;
146724ba675SRob Herring		};
147724ba675SRob Herring	};
148724ba675SRob Herring};
149724ba675SRob Herring
150724ba675SRob Herring&i2c5 {
151724ba675SRob Herring	status = "okay";
152724ba675SRob Herring};
153724ba675SRob Herring
154724ba675SRob Herring&pinctrl {
155724ba675SRob Herring	pcfg_pull_up_drv_12ma: pcfg-pull-up-drv-12ma {
156724ba675SRob Herring		bias-pull-up;
157724ba675SRob Herring		drive-strength = <12>;
158724ba675SRob Herring	};
159724ba675SRob Herring
160724ba675SRob Herring	buttons {
161724ba675SRob Herring		user_button_pins: user-button-pins {
162724ba675SRob Herring			/* button 1 */
163724ba675SRob Herring			rockchip,pins = <8 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>,
164724ba675SRob Herring			/* button 2 */
165724ba675SRob Herring					<8 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
166724ba675SRob Herring		};
167724ba675SRob Herring	};
168724ba675SRob Herring
169724ba675SRob Herring	rv4162 {
170724ba675SRob Herring		i2c_rtc_int: i2c-rtc-int {
171724ba675SRob Herring			rockchip,pins = <5 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
172724ba675SRob Herring		};
173724ba675SRob Herring	};
174724ba675SRob Herring
175724ba675SRob Herring	sdmmc {
176724ba675SRob Herring		/*
177724ba675SRob Herring		 * Default drive strength isn't enough to achieve even
178724ba675SRob Herring		 * high-speed mode on pcm-947 board so bump up to 12 mA.
179724ba675SRob Herring		 */
180724ba675SRob Herring		sdmmc_bus4: sdmmc-bus4 {
181724ba675SRob Herring			rockchip,pins = <6 RK_PC0 1 &pcfg_pull_up_drv_12ma>,
182724ba675SRob Herring					<6 RK_PC1 1 &pcfg_pull_up_drv_12ma>,
183724ba675SRob Herring					<6 RK_PC2 1 &pcfg_pull_up_drv_12ma>,
184724ba675SRob Herring					<6 RK_PC3 1 &pcfg_pull_up_drv_12ma>;
185724ba675SRob Herring		};
186724ba675SRob Herring
187724ba675SRob Herring		sdmmc_clk: sdmmc-clk {
188724ba675SRob Herring			rockchip,pins = <6 RK_PC4 1 &pcfg_pull_none_12ma>;
189724ba675SRob Herring		};
190724ba675SRob Herring
191724ba675SRob Herring		sdmmc_cmd: sdmmc-cmd {
192724ba675SRob Herring			rockchip,pins = <6 RK_PC5 1 &pcfg_pull_up_drv_12ma>;
193724ba675SRob Herring		};
194724ba675SRob Herring
195724ba675SRob Herring		sdmmc_pwr: sdmmc-pwr {
196724ba675SRob Herring			rockchip,pins = <7 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
197724ba675SRob Herring		};
198724ba675SRob Herring	};
199724ba675SRob Herring
200724ba675SRob Herring	touchscreen {
201724ba675SRob Herring		ts_irq_pin: ts-irq-pin {
202724ba675SRob Herring			rockchip,pins = <5 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
203724ba675SRob Herring		};
204724ba675SRob Herring	};
205724ba675SRob Herring
206724ba675SRob Herring	usb_host {
207724ba675SRob Herring		host0_vbus_drv: host0-vbus-drv {
208724ba675SRob Herring			rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
209724ba675SRob Herring		};
210724ba675SRob Herring
211724ba675SRob Herring		host1_vbus_drv: host1-vbus-drv {
212724ba675SRob Herring			rockchip,pins = <2 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
213724ba675SRob Herring		};
214724ba675SRob Herring	};
215724ba675SRob Herring
216724ba675SRob Herring	usb_otg {
217724ba675SRob Herring		otg_vbus_drv: otg-vbus-drv {
218724ba675SRob Herring			rockchip,pins = <2 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
219724ba675SRob Herring		};
220724ba675SRob Herring	};
221724ba675SRob Herring};
222724ba675SRob Herring
223724ba675SRob Herring&sdmmc {
224724ba675SRob Herring	bus-width = <4>;
225724ba675SRob Herring	cap-mmc-highspeed;
226724ba675SRob Herring	cap-sd-highspeed;
227724ba675SRob Herring	card-detect-delay = <200>;
228724ba675SRob Herring	disable-wp;
229724ba675SRob Herring	pinctrl-names = "default";
230724ba675SRob Herring	pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
231724ba675SRob Herring	sd-uhs-sdr12;
232724ba675SRob Herring	sd-uhs-sdr25;
233724ba675SRob Herring	sd-uhs-sdr50;
234724ba675SRob Herring	sd-uhs-sdr104;
235724ba675SRob Herring	vmmc-supply = <&vdd_sd>;
236724ba675SRob Herring	vqmmc-supply = <&vdd_io_sd>;
237724ba675SRob Herring	status = "okay";
238724ba675SRob Herring};
239724ba675SRob Herring
240724ba675SRob Herring&uart0 {
241724ba675SRob Herring	pinctrl-names = "default";
242724ba675SRob Herring	pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
243724ba675SRob Herring	status = "okay";
244724ba675SRob Herring};
245724ba675SRob Herring
246724ba675SRob Herring&uart2 {
247724ba675SRob Herring	status = "okay";
248724ba675SRob Herring};
249724ba675SRob Herring
250724ba675SRob Herring&usbphy {
251724ba675SRob Herring	status = "okay";
252724ba675SRob Herring};
253724ba675SRob Herring
254724ba675SRob Herring&usb_host0_ehci {
255724ba675SRob Herring	status = "okay";
256724ba675SRob Herring};
257724ba675SRob Herring
258724ba675SRob Herring&usb_host1 {
259724ba675SRob Herring	status = "okay";
260724ba675SRob Herring};
261724ba675SRob Herring
262724ba675SRob Herring&usb_otg {
263724ba675SRob Herring	status = "okay";
264724ba675SRob Herring};
265