2014-07-16 02:09:44 +08:00
|
|
|
/*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "rk3288.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
memory {
|
|
|
|
reg = <0x0 0x80000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
autorepeat;
|
|
|
|
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pwrbtn>;
|
|
|
|
|
|
|
|
button@0 {
|
|
|
|
gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <116>;
|
|
|
|
label = "GPIO Key Power";
|
|
|
|
linux,input-type = <1>;
|
|
|
|
gpio-key,wakeup = <1>;
|
|
|
|
debounce-interval = <100>;
|
|
|
|
};
|
|
|
|
};
|
2014-07-31 04:00:10 +08:00
|
|
|
|
|
|
|
/* This turns on USB vbus for both host0 (ehci) and host1 (dwc2) */
|
|
|
|
vcc_host: vcc-host-regulator {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
enable-active-high;
|
|
|
|
gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&host_vbus_drv>;
|
|
|
|
regulator-name = "vcc_host";
|
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
};
|
2014-07-16 02:09:44 +08:00
|
|
|
};
|
|
|
|
|
2014-08-13 07:21:14 +08:00
|
|
|
&emmc {
|
|
|
|
broken-cd;
|
|
|
|
bus-width = <8>;
|
|
|
|
cap-mmc-highspeed;
|
|
|
|
disable-wp;
|
|
|
|
non-removable;
|
|
|
|
num-slots = <1>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&sdmmc {
|
|
|
|
bus-width = <4>;
|
|
|
|
cap-mmc-highspeed;
|
|
|
|
cap-sd-highspeed;
|
|
|
|
card-detect-delay = <200>;
|
|
|
|
disable-wp; /* wp not hooked up */
|
|
|
|
num-slots = <1>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2014-07-16 02:09:44 +08:00
|
|
|
&i2c0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&wdt {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart3 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart4 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pinctrl {
|
|
|
|
buttons {
|
|
|
|
pwrbtn: pwrbtn {
|
|
|
|
rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
|
|
};
|
|
|
|
};
|
2014-07-31 04:00:10 +08:00
|
|
|
|
|
|
|
usb {
|
|
|
|
host_vbus_drv: host-vbus-drv {
|
|
|
|
rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
|
|
};
|
|
|
|
};
|
2014-07-16 02:09:44 +08:00
|
|
|
};
|
2014-07-31 04:00:12 +08:00
|
|
|
|
|
|
|
&usb_host0_ehci {
|
|
|
|
status = "okay";
|
|
|
|
};
|