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

TOMOYO Linux Cross Reference
Linux/arch/arm64/boot/dts/mediatek/mt7986a-acelink-ew-7886cax.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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
  2 
  3 /dts-v1/;
  4 #include <dt-bindings/input/input.h>
  5 #include <dt-bindings/gpio/gpio.h>
  6 #include <dt-bindings/leds/common.h>
  7 
  8 #include "mt7986a.dtsi"
  9 
 10 / {
 11         compatible = "acelink,ew-7886cax", "mediatek,mt7986a";
 12         model = "Acelink EW-7886CAX";
 13 
 14         aliases {
 15                 serial0 = &uart0;
 16         };
 17 
 18         chosen {
 19                 stdout-path = "serial0:115200n8";
 20         };
 21 
 22         memory@40000000 {
 23                 reg = <0 0x40000000 0 0x20000000>;
 24                 device_type = "memory";
 25         };
 26 
 27         keys {
 28                 compatible = "gpio-keys";
 29 
 30                 key-restart {
 31                         label = "Reset";
 32                         gpios = <&pio 7 GPIO_ACTIVE_LOW>;
 33                         linux,code = <KEY_RESTART>;
 34                 };
 35         };
 36 
 37         leds {
 38                 compatible = "gpio-leds";
 39 
 40                 led-0 {
 41                         function = LED_FUNCTION_STATUS;
 42                         color = <LED_COLOR_ID_RED>;
 43                         gpios = <&pio 18 GPIO_ACTIVE_HIGH>;
 44                 };
 45 
 46                 led-1 {
 47                         function = LED_FUNCTION_STATUS;
 48                         color = <LED_COLOR_ID_GREEN>;
 49                         gpios = <&pio 19 GPIO_ACTIVE_HIGH>;
 50                 };
 51 
 52                 led-2 {
 53                         function = LED_FUNCTION_STATUS;
 54                         color = <LED_COLOR_ID_BLUE>;
 55                         gpios = <&pio 20 GPIO_ACTIVE_HIGH>;
 56                 };
 57         };
 58 };
 59 
 60 &crypto {
 61         status = "okay";
 62 };
 63 
 64 &eth {
 65         status = "okay";
 66 
 67         mac@1 {
 68                 compatible = "mediatek,eth-mac";
 69                 reg = <1>;
 70                 phy-mode = "2500base-x";
 71                 phy-handle = <&phy6>;
 72                 nvmem-cells = <&macaddr>;
 73                 nvmem-cell-names = "mac-address";
 74         };
 75 
 76         mdio-bus {
 77                 reset-gpios = <&pio 6 GPIO_ACTIVE_LOW>;
 78                 reset-delay-us = <50000>;
 79                 reset-post-delay-us = <20000>;
 80 
 81                 #address-cells = <1>;
 82                 #size-cells = <0>;
 83 
 84                 phy6: phy@6 {
 85                         compatible = "ethernet-phy-ieee802.3-c45";
 86                         reg = <6>;
 87                 };
 88         };
 89 };
 90 
 91 &pcie_phy {
 92         status = "okay";
 93 };
 94 
 95 &spi0 {
 96         status = "okay";
 97 
 98         flash@0 {
 99                 compatible = "spi-nand";
100                 reg = <0>;
101                 #address-cells = <1>;
102                 #size-cells = <1>;
103                 spi-max-frequency = <52000000>;
104                 spi-rx-bus-width = <4>;
105                 spi-tx-bus-width = <4>;
106 
107                 partitions {
108                         compatible = "fixed-partitions";
109                         #address-cells = <1>;
110                         #size-cells = <1>;
111 
112                         partition@0 {
113                                 reg = <0x0 0x100000>;
114                                 label = "bootloader";
115                                 read-only;
116                         };
117 
118                         partition@100000 {
119                                 reg = <0x100000 0x80000>;
120                                 label = "u-boot-env";
121                         };
122 
123                         partition@180000 {
124                                 compatible = "nvmem-cells";
125                                 reg = <0x180000 0x200000>;
126                                 label = "factory";
127                                 read-only;
128 
129                                 nvmem-layout {
130                                         compatible = "fixed-layout";
131                                         #address-cells = <1>;
132                                         #size-cells = <1>;
133 
134                                         eeprom: eeprom@0 {
135                                                 reg = <0x0 0x1000>;
136                                         };
137 
138                                         macaddr: macaddr@4 {
139                                                 reg = <0x4 0x6>;
140                                         };
141                                 };
142                         };
143 
144                         partition@380000 {
145                                 reg = <0x380000 0x200000>;
146                                 label = "fip";
147                         };
148 
149                         partition@580000 {
150                                 reg = <0x580000 0x4000000>;
151                                 label = "ubi";
152                         };
153                 };
154         };
155 };
156 
157 &trng {
158         status = "okay";
159 };
160 
161 &uart0 {
162         status = "okay";
163 };
164 
165 &watchdog {
166         status = "okay";
167 };
168 
169 &wifi {
170         nvmem-cells = <&eeprom>;
171         nvmem-cell-names = "eeprom";
172         status = "okay";
173 };

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