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

TOMOYO Linux Cross Reference
Linux/scripts/dtc/include-prefixes/arm/marvell/kirkwood-linksys-viper.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 ] ~

Diff markup

Differences between /scripts/dtc/include-prefixes/arm/marvell/kirkwood-linksys-viper.dts (Architecture i386) and /scripts/dtc/include-prefixes/arm/marvell/kirkwood-linksys-viper.dts (Architecture sparc64)


  1 // SPDX-License-Identifier: GPL-2.0                 1 // SPDX-License-Identifier: GPL-2.0
  2 /*                                                  2 /*
  3  * kirkwood-viper.dts - Device Tree file for L      3  * kirkwood-viper.dts - Device Tree file for Linksys viper (E4200v2 / EA4500)
  4  *                                                  4  *
  5  * (c) 2013 Jonas Gorski <jogo@openwrt.org>          5  * (c) 2013 Jonas Gorski <jogo@openwrt.org>
  6  * (c) 2013 Deutsche Telekom Innovation Labora      6  * (c) 2013 Deutsche Telekom Innovation Laboratories
  7  * (c) 2014 Luka Perkov <luka@openwrt.org>           7  * (c) 2014 Luka Perkov <luka@openwrt.org>
  8  * (c) 2014 Randy C. Will <randall.will@gmail.c      8  * (c) 2014 Randy C. Will <randall.will@gmail.com>
  9  *                                                  9  *
 10  */                                                10  */
 11                                                    11 
 12 /dts-v1/;                                          12 /dts-v1/;
 13                                                    13 
 14 #include "kirkwood.dtsi"                           14 #include "kirkwood.dtsi"
 15 #include "kirkwood-6282.dtsi"                      15 #include "kirkwood-6282.dtsi"
 16                                                    16 
 17 / {                                                17 / {
 18         model = "Linksys Viper (E4200v2 / EA45     18         model = "Linksys Viper (E4200v2 / EA4500)";
 19         compatible = "linksys,viper", "marvell     19         compatible = "linksys,viper", "marvell,kirkwood-88f6282", "marvell,kirkwood";
 20                                                    20 
 21         memory {                                   21         memory {
 22                 device_type = "memory";            22                 device_type = "memory";
 23                 reg = <0x00000000 0x8000000>;      23                 reg = <0x00000000 0x8000000>;
 24         };                                         24         };
 25                                                    25 
 26         aliases {                                  26         aliases {
 27                 serial0 = &uart0;                  27                 serial0 = &uart0;
 28         };                                         28         };
 29                                                    29 
 30         chosen {                                   30         chosen {
 31                 stdout-path = "serial0:115200n     31                 stdout-path = "serial0:115200n8";
 32         };                                         32         };
 33                                                    33 
 34         gpio_keys {                                34         gpio_keys {
 35                 compatible = "gpio-keys";          35                 compatible = "gpio-keys";
 36                 pinctrl-0 = < &pmx_btn_wps &pm     36                 pinctrl-0 = < &pmx_btn_wps &pmx_btn_reset >;
 37                 pinctrl-names = "default";         37                 pinctrl-names = "default";
 38                                                    38 
 39                 button-wps {                       39                 button-wps {
 40                         label = "WPS Button";      40                         label = "WPS Button";
 41                         linux,code = <KEY_WPS_     41                         linux,code = <KEY_WPS_BUTTON>;
 42                         gpios = <&gpio1 15 GPI     42                         gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
 43                 };                                 43                 };
 44                                                    44 
 45                 button-reset {                     45                 button-reset {
 46                         label = "Reset Button"     46                         label = "Reset Button";
 47                         linux,code = <KEY_REST     47                         linux,code = <KEY_RESTART>;
 48                         gpios = <&gpio1 16 GPI     48                         gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
 49                 };                                 49                 };
 50         };                                         50         };
 51                                                    51 
 52         gpio-leds {                                52         gpio-leds {
 53                 compatible = "gpio-leds";          53                 compatible = "gpio-leds";
 54                 pinctrl-0 = < &pmx_led_white_h     54                 pinctrl-0 = < &pmx_led_white_health &pmx_led_white_pulse >;
 55                 pinctrl-names = "default";         55                 pinctrl-names = "default";
 56                                                    56 
 57                 led-white-health {                 57                 led-white-health {
 58                         label = "viper:white:h     58                         label = "viper:white:health";
 59                         gpios = <&gpio0 7 GPIO     59                         gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
 60                 };                                 60                 };
 61                                                    61 
 62                 led-white-pulse {                  62                 led-white-pulse {
 63                         label = "viper:white:p     63                         label = "viper:white:pulse";
 64                         gpios = <&gpio0 14 GPI     64                         gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
 65                 };                                 65                 };
 66         };                                         66         };
 67 };                                                 67 };
 68                                                    68 
 69 &pinctrl {                                         69 &pinctrl {
 70         pmx_led_white_health: pmx-led-white-he     70         pmx_led_white_health: pmx-led-white-health {
 71                 marvell,pins = "mpp7";             71                 marvell,pins = "mpp7";
 72                 marvell,function = "gpo";          72                 marvell,function = "gpo";
 73         };                                         73         };
 74         pmx_led_white_pulse: pmx-led-white-pul     74         pmx_led_white_pulse: pmx-led-white-pulse {
 75                 marvell,pins = "mpp14";            75                 marvell,pins = "mpp14";
 76                 marvell,function = "gpio";         76                 marvell,function = "gpio";
 77         };                                         77         };
 78         pmx_btn_wps: pmx-btn-wps {                 78         pmx_btn_wps: pmx-btn-wps {
 79                 marvell,pins = "mpp47";            79                 marvell,pins = "mpp47";
 80                 marvell,function = "gpio";         80                 marvell,function = "gpio";
 81         };                                         81         };
 82         pmx_btn_reset: pmx-btn-reset {             82         pmx_btn_reset: pmx-btn-reset {
 83                 marvell,pins = "mpp48";            83                 marvell,pins = "mpp48";
 84                 marvell,function = "gpio";         84                 marvell,function = "gpio";
 85         };                                         85         };
 86 };                                                 86 };
 87                                                    87 
 88 &nand {                                            88 &nand {
 89         status = "okay";                           89         status = "okay";
 90         pinctrl-0 = <&pmx_nand>;                   90         pinctrl-0 = <&pmx_nand>;
 91         pinctrl-names = "default";                 91         pinctrl-names = "default";
 92                                                    92 
 93         partitions {                               93         partitions {
 94                 compatible = "fixed-partitions     94                 compatible = "fixed-partitions";
 95                 #address-cells = <1>;              95                 #address-cells = <1>;
 96                 #size-cells = <1>;                 96                 #size-cells = <1>;
 97                                                    97 
 98                 partition@0 {                      98                 partition@0 {
 99                         label = "u-boot";          99                         label = "u-boot";
100                         reg = <0x0 0x80000>;      100                         reg = <0x0 0x80000>;
101                         read-only;                101                         read-only;
102                 };                                102                 };
103                                                   103 
104                 partition@80000 {                 104                 partition@80000 {
105                         label = "u_env";          105                         label = "u_env";
106                         reg = <0x80000 0x20000    106                         reg = <0x80000 0x20000>;
107                 };                                107                 };
108                                                   108 
109                 partition@a0000 {                 109                 partition@a0000 {
110                         label = "s_env";          110                         label = "s_env";
111                         reg = <0xA0000 0x20000    111                         reg = <0xA0000 0x20000>;
112                 };                                112                 };
113                                                   113 
114                 partition@200000 {                114                 partition@200000 {
115                         label = "kernel";         115                         label = "kernel";
116                         reg = <0x200000 0x2A00    116                         reg = <0x200000 0x2A0000>;
117                 };                                117                 };
118                                                   118 
119                 partition@4a0000 {                119                 partition@4a0000 {
120                         label = "rootfs";         120                         label = "rootfs";
121                         reg = <0x4A0000 0x1760    121                         reg = <0x4A0000 0x1760000>;
122                 };                                122                 };
123                                                   123 
124                 partition@1c00000 {               124                 partition@1c00000 {
125                         label = "alt_kernel";     125                         label = "alt_kernel";
126                         reg = <0x1C00000 0x2A0    126                         reg = <0x1C00000 0x2A0000>;
127                 };                                127                 };
128                                                   128 
129                 partition@1ea0000 {               129                 partition@1ea0000 {
130                         label = "alt_rootfs";     130                         label = "alt_rootfs";
131                         reg = <0x1EA0000 0x176    131                         reg = <0x1EA0000 0x1760000>;
132                 };                                132                 };
133                                                   133 
134                 partition@3600000 {               134                 partition@3600000 {
135                         label = "syscfg";         135                         label = "syscfg";
136                         reg = <0x3600000 0x4A0    136                         reg = <0x3600000 0x4A00000>;
137                 };                                137                 };
138                                                   138 
139                 partition@c0000 {                 139                 partition@c0000 {
140                         label = "unused";         140                         label = "unused";
141                         reg = <0xC0000 0x14000    141                         reg = <0xC0000 0x140000>;
142                 };                                142                 };
143                                                   143 
144         };                                        144         };
145 };                                                145 };
146                                                   146 
147 &pciec {                                          147 &pciec {
148         status = "okay";                          148         status = "okay";
149 };                                                149 };
150                                                   150 
151 &pcie0 {                                          151 &pcie0 {
152         status = "okay";                          152         status = "okay";
153 };                                                153 };
154                                                   154 
155 &pcie1 {                                          155 &pcie1 {
156         status = "okay";                          156         status = "okay";
157 };                                                157 };
158                                                   158 
159 &mdio {                                           159 &mdio {
160         status = "okay";                          160         status = "okay";
161                                                   161 
162         switch@10 {                               162         switch@10 {
163                 compatible = "marvell,mv88e608    163                 compatible = "marvell,mv88e6085";
164                 #address-cells = <1>;             164                 #address-cells = <1>;
165                 #size-cells = <0>;                165                 #size-cells = <0>;
166                 reg = <16>;                       166                 reg = <16>;
167                                                   167 
168                 ports {                           168                 ports {
169                         #address-cells = <1>;     169                         #address-cells = <1>;
170                         #size-cells = <0>;        170                         #size-cells = <0>;
171                                                   171 
172                         port@0 {                  172                         port@0 {
173                                 reg = <0>;        173                                 reg = <0>;
174                                 label = "ether    174                                 label = "ethernet1";
175                         };                        175                         };
176                                                   176 
177                         port@1 {                  177                         port@1 {
178                                 reg = <1>;        178                                 reg = <1>;
179                                 label = "ether    179                                 label = "ethernet2";
180                         };                        180                         };
181                                                   181 
182                         port@2 {                  182                         port@2 {
183                                 reg = <2>;        183                                 reg = <2>;
184                                 label = "ether    184                                 label = "ethernet3";
185                         };                        185                         };
186                                                   186 
187                         port@3 {                  187                         port@3 {
188                                 reg = <3>;        188                                 reg = <3>;
189                                 label = "ether    189                                 label = "ethernet4";
190                         };                        190                         };
191                                                   191 
192                         port@4 {                  192                         port@4 {
193                                 reg = <4>;        193                                 reg = <4>;
194                                 label = "inter    194                                 label = "internet";
195                         };                        195                         };
196                                                   196 
197                         port@5 {                  197                         port@5 {
198                                 reg = <5>;        198                                 reg = <5>;
199                                 phy-mode = "rg    199                                 phy-mode = "rgmii-id";
200                                 ethernet = <&e    200                                 ethernet = <&eth0port>;
201                                 fixed-link {      201                                 fixed-link {
202                                         speed     202                                         speed = <1000>;
203                                         full-d    203                                         full-duplex;
204                                 };                204                                 };
205                         };                        205                         };
206                 };                                206                 };
207         };                                        207         };
208 };                                                208 };
209                                                   209 
210 &uart0 {                                          210 &uart0 {
211         status = "okay";                          211         status = "okay";
212 };                                                212 };
213                                                   213 
214 /* eth0 is connected to a Marvell 88E6171 swit    214 /* eth0 is connected to a Marvell 88E6171 switch, without a PHY. So set
215  * fixed speed and duplex.                        215  * fixed speed and duplex.
216  */                                               216  */
217 &eth0 {                                           217 &eth0 {
218         status = "okay";                          218         status = "okay";
219         ethernet0-port@0 {                        219         ethernet0-port@0 {
220                 speed = <1000>;                   220                 speed = <1000>;
221                 duplex = <1>;                     221                 duplex = <1>;
222                 phy-mode = "rgmii";               222                 phy-mode = "rgmii";
223         };                                        223         };
224 };                                                224 };
225                                                   225 
226 /* eth1 is connected to the switch at port 6.     226 /* eth1 is connected to the switch at port 6. However DSA only supports a
227  * single CPU port. So leave this port disable    227  * single CPU port. So leave this port disabled to avoid confusion.
228  */                                               228  */
229 &eth1 {                                           229 &eth1 {
230         status = "disabled";                      230         status = "disabled";
231 };                                                231 };
232                                                   232 
233 /* There is no battery on the board, so the RT    233 /* There is no battery on the board, so the RTC does not keep
234  * time when there is no power, making it usel    234  * time when there is no power, making it useless.
235  */                                               235  */
236 &rtc {                                            236 &rtc {
237         status = "disabled";                      237         status = "disabled";
238 };                                                238 };
239                                                   239 
                                                      

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