0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Copyright (c) 2016 Paweł Jarosz <paweljarosz3691@gmail.com>
0004 */
0005
0006 /dts-v1/;
0007 #include <dt-bindings/input/input.h>
0008 #include "rk3066a.dtsi"
0009
0010 / {
0011 model = "Rikomagic MK808";
0012 compatible = "rikomagic,mk808", "rockchip,rk3066a";
0013
0014 aliases {
0015 mmc0 = &mmc0;
0016 mmc1 = &mmc1;
0017 };
0018
0019 chosen {
0020 stdout-path = "serial2:115200n8";
0021 };
0022
0023 memory@60000000 {
0024 reg = <0x60000000 0x40000000>;
0025 device_type = "memory";
0026 };
0027
0028 adc-keys {
0029 compatible = "adc-keys";
0030 io-channels = <&saradc 1>;
0031 io-channel-names = "buttons";
0032 keyup-threshold-microvolt = <2500000>;
0033 poll-interval = <100>;
0034
0035 recovery {
0036 label = "recovery";
0037 linux,code = <KEY_VENDOR>;
0038 press-threshold-microvolt = <0>;
0039 };
0040 };
0041
0042 gpio-leds {
0043 compatible = "gpio-leds";
0044
0045 blue_led: led-0 {
0046 label = "mk808:blue:power";
0047 gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
0048 default-state = "off";
0049 linux,default-trigger = "default-on";
0050 };
0051 };
0052
0053 hdmi_con {
0054 compatible = "hdmi-connector";
0055 type = "c";
0056
0057 port {
0058 hdmi_con_in: endpoint {
0059 remote-endpoint = <&hdmi_out_con>;
0060 };
0061 };
0062 };
0063
0064 vcc_2v5: vcc-2v5 {
0065 compatible = "regulator-fixed";
0066 regulator-name = "vcc_2v5";
0067 regulator-min-microvolt = <2500000>;
0068 regulator-max-microvolt = <2500000>;
0069 };
0070
0071 vcc_io: vcc-io {
0072 compatible = "regulator-fixed";
0073 regulator-name = "vcc_io";
0074 regulator-min-microvolt = <3300000>;
0075 regulator-max-microvolt = <3300000>;
0076 };
0077
0078 vcc_host: usb-host-regulator {
0079 compatible = "regulator-fixed";
0080 enable-active-high;
0081 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
0082 pinctrl-0 = <&host_drv>;
0083 pinctrl-names = "default";
0084 regulator-always-on;
0085 regulator-name = "host-pwr";
0086 regulator-min-microvolt = <5000000>;
0087 regulator-max-microvolt = <5000000>;
0088 startup-delay-us = <100000>;
0089 vin-supply = <&vcc_io>;
0090 };
0091
0092 vcc_otg: usb-otg-regulator {
0093 compatible = "regulator-fixed";
0094 enable-active-high;
0095 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
0096 pinctrl-0 = <&otg_drv>;
0097 pinctrl-names = "default";
0098 regulator-always-on;
0099 regulator-name = "vcc_otg";
0100 regulator-min-microvolt = <5000000>;
0101 regulator-max-microvolt = <5000000>;
0102 startup-delay-us = <100000>;
0103 vin-supply = <&vcc_io>;
0104 };
0105
0106 vcc_sd: sdmmc-regulator {
0107 compatible = "regulator-fixed";
0108 gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
0109 pinctrl-0 = <&sdmmc_pwr>;
0110 pinctrl-names = "default";
0111 regulator-name = "vcc_sd";
0112 regulator-min-microvolt = <3300000>;
0113 regulator-max-microvolt = <3300000>;
0114 startup-delay-us = <100000>;
0115 vin-supply = <&vcc_io>;
0116 };
0117
0118 vcc_wifi: sdio-regulator {
0119 compatible = "regulator-fixed";
0120 enable-active-high;
0121 gpio = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;
0122 pinctrl-0 = <&wifi_pwr>;
0123 pinctrl-names = "default";
0124 regulator-name = "vcc_wifi";
0125 regulator-min-microvolt = <3300000>;
0126 regulator-max-microvolt = <3300000>;
0127 startup-delay-us = <100000>;
0128 vin-supply = <&vcc_io>;
0129 };
0130 };
0131
0132 &hdmi {
0133 status = "okay";
0134 };
0135
0136 &hdmi_in_vop1 {
0137 status = "disabled";
0138 };
0139
0140 &hdmi_out {
0141 hdmi_out_con: endpoint {
0142 remote-endpoint = <&hdmi_con_in>;
0143 };
0144 };
0145
0146 &mmc0 {
0147 bus-width = <4>;
0148 cap-mmc-highspeed;
0149 cap-sd-highspeed;
0150 vmmc-supply = <&vcc_sd>;
0151 status = "okay";
0152 };
0153
0154 &mmc1 {
0155 bus-width = <4>;
0156 non-removable;
0157 pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
0158 pinctrl-names = "default";
0159 vmmc-supply = <&vcc_wifi>;
0160 status = "okay";
0161 };
0162
0163 &nfc {
0164 #address-cells = <1>;
0165 #size-cells = <0>;
0166 status = "okay";
0167
0168 nand@0 {
0169 reg = <0>;
0170 label = "rk-nand";
0171 nand-bus-width = <8>;
0172 nand-ecc-mode = "hw";
0173 nand-ecc-step-size = <1024>;
0174 nand-ecc-strength = <40>;
0175 nand-is-boot-medium;
0176 rockchip,boot-blks = <8>;
0177 rockchip,boot-ecc-strength = <24>;
0178 };
0179 };
0180
0181 &pinctrl {
0182 usb-host {
0183 host_drv: host-drv {
0184 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_default>;
0185 };
0186 };
0187
0188 usb-otg {
0189 otg_drv: otg-drv {
0190 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_default>;
0191 };
0192 };
0193
0194 sdmmc {
0195 sdmmc_pwr: sdmmc-pwr {
0196 rockchip,pins = <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_default>;
0197 };
0198 };
0199
0200 sdio {
0201 wifi_pwr: wifi-pwr {
0202 rockchip,pins = <3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
0203 };
0204 };
0205 };
0206
0207 &saradc {
0208 vref-supply = <&vcc_2v5>;
0209 status = "okay";
0210 };
0211
0212 &uart2 {
0213 status = "okay";
0214 };
0215
0216 &usb_host {
0217 status = "okay";
0218 };
0219
0220 &usb_otg {
0221 status = "okay";
0222 };
0223
0224 &usbphy {
0225 status = "okay";
0226 };
0227
0228 &vop0 {
0229 status = "okay";
0230 };
0231
0232 &wdt {
0233 status = "okay";
0234 };