1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Endian 4i Edge 200 Board Description 4*724ba675SRob Herring * Note: Endian UTM Mini is hardware clone of Endian Edge 200 5*724ba675SRob Herring * Copyright 2021-2022 Pawel Dembicki <paweldembicki@gmail.com> 6*724ba675SRob Herring */ 7*724ba675SRob Herring 8*724ba675SRob Herring/dts-v1/; 9*724ba675SRob Herring 10*724ba675SRob Herring#include "kirkwood.dtsi" 11*724ba675SRob Herring#include "kirkwood-6281.dtsi" 12*724ba675SRob Herring#include <dt-bindings/leds/common.h> 13*724ba675SRob Herring 14*724ba675SRob Herring/ { 15*724ba675SRob Herring model = "Endian 4i Edge 200"; 16*724ba675SRob Herring compatible = "endian,4i-edge-200", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 17*724ba675SRob Herring 18*724ba675SRob Herring memory { 19*724ba675SRob Herring device_type = "memory"; 20*724ba675SRob Herring reg = <0x00000000 0x20000000>; 21*724ba675SRob Herring }; 22*724ba675SRob Herring 23*724ba675SRob Herring chosen { 24*724ba675SRob Herring bootargs = "console=ttyS0,115200n8"; 25*724ba675SRob Herring stdout-path = &uart0; 26*724ba675SRob Herring }; 27*724ba675SRob Herring 28*724ba675SRob Herring leds { 29*724ba675SRob Herring compatible = "gpio-leds"; 30*724ba675SRob Herring pinctrl-0 = <&pmx_led>; 31*724ba675SRob Herring pinctrl-names = "default"; 32*724ba675SRob Herring 33*724ba675SRob Herring led-1 { 34*724ba675SRob Herring function = LED_FUNCTION_SD; 35*724ba675SRob Herring color = <LED_COLOR_ID_AMBER>; 36*724ba675SRob Herring gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; 37*724ba675SRob Herring linux,default-trigger = "mmc0"; 38*724ba675SRob Herring }; 39*724ba675SRob Herring 40*724ba675SRob Herring led-2 { 41*724ba675SRob Herring function = LED_FUNCTION_STATUS; 42*724ba675SRob Herring color = <LED_COLOR_ID_AMBER>; 43*724ba675SRob Herring gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; 44*724ba675SRob Herring }; 45*724ba675SRob Herring 46*724ba675SRob Herring led-3 { 47*724ba675SRob Herring function = LED_FUNCTION_STATUS; 48*724ba675SRob Herring color = <LED_COLOR_ID_GREEN>; 49*724ba675SRob Herring gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>; 50*724ba675SRob Herring }; 51*724ba675SRob Herring }; 52*724ba675SRob Herring}; 53*724ba675SRob Herring 54*724ba675SRob Herringð0 { 55*724ba675SRob Herring status = "okay"; 56*724ba675SRob Herring}; 57*724ba675SRob Herring 58*724ba675SRob Herringð0port { 59*724ba675SRob Herring speed = <1000>; 60*724ba675SRob Herring duplex = <1>; 61*724ba675SRob Herring}; 62*724ba675SRob Herring 63*724ba675SRob Herringð1 { 64*724ba675SRob Herring status = "okay"; 65*724ba675SRob Herring}; 66*724ba675SRob Herring 67*724ba675SRob Herringð1port { 68*724ba675SRob Herring phy-handle = <ðphyb>; 69*724ba675SRob Herring}; 70*724ba675SRob Herring 71*724ba675SRob Herring&mdio { 72*724ba675SRob Herring status = "okay"; 73*724ba675SRob Herring 74*724ba675SRob Herring ethphyb: ethernet-phy@b { 75*724ba675SRob Herring reg = <0x0b>; 76*724ba675SRob Herring 77*724ba675SRob Herring marvell,reg-init = 78*724ba675SRob Herring /* link-activity, bi-color mode 4 */ 79*724ba675SRob Herring <3 0x10 0xfff0 0xf>; /* Reg 3,16 <- 0xzzzf */ 80*724ba675SRob Herring }; 81*724ba675SRob Herring 82*724ba675SRob Herring switch0: switch@11 { 83*724ba675SRob Herring compatible = "marvell,mv88e6085"; 84*724ba675SRob Herring reg = <0x11>; 85*724ba675SRob Herring 86*724ba675SRob Herring ports { 87*724ba675SRob Herring #address-cells = <1>; 88*724ba675SRob Herring #size-cells = <0>; 89*724ba675SRob Herring 90*724ba675SRob Herring port@0 { 91*724ba675SRob Herring reg = <0>; 92*724ba675SRob Herring label = "port1"; 93*724ba675SRob Herring }; 94*724ba675SRob Herring 95*724ba675SRob Herring port@1 { 96*724ba675SRob Herring reg = <1>; 97*724ba675SRob Herring label = "port2"; 98*724ba675SRob Herring }; 99*724ba675SRob Herring 100*724ba675SRob Herring port@2 { 101*724ba675SRob Herring reg = <2>; 102*724ba675SRob Herring label = "port3"; 103*724ba675SRob Herring }; 104*724ba675SRob Herring 105*724ba675SRob Herring port@3 { 106*724ba675SRob Herring reg = <3>; 107*724ba675SRob Herring label = "port4"; 108*724ba675SRob Herring }; 109*724ba675SRob Herring 110*724ba675SRob Herring port@5 { 111*724ba675SRob Herring reg = <5>; 112*724ba675SRob Herring phy-mode = "rgmii-id"; 113*724ba675SRob Herring ethernet = <ð0port>; 114*724ba675SRob Herring 115*724ba675SRob Herring fixed-link { 116*724ba675SRob Herring speed = <1000>; 117*724ba675SRob Herring full-duplex; 118*724ba675SRob Herring }; 119*724ba675SRob Herring }; 120*724ba675SRob Herring }; 121*724ba675SRob Herring }; 122*724ba675SRob Herring}; 123*724ba675SRob Herring 124*724ba675SRob Herring&nand { 125*724ba675SRob Herring status = "okay"; 126*724ba675SRob Herring pinctrl-0 = <&pmx_nand>; 127*724ba675SRob Herring pinctrl-names = "default"; 128*724ba675SRob Herring 129*724ba675SRob Herring partition@0 { 130*724ba675SRob Herring label = "u-boot"; 131*724ba675SRob Herring reg = <0x00000000 0x000a0000>; 132*724ba675SRob Herring read-only; 133*724ba675SRob Herring }; 134*724ba675SRob Herring 135*724ba675SRob Herring partition@a0000 { 136*724ba675SRob Herring label = "u-boot-env"; 137*724ba675SRob Herring reg = <0x000a0000 0x00060000>; 138*724ba675SRob Herring read-only; 139*724ba675SRob Herring }; 140*724ba675SRob Herring 141*724ba675SRob Herring partition@100000 { 142*724ba675SRob Herring label = "kernel"; 143*724ba675SRob Herring reg = <0x00100000 0x00400000>; 144*724ba675SRob Herring }; 145*724ba675SRob Herring 146*724ba675SRob Herring partition@500000 { 147*724ba675SRob Herring label = "ubi"; 148*724ba675SRob Herring reg = <0x00500000 0x1fb00000>; 149*724ba675SRob Herring }; 150*724ba675SRob Herring}; 151*724ba675SRob Herring 152*724ba675SRob Herring&pciec { 153*724ba675SRob Herring status = "okay"; 154*724ba675SRob Herring}; 155*724ba675SRob Herring 156*724ba675SRob Herring&pcie0 { 157*724ba675SRob Herring status = "okay"; 158*724ba675SRob Herring}; 159*724ba675SRob Herring 160*724ba675SRob Herring&pinctrl { 161*724ba675SRob Herring pinctrl-0 = <&pmx_sysrst>; 162*724ba675SRob Herring pinctrl-names = "default"; 163*724ba675SRob Herring 164*724ba675SRob Herring pmx_sysrst: pmx-sysrst { 165*724ba675SRob Herring marvell,pins = "mpp6"; 166*724ba675SRob Herring marvell,function = "sysrst"; 167*724ba675SRob Herring }; 168*724ba675SRob Herring 169*724ba675SRob Herring pmx_sdio_cd: pmx-sdio-cd { 170*724ba675SRob Herring marvell,pins = "mpp28"; 171*724ba675SRob Herring marvell,function = "gpio"; 172*724ba675SRob Herring }; 173*724ba675SRob Herring 174*724ba675SRob Herring pmx_led: pmx-led { 175*724ba675SRob Herring marvell,pins = "mpp34", "mpp35", "mpp49"; 176*724ba675SRob Herring marvell,function = "gpio"; 177*724ba675SRob Herring }; 178*724ba675SRob Herring}; 179*724ba675SRob Herring 180*724ba675SRob Herring&rtc { 181*724ba675SRob Herring status = "okay"; 182*724ba675SRob Herring}; 183*724ba675SRob Herring 184*724ba675SRob Herring&sata_phy0 { 185*724ba675SRob Herring status = "disabled"; 186*724ba675SRob Herring}; 187*724ba675SRob Herring 188*724ba675SRob Herring&sata_phy1 { 189*724ba675SRob Herring status = "disabled"; 190*724ba675SRob Herring}; 191*724ba675SRob Herring 192*724ba675SRob Herring&sdio { 193*724ba675SRob Herring pinctrl-0 = <&pmx_sdio_cd>; 194*724ba675SRob Herring pinctrl-names = "default"; 195*724ba675SRob Herring status = "okay"; 196*724ba675SRob Herring cd-gpios = <&gpio0 28 9>; 197*724ba675SRob Herring}; 198*724ba675SRob Herring 199*724ba675SRob Herring&uart0 { 200*724ba675SRob Herring status = "okay"; 201*724ba675SRob Herring}; 202*724ba675SRob Herring 203*724ba675SRob Herring&usb0 { 204*724ba675SRob Herring status = "okay"; 205*724ba675SRob Herring}; 206