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-spl; 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-spl; 29 linux,code = <KEY_VOLUMEUP>; 30 label = "volume up"; 31 press-threshold-microvolt = <10000>; 32 }; 33 }; 34 35 vcc_phy: vcc-phy-regulator { 36 u-boot,dm-spl; 37 compatible = "regulator-fixed"; 38 regulator-name = "vcc_phy"; 39 regulator-always-on; 40 regulator-boot-on; 41 }; 42}; 43 44&crypto { 45 status = "okay"; 46}; 47 48&emmc { 49 fifo-mode; 50 bus-width = <8>; 51 cap-mmc-highspeed; 52 mmc-hs200-1_8v; 53 supports-emmc; 54 disable-wp; 55 non-removable; 56 num-slots = <1>; 57 58 status = "okay"; 59}; 60 61&gmac { 62 phy-supply = <&vcc_phy>; 63 phy-mode = "rgmii"; 64 clock_in_out = "input"; 65 snps,reset-gpio = <&gpio0 10 GPIO_ACTIVE_LOW>; 66 snps,reset-active-low; 67 /* Reset time is 20ms, 100ms for rtl8211f */ 68 snps,reset-delays-us = <0 20000 100000>; 69 assigned-clocks = <&cru SCLK_GMAC>; 70 assigned-clock-parents = <&gmac_clkin>; 71 tx_delay = <0x50>; 72 rx_delay = <0x3a>; 73 status = "disabled"; 74}; 75 76&uart2 { 77 clock-frequency = <24000000>; 78 status = "okay"; 79}; 80