1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2f126890aSEmmanuel Vadot/* 3f126890aSEmmanuel Vadot * Marvell 88F6281 GTW GE Board 4f126890aSEmmanuel Vadot * 5f126890aSEmmanuel Vadot * Lennert Buytenhek <buytenh@marvell.com> 6f126890aSEmmanuel Vadot * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 7f126890aSEmmanuel Vadot * 8f126890aSEmmanuel Vadot * This file contains the definitions that are common between the 6281 9f126890aSEmmanuel Vadot * and 6282 variants of the Marvell Kirkwood Development Board. 10f126890aSEmmanuel Vadot */ 11f126890aSEmmanuel Vadot 12f126890aSEmmanuel Vadot/dts-v1/; 13f126890aSEmmanuel Vadot 14f126890aSEmmanuel Vadot#include "kirkwood.dtsi" 15f126890aSEmmanuel Vadot#include "kirkwood-6281.dtsi" 16f126890aSEmmanuel Vadot 17f126890aSEmmanuel Vadot/ { 18f126890aSEmmanuel Vadot model = "Marvell 88F6281 GTW GE Board"; 19f126890aSEmmanuel Vadot compatible = "marvell,mv88f6281gtw-ge", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 20f126890aSEmmanuel Vadot 21f126890aSEmmanuel Vadot memory { 22f126890aSEmmanuel Vadot device_type = "memory"; 23f126890aSEmmanuel Vadot reg = <0x00000000 0x20000000>; /* 512 MB */ 24f126890aSEmmanuel Vadot }; 25f126890aSEmmanuel Vadot 26f126890aSEmmanuel Vadot chosen { 27f126890aSEmmanuel Vadot bootargs = "console=ttyS0,115200n8 earlyprintk"; 28f126890aSEmmanuel Vadot stdout-path = &uart0; 29f126890aSEmmanuel Vadot }; 30f126890aSEmmanuel Vadot 31f126890aSEmmanuel Vadot ocp@f1000000 { 32f126890aSEmmanuel Vadot pin-controller@10000 { 33f126890aSEmmanuel Vadot pmx_usb_led: pmx-usb-led { 34f126890aSEmmanuel Vadot marvell,pins = "mpp12"; 35f126890aSEmmanuel Vadot marvell,function = "gpo"; 36f126890aSEmmanuel Vadot }; 37f126890aSEmmanuel Vadot 38f126890aSEmmanuel Vadot pmx_leds: pmx-leds { 39f126890aSEmmanuel Vadot marvell,pins = "mpp20", "mpp21"; 40f126890aSEmmanuel Vadot marvell,function = "gpio"; 41f126890aSEmmanuel Vadot }; 42f126890aSEmmanuel Vadot 43f126890aSEmmanuel Vadot pmx_keys: pmx-keys { 44f126890aSEmmanuel Vadot marvell,pins = "mpp46", "mpp47"; 45f126890aSEmmanuel Vadot marvell,function = "gpio"; 46f126890aSEmmanuel Vadot }; 47f126890aSEmmanuel Vadot }; 48f126890aSEmmanuel Vadot 49f126890aSEmmanuel Vadot spi@10600 { 50f126890aSEmmanuel Vadot status = "okay"; 51f126890aSEmmanuel Vadot 52f126890aSEmmanuel Vadot flash@0 { 53f126890aSEmmanuel Vadot #address-cells = <1>; 54f126890aSEmmanuel Vadot #size-cells = <1>; 55f126890aSEmmanuel Vadot compatible = "mxicy,mx25l12805d", "jedec,spi-nor"; 56f126890aSEmmanuel Vadot reg = <0>; 57f126890aSEmmanuel Vadot spi-max-frequency = <50000000>; 58f126890aSEmmanuel Vadot mode = <0>; 59f126890aSEmmanuel Vadot }; 60f126890aSEmmanuel Vadot }; 61f126890aSEmmanuel Vadot 62f126890aSEmmanuel Vadot serial@12000 { 63f126890aSEmmanuel Vadot status = "okay"; 64f126890aSEmmanuel Vadot }; 65f126890aSEmmanuel Vadot 66f126890aSEmmanuel Vadot ehci@50000 { 67f126890aSEmmanuel Vadot status = "okay"; 68f126890aSEmmanuel Vadot }; 69f126890aSEmmanuel Vadot }; 70f126890aSEmmanuel Vadot 71f126890aSEmmanuel Vadot gpio-leds { 72f126890aSEmmanuel Vadot compatible = "gpio-leds"; 73f126890aSEmmanuel Vadot pinctrl-0 = <&pmx_leds &pmx_usb_led>; 74f126890aSEmmanuel Vadot pinctrl-names = "default"; 75f126890aSEmmanuel Vadot 76*0e8011faSEmmanuel Vadot led-green-status { 77f126890aSEmmanuel Vadot label = "gtw:green:Status"; 78f126890aSEmmanuel Vadot gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; 79f126890aSEmmanuel Vadot }; 80f126890aSEmmanuel Vadot 81*0e8011faSEmmanuel Vadot led-red-status { 82f126890aSEmmanuel Vadot label = "gtw:red:Status"; 83f126890aSEmmanuel Vadot gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>; 84f126890aSEmmanuel Vadot }; 85f126890aSEmmanuel Vadot 86*0e8011faSEmmanuel Vadot led-green-usb { 87f126890aSEmmanuel Vadot label = "gtw:green:USB"; 88f126890aSEmmanuel Vadot gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; 89f126890aSEmmanuel Vadot }; 90f126890aSEmmanuel Vadot }; 91f126890aSEmmanuel Vadot 92f126890aSEmmanuel Vadot gpio_keys { 93f126890aSEmmanuel Vadot compatible = "gpio-keys"; 94f126890aSEmmanuel Vadot pinctrl-0 = <&pmx_keys>; 95f126890aSEmmanuel Vadot pinctrl-names = "default"; 96f126890aSEmmanuel Vadot 97*0e8011faSEmmanuel Vadot button-restart { 98f126890aSEmmanuel Vadot label = "SWR Button"; 99f126890aSEmmanuel Vadot linux,code = <KEY_RESTART>; 100f126890aSEmmanuel Vadot gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; 101f126890aSEmmanuel Vadot }; 102*0e8011faSEmmanuel Vadot button-wps { 103f126890aSEmmanuel Vadot label = "WPS Button"; 104f126890aSEmmanuel Vadot linux,code = <KEY_WPS_BUTTON>; 105f126890aSEmmanuel Vadot gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; 106f126890aSEmmanuel Vadot }; 107f126890aSEmmanuel Vadot }; 108f126890aSEmmanuel Vadot}; 109f126890aSEmmanuel Vadot 110f126890aSEmmanuel Vadot&mdio { 111f126890aSEmmanuel Vadot status = "okay"; 112f126890aSEmmanuel Vadot 113f126890aSEmmanuel Vadot switch@0 { 114f126890aSEmmanuel Vadot compatible = "marvell,mv88e6085"; 115f126890aSEmmanuel Vadot #address-cells = <1>; 116f126890aSEmmanuel Vadot #size-cells = <0>; 117f126890aSEmmanuel Vadot reg = <0>; 118f126890aSEmmanuel Vadot 119f126890aSEmmanuel Vadot ports { 120f126890aSEmmanuel Vadot #address-cells = <1>; 121f126890aSEmmanuel Vadot #size-cells = <0>; 122f126890aSEmmanuel Vadot 123f126890aSEmmanuel Vadot port@0 { 124f126890aSEmmanuel Vadot reg = <0>; 125f126890aSEmmanuel Vadot label = "lan1"; 126f126890aSEmmanuel Vadot }; 127f126890aSEmmanuel Vadot 128f126890aSEmmanuel Vadot port@1 { 129f126890aSEmmanuel Vadot reg = <1>; 130f126890aSEmmanuel Vadot label = "lan2"; 131f126890aSEmmanuel Vadot }; 132f126890aSEmmanuel Vadot 133f126890aSEmmanuel Vadot port@2 { 134f126890aSEmmanuel Vadot reg = <2>; 135f126890aSEmmanuel Vadot label = "lan3"; 136f126890aSEmmanuel Vadot }; 137f126890aSEmmanuel Vadot 138f126890aSEmmanuel Vadot port@3 { 139f126890aSEmmanuel Vadot reg = <3>; 140f126890aSEmmanuel Vadot label = "lan4"; 141f126890aSEmmanuel Vadot }; 142f126890aSEmmanuel Vadot 143f126890aSEmmanuel Vadot port@4 { 144f126890aSEmmanuel Vadot reg = <4>; 145f126890aSEmmanuel Vadot label = "wan"; 146f126890aSEmmanuel Vadot }; 147f126890aSEmmanuel Vadot 148f126890aSEmmanuel Vadot port@5 { 149f126890aSEmmanuel Vadot reg = <5>; 150f126890aSEmmanuel Vadot phy-mode = "rgmii-id"; 151f126890aSEmmanuel Vadot ethernet = <ð0port>; 152f126890aSEmmanuel Vadot fixed-link { 153f126890aSEmmanuel Vadot speed = <1000>; 154f126890aSEmmanuel Vadot full-duplex; 155f126890aSEmmanuel Vadot }; 156f126890aSEmmanuel Vadot }; 157f126890aSEmmanuel Vadot }; 158f126890aSEmmanuel Vadot }; 159f126890aSEmmanuel Vadot}; 160f126890aSEmmanuel Vadot 161f126890aSEmmanuel Vadotð0 { 162f126890aSEmmanuel Vadot status = "okay"; 163f126890aSEmmanuel Vadot 164f126890aSEmmanuel Vadot ethernet0-port@0 { 165f126890aSEmmanuel Vadot speed = <1000>; 166f126890aSEmmanuel Vadot duplex = <1>; 167f126890aSEmmanuel Vadot phy-mode = "rgmii"; 168f126890aSEmmanuel Vadot }; 169f126890aSEmmanuel Vadot}; 170f126890aSEmmanuel Vadot 171f126890aSEmmanuel Vadot&pciec { 172f126890aSEmmanuel Vadot status = "okay"; 173f126890aSEmmanuel Vadot}; 174f126890aSEmmanuel Vadot 175f126890aSEmmanuel Vadot&pcie0 { 176f126890aSEmmanuel Vadot status = "okay"; 177f126890aSEmmanuel Vadot}; 178