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&crypto { 44 status = "okay"; 45}; 46 47&emmc { 48 fifo-mode; 49 bus-width = <8>; 50 cap-mmc-highspeed; 51 mmc-hs200-1_8v; 52 supports-emmc; 53 disable-wp; 54 non-removable; 55 num-slots = <1>; 56 57 status = "okay"; 58}; 59 60&gmac { 61 phy-supply = <&vcc_phy>; 62 phy-mode = "rgmii"; 63 clock_in_out = "input"; 64 snps,reset-gpio = <&gpio0 10 GPIO_ACTIVE_LOW>; 65 snps,reset-active-low; 66 /* Reset time is 20ms, 100ms for rtl8211f */ 67 snps,reset-delays-us = <0 20000 100000>; 68 assigned-clocks = <&cru SCLK_GMAC>; 69 assigned-clock-parents = <&gmac_clkin>; 70 tx_delay = <0x50>; 71 rx_delay = <0x3a>; 72 status = "disabled"; 73}; 74 75&uart2 { 76 clock-frequency = <24000000>; 77 status = "okay"; 78}; 79