1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2017 PINE64
10 model = "Pine64 Rock64";
11 compatible = "pine64,rock64", "rockchip,rk3328";
19 stdout-path = "serial2:1500000n8";
22 gmac_clkin: external-gmac-clock {
23 compatible = "fixed-clock";
24 clock-frequency = <125000000>;
25 clock-output-names = "gmac_clkin";
29 vcc_sd: sdmmc-regulator {
30 compatible = "regulator-fixed";
31 gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>;
32 pinctrl-names = "default";
33 pinctrl-0 = <&sdmmc0m1_pin>;
34 regulator-name = "vcc_sd";
35 regulator-min-microvolt = <3300000>;
36 regulator-max-microvolt = <3300000>;
37 vin-supply = <&vcc_io>;
40 /* Common enable line for all of the rails mentioned in the labels */
41 vcc_host_5v: vcc_host1_5v: vcc_otg_5v: vcc-host-5v-regulator {
42 compatible = "regulator-fixed";
43 gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
44 pinctrl-names = "default";
45 pinctrl-0 = <&usb20_host_drv>;
46 regulator-name = "vcc_host_5v";
49 vin-supply = <&vcc_sys>;
53 compatible = "regulator-fixed";
54 regulator-name = "vcc_sys";
57 regulator-min-microvolt = <5000000>;
58 regulator-max-microvolt = <5000000>;
62 compatible = "gpio-ir-receiver";
63 gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_LOW>;
64 pinctrl-0 = <&ir_int>;
65 pinctrl-names = "default";
69 compatible = "gpio-leds";
72 gpios = <&rk805 1 GPIO_ACTIVE_LOW>;
73 linux,default-trigger = "mmc0";
77 gpios = <&rk805 0 GPIO_ACTIVE_LOW>;
78 linux,default-trigger = "heartbeat";
82 spdif_sound: spdif-sound {
83 compatible = "simple-audio-card";
84 simple-audio-card,name = "SPDIF";
86 simple-audio-card,cpu {
90 simple-audio-card,codec {
91 sound-dai = <&spdif_dit>;
95 spdif_dit: spdif-dit {
96 compatible = "linux,spdif-dit";
97 #sound-dai-cells = <0>;
106 mute-gpios = <&grf_gpio 0 GPIO_ACTIVE_LOW>;
111 cpu-supply = <&vdd_arm>;
115 cpu-supply = <&vdd_arm>;
119 cpu-supply = <&vdd_arm>;
123 cpu-supply = <&vdd_arm>;
131 pinctrl-names = "default";
132 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
133 vmmc-supply = <&vcc_io>;
134 vqmmc-supply = <&vcc18_emmc>;
139 assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
140 assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
141 clock_in_out = "input";
142 phy-supply = <&vcc_io>;
144 pinctrl-names = "default";
145 pinctrl-0 = <&rgmiim1_pins>;
146 snps,force_thresh_dma_mode;
147 snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
148 snps,reset-active-low;
149 snps,reset-delays-us = <0 10000 50000>;
171 compatible = "rockchip,rk805";
173 interrupt-parent = <&gpio2>;
174 interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
176 clock-output-names = "xin32k", "rk805-clkout2";
179 pinctrl-names = "default";
180 pinctrl-0 = <&pmic_int_l>;
181 rockchip,system-power-controller;
184 vcc1-supply = <&vcc_sys>;
185 vcc2-supply = <&vcc_sys>;
186 vcc3-supply = <&vcc_sys>;
187 vcc4-supply = <&vcc_sys>;
188 vcc5-supply = <&vcc_io>;
189 vcc6-supply = <&vcc_sys>;
192 vdd_logic: DCDC_REG1 {
193 regulator-name = "vdd_logic";
194 regulator-min-microvolt = <712500>;
195 regulator-max-microvolt = <1450000>;
196 regulator-ramp-delay = <12500>;
199 regulator-state-mem {
200 regulator-on-in-suspend;
201 regulator-suspend-microvolt = <1000000>;
206 regulator-name = "vdd_arm";
207 regulator-min-microvolt = <712500>;
208 regulator-max-microvolt = <1450000>;
209 regulator-ramp-delay = <12500>;
212 regulator-state-mem {
213 regulator-on-in-suspend;
214 regulator-suspend-microvolt = <950000>;
219 regulator-name = "vcc_ddr";
222 regulator-state-mem {
223 regulator-on-in-suspend;
228 regulator-name = "vcc_io";
229 regulator-min-microvolt = <3300000>;
230 regulator-max-microvolt = <3300000>;
233 regulator-state-mem {
234 regulator-on-in-suspend;
235 regulator-suspend-microvolt = <3300000>;
240 regulator-name = "vcc_18";
241 regulator-min-microvolt = <1800000>;
242 regulator-max-microvolt = <1800000>;
245 regulator-state-mem {
246 regulator-on-in-suspend;
247 regulator-suspend-microvolt = <1800000>;
251 vcc18_emmc: LDO_REG2 {
252 regulator-name = "vcc18_emmc";
253 regulator-min-microvolt = <1800000>;
254 regulator-max-microvolt = <1800000>;
257 regulator-state-mem {
258 regulator-on-in-suspend;
259 regulator-suspend-microvolt = <1800000>;
264 regulator-name = "vdd_10";
265 regulator-min-microvolt = <1000000>;
266 regulator-max-microvolt = <1000000>;
269 regulator-state-mem {
270 regulator-on-in-suspend;
271 regulator-suspend-microvolt = <1000000>;
289 vccio1-supply = <&vcc_io>;
290 vccio2-supply = <&vcc18_emmc>;
291 vccio3-supply = <&vcc_io>;
292 vccio4-supply = <&vcc_18>;
293 vccio5-supply = <&vcc_io>;
294 vccio6-supply = <&vcc_io>;
295 pmuio-supply = <&vcc_io>;
301 rockchip,pins = <2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
306 pmic_int_l: pmic-int-l {
307 rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
312 usb20_host_drv: usb20-host-drv {
313 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
323 max-frequency = <150000000>;
324 pinctrl-names = "default";
325 pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>;
326 vmmc-supply = <&vcc_sd>;
331 pinctrl-0 = <&spdifm0_tx>;
339 compatible = "jedec,spi-nor";
342 /* maximum speed for Rockchip SPI */
343 spi-max-frequency = <50000000>;
348 rockchip,hw-tshut-mode = <0>;
349 rockchip,hw-tshut-polarity = <0>;
360 u2phy_host: host-port {
364 u2phy_otg: otg-port {