1/* 2 * (C) Copyright 2017 Rockchip Electronics Co., Ltd 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7/dts-v1/; 8 9#include "rk3128.dtsi" 10#include "rk3128-u-boot.dtsi" 11#include <dt-bindings/input/input.h> 12 13/ { 14 model = "Rockchip RK3126 Evaluation board"; 15 compatible = "rockchip,rk3126-evb", "rockchip,rk3126"; 16 17 vcc5v0_otg: vcc5v0-otg-drv { 18 compatible = "regulator-fixed"; 19 regulator-name = "vcc5v0_otg"; 20 gpio = <&gpio0 26 GPIO_ACTIVE_HIGH>; 21 pinctrl-names = "default"; 22 pinctrl-0 = <&otg_vbus_drv>; 23 regulator-min-microvolt = <5000000>; 24 regulator-max-microvolt = <5000000>; 25 }; 26 27 adc-keys { 28 compatible = "adc-keys"; 29 io-channels = <&saradc 2>; 30 io-channel-names = "buttons"; 31 poll-interval = <100>; 32 keyup-threshold-microvolt = <3300000>; 33 34 button-up { 35 label = "Volume Up"; 36 linux,code = <KEY_VOLUMEUP>; 37 press-threshold-microvolt = <0>; 38 }; 39 40 button-down { 41 label = "Volume Down"; 42 linux,code = <KEY_VOLUMEDOWN>; 43 press-threshold-microvolt = <1650000>; 44 }; 45 }; 46}; 47 48&cru { 49 compatible = "rockchip,rk3126-cru"; 50}; 51 52&u2phy { 53 status = "okay"; 54}; 55 56&u2phy_otg { 57 status = "okay"; 58}; 59 60&u2phy_host { 61 status = "okay"; 62}; 63 64&uart2 { 65 status = "okay"; 66}; 67 68&usb_host_ehci { 69 status = "okay"; 70}; 71 72&usb_host_ohci { 73 status = "okay"; 74}; 75 76&usb_otg { 77 vbus-supply = <&vcc5v0_otg>; 78 status = "okay"; 79}; 80 81&emmc { 82 fifo-mode; 83 status = "okay"; 84}; 85 86&pinctrl { 87 usb_otg { 88 otg_vbus_drv: otg-vbus-drv { 89 rockchip,pins = <0 26 RK_FUNC_GPIO &pcfg_pull_none>; 90 }; 91 }; 92 93 usb_host { 94 host_vbus_drv: host-vbus-drv { 95 rockchip,pins = <2 23 RK_FUNC_GPIO &pcfg_pull_none>; 96 }; 97 }; 98}; 99