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