1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2016 Paweł Jarosz <paweljarosz3691@gmail.com>
7 #include "rk3066a.dtsi"
10 model = "Rikomagic MK808";
11 compatible = "rikomagic,mk808", "rockchip,rk3066a";
14 stdout-path = "serial2:115200n8";
18 reg = <0x60000000 0x40000000>;
19 device_type = "memory";
23 compatible = "gpio-leds";
26 label = "mk808:blue:power";
27 gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
28 default-state = "off";
29 linux,default-trigger = "default-on";
34 compatible = "regulator-fixed";
35 regulator-name = "vcc_io";
36 regulator-min-microvolt = <3300000>;
37 regulator-max-microvolt = <3300000>;
40 vcc_host: usb-host-regulator {
41 compatible = "regulator-fixed";
43 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
44 pinctrl-0 = <&host_drv>;
45 pinctrl-names = "default";
47 regulator-name = "host-pwr";
48 regulator-min-microvolt = <5000000>;
49 regulator-max-microvolt = <5000000>;
50 startup-delay-us = <100000>;
51 vin-supply = <&vcc_io>;
54 vcc_otg: usb-otg-regulator {
55 compatible = "regulator-fixed";
57 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
58 pinctrl-0 = <&otg_drv>;
59 pinctrl-names = "default";
61 regulator-name = "vcc_otg";
62 regulator-min-microvolt = <5000000>;
63 regulator-max-microvolt = <5000000>;
64 startup-delay-us = <100000>;
65 vin-supply = <&vcc_io>;
68 vcc_sd: sdmmc-regulator {
69 compatible = "regulator-fixed";
70 gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
71 pinctrl-0 = <&sdmmc_pwr>;
72 pinctrl-names = "default";
73 regulator-name = "vcc_sd";
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
76 startup-delay-us = <100000>;
77 vin-supply = <&vcc_io>;
80 vcc_wifi: sdio-regulator {
81 compatible = "regulator-fixed";
83 gpio = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;
84 pinctrl-0 = <&wifi_pwr>;
85 pinctrl-names = "default";
86 regulator-name = "vcc_wifi";
87 regulator-min-microvolt = <3300000>;
88 regulator-max-microvolt = <3300000>;
89 startup-delay-us = <100000>;
90 vin-supply = <&vcc_io>;
98 vmmc-supply = <&vcc_sd>;
106 pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
107 pinctrl-names = "default";
108 vmmc-supply = <&vcc_wifi>;
115 rockchip,pins = <RK_GPIO0 6 RK_FUNC_GPIO &pcfg_pull_default>;
121 rockchip,pins = <RK_GPIO0 5 RK_FUNC_GPIO &pcfg_pull_default>;
126 sdmmc_pwr: sdmmc-pwr {
127 rockchip,pins = <RK_GPIO3 7 RK_FUNC_GPIO &pcfg_pull_default>;
133 rockchip,pins = <RK_GPIO3 24 RK_FUNC_GPIO &pcfg_pull_none>;