~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5c.dts

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2 /*
  3  * Copyright (c) 2022 FriendlyElec Computer Tech. Co., Ltd.
  4  * (http://www.friendlyelec.com)
  5  *
  6  * Copyright (c) 2023 Tianling Shen <cnsztl@gmail.com>
  7  */
  8 
  9 /dts-v1/;
 10 #include "rk3568-nanopi-r5s.dtsi"
 11 
 12 / {
 13         model = "FriendlyElec NanoPi R5C";
 14         compatible = "friendlyarm,nanopi-r5c", "rockchip,rk3568";
 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 = <50>;
 23                         gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_LOW>;
 24                         label = "reset";
 25                         linux,code = <KEY_RESTART>;
 26                 };
 27         };
 28 
 29         gpio-leds {
 30                 compatible = "gpio-leds";
 31                 pinctrl-names = "default";
 32                 pinctrl-0 = <&lan_led_pin>, <&power_led_pin>, <&wan_led_pin>, <&wlan_led_pin>;
 33 
 34                 led-lan {
 35                         color = <LED_COLOR_ID_GREEN>;
 36                         function = LED_FUNCTION_LAN;
 37                         gpios = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>;
 38                 };
 39 
 40                 power_led: led-power {
 41                         color = <LED_COLOR_ID_RED>;
 42                         function = LED_FUNCTION_POWER;
 43                         linux,default-trigger = "heartbeat";
 44                         gpios = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;
 45                 };
 46 
 47                 led-wan {
 48                         color = <LED_COLOR_ID_GREEN>;
 49                         function = LED_FUNCTION_WAN;
 50                         gpios = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>;
 51                 };
 52 
 53                 led-wlan {
 54                         color = <LED_COLOR_ID_GREEN>;
 55                         function = LED_FUNCTION_WLAN;
 56                         gpios = <&gpio3 RK_PA5 GPIO_ACTIVE_HIGH>;
 57                 };
 58         };
 59 };
 60 
 61 &pcie2x1 {
 62         pinctrl-names = "default";
 63         pinctrl-0 = <&pcie20_reset_pin>;
 64         reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
 65         status = "okay";
 66 };
 67 
 68 &pcie3x1 {
 69         num-lanes = <1>;
 70         reset-gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
 71         vpcie3v3-supply = <&vcc3v3_pcie>;
 72         status = "okay";
 73 };
 74 
 75 &pcie3x2 {
 76         num-lanes = <1>;
 77         reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
 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_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
 86                 };
 87 
 88                 power_led_pin: power-led-pin {
 89                         rockchip,pins = <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
 90                 };
 91 
 92                 wan_led_pin: wan-led-pin {
 93                         rockchip,pins = <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
 94                 };
 95 
 96                 wlan_led_pin: wlan-led-pin {
 97                         rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
 98                 };
 99         };
100 
101         pcie {
102                 pcie20_reset_pin: pcie20-reset-pin {
103                         rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
104                 };
105         };
106 
107         rockchip-key {
108                 reset_button_pin: reset-button-pin {
109                         rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>;
110                 };
111         };
112 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php