1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only 2724ba675SRob Herring/* 3724ba675SRob Herring * Copyright (C) 2014 Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 4724ba675SRob Herring * Copyright (C) Sylver Bruneau <sylver.bruneau@googlemail.com> 5724ba675SRob Herring */ 6724ba675SRob Herring 7724ba675SRob Herring/dts-v1/; 8724ba675SRob Herring 9724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 10724ba675SRob Herring#include <dt-bindings/input/input.h> 11724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h> 12724ba675SRob Herring#include "orion5x-mv88f5182.dtsi" 13724ba675SRob Herring 14724ba675SRob Herring/ { 15724ba675SRob Herring model = "Maxtor Shared Storage II"; 16724ba675SRob Herring compatible = "maxtor,shared-storage-2", "marvell,orion5x-88f5182", "marvell,orion5x"; 17724ba675SRob Herring 18724ba675SRob Herring memory { 19724ba675SRob Herring device_type = "memory"; 20724ba675SRob Herring reg = <0x00000000 0x4000000>; /* 64 MB */ 21724ba675SRob Herring }; 22724ba675SRob Herring 23724ba675SRob Herring chosen { 24724ba675SRob Herring bootargs = "console=ttyS0,115200n8 earlyprintk"; 25724ba675SRob Herring stdout-path = &uart0; 26724ba675SRob Herring }; 27724ba675SRob Herring 28724ba675SRob Herring soc { 29724ba675SRob Herring ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>, 30724ba675SRob Herring <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>, 31724ba675SRob Herring <MBUS_ID(0x01, 0x0f) 0 0xff800000 0x40000>; 32724ba675SRob Herring }; 33724ba675SRob Herring 34724ba675SRob Herring gpio-keys { 35724ba675SRob Herring compatible = "gpio-keys"; 36724ba675SRob Herring pinctrl-0 = <&pmx_buttons>; 37724ba675SRob Herring pinctrl-names = "default"; 38*85860863SKrzysztof Kozlowski 39*85860863SKrzysztof Kozlowski key-power { 40724ba675SRob Herring label = "Power"; 41724ba675SRob Herring linux,code = <KEY_POWER>; 42724ba675SRob Herring gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; 43724ba675SRob Herring }; 44724ba675SRob Herring 45*85860863SKrzysztof Kozlowski key-reset { 46724ba675SRob Herring label = "Reset"; 47724ba675SRob Herring linux,code = <KEY_RESTART>; 48724ba675SRob Herring gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; 49724ba675SRob Herring }; 50724ba675SRob Herring }; 51724ba675SRob Herring}; 52724ba675SRob Herring 53724ba675SRob Herring&devbus_bootcs { 54724ba675SRob Herring status = "okay"; 55724ba675SRob Herring 56724ba675SRob Herring devbus,keep-config; 57724ba675SRob Herring 58724ba675SRob Herring /* 59724ba675SRob Herring * Currently the MTD code does not recognize the MX29LV400CBCT 60724ba675SRob Herring * as a bottom-type device. This could cause risks of 61724ba675SRob Herring * accidentally erasing critical flash sectors. We thus define 62724ba675SRob Herring * a single, write-protected partition covering the whole 63724ba675SRob Herring * flash. TODO: once the flash part TOP/BOTTOM detection 64724ba675SRob Herring * issue is sorted out in the MTD code, break this into at 65724ba675SRob Herring * least three partitions: 'u-boot code', 'u-boot environment' 66724ba675SRob Herring * and 'whatever is left'. 67724ba675SRob Herring */ 68724ba675SRob Herring flash@0 { 69724ba675SRob Herring compatible = "cfi-flash"; 70724ba675SRob Herring reg = <0 0x40000>; 71724ba675SRob Herring bank-width = <1>; 72724ba675SRob Herring #address-cells = <1>; 73724ba675SRob Herring #size-cells = <1>; 74724ba675SRob Herring }; 75724ba675SRob Herring}; 76724ba675SRob Herring 77724ba675SRob Herring&mdio { 78724ba675SRob Herring status = "okay"; 79724ba675SRob Herring 80724ba675SRob Herring ethphy: ethernet-phy { 81724ba675SRob Herring reg = <8>; 82724ba675SRob Herring }; 83724ba675SRob Herring}; 84724ba675SRob Herring 85724ba675SRob Herring&ehci0 { 86724ba675SRob Herring status = "okay"; 87724ba675SRob Herring}; 88724ba675SRob Herring 89724ba675SRob Herringð { 90724ba675SRob Herring status = "okay"; 91724ba675SRob Herring 92724ba675SRob Herring ethernet-port@0 { 93724ba675SRob Herring phy-handle = <ðphy>; 94724ba675SRob Herring }; 95724ba675SRob Herring}; 96724ba675SRob Herring 97724ba675SRob Herring&i2c { 98724ba675SRob Herring status = "okay"; 99724ba675SRob Herring clock-frequency = <100000>; 100724ba675SRob Herring #address-cells = <1>; 101724ba675SRob Herring 102724ba675SRob Herring rtc@68 { 103724ba675SRob Herring compatible = "st,m41t81"; 104724ba675SRob Herring reg = <0x68>; 105724ba675SRob Herring pinctrl-0 = <&pmx_rtc>; 106724ba675SRob Herring pinctrl-names = "default"; 107724ba675SRob Herring interrupt-parent = <&gpio0>; 108724ba675SRob Herring interrupts = <3 IRQ_TYPE_LEVEL_LOW>; 109724ba675SRob Herring }; 110724ba675SRob Herring}; 111724ba675SRob Herring 112724ba675SRob Herring&pinctrl { 113724ba675SRob Herring pinctrl-0 = <&pmx_leds &pmx_misc>; 114724ba675SRob Herring pinctrl-names = "default"; 115724ba675SRob Herring 116724ba675SRob Herring pmx_buttons: pmx-buttons { 117724ba675SRob Herring marvell,pins = "mpp11", "mpp12"; 118724ba675SRob Herring marvell,function = "gpio"; 119724ba675SRob Herring }; 120724ba675SRob Herring 121724ba675SRob Herring /* 122724ba675SRob Herring * MPP0: Power LED 123724ba675SRob Herring * MPP1: Error LED 124724ba675SRob Herring */ 125724ba675SRob Herring pmx_leds: pmx-leds { 126724ba675SRob Herring marvell,pins = "mpp0", "mpp1"; 127724ba675SRob Herring marvell,function = "gpio"; 128724ba675SRob Herring }; 129724ba675SRob Herring 130724ba675SRob Herring /* 131724ba675SRob Herring * MPP4: HDD ind. (Single/Dual) 132724ba675SRob Herring * MPP5: HD0 5V control 133724ba675SRob Herring * MPP6: HD0 12V control 134724ba675SRob Herring * MPP7: HD1 5V control 135724ba675SRob Herring * MPP8: HD1 12V control 136724ba675SRob Herring */ 137724ba675SRob Herring pmx_misc: pmx-misc { 138724ba675SRob Herring marvell,pins = "mpp4", "mpp5", "mpp6", "mpp7", "mpp8", "mpp10"; 139724ba675SRob Herring marvell,function = "gpio"; 140724ba675SRob Herring }; 141724ba675SRob Herring 142724ba675SRob Herring pmx_rtc: pmx-rtc { 143724ba675SRob Herring marvell,pins = "mpp3"; 144724ba675SRob Herring marvell,function = "gpio"; 145724ba675SRob Herring }; 146724ba675SRob Herring 147724ba675SRob Herring pmx_sata0_led_active: pmx-sata0-led-active { 148724ba675SRob Herring marvell,pins = "mpp14"; 149724ba675SRob Herring marvell,function = "sata0"; 150724ba675SRob Herring }; 151724ba675SRob Herring 152724ba675SRob Herring pmx_sata1_led_active: pmx-sata1-led-active { 153724ba675SRob Herring marvell,pins = "mpp15"; 154724ba675SRob Herring marvell,function = "sata1"; 155724ba675SRob Herring }; 156724ba675SRob Herring 157724ba675SRob Herring /* 158724ba675SRob Herring * Non MPP GPIOs: 159724ba675SRob Herring * GPIO 22: USB port 1 fuse (0 = Fail, 1 = Ok) 160724ba675SRob Herring * GPIO 23: Blue front LED off 161724ba675SRob Herring * GPIO 24: Inhibit board power off (0 = Disabled, 1 = Enabled) 162724ba675SRob Herring */ 163724ba675SRob Herring}; 164724ba675SRob Herring 165724ba675SRob Herring&sata { 166724ba675SRob Herring pinctrl-0 = <&pmx_sata0_led_active 167724ba675SRob Herring &pmx_sata1_led_active>; 168724ba675SRob Herring pinctrl-names = "default"; 169724ba675SRob Herring status = "okay"; 170724ba675SRob Herring nr-ports = <2>; 171724ba675SRob Herring}; 172724ba675SRob Herring 173724ba675SRob Herring&uart0 { 174724ba675SRob Herring status = "okay"; 175724ba675SRob Herring}; 176