15f62a964SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 25f62a964SEmmanuel Vadot/* 35f62a964SEmmanuel Vadot * FriendlyElec NanoPC-R4 board device tree source 45f62a964SEmmanuel Vadot * 55f62a964SEmmanuel Vadot * Copyright (c) 2020 FriendlyElec Computer Tech. Co., Ltd. 65f62a964SEmmanuel Vadot * (http://www.friendlyarm.com) 75f62a964SEmmanuel Vadot * 85f62a964SEmmanuel Vadot * Copyright (c) 2018 Collabora Ltd. 95f62a964SEmmanuel Vadot * 105f62a964SEmmanuel Vadot * Copyright (c) 2020 Jensen Huang <jensenhuang@friendlyarm.com> 115f62a964SEmmanuel Vadot * Copyright (c) 2020 Marty Jones <mj8263788@gmail.com> 125f62a964SEmmanuel Vadot * Copyright (c) 2021 Tianling Shen <cnsztl@gmail.com> 135f62a964SEmmanuel Vadot */ 145f62a964SEmmanuel Vadot 155f62a964SEmmanuel Vadot/dts-v1/; 165f62a964SEmmanuel Vadot 175f62a964SEmmanuel Vadot#include "rk3399-nanopi4.dtsi" 185f62a964SEmmanuel Vadot 195f62a964SEmmanuel Vadot/ { 205f62a964SEmmanuel Vadot /delete-node/ display-subsystem; 215f62a964SEmmanuel Vadot 225f62a964SEmmanuel Vadot gpio-leds { 235f62a964SEmmanuel Vadot pinctrl-0 = <&lan_led_pin>, <&sys_led_pin>, <&wan_led_pin>; 245f62a964SEmmanuel Vadot 255f62a964SEmmanuel Vadot /delete-node/ led-0; 265f62a964SEmmanuel Vadot 275f62a964SEmmanuel Vadot lan_led: led-lan { 285f62a964SEmmanuel Vadot gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>; 295f62a964SEmmanuel Vadot label = "green:lan"; 305f62a964SEmmanuel Vadot }; 315f62a964SEmmanuel Vadot 325f62a964SEmmanuel Vadot sys_led: led-sys { 335f62a964SEmmanuel Vadot gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; 345f62a964SEmmanuel Vadot label = "red:power"; 355f62a964SEmmanuel Vadot default-state = "on"; 365f62a964SEmmanuel Vadot }; 375f62a964SEmmanuel Vadot 385f62a964SEmmanuel Vadot wan_led: led-wan { 395f62a964SEmmanuel Vadot gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>; 405f62a964SEmmanuel Vadot label = "green:wan"; 415f62a964SEmmanuel Vadot }; 425f62a964SEmmanuel Vadot }; 435f62a964SEmmanuel Vadot 445f62a964SEmmanuel Vadot gpio-keys { 455f62a964SEmmanuel Vadot pinctrl-0 = <&reset_button_pin>; 465f62a964SEmmanuel Vadot 475f62a964SEmmanuel Vadot /delete-node/ key-power; 485f62a964SEmmanuel Vadot 495f62a964SEmmanuel Vadot key-reset { 505f62a964SEmmanuel Vadot debounce-interval = <50>; 515f62a964SEmmanuel Vadot gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>; 525f62a964SEmmanuel Vadot label = "reset"; 535f62a964SEmmanuel Vadot linux,code = <KEY_RESTART>; 545f62a964SEmmanuel Vadot }; 555f62a964SEmmanuel Vadot }; 565f62a964SEmmanuel Vadot 575f62a964SEmmanuel Vadot vdd_5v: regulator-vdd-5v { 585f62a964SEmmanuel Vadot compatible = "regulator-fixed"; 595f62a964SEmmanuel Vadot regulator-name = "vdd_5v"; 605f62a964SEmmanuel Vadot regulator-always-on; 615f62a964SEmmanuel Vadot regulator-boot-on; 625f62a964SEmmanuel Vadot }; 635f62a964SEmmanuel Vadot}; 645f62a964SEmmanuel Vadot 655f62a964SEmmanuel Vadot&emmc_phy { 665f62a964SEmmanuel Vadot status = "disabled"; 675f62a964SEmmanuel Vadot}; 685f62a964SEmmanuel Vadot 695f62a964SEmmanuel Vadot&i2c4 { 705f62a964SEmmanuel Vadot status = "disabled"; 715f62a964SEmmanuel Vadot}; 725f62a964SEmmanuel Vadot 735f62a964SEmmanuel Vadot&pcie0 { 745f62a964SEmmanuel Vadot max-link-speed = <1>; 755f62a964SEmmanuel Vadot num-lanes = <1>; 765f62a964SEmmanuel Vadot vpcie3v3-supply = <&vcc3v3_sys>; 775f62a964SEmmanuel Vadot}; 785f62a964SEmmanuel Vadot 795f62a964SEmmanuel Vadot&pinctrl { 805f62a964SEmmanuel Vadot gpio-leds { 815f62a964SEmmanuel Vadot /delete-node/ status-led-pin; 825f62a964SEmmanuel Vadot 835f62a964SEmmanuel Vadot lan_led_pin: lan-led-pin { 845f62a964SEmmanuel Vadot rockchip,pins = <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; 855f62a964SEmmanuel Vadot }; 865f62a964SEmmanuel Vadot 875f62a964SEmmanuel Vadot sys_led_pin: sys-led-pin { 885f62a964SEmmanuel Vadot rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; 895f62a964SEmmanuel Vadot }; 905f62a964SEmmanuel Vadot 915f62a964SEmmanuel Vadot wan_led_pin: wan-led-pin { 925f62a964SEmmanuel Vadot rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; 935f62a964SEmmanuel Vadot }; 945f62a964SEmmanuel Vadot }; 955f62a964SEmmanuel Vadot 965f62a964SEmmanuel Vadot rockchip-key { 975f62a964SEmmanuel Vadot /delete-node/ power-key; 985f62a964SEmmanuel Vadot 995f62a964SEmmanuel Vadot reset_button_pin: reset-button-pin { 1005f62a964SEmmanuel Vadot rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>; 1015f62a964SEmmanuel Vadot }; 1025f62a964SEmmanuel Vadot }; 1035f62a964SEmmanuel Vadot}; 1045f62a964SEmmanuel Vadot 1055f62a964SEmmanuel Vadot&sdhci { 1065f62a964SEmmanuel Vadot status = "disabled"; 1075f62a964SEmmanuel Vadot}; 1085f62a964SEmmanuel Vadot 1095f62a964SEmmanuel Vadot&sdio0 { 1105f62a964SEmmanuel Vadot status = "disabled"; 1115f62a964SEmmanuel Vadot}; 1125f62a964SEmmanuel Vadot 1135f62a964SEmmanuel Vadot&u2phy0_host { 1145f62a964SEmmanuel Vadot phy-supply = <&vdd_5v>; 1155f62a964SEmmanuel Vadot}; 1165f62a964SEmmanuel Vadot 1175f62a964SEmmanuel Vadot&u2phy1_host { 118*2846c905SEmmanuel Vadot phy-supply = <&vdd_5v>; 1195f62a964SEmmanuel Vadot}; 1205f62a964SEmmanuel Vadot 1215f62a964SEmmanuel Vadot&uart0 { 1225f62a964SEmmanuel Vadot status = "disabled"; 1235f62a964SEmmanuel Vadot}; 1245f62a964SEmmanuel Vadot 1255f62a964SEmmanuel Vadot&usbdrd_dwc3_0 { 1265f62a964SEmmanuel Vadot dr_mode = "host"; 1275f62a964SEmmanuel Vadot}; 1285f62a964SEmmanuel Vadot 1295f62a964SEmmanuel Vadot&vcc3v3_sys { 1305f62a964SEmmanuel Vadot vin-supply = <&vcc5v0_sys>; 1315f62a964SEmmanuel Vadot}; 132