1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * FriendlyElec NanoPC-R4 board device tree source 4 * 5 * Copyright (c) 2020 FriendlyElec Computer Tech. Co., Ltd. 6 * (http://www.friendlyarm.com) 7 * 8 * Copyright (c) 2018 Collabora Ltd. 9 * 10 * Copyright (c) 2020 Jensen Huang <jensenhuang@friendlyarm.com> 11 * Copyright (c) 2020 Marty Jones <mj8263788@gmail.com> 12 * Copyright (c) 2021 Tianling Shen <cnsztl@gmail.com> 13 */ 14 15/dts-v1/; 16 17#include "rk3399-nanopi4.dtsi" 18 19/ { 20 /delete-node/ display-subsystem; 21 22 gpio-leds { 23 pinctrl-0 = <&lan_led_pin>, <&sys_led_pin>, <&wan_led_pin>; 24 25 /delete-node/ led-0; 26 27 lan_led: led-lan { 28 gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>; 29 label = "green:lan"; 30 }; 31 32 sys_led: led-sys { 33 gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; 34 label = "red:power"; 35 default-state = "on"; 36 }; 37 38 wan_led: led-wan { 39 gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>; 40 label = "green:wan"; 41 }; 42 }; 43 44 gpio-keys { 45 pinctrl-0 = <&reset_button_pin>; 46 47 /delete-node/ key-power; 48 49 key-reset { 50 debounce-interval = <50>; 51 gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>; 52 label = "reset"; 53 linux,code = <KEY_RESTART>; 54 }; 55 }; 56 57 vdd_5v: regulator-vdd-5v { 58 compatible = "regulator-fixed"; 59 regulator-name = "vdd_5v"; 60 regulator-always-on; 61 regulator-boot-on; 62 }; 63}; 64 65&emmc_phy { 66 status = "disabled"; 67}; 68 69&i2c4 { 70 status = "disabled"; 71}; 72 73&pcie0 { 74 max-link-speed = <1>; 75 num-lanes = <1>; 76 vpcie3v3-supply = <&vcc3v3_sys>; 77}; 78 79&pinctrl { 80 gpio-leds { 81 /delete-node/ status-led-pin; 82 83 lan_led_pin: lan-led-pin { 84 rockchip,pins = <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; 85 }; 86 87 sys_led_pin: sys-led-pin { 88 rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; 89 }; 90 91 wan_led_pin: wan-led-pin { 92 rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; 93 }; 94 }; 95 96 rockchip-key { 97 /delete-node/ power-key; 98 99 reset_button_pin: reset-button-pin { 100 rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>; 101 }; 102 }; 103}; 104 105&sdhci { 106 status = "disabled"; 107}; 108 109&sdio0 { 110 status = "disabled"; 111}; 112 113&u2phy0_host { 114 phy-supply = <&vdd_5v>; 115}; 116 117&u2phy1_host { 118 status = "disabled"; 119}; 120 121&uart0 { 122 status = "disabled"; 123}; 124 125&usbdrd_dwc3_0 { 126 dr_mode = "host"; 127}; 128 129&vcc3v3_sys { 130 vin-supply = <&vcc5v0_sys>; 131}; 132