1/* 2 * (C) Copyright 2018 Rockchip Electronics Co., Ltd 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7/dts-v1/; 8#include "rk3308.dtsi" 9#include <dt-bindings/input/input.h> 10 11/ { 12 model = "Rockchip RK3308 EVB"; 13 compatible = "rockchip,rk3308-evb", "rockchip,rk3308"; 14 15 chosen { 16 stdout-path = "serial2:1500000n8"; 17 }; 18 19 adc-keys { 20 compatible = "adc-keys"; 21 io-channels = <&saradc 1>; 22 io-channel-names = "buttons"; 23 poll-interval = <100>; 24 keyup-threshold-microvolt = <1800000>; 25 26 esc-key { 27 linux,code = <KEY_MUTE>; 28 label = "mute"; 29 press-threshold-microvolt = <1130000>; 30 }; 31 32 home-key { 33 linux,code = <KEY_MODE>; 34 label = "mode"; 35 press-threshold-microvolt = <901000>; 36 }; 37 38 menu-key { 39 linux,code = <KEY_PLAY>; 40 label = "play"; 41 press-threshold-microvolt = <624000>; 42 }; 43 44 vol-down-key { 45 linux,code = <KEY_VOLUMEDOWN>; 46 label = "volume down"; 47 press-threshold-microvolt = <300000>; 48 }; 49 50 vol-up-key { 51 linux,code = <KEY_VOLUMEUP>; 52 label = "volume up"; 53 press-threshold-microvolt = <180000>; 54 }; 55 }; 56 57 vdd_log: vdd_core: vdd-core { 58 compatible = "pwm-regulator"; 59 pwms = <&pwm0 0 5000 1>; 60 regulator-name = "vdd_core"; 61 regulator-min-microvolt = <847000>; 62 regulator-max-microvolt = <1366000>; 63 regulator-init-microvolt = <1044000>; 64 regulator-always-on; 65 regulator-boot-on; 66 status = "okay"; 67 }; 68 69}; 70 71&emmc { 72 cap-mmc-highspeed; 73 mmc-hs200-1_8v; 74 supports-emmc; 75 non-removable; 76 num-slots = <1>; 77 status = "okay"; 78}; 79 80&pwm0 { 81 status = "okay"; 82}; 83 84&saradc { 85 status = "okay"; 86}; 87 88&uart2 { 89 clock-frequency = <24000000>; 90 status = "okay"; 91}; 92 93&u2phy { 94 status = "okay"; 95}; 96 97&u2phy_otg { 98 status = "okay"; 99}; 100 101&u2phy_host { 102 status = "okay"; 103}; 104 105&usb_host0_ehci { 106 status = "okay"; 107}; 108 109&usb_host0_ohci { 110 status = "okay"; 111}; 112 113&usb20_otg { 114 status = "okay"; 115}; 116