1/* 2 * Device Tree file for OpenBlocks AX3-4 board 3 * 4 * Copyright (C) 2012 Marvell 5 * 6 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 7 * 8 * This file is dual-licensed: you can use it either under the terms 9 * of the GPL or the X11 license, at your option. Note that this dual 10 * licensing only applies to this file, and not this project as a 11 * whole. 12 * 13 * a) This file is free software; you can redistribute it and/or 14 * modify it under the terms of the GNU General Public License as 15 * published by the Free Software Foundation; either version 2 of the 16 * License, or (at your option) any later version. 17 * 18 * This file is distributed in the hope that it will be useful 19 * but WITHOUT ANY WARRANTY; without even the implied warranty of 20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 * GNU General Public License for more details. 22 * 23 * Or, alternatively 24 * 25 * b) Permission is hereby granted, free of charge, to any person 26 * obtaining a copy of this software and associated documentation 27 * files (the "Software"), to deal in the Software without 28 * restriction, including without limitation the rights to use 29 * copy, modify, merge, publish, distribute, sublicense, and/or 30 * sell copies of the Software, and to permit persons to whom the 31 * Software is furnished to do so, subject to the following 32 * conditions: 33 * 34 * The above copyright notice and this permission notice shall be 35 * included in all copies or substantial portions of the Software. 36 * 37 * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND 38 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 39 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 40 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 41 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY 42 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 43 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 44 * OTHER DEALINGS IN THE SOFTWARE. 45 */ 46 47/dts-v1/; 48#include <dt-bindings/gpio/gpio.h> 49#include <dt-bindings/input/input.h> 50#include "armada-xp-mv78260.dtsi" 51 52/ { 53 model = "PlatHome OpenBlocks AX3-4 board"; 54 compatible = "plathome,openblocks-ax3-4", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp"; 55 56 chosen { 57 stdout-path = "serial0:115200n8"; 58 }; 59 60 memory { 61 device_type = "memory"; 62 reg = <0 0x00000000 0 0x40000000>; /* 1 GB soldered on */ 63 }; 64 65 soc { 66 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000 67 MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000 68 MBUS_ID(0x01, 0x2f) 0 0 0xe8000000 0x8000000 69 MBUS_ID(0x09, 0x09) 0 0 0xf1100000 0x10000 70 MBUS_ID(0x09, 0x05) 0 0 0xf1110000 0x10000>; 71 72 devbus-bootcs { 73 status = "okay"; 74 75 /* Device Bus parameters are required */ 76 77 /* Read parameters */ 78 devbus,bus-width = <16>; 79 devbus,turn-off-ps = <60000>; 80 devbus,badr-skew-ps = <0>; 81 devbus,acc-first-ps = <124000>; 82 devbus,acc-next-ps = <248000>; 83 devbus,rd-setup-ps = <0>; 84 devbus,rd-hold-ps = <0>; 85 86 /* Write parameters */ 87 devbus,sync-enable = <0>; 88 devbus,wr-high-ps = <60000>; 89 devbus,wr-low-ps = <60000>; 90 devbus,ale-wr-ps = <60000>; 91 92 /* NOR 128 MiB */ 93 nor@0 { 94 compatible = "cfi-flash"; 95 reg = <0 0x8000000>; 96 bank-width = <2>; 97 }; 98 }; 99 100 pcie-controller { 101 status = "okay"; 102 /* Internal mini-PCIe connector */ 103 pcie@1,0 { 104 /* Port 0, Lane 0 */ 105 status = "okay"; 106 }; 107 }; 108 109 internal-regs { 110 rtc@10300 { 111 /* No crystal connected to the internal RTC */ 112 status = "disabled"; 113 }; 114 serial@12000 { 115 status = "okay"; 116 }; 117 serial@12100 { 118 status = "okay"; 119 }; 120 121 leds { 122 compatible = "gpio-leds"; 123 pinctrl-names = "default"; 124 pinctrl-0 = <&led_pins>; 125 126 red_led { 127 label = "red_led"; 128 gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; 129 default-state = "off"; 130 }; 131 132 yellow_led { 133 label = "yellow_led"; 134 gpios = <&gpio1 19 GPIO_ACTIVE_LOW>; 135 default-state = "off"; 136 }; 137 138 green_led { 139 label = "green_led"; 140 gpios = <&gpio1 21 GPIO_ACTIVE_LOW>; 141 default-state = "keep"; 142 }; 143 }; 144 145 gpio_keys { 146 compatible = "gpio-keys"; 147 #address-cells = <1>; 148 #size-cells = <0>; 149 150 button@1 { 151 label = "Init Button"; 152 linux,code = <KEY_POWER>; 153 gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; 154 }; 155 }; 156 157 mdio { 158 phy0: ethernet-phy@0 { 159 reg = <0>; 160 }; 161 162 phy1: ethernet-phy@1 { 163 reg = <1>; 164 }; 165 166 phy2: ethernet-phy@2 { 167 reg = <2>; 168 }; 169 170 phy3: ethernet-phy@3 { 171 reg = <3>; 172 }; 173 }; 174 175 ethernet@70000 { 176 status = "okay"; 177 phy = <&phy0>; 178 phy-mode = "sgmii"; 179 }; 180 ethernet@74000 { 181 status = "okay"; 182 phy = <&phy1>; 183 phy-mode = "sgmii"; 184 }; 185 ethernet@30000 { 186 status = "okay"; 187 phy = <&phy2>; 188 phy-mode = "sgmii"; 189 }; 190 ethernet@34000 { 191 status = "okay"; 192 phy = <&phy3>; 193 phy-mode = "sgmii"; 194 }; 195 i2c@11000 { 196 status = "okay"; 197 clock-frequency = <400000>; 198 }; 199 i2c@11100 { 200 status = "okay"; 201 clock-frequency = <400000>; 202 203 s35390a: s35390a@30 { 204 compatible = "s35390a"; 205 reg = <0x30>; 206 }; 207 }; 208 sata@a0000 { 209 nr-ports = <2>; 210 status = "okay"; 211 }; 212 213 /* Front side USB 0 */ 214 usb@50000 { 215 status = "okay"; 216 }; 217 218 /* Front side USB 1 */ 219 usb@51000 { 220 status = "okay"; 221 }; 222 }; 223 }; 224}; 225 226&pinctrl { 227 led_pins: led-pins-0 { 228 marvell,pins = "mpp49", "mpp51", "mpp53"; 229 marvell,function = "gpio"; 230 }; 231}; 232