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-keys0 { 20 compatible = "adc-keys"; 21 io-channels = <&saradc 0>; 22 io-channel-names = "buttons"; 23 poll-interval = <100>; 24 keyup-threshold-microvolt = <1800000>; 25 26 vol-up-key { 27 linux,code = <KEY_VOLUMEUP>; 28 label = "volume up"; 29 press-threshold-microvolt = <18000>; 30 }; 31 }; 32 33 adc-keys1 { 34 compatible = "adc-keys"; 35 io-channels = <&saradc 1>; 36 io-channel-names = "buttons"; 37 poll-interval = <100>; 38 keyup-threshold-microvolt = <1800000>; 39 40 esc-key { 41 linux,code = <KEY_MUTE>; 42 label = "mute"; 43 press-threshold-microvolt = <1130000>; 44 }; 45 46 home-key { 47 linux,code = <KEY_MODE>; 48 label = "mode"; 49 press-threshold-microvolt = <901000>; 50 }; 51 52 menu-key { 53 linux,code = <KEY_PLAY>; 54 label = "play"; 55 press-threshold-microvolt = <624000>; 56 }; 57 58 vol-down-key { 59 linux,code = <KEY_VOLUMEDOWN>; 60 label = "volume down"; 61 press-threshold-microvolt = <300000>; 62 }; 63 64 vol-up-key { 65 linux,code = <KEY_VOLUMEUP>; 66 label = "volume up"; 67 press-threshold-microvolt = <18000>; 68 }; 69 }; 70 71 vdd_log: vdd_core: vdd-core { 72 compatible = "pwm-regulator"; 73 pwms = <&pwm0 0 5000 1>; 74 regulator-name = "vdd_core"; 75 regulator-min-microvolt = <847000>; 76 regulator-max-microvolt = <1366000>; 77 regulator-init-microvolt = <1044000>; 78 regulator-always-on; 79 regulator-boot-on; 80 status = "okay"; 81 }; 82 83}; 84 85&emmc { 86 cap-mmc-highspeed; 87 mmc-hs200-1_8v; 88 supports-emmc; 89 non-removable; 90 num-slots = <1>; 91 status = "okay"; 92}; 93 94&pwm0 { 95 status = "okay"; 96}; 97 98&saradc { 99 status = "okay"; 100}; 101 102&u2phy { 103 status = "okay"; 104}; 105 106&u2phy_otg { 107 status = "okay"; 108}; 109 110&u2phy_host { 111 status = "okay"; 112}; 113 114&usb_host0_ehci { 115 status = "okay"; 116}; 117 118&usb_host0_ohci { 119 status = "okay"; 120}; 121 122&usb20_otg { 123 status = "okay"; 124}; 125