1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2014 Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 4 * Copyright (C) Sylver Bruneau <sylver.bruneau@googlemail.com> 5 */ 6 7/dts-v1/; 8 9#include <dt-bindings/gpio/gpio.h> 10#include <dt-bindings/input/input.h> 11#include <dt-bindings/interrupt-controller/irq.h> 12#include "orion5x-mv88f5182.dtsi" 13 14/ { 15 model = "Maxtor Shared Storage II"; 16 compatible = "maxtor,shared-storage-2", "marvell,orion5x-88f5182", "marvell,orion5x"; 17 18 memory { 19 device_type = "memory"; 20 reg = <0x00000000 0x4000000>; /* 64 MB */ 21 }; 22 23 chosen { 24 bootargs = "console=ttyS0,115200n8 earlyprintk"; 25 stdout-path = &uart0; 26 }; 27 28 soc { 29 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>, 30 <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>, 31 <MBUS_ID(0x01, 0x0f) 0 0xff800000 0x40000>; 32 }; 33 34 gpio-keys { 35 compatible = "gpio-keys"; 36 pinctrl-0 = <&pmx_buttons>; 37 pinctrl-names = "default"; 38 #address-cells = <1>; 39 #size-cells = <0>; 40 41 key-power { 42 label = "Power"; 43 linux,code = <KEY_POWER>; 44 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; 45 }; 46 47 key-reset { 48 label = "Reset"; 49 linux,code = <KEY_RESTART>; 50 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; 51 }; 52 }; 53}; 54 55&devbus_bootcs { 56 status = "okay"; 57 58 devbus,keep-config; 59 60 /* 61 * Currently the MTD code does not recognize the MX29LV400CBCT 62 * as a bottom-type device. This could cause risks of 63 * accidentally erasing critical flash sectors. We thus define 64 * a single, write-protected partition covering the whole 65 * flash. TODO: once the flash part TOP/BOTTOM detection 66 * issue is sorted out in the MTD code, break this into at 67 * least three partitions: 'u-boot code', 'u-boot environment' 68 * and 'whatever is left'. 69 */ 70 flash@0 { 71 compatible = "cfi-flash"; 72 reg = <0 0x40000>; 73 bank-width = <1>; 74 #address-cells = <1>; 75 #size-cells = <1>; 76 }; 77}; 78 79&mdio { 80 status = "okay"; 81 82 ethphy: ethernet-phy { 83 reg = <8>; 84 }; 85}; 86 87&ehci0 { 88 status = "okay"; 89}; 90 91ð { 92 status = "okay"; 93 94 ethernet-port@0 { 95 phy-handle = <ðphy>; 96 }; 97}; 98 99&i2c { 100 status = "okay"; 101 clock-frequency = <100000>; 102 #address-cells = <1>; 103 104 rtc@68 { 105 compatible = "st,m41t81"; 106 reg = <0x68>; 107 pinctrl-0 = <&pmx_rtc>; 108 pinctrl-names = "default"; 109 interrupt-parent = <&gpio0>; 110 interrupts = <3 IRQ_TYPE_LEVEL_LOW>; 111 }; 112}; 113 114&pinctrl { 115 pinctrl-0 = <&pmx_leds &pmx_misc>; 116 pinctrl-names = "default"; 117 118 pmx_buttons: pmx-buttons { 119 marvell,pins = "mpp11", "mpp12"; 120 marvell,function = "gpio"; 121 }; 122 123 /* 124 * MPP0: Power LED 125 * MPP1: Error LED 126 */ 127 pmx_leds: pmx-leds { 128 marvell,pins = "mpp0", "mpp1"; 129 marvell,function = "gpio"; 130 }; 131 132 /* 133 * MPP4: HDD ind. (Single/Dual) 134 * MPP5: HD0 5V control 135 * MPP6: HD0 12V control 136 * MPP7: HD1 5V control 137 * MPP8: HD1 12V control 138 */ 139 pmx_misc: pmx-misc { 140 marvell,pins = "mpp4", "mpp5", "mpp6", "mpp7", "mpp8", "mpp10"; 141 marvell,function = "gpio"; 142 }; 143 144 pmx_rtc: pmx-rtc { 145 marvell,pins = "mpp3"; 146 marvell,function = "gpio"; 147 }; 148 149 pmx_sata0_led_active: pmx-sata0-led-active { 150 marvell,pins = "mpp14"; 151 marvell,function = "sata0"; 152 }; 153 154 pmx_sata1_led_active: pmx-sata1-led-active { 155 marvell,pins = "mpp15"; 156 marvell,function = "sata1"; 157 }; 158 159 /* 160 * Non MPP GPIOs: 161 * GPIO 22: USB port 1 fuse (0 = Fail, 1 = Ok) 162 * GPIO 23: Blue front LED off 163 * GPIO 24: Inhibit board power off (0 = Disabled, 1 = Enabled) 164 */ 165}; 166 167&sata { 168 pinctrl-0 = <&pmx_sata0_led_active 169 &pmx_sata1_led_active>; 170 pinctrl-names = "default"; 171 status = "okay"; 172 nr-ports = <2>; 173}; 174 175&uart0 { 176 status = "okay"; 177}; 178