1 // SPDX-License-Identifier: GPL-2.0-or-later O 2 /* 3 * Copyright (c) 2022 FriendlyElec Computer Te 4 * (http://www.friendlyelec.com) 5 * 6 * Copyright (c) 2023 Tianling Shen <cnsztl@gma 7 */ 8 9 /dts-v1/; 10 #include "rk3568-nanopi-r5s.dtsi" 11 12 / { 13 model = "FriendlyElec NanoPi R5C"; 14 compatible = "friendlyarm,nanopi-r5c", 15 16 gpio-keys { 17 compatible = "gpio-keys"; 18 pinctrl-names = "default"; 19 pinctrl-0 = <&reset_button_pin 20 21 button-reset { 22 debounce-interval = <5 23 gpios = <&gpio0 RK_PB7 24 label = "reset"; 25 linux,code = <KEY_REST 26 }; 27 }; 28 29 gpio-leds { 30 compatible = "gpio-leds"; 31 pinctrl-names = "default"; 32 pinctrl-0 = <&lan_led_pin>, <& 33 34 led-lan { 35 color = <LED_COLOR_ID_ 36 function = LED_FUNCTIO 37 gpios = <&gpio3 RK_PA3 38 }; 39 40 power_led: led-power { 41 color = <LED_COLOR_ID_ 42 function = LED_FUNCTIO 43 linux,default-trigger 44 gpios = <&gpio3 RK_PA2 45 }; 46 47 led-wan { 48 color = <LED_COLOR_ID_ 49 function = LED_FUNCTIO 50 gpios = <&gpio3 RK_PA4 51 }; 52 53 led-wlan { 54 color = <LED_COLOR_ID_ 55 function = LED_FUNCTIO 56 gpios = <&gpio3 RK_PA5 57 }; 58 }; 59 }; 60 61 &pcie2x1 { 62 pinctrl-names = "default"; 63 pinctrl-0 = <&pcie20_reset_pin>; 64 reset-gpios = <&gpio3 RK_PC1 GPIO_ACTI 65 status = "okay"; 66 }; 67 68 &pcie3x1 { 69 num-lanes = <1>; 70 reset-gpios = <&gpio0 RK_PA0 GPIO_ACTI 71 vpcie3v3-supply = <&vcc3v3_pcie>; 72 status = "okay"; 73 }; 74 75 &pcie3x2 { 76 num-lanes = <1>; 77 reset-gpios = <&gpio0 RK_PB6 GPIO_ACTI 78 vpcie3v3-supply = <&vcc3v3_pcie>; 79 status = "okay"; 80 }; 81 82 &pinctrl { 83 gpio-leds { 84 lan_led_pin: lan-led-pin { 85 rockchip,pins = <3 RK_ 86 }; 87 88 power_led_pin: power-led-pin { 89 rockchip,pins = <3 RK_ 90 }; 91 92 wan_led_pin: wan-led-pin { 93 rockchip,pins = <3 RK_ 94 }; 95 96 wlan_led_pin: wlan-led-pin { 97 rockchip,pins = <3 RK_ 98 }; 99 }; 100 101 pcie { 102 pcie20_reset_pin: pcie20-reset 103 rockchip,pins = <2 RK_ 104 }; 105 }; 106 107 rockchip-key { 108 reset_button_pin: reset-button 109 rockchip,pins = <0 RK_ 110 }; 111 }; 112 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.