1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2724ba675SRob Herring/* 3724ba675SRob Herring * kirkwood-pogoplug-series-4.dts - Device tree file for PogoPlug Series 4 4724ba675SRob Herring * inspired by the board files made by Kevin Mihelich for ArchLinux, 5724ba675SRob Herring * and their DTS file. 6724ba675SRob Herring * 7724ba675SRob Herring * Copyright (C) 2015 Linus Walleij <linus.walleij@linaro.org> 8724ba675SRob Herring */ 9724ba675SRob Herring 10724ba675SRob Herring/dts-v1/; 11724ba675SRob Herring 12724ba675SRob Herring#include "kirkwood.dtsi" 13724ba675SRob Herring#include "kirkwood-6192.dtsi" 14724ba675SRob Herring#include <dt-bindings/input/linux-event-codes.h> 15724ba675SRob Herring 16724ba675SRob Herring/ { 17724ba675SRob Herring model = "Cloud Engines PogoPlug Series 4"; 18724ba675SRob Herring compatible = "cloudengines,pogoplugv4", "marvell,kirkwood-88f6192", 19724ba675SRob Herring "marvell,kirkwood"; 20724ba675SRob Herring 21724ba675SRob Herring memory { 22724ba675SRob Herring device_type = "memory"; 23724ba675SRob Herring reg = <0x00000000 0x08000000>; 24724ba675SRob Herring }; 25724ba675SRob Herring 26724ba675SRob Herring chosen { 27724ba675SRob Herring stdout-path = "uart0:115200n8"; 28724ba675SRob Herring }; 29724ba675SRob Herring 30724ba675SRob Herring gpio_keys { 31724ba675SRob Herring compatible = "gpio-keys"; 32724ba675SRob Herring pinctrl-0 = <&pmx_button_eject>; 33724ba675SRob Herring pinctrl-names = "default"; 34724ba675SRob Herring 35b98a9191SKrzysztof Kozlowski button-eject { 36724ba675SRob Herring debounce-interval = <50>; 37724ba675SRob Herring wakeup-source; 38724ba675SRob Herring linux,code = <KEY_EJECTCD>; 39724ba675SRob Herring label = "Eject Button"; 40724ba675SRob Herring gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; 41724ba675SRob Herring }; 42724ba675SRob Herring }; 43724ba675SRob Herring 44724ba675SRob Herring gpio-leds { 45724ba675SRob Herring compatible = "gpio-leds"; 46724ba675SRob Herring pinctrl-0 = <&pmx_led_green &pmx_led_red>; 47724ba675SRob Herring pinctrl-names = "default"; 48724ba675SRob Herring 49*9d0120b7SKrzysztof Kozlowski led-health { 50724ba675SRob Herring label = "pogoplugv4:green:health"; 51724ba675SRob Herring gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; 52724ba675SRob Herring default-state = "on"; 53724ba675SRob Herring }; 54*9d0120b7SKrzysztof Kozlowski led-fault { 55724ba675SRob Herring label = "pogoplugv4:red:fault"; 56724ba675SRob Herring gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; 57724ba675SRob Herring }; 58724ba675SRob Herring }; 59724ba675SRob Herring}; 60724ba675SRob Herring 61724ba675SRob Herring&pinctrl { 62724ba675SRob Herring pmx_sata0: pmx-sata0 { 63724ba675SRob Herring marvell,pins = "mpp21"; 64724ba675SRob Herring marvell,function = "sata0"; 65724ba675SRob Herring }; 66724ba675SRob Herring 67724ba675SRob Herring pmx_sata1: pmx-sata1 { 68724ba675SRob Herring marvell,pins = "mpp20"; 69724ba675SRob Herring marvell,function = "sata1"; 70724ba675SRob Herring }; 71724ba675SRob Herring 72724ba675SRob Herring pmx_sdio_cd: pmx-sdio-cd { 73724ba675SRob Herring marvell,pins = "mpp27"; 74724ba675SRob Herring marvell,function = "gpio"; 75724ba675SRob Herring }; 76724ba675SRob Herring 77724ba675SRob Herring pmx_sdio_wp: pmx-sdio-wp { 78724ba675SRob Herring marvell,pins = "mpp28"; 79724ba675SRob Herring marvell,function = "gpio"; 80724ba675SRob Herring }; 81724ba675SRob Herring 82724ba675SRob Herring pmx_button_eject: pmx-button-eject { 83724ba675SRob Herring marvell,pins = "mpp29"; 84724ba675SRob Herring marvell,function = "gpio"; 85724ba675SRob Herring }; 86724ba675SRob Herring 87724ba675SRob Herring pmx_led_green: pmx-led-green { 88724ba675SRob Herring marvell,pins = "mpp22"; 89724ba675SRob Herring marvell,function = "gpio"; 90724ba675SRob Herring }; 91724ba675SRob Herring 92724ba675SRob Herring pmx_led_red: pmx-led-red { 93724ba675SRob Herring marvell,pins = "mpp24"; 94724ba675SRob Herring marvell,function = "gpio"; 95724ba675SRob Herring }; 96724ba675SRob Herring}; 97724ba675SRob Herring 98724ba675SRob Herring&uart0 { 99724ba675SRob Herring status = "okay"; 100724ba675SRob Herring}; 101724ba675SRob Herring 102724ba675SRob Herring/* 103724ba675SRob Herring * This PCIE controller has a USB 3.0 XHCI controller at 1,0 104724ba675SRob Herring */ 105724ba675SRob Herring&pciec { 106724ba675SRob Herring status = "okay"; 107724ba675SRob Herring}; 108724ba675SRob Herring 109724ba675SRob Herring&pcie0 { 110724ba675SRob Herring status = "okay"; 111724ba675SRob Herring}; 112724ba675SRob Herring 113724ba675SRob Herring&sata { 114724ba675SRob Herring status = "okay"; 115724ba675SRob Herring pinctrl-0 = <&pmx_sata0 &pmx_sata1>; 116724ba675SRob Herring pinctrl-names = "default"; 117724ba675SRob Herring nr-ports = <1>; 118724ba675SRob Herring}; 119724ba675SRob Herring 120724ba675SRob Herring&sdio { 121724ba675SRob Herring status = "okay"; 122724ba675SRob Herring pinctrl-0 = <&pmx_sdio &pmx_sdio_cd &pmx_sdio_wp>; 123724ba675SRob Herring pinctrl-names = "default"; 124724ba675SRob Herring cd-gpios = <&gpio0 27 GPIO_ACTIVE_LOW>; 125724ba675SRob Herring wp-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>; 126724ba675SRob Herring}; 127724ba675SRob Herring 128724ba675SRob Herring&nand { 129724ba675SRob Herring /* 128 MiB of NAND flash */ 130724ba675SRob Herring chip-delay = <40>; 131724ba675SRob Herring status = "okay"; 132724ba675SRob Herring partitions { 133724ba675SRob Herring compatible = "fixed-partitions"; 134724ba675SRob Herring #address-cells = <1>; 135724ba675SRob Herring #size-cells = <1>; 136724ba675SRob Herring 137724ba675SRob Herring partition@0 { 138724ba675SRob Herring label = "u-boot"; 139724ba675SRob Herring reg = <0x00000000 0x200000>; 140724ba675SRob Herring read-only; 141724ba675SRob Herring }; 142724ba675SRob Herring 143724ba675SRob Herring partition@200000 { 144724ba675SRob Herring label = "uImage"; 145724ba675SRob Herring reg = <0x00200000 0x300000>; 146724ba675SRob Herring }; 147724ba675SRob Herring 148724ba675SRob Herring partition@500000 { 149724ba675SRob Herring label = "uImage2"; 150724ba675SRob Herring reg = <0x00500000 0x300000>; 151724ba675SRob Herring }; 152724ba675SRob Herring 153724ba675SRob Herring partition@800000 { 154724ba675SRob Herring label = "failsafe"; 155724ba675SRob Herring reg = <0x00800000 0x800000>; 156724ba675SRob Herring }; 157724ba675SRob Herring 158724ba675SRob Herring partition@1000000 { 159724ba675SRob Herring label = "root"; 160724ba675SRob Herring reg = <0x01000000 0x7000000>; 161724ba675SRob Herring }; 162724ba675SRob Herring }; 163724ba675SRob Herring}; 164724ba675SRob Herring 165724ba675SRob Herring&mdio { 166724ba675SRob Herring status = "okay"; 167724ba675SRob Herring 168724ba675SRob Herring ethphy0: ethernet-phy@0 { 169724ba675SRob Herring reg = <0>; 170724ba675SRob Herring }; 171724ba675SRob Herring}; 172724ba675SRob Herring 173724ba675SRob Herringð0 { 174724ba675SRob Herring status = "okay"; 175724ba675SRob Herring ethernet0-port@0 { 176724ba675SRob Herring phy-handle = <ðphy0>; 177724ba675SRob Herring }; 178724ba675SRob Herring}; 179