0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Device Tree file for Globalscale Mirabox
0004 *
0005 * Gregory CLEMENT <gregory.clement@free-electrons.com>
0006 */
0007
0008 /dts-v1/;
0009 #include <dt-bindings/gpio/gpio.h>
0010 #include "armada-370.dtsi"
0011
0012 / {
0013 model = "Globalscale Mirabox";
0014 compatible = "globalscale,mirabox", "marvell,armada370", "marvell,armada-370-xp";
0015
0016 chosen {
0017 stdout-path = "serial0:115200n8";
0018 };
0019
0020 memory@0 {
0021 device_type = "memory";
0022 reg = <0x00000000 0x20000000>; /* 512 MB */
0023 };
0024
0025 soc {
0026 ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
0027 MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000
0028 MBUS_ID(0x09, 0x01) 0 0xf1100000 0x10000>;
0029
0030 internal-regs {
0031 serial@12000 {
0032 status = "okay";
0033 };
0034 timer@20300 {
0035 clock-frequency = <600000000>;
0036 status = "okay";
0037 };
0038
0039 gpio_leds {
0040 compatible = "gpio-leds";
0041 pinctrl-names = "default";
0042 pinctrl-0 = <&pwr_led_pin &stat_led_pins>;
0043
0044 green_pwr_led {
0045 label = "mirabox:green:pwr";
0046 gpios = <&gpio1 31 GPIO_ACTIVE_LOW>;
0047 default-state = "keep";
0048 };
0049
0050 blue_stat_led {
0051 label = "mirabox:blue:stat";
0052 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
0053 default-state = "off";
0054 };
0055
0056 green_stat_led {
0057 label = "mirabox:green:stat";
0058 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
0059 default-state = "off";
0060 };
0061 };
0062
0063 ethernet@70000 {
0064 pinctrl-0 = <&ge0_rgmii_pins>;
0065 pinctrl-names = "default";
0066 status = "okay";
0067 phy = <&phy0>;
0068 phy-mode = "rgmii-id";
0069 };
0070 ethernet@74000 {
0071 pinctrl-0 = <&ge1_rgmii_pins>;
0072 pinctrl-names = "default";
0073 status = "okay";
0074 phy = <&phy1>;
0075 phy-mode = "rgmii-id";
0076 };
0077
0078 crypto@90000 {
0079 status = "okay";
0080 };
0081
0082 mvsdio@d4000 {
0083 pinctrl-0 = <&sdio_pins3>;
0084 pinctrl-names = "default";
0085 status = "okay";
0086 /*
0087 * No CD or WP GPIOs: SDIO interface used for
0088 * Wifi/Bluetooth chip
0089 */
0090 broken-cd;
0091 };
0092
0093 usb@50000 {
0094 status = "okay";
0095 };
0096
0097 usb@51000 {
0098 status = "okay";
0099 };
0100
0101 i2c@11000 {
0102 status = "okay";
0103 clock-frequency = <100000>;
0104 pca9505: pca9505@25 {
0105 compatible = "nxp,pca9505";
0106 gpio-controller;
0107 #gpio-cells = <2>;
0108 reg = <0x25>;
0109 };
0110 };
0111 };
0112 };
0113 };
0114
0115 &pciec {
0116 status = "okay";
0117
0118 /* Internal mini-PCIe connector */
0119 pcie@1,0 {
0120 /* Port 0, Lane 0 */
0121 status = "okay";
0122 };
0123
0124 /* Connected on the PCB to a USB 3.0 XHCI controller */
0125 pcie@2,0 {
0126 /* Port 1, Lane 0 */
0127 status = "okay";
0128 };
0129 };
0130
0131 &mdio {
0132 pinctrl-0 = <&mdio_pins>;
0133 pinctrl-names = "default";
0134 phy0: ethernet-phy@0 {
0135 reg = <0>;
0136 };
0137
0138 phy1: ethernet-phy@1 {
0139 reg = <1>;
0140 };
0141 };
0142
0143 &pinctrl {
0144 pwr_led_pin: pwr-led-pin {
0145 marvell,pins = "mpp63";
0146 marvell,function = "gpio";
0147 };
0148
0149 stat_led_pins: stat-led-pins {
0150 marvell,pins = "mpp64", "mpp65";
0151 marvell,function = "gpio";
0152 };
0153 };
0154
0155 &nand_controller {
0156 status = "okay";
0157
0158 nand@0 {
0159 reg = <0>;
0160 label = "pxa3xx_nand-0";
0161 nand-rb = <0>;
0162 marvell,nand-keep-config;
0163 nand-on-flash-bbt;
0164
0165 partitions {
0166 compatible = "fixed-partitions";
0167 #address-cells = <1>;
0168 #size-cells = <1>;
0169
0170 partition@0 {
0171 label = "U-Boot";
0172 reg = <0 0x400000>;
0173 };
0174 partition@400000 {
0175 label = "Linux";
0176 reg = <0x400000 0x400000>;
0177 };
0178 partition@800000 {
0179 label = "Filesystem";
0180 reg = <0x800000 0x3f800000>;
0181 };
0182 };
0183 };
0184 };