0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * Copyright (C) 2014 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
0004 * Copyright (C) Sylver Bruneau <sylver.bruneau@googlemail.com>
0005 */
0006
0007 /dts-v1/;
0008
0009 #include <dt-bindings/gpio/gpio.h>
0010 #include <dt-bindings/input/input.h>
0011 #include <dt-bindings/interrupt-controller/irq.h>
0012 #include "orion5x-mv88f5182.dtsi"
0013
0014 / {
0015 model = "Maxtor Shared Storage II";
0016 compatible = "maxtor,shared-storage-2", "marvell,orion5x-88f5182", "marvell,orion5x";
0017
0018 memory {
0019 device_type = "memory";
0020 reg = <0x00000000 0x4000000>; /* 64 MB */
0021 };
0022
0023 chosen {
0024 bootargs = "console=ttyS0,115200n8 earlyprintk";
0025 stdout-path = &uart0;
0026 };
0027
0028 soc {
0029 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>,
0030 <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>,
0031 <MBUS_ID(0x01, 0x0f) 0 0xff800000 0x40000>;
0032 };
0033
0034 gpio-keys {
0035 compatible = "gpio-keys";
0036 pinctrl-0 = <&pmx_buttons>;
0037 pinctrl-names = "default";
0038 #address-cells = <1>;
0039 #size-cells = <0>;
0040 power {
0041 label = "Power";
0042 linux,code = <KEY_POWER>;
0043 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
0044 };
0045
0046 reset {
0047 label = "Reset";
0048 linux,code = <KEY_RESTART>;
0049 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
0050 };
0051 };
0052 };
0053
0054 &devbus_bootcs {
0055 status = "okay";
0056
0057 devbus,keep-config;
0058
0059 /*
0060 * Currently the MTD code does not recognize the MX29LV400CBCT
0061 * as a bottom-type device. This could cause risks of
0062 * accidentally erasing critical flash sectors. We thus define
0063 * a single, write-protected partition covering the whole
0064 * flash. TODO: once the flash part TOP/BOTTOM detection
0065 * issue is sorted out in the MTD code, break this into at
0066 * least three partitions: 'u-boot code', 'u-boot environment'
0067 * and 'whatever is left'.
0068 */
0069 flash@0 {
0070 compatible = "cfi-flash";
0071 reg = <0 0x40000>;
0072 bank-width = <1>;
0073 #address-cells = <1>;
0074 #size-cells = <1>;
0075 };
0076 };
0077
0078 &mdio {
0079 status = "okay";
0080
0081 ethphy: ethernet-phy {
0082 reg = <8>;
0083 };
0084 };
0085
0086 &ehci0 {
0087 status = "okay";
0088 };
0089
0090 ð {
0091 status = "okay";
0092
0093 ethernet-port@0 {
0094 phy-handle = <ðphy>;
0095 };
0096 };
0097
0098 &i2c {
0099 status = "okay";
0100 clock-frequency = <100000>;
0101 #address-cells = <1>;
0102
0103 rtc@68 {
0104 compatible = "st,m41t81";
0105 reg = <0x68>;
0106 pinctrl-0 = <&pmx_rtc>;
0107 pinctrl-names = "default";
0108 interrupt-parent = <&gpio0>;
0109 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
0110 };
0111 };
0112
0113 &pinctrl {
0114 pinctrl-0 = <&pmx_leds &pmx_misc>;
0115 pinctrl-names = "default";
0116
0117 pmx_buttons: pmx-buttons {
0118 marvell,pins = "mpp11", "mpp12";
0119 marvell,function = "gpio";
0120 };
0121
0122 /*
0123 * MPP0: Power LED
0124 * MPP1: Error LED
0125 */
0126 pmx_leds: pmx-leds {
0127 marvell,pins = "mpp0", "mpp1";
0128 marvell,function = "gpio";
0129 };
0130
0131 /*
0132 * MPP4: HDD ind. (Single/Dual)
0133 * MPP5: HD0 5V control
0134 * MPP6: HD0 12V control
0135 * MPP7: HD1 5V control
0136 * MPP8: HD1 12V control
0137 */
0138 pmx_misc: pmx-misc {
0139 marvell,pins = "mpp4", "mpp5", "mpp6", "mpp7", "mpp8", "mpp10";
0140 marvell,function = "gpio";
0141 };
0142
0143 pmx_rtc: pmx-rtc {
0144 marvell,pins = "mpp3";
0145 marvell,function = "gpio";
0146 };
0147
0148 pmx_sata0_led_active: pmx-sata0-led-active {
0149 marvell,pins = "mpp14";
0150 marvell,function = "sata0";
0151 };
0152
0153 pmx_sata1_led_active: pmx-sata1-led-active {
0154 marvell,pins = "mpp15";
0155 marvell,function = "sata1";
0156 };
0157
0158 /*
0159 * Non MPP GPIOs:
0160 * GPIO 22: USB port 1 fuse (0 = Fail, 1 = Ok)
0161 * GPIO 23: Blue front LED off
0162 * GPIO 24: Inhibit board power off (0 = Disabled, 1 = Enabled)
0163 */
0164 };
0165
0166 &sata {
0167 pinctrl-0 = <&pmx_sata0_led_active
0168 &pmx_sata1_led_active>;
0169 pinctrl-names = "default";
0170 status = "okay";
0171 nr-ports = <2>;
0172 };
0173
0174 &uart0 {
0175 status = "okay";
0176 };