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