]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - arch/arm/boot/dts/rk3066a-mk808.dts
Merge tag 'mips_fixes_5.1_1' into mips-next
[mirror_ubuntu-eoan-kernel.git] / arch / arm / boot / dts / rk3066a-mk808.dts
CommitLineData
fce152a6 1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
cbab8202
PJ
2/*
3 * Copyright (c) 2016 Paweł Jarosz <paweljarosz3691@gmail.com>
cbab8202
PJ
4 */
5
6/dts-v1/;
7#include "rk3066a.dtsi"
8
9/ {
10 model = "Rikomagic MK808";
11 compatible = "rikomagic,mk808", "rockchip,rk3066a";
12
13 chosen {
14 stdout-path = "serial2:115200n8";
15 };
16
17 memory@60000000 {
18 reg = <0x60000000 0x40000000>;
19 device_type = "memory";
20 };
21
22 gpio-leds {
23 compatible = "gpio-leds";
24
25 blue {
26 label = "mk808:blue:power";
e9e79d53 27 gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
cbab8202
PJ
28 default-state = "off";
29 linux,default-trigger = "default-on";
30 };
31 };
32
33 vcc_io: vcc-io {
34 compatible = "regulator-fixed";
35 regulator-name = "vcc_io";
36 regulator-min-microvolt = <3300000>;
37 regulator-max-microvolt = <3300000>;
38 };
39
40 vcc_host: usb-host-regulator {
41 compatible = "regulator-fixed";
42 enable-active-high;
e9e79d53 43 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
cbab8202
PJ
44 pinctrl-0 = <&host_drv>;
45 pinctrl-names = "default";
46 regulator-always-on;
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>;
52 };
53
54 vcc_otg: usb-otg-regulator {
55 compatible = "regulator-fixed";
56 enable-active-high;
e9e79d53 57 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
cbab8202
PJ
58 pinctrl-0 = <&otg_drv>;
59 pinctrl-names = "default";
60 regulator-always-on;
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>;
66 };
67
68 vcc_sd: sdmmc-regulator {
69 compatible = "regulator-fixed";
e9e79d53 70 gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
cbab8202
PJ
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>;
78 };
79
80 vcc_wifi: sdio-regulator {
81 compatible = "regulator-fixed";
82 enable-active-high;
e9e79d53 83 gpio = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;
cbab8202
PJ
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>;
91 };
92};
93
94&mmc0 {
95 bus-width = <4>;
96 cap-mmc-highspeed;
97 cap-sd-highspeed;
cbab8202
PJ
98 vmmc-supply = <&vcc_sd>;
99 status = "okay";
100};
101
102&mmc1 {
103 bus-width = <4>;
cbab8202 104 non-removable;
cbab8202
PJ
105 pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
106 pinctrl-names = "default";
107 vmmc-supply = <&vcc_wifi>;
108 status = "okay";
109};
110
111&pinctrl {
112 usb-host {
113 host_drv: host-drv {
114 rockchip,pins = <RK_GPIO0 6 RK_FUNC_GPIO &pcfg_pull_default>;
115 };
116 };
117
118 usb-otg {
119 otg_drv: otg-drv {
120 rockchip,pins = <RK_GPIO0 5 RK_FUNC_GPIO &pcfg_pull_default>;
121 };
122 };
123
124 sdmmc {
125 sdmmc_pwr: sdmmc-pwr {
126 rockchip,pins = <RK_GPIO3 7 RK_FUNC_GPIO &pcfg_pull_default>;
127 };
128 };
129
130 sdio {
131 wifi_pwr: wifi-pwr {
132 rockchip,pins = <RK_GPIO3 24 RK_FUNC_GPIO &pcfg_pull_none>;
133 };
134 };
135};
136
137&uart2 {
138 status = "okay";
139};
140
141&usb_host {
142 status = "okay";
143};
144
145&usb_otg {
146 status = "okay";
147};
148
149&usbphy {
150 status = "okay";
151};
152
153&wdt {
154 status = "okay";
155};