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

TOMOYO Linux Cross Reference
Linux/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ 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.12 ] ~ [ 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 
  9 / {
 10         compatible = "gnubee,gb-pc2", "mediatek,mt7621-soc";
 11         model = "GnuBee GB-PC2";
 12 
 13         memory@0 {
 14                 device_type = "memory";
 15                 reg = <0x00000000 0x1c000000>,
 16                       <0x20000000 0x04000000>;
 17         };
 18 
 19         chosen {
 20                 bootargs = "console=ttyS0,57600";
 21         };
 22 
 23         gpio-keys {
 24                 compatible = "gpio-keys";
 25 
 26                 key-reset {
 27                         label = "reset";
 28                         gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
 29                         linux,code = <KEY_RESTART>;
 30                 };
 31         };
 32 
 33         gpio-leds {
 34                 compatible = "gpio-leds";
 35 
 36                 led-ethblack-green {
 37                         label = "green:ethblack";
 38                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
 39                 };
 40 
 41                 led-ethblue-green {
 42                         label = "green:ethblue";
 43                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
 44                 };
 45 
 46                 led-ethyellow-green {
 47                         label = "green:ethyellow";
 48                         gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
 49                 };
 50 
 51                 led-ethyellow-orange {
 52                         label = "orange:ethyellow";
 53                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
 54                 };
 55 
 56                 led-power {
 57                         label = "green:power";
 58                         gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
 59                         linux,default-trigger = "default-on";
 60                 };
 61 
 62                 led-system {
 63                         label = "green:system";
 64                         gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
 65                         linux,default-trigger = "disk-activity";
 66                 };
 67         };
 68 };
 69 
 70 &mmc {
 71         status = "okay";
 72 };
 73 
 74 &spi0 {
 75         status = "okay";
 76 
 77         flash@0 {
 78                 #address-cells = <1>;
 79                 #size-cells = <1>;
 80                 compatible = "jedec,spi-nor";
 81                 reg = <0>;
 82                 spi-max-frequency = <50000000>;
 83                 broken-flash-reset;
 84 
 85                 partition@0 {
 86                         label = "u-boot";
 87                         reg = <0x0 0x30000>;
 88                         read-only;
 89                 };
 90 
 91                 partition@30000 {
 92                         label = "u-boot-env";
 93                         reg = <0x30000 0x10000>;
 94                         read-only;
 95                 };
 96 
 97                 factory: partition@40000 {
 98                         label = "factory";
 99                         reg = <0x40000 0x10000>;
100                         read-only;
101                 };
102 
103                 partition@50000 {
104                         label = "firmware";
105                         reg = <0x50000 0x1fb0000>;
106                 };
107         };
108 };
109 
110 &pcie {
111         status = "okay";
112 };
113 
114 &gmac1 {
115         phy-mode = "rgmii-rxid";
116         phy-handle = <&ethphy5>;
117 
118         fixed-link {
119                 status = "disabled";
120         };
121 };
122 
123 &mdio {
124         ethphy5: ethernet-phy@5 {
125                 reg = <5>;
126         };
127 };
128 
129 &switch0 {
130         ports {
131                 port@0 {
132                         status = "okay";
133                         label = "ethblack";
134                 };
135 
136                 port@4 {
137                         status = "okay";
138                         label = "ethblue";
139                 };
140 
141                 port@5 {
142                         status = "disabled";
143                 };
144         };
145 };

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