1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2016 Paweł Jarosz <paweljarosz3691@gmail.com>
7 #include <dt-bindings/input/input.h>
8 #include "rk3066a.dtsi"
11 model = "Rikomagic MK808";
12 compatible = "rikomagic,mk808", "rockchip,rk3066a";
20 stdout-path = "serial2:115200n8";
24 reg = <0x60000000 0x40000000>;
25 device_type = "memory";
29 compatible = "adc-keys";
30 io-channels = <&saradc 1>;
31 io-channel-names = "buttons";
32 keyup-threshold-microvolt = <2500000>;
33 poll-interval = <100>;
37 linux,code = <KEY_VENDOR>;
38 press-threshold-microvolt = <0>;
43 compatible = "gpio-leds";
46 label = "mk808:blue:power";
47 gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
48 default-state = "off";
49 linux,default-trigger = "default-on";
54 compatible = "hdmi-connector";
58 hdmi_con_in: endpoint {
59 remote-endpoint = <&hdmi_out_con>;
65 compatible = "regulator-fixed";
66 regulator-name = "vcc_2v5";
67 regulator-min-microvolt = <2500000>;
68 regulator-max-microvolt = <2500000>;
72 compatible = "regulator-fixed";
73 regulator-name = "vcc_io";
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
78 vcc_host: usb-host-regulator {
79 compatible = "regulator-fixed";
81 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
82 pinctrl-0 = <&host_drv>;
83 pinctrl-names = "default";
85 regulator-name = "host-pwr";
86 regulator-min-microvolt = <5000000>;
87 regulator-max-microvolt = <5000000>;
88 startup-delay-us = <100000>;
89 vin-supply = <&vcc_io>;
92 vcc_otg: usb-otg-regulator {
93 compatible = "regulator-fixed";
95 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
96 pinctrl-0 = <&otg_drv>;
97 pinctrl-names = "default";
99 regulator-name = "vcc_otg";
100 regulator-min-microvolt = <5000000>;
101 regulator-max-microvolt = <5000000>;
102 startup-delay-us = <100000>;
103 vin-supply = <&vcc_io>;
106 vcc_sd: sdmmc-regulator {
107 compatible = "regulator-fixed";
108 gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
109 pinctrl-0 = <&sdmmc_pwr>;
110 pinctrl-names = "default";
111 regulator-name = "vcc_sd";
112 regulator-min-microvolt = <3300000>;
113 regulator-max-microvolt = <3300000>;
114 startup-delay-us = <100000>;
115 vin-supply = <&vcc_io>;
118 vcc_wifi: sdio-regulator {
119 compatible = "regulator-fixed";
121 gpio = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;
122 pinctrl-0 = <&wifi_pwr>;
123 pinctrl-names = "default";
124 regulator-name = "vcc_wifi";
125 regulator-min-microvolt = <3300000>;
126 regulator-max-microvolt = <3300000>;
127 startup-delay-us = <100000>;
128 vin-supply = <&vcc_io>;
141 hdmi_out_con: endpoint {
142 remote-endpoint = <&hdmi_con_in>;
150 vmmc-supply = <&vcc_sd>;
157 pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
158 pinctrl-names = "default";
159 vmmc-supply = <&vcc_wifi>;
166 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_default>;
172 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_default>;
177 sdmmc_pwr: sdmmc-pwr {
178 rockchip,pins = <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_default>;
184 rockchip,pins = <3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
190 vref-supply = <&vcc_2v5>;