2 * Copyright (c) 2016 Paweł Jarosz <paweljarosz3691@gmail.com>
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
44 #include "rk3066a.dtsi"
47 model = "Rikomagic MK808";
48 compatible = "rikomagic,mk808", "rockchip,rk3066a";
51 stdout-path = "serial2:115200n8";
55 reg = <0x60000000 0x40000000>;
56 device_type = "memory";
60 compatible = "gpio-leds";
63 label = "mk808:blue:power";
64 gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
65 default-state = "off";
66 linux,default-trigger = "default-on";
71 compatible = "regulator-fixed";
72 regulator-name = "vcc_io";
73 regulator-min-microvolt = <3300000>;
74 regulator-max-microvolt = <3300000>;
77 vcc_host: usb-host-regulator {
78 compatible = "regulator-fixed";
80 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
81 pinctrl-0 = <&host_drv>;
82 pinctrl-names = "default";
84 regulator-name = "host-pwr";
85 regulator-min-microvolt = <5000000>;
86 regulator-max-microvolt = <5000000>;
87 startup-delay-us = <100000>;
88 vin-supply = <&vcc_io>;
91 vcc_otg: usb-otg-regulator {
92 compatible = "regulator-fixed";
94 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
95 pinctrl-0 = <&otg_drv>;
96 pinctrl-names = "default";
98 regulator-name = "vcc_otg";
99 regulator-min-microvolt = <5000000>;
100 regulator-max-microvolt = <5000000>;
101 startup-delay-us = <100000>;
102 vin-supply = <&vcc_io>;
105 vcc_sd: sdmmc-regulator {
106 compatible = "regulator-fixed";
107 gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
108 pinctrl-0 = <&sdmmc_pwr>;
109 pinctrl-names = "default";
110 regulator-name = "vcc_sd";
111 regulator-min-microvolt = <3300000>;
112 regulator-max-microvolt = <3300000>;
113 startup-delay-us = <100000>;
114 vin-supply = <&vcc_io>;
117 vcc_wifi: sdio-regulator {
118 compatible = "regulator-fixed";
120 gpio = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;
121 pinctrl-0 = <&wifi_pwr>;
122 pinctrl-names = "default";
123 regulator-name = "vcc_wifi";
124 regulator-min-microvolt = <3300000>;
125 regulator-max-microvolt = <3300000>;
126 startup-delay-us = <100000>;
127 vin-supply = <&vcc_io>;
135 vmmc-supply = <&vcc_sd>;
143 pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
144 pinctrl-names = "default";
145 vmmc-supply = <&vcc_wifi>;
152 rockchip,pins = <RK_GPIO0 6 RK_FUNC_GPIO &pcfg_pull_default>;
158 rockchip,pins = <RK_GPIO0 5 RK_FUNC_GPIO &pcfg_pull_default>;
163 sdmmc_pwr: sdmmc-pwr {
164 rockchip,pins = <RK_GPIO3 7 RK_FUNC_GPIO &pcfg_pull_default>;
170 rockchip,pins = <RK_GPIO3 24 RK_FUNC_GPIO &pcfg_pull_none>;