Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Marvell 88F6281 GTW GE Board
0004  *
0005  * Lennert Buytenhek <buytenh@marvell.com>
0006  * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
0007  *
0008  * This file contains the definitions that are common between the 6281
0009  * and 6282 variants of the Marvell Kirkwood Development Board.
0010  */
0011 
0012 /dts-v1/;
0013 
0014 #include "kirkwood.dtsi"
0015 #include "kirkwood-6281.dtsi"
0016 
0017 / {
0018         model = "Marvell 88F6281 GTW GE Board";
0019         compatible = "marvell,mv88f6281gtw-ge", "marvell,kirkwood-88f6281", "marvell,kirkwood";
0020 
0021         memory {
0022                 device_type = "memory";
0023                 reg = <0x00000000 0x20000000>; /* 512 MB */
0024         };
0025 
0026         chosen {
0027                 bootargs = "console=ttyS0,115200n8 earlyprintk";
0028                 stdout-path = &uart0;
0029         };
0030 
0031         ocp@f1000000 {
0032                 pin-controller@10000 {
0033                         pmx_usb_led: pmx-usb-led {
0034                                 marvell,pins = "mpp12";
0035                                 marvell,function = "gpo";
0036                         };
0037 
0038                         pmx_leds: pmx-leds {
0039                                 marvell,pins = "mpp20", "mpp21";
0040                                 marvell,function = "gpio";
0041                         };
0042 
0043                         pmx_keys: pmx-keys {
0044                                 marvell,pins = "mpp46", "mpp47";
0045                                 marvell,function = "gpio";
0046                         };
0047                 };
0048 
0049                 spi@10600 {
0050                         status = "okay";
0051 
0052                         flash@0 {
0053                                 #address-cells = <1>;
0054                                 #size-cells = <1>;
0055                                 compatible = "mxicy,mx25l12805d", "jedec,spi-nor";
0056                                 reg = <0>;
0057                                 spi-max-frequency = <50000000>;
0058                                 mode = <0>;
0059                         };
0060                 };
0061 
0062                 serial@12000 {
0063                         status = "okay";
0064                 };
0065 
0066                 ehci@50000 {
0067                         status = "okay";
0068                 };
0069         };
0070 
0071         gpio-leds {
0072                 compatible = "gpio-leds";
0073                 pinctrl-0 = <&pmx_leds &pmx_usb_led>;
0074                 pinctrl-names = "default";
0075 
0076                 green-status {
0077                         label = "gtw:green:Status";
0078                         gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
0079                 };
0080 
0081                 red-status {
0082                         label = "gtw:red:Status";
0083                         gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
0084                 };
0085 
0086                 green-usb {
0087                         label = "gtw:green:USB";
0088                         gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
0089                 };
0090         };
0091 
0092         gpio_keys {
0093                 compatible = "gpio-keys";
0094                 #address-cells = <1>;
0095                 #size-cells = <0>;
0096                 pinctrl-0 = <&pmx_keys>;
0097                 pinctrl-names = "default";
0098 
0099                 restart {
0100                         label = "SWR Button";
0101                         linux,code = <KEY_RESTART>;
0102                         gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
0103                 };
0104                 wps {
0105                         label = "WPS Button";
0106                         linux,code = <KEY_WPS_BUTTON>;
0107                         gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
0108                 };
0109         };
0110 };
0111 
0112 &mdio {
0113         status = "okay";
0114 
0115         switch@0 {
0116                 compatible = "marvell,mv88e6085";
0117                 #address-cells = <1>;
0118                 #size-cells = <0>;
0119                 reg = <0>;
0120 
0121                 ports {
0122                         #address-cells = <1>;
0123                         #size-cells = <0>;
0124 
0125                         port@0 {
0126                                 reg = <0>;
0127                                 label = "lan1";
0128                         };
0129 
0130                         port@1 {
0131                                 reg = <1>;
0132                                 label = "lan2";
0133                         };
0134 
0135                         port@2 {
0136                                 reg = <2>;
0137                                 label = "lan3";
0138                         };
0139 
0140                         port@3 {
0141                                 reg = <3>;
0142                                 label = "lan4";
0143                         };
0144 
0145                         port@4 {
0146                                 reg = <4>;
0147                                 label = "wan";
0148                         };
0149 
0150                         port@5 {
0151                                 reg = <5>;
0152                                 label = "cpu";
0153                                 ethernet = <&eth0port>;
0154                                 fixed-link {
0155                                         speed = <1000>;
0156                                         full-duplex;
0157                                 };
0158                         };
0159                 };
0160         };
0161 };
0162 
0163 &eth0 {
0164         status = "okay";
0165 
0166         ethernet0-port@0 {
0167                 speed = <1000>;
0168                 duplex = <1>;
0169         };
0170 };
0171 
0172 &pciec {
0173         status = "okay";
0174 };
0175 
0176 &pcie0 {
0177         status = "okay";
0178 };