1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * (C) Copyright 2018 Rockchip Electronics Co., Ltd 4 * 5 */ 6 7/dts-v1/; 8#include "rk1808.dtsi" 9#include "rk1808-u-boot.dtsi" 10#include <dt-bindings/gpio/gpio.h> 11#include <dt-bindings/input/input.h> 12#include <linux/media-bus-format.h> 13 14/ { 15 model = "Rockchip RK1808 EVB"; 16 compatible = "rockchip,rk1808-evb", "rockchip,rk1808"; 17 18 adc-keys { 19 status = "okay"; 20 21 u-boot,dm-pre-reloc; 22 compatible = "adc-keys"; 23 io-channels = <&saradc 2>; 24 io-channel-names = "buttons"; 25 keyup-threshold-microvolt = <1800000>; 26 27 vol-up-key { 28 u-boot,dm-pre-reloc; 29 linux,code = <KEY_VOLUMEUP>; 30 label = "volume up"; 31 press-threshold-microvolt = <10000>; 32 }; 33 }; 34 35 vcc_phy: vcc-phy-regulator { 36 compatible = "regulator-fixed"; 37 regulator-name = "vcc_phy"; 38 regulator-always-on; 39 regulator-boot-on; 40 }; 41}; 42 43&emmc { 44 fifo-mode; 45 bus-width = <8>; 46 cap-mmc-highspeed; 47 supports-emmc; 48 disable-wp; 49 non-removable; 50 num-slots = <1>; 51 52 status = "okay"; 53}; 54 55&gmac { 56 phy-supply = <&vcc_phy>; 57 phy-mode = "rgmii"; 58 clock_in_out = "input"; 59 snps,reset-gpio = <&gpio0 10 GPIO_ACTIVE_LOW>; 60 snps,reset-active-low; 61 /* Reset time is 20ms, 100ms for rtl8211f */ 62 snps,reset-delays-us = <0 20000 100000>; 63 assigned-clocks = <&cru SCLK_GMAC>; 64 assigned-clock-parents = <&gmac_clkin>; 65 tx_delay = <0x50>; 66 rx_delay = <0x3a>; 67 status = "disabled"; 68}; 69 70&uart2 { 71 clock-frequency = <24000000>; 72 status = "okay"; 73}; 74