1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2017 PINE64
10 model = "Pine64 Rock64";
11 compatible = "pine64,rock64", "rockchip,rk3328";
14 stdout-path = "serial2:1500000n8";
17 gmac_clkin: external-gmac-clock {
18 compatible = "fixed-clock";
19 clock-frequency = <125000000>;
20 clock-output-names = "gmac_clkin";
24 vcc_sd: sdmmc-regulator {
25 compatible = "regulator-fixed";
26 gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>;
27 pinctrl-names = "default";
28 pinctrl-0 = <&sdmmc0m1_pin>;
29 regulator-name = "vcc_sd";
30 regulator-min-microvolt = <3300000>;
31 regulator-max-microvolt = <3300000>;
32 vin-supply = <&vcc_io>;
35 vcc_host_5v: vcc-host-5v-regulator {
36 compatible = "regulator-fixed";
37 gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
38 pinctrl-names = "default";
39 pinctrl-0 = <&usb20_host_drv>;
40 regulator-name = "vcc_host_5v";
43 vin-supply = <&vcc_sys>;
46 vcc_host1_5v: vcc_otg_5v: vcc-host1-5v-regulator {
47 compatible = "regulator-fixed";
48 gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
49 pinctrl-names = "default";
50 pinctrl-0 = <&usb20_host_drv>;
51 regulator-name = "vcc_host1_5v";
54 vin-supply = <&vcc_sys>;
58 compatible = "regulator-fixed";
59 regulator-name = "vcc_sys";
62 regulator-min-microvolt = <5000000>;
63 regulator-max-microvolt = <5000000>;
67 compatible = "gpio-ir-receiver";
68 gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_LOW>;
69 pinctrl-0 = <&ir_int>;
70 pinctrl-names = "default";
74 compatible = "gpio-leds";
77 gpios = <&rk805 1 GPIO_ACTIVE_LOW>;
78 linux,default-trigger = "mmc0";
82 gpios = <&rk805 0 GPIO_ACTIVE_LOW>;
83 linux,default-trigger = "heartbeat";
87 spdif_sound: spdif-sound {
88 compatible = "simple-audio-card";
89 simple-audio-card,name = "SPDIF";
91 simple-audio-card,cpu {
95 simple-audio-card,codec {
96 sound-dai = <&spdif_dit>;
100 spdif_dit: spdif-dit {
101 compatible = "linux,spdif-dit";
102 #sound-dai-cells = <0>;
111 mute-gpios = <&grf_gpio 0 GPIO_ACTIVE_LOW>;
116 cpu-supply = <&vdd_arm>;
120 cpu-supply = <&vdd_arm>;
124 cpu-supply = <&vdd_arm>;
128 cpu-supply = <&vdd_arm>;
136 pinctrl-names = "default";
137 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
138 vmmc-supply = <&vcc_io>;
139 vqmmc-supply = <&vcc18_emmc>;
144 assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
145 assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
146 clock_in_out = "input";
147 phy-supply = <&vcc_io>;
149 pinctrl-names = "default";
150 pinctrl-0 = <&rgmiim1_pins>;
151 snps,force_thresh_dma_mode;
152 snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
153 snps,reset-active-low;
154 snps,reset-delays-us = <0 10000 50000>;
176 compatible = "rockchip,rk805";
178 interrupt-parent = <&gpio2>;
179 interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
181 clock-output-names = "xin32k", "rk805-clkout2";
184 pinctrl-names = "default";
185 pinctrl-0 = <&pmic_int_l>;
186 rockchip,system-power-controller;
189 vcc1-supply = <&vcc_sys>;
190 vcc2-supply = <&vcc_sys>;
191 vcc3-supply = <&vcc_sys>;
192 vcc4-supply = <&vcc_sys>;
193 vcc5-supply = <&vcc_io>;
194 vcc6-supply = <&vcc_sys>;
197 vdd_logic: DCDC_REG1 {
198 regulator-name = "vdd_logic";
199 regulator-min-microvolt = <712500>;
200 regulator-max-microvolt = <1450000>;
201 regulator-ramp-delay = <12500>;
204 regulator-state-mem {
205 regulator-on-in-suspend;
206 regulator-suspend-microvolt = <1000000>;
211 regulator-name = "vdd_arm";
212 regulator-min-microvolt = <712500>;
213 regulator-max-microvolt = <1450000>;
214 regulator-ramp-delay = <12500>;
217 regulator-state-mem {
218 regulator-on-in-suspend;
219 regulator-suspend-microvolt = <950000>;
224 regulator-name = "vcc_ddr";
227 regulator-state-mem {
228 regulator-on-in-suspend;
233 regulator-name = "vcc_io";
234 regulator-min-microvolt = <3300000>;
235 regulator-max-microvolt = <3300000>;
238 regulator-state-mem {
239 regulator-on-in-suspend;
240 regulator-suspend-microvolt = <3300000>;
245 regulator-name = "vcc_18";
246 regulator-min-microvolt = <1800000>;
247 regulator-max-microvolt = <1800000>;
250 regulator-state-mem {
251 regulator-on-in-suspend;
252 regulator-suspend-microvolt = <1800000>;
256 vcc18_emmc: LDO_REG2 {
257 regulator-name = "vcc18_emmc";
258 regulator-min-microvolt = <1800000>;
259 regulator-max-microvolt = <1800000>;
262 regulator-state-mem {
263 regulator-on-in-suspend;
264 regulator-suspend-microvolt = <1800000>;
269 regulator-name = "vdd_10";
270 regulator-min-microvolt = <1000000>;
271 regulator-max-microvolt = <1000000>;
274 regulator-state-mem {
275 regulator-on-in-suspend;
276 regulator-suspend-microvolt = <1000000>;
294 vccio1-supply = <&vcc_io>;
295 vccio2-supply = <&vcc18_emmc>;
296 vccio3-supply = <&vcc_io>;
297 vccio4-supply = <&vcc_18>;
298 vccio5-supply = <&vcc_io>;
299 vccio6-supply = <&vcc_io>;
300 pmuio-supply = <&vcc_io>;
306 rockchip,pins = <2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
311 pmic_int_l: pmic-int-l {
312 rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
317 usb20_host_drv: usb20-host-drv {
318 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
328 max-frequency = <150000000>;
329 pinctrl-names = "default";
330 pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>;
331 vmmc-supply = <&vcc_sd>;
336 pinctrl-0 = <&spdifm0_tx>;
344 compatible = "jedec,spi-nor";
347 /* maximum speed for Rockchip SPI */
348 spi-max-frequency = <50000000>;
353 rockchip,hw-tshut-mode = <0>;
354 rockchip,hw-tshut-polarity = <0>;
365 u2phy_host: host-port {
369 u2phy_otg: otg-port {