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

TOMOYO Linux Cross Reference
Linux/arch/mips/boot/dts/ralink/mt7621-tplink-hc220-g5-v1.dts

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ 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-only OR BSD-2-Clause)
  2 /dts-v1/;
  3 
  4 #include "mt7621.dtsi"
  5 
  6 #include <dt-bindings/gpio/gpio.h>
  7 #include <dt-bindings/input/input.h>
  8 #include <dt-bindings/leds/common.h>
  9 
 10 / {
 11         compatible = "tplink,hc220-g5-v1", "mediatek,mt7621-soc";
 12         model = "TP-Link HC220 G5 v1";
 13 
 14         memory@0 {
 15                 device_type = "memory";
 16                 reg = <0x00000000 0x08000000>;
 17         };
 18 
 19         chosen {
 20                 bootargs = "earlycon console=ttyS0,115200";
 21         };
 22 
 23         gpio-keys {
 24                 compatible = "gpio-keys";
 25 
 26                 key-reset {
 27                         label = "reset";
 28                         gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
 29                         linux,code = <KEY_RESTART>;
 30                 };
 31 
 32                 key-wps {
 33                         label = "wps";
 34                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
 35                         linux,code = <KEY_WPS_BUTTON>;
 36                 };
 37         };
 38 
 39         leds {
 40                 compatible = "gpio-leds";
 41 
 42                 led-fault {
 43                         color = <LED_COLOR_ID_RED>;
 44                         function = LED_FUNCTION_FAULT;
 45                         gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
 46                 };
 47 
 48                 led-power {
 49                         color = <LED_COLOR_ID_GREEN>;
 50                         function = LED_FUNCTION_POWER;
 51                         gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
 52                         linux,default-trigger = "default-on";
 53                 };
 54 
 55                 led-wps {
 56                         color = <LED_COLOR_ID_BLUE>;
 57                         function = LED_FUNCTION_WPS;
 58                         gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
 59                 };
 60         };
 61 };
 62 
 63 &pcie {
 64         status = "okay";
 65 };
 66 
 67 &switch0 {
 68         ports {
 69                 port@0 {
 70                         status = "okay";
 71                         label = "lan2";
 72                 };
 73 
 74                 port@1 {
 75                         status = "okay";
 76                         label = "lan1";
 77                 };
 78 
 79                 port@2 {
 80                         status = "okay";
 81                         label = "wan";
 82                 };
 83         };
 84 };

~ [ 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