Thomas Petazzoni | 19b85c0 | 2012-10-23 08:17:20 +0200 | [diff] [blame] | 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 | * |
Gregory CLEMENT | faeb8e2 | 2015-01-26 15:16:10 +0100 | [diff] [blame] | 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. |
Thomas Petazzoni | 19b85c0 | 2012-10-23 08:17:20 +0200 | [diff] [blame] | 45 | */ |
| 46 | |
| 47 | /dts-v1/; |
Thomas Petazzoni | 29e74f8 | 2014-02-11 18:07:12 +0100 | [diff] [blame] | 48 | #include <dt-bindings/gpio/gpio.h> |
Thomas Petazzoni | 5c0169d | 2014-02-11 18:07:13 +0100 | [diff] [blame] | 49 | #include <dt-bindings/input/input.h> |
Ezequiel Garcia | 3814988 | 2013-07-26 10:17:56 -0300 | [diff] [blame] | 50 | #include "armada-xp-mv78260.dtsi" |
Thomas Petazzoni | 19b85c0 | 2012-10-23 08:17:20 +0200 | [diff] [blame] | 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 { |
Thomas Petazzoni | 9552203 | 2015-03-03 15:41:02 +0100 | [diff] [blame] | 57 | stdout-path = "serial0:115200n8"; |
Thomas Petazzoni | 19b85c0 | 2012-10-23 08:17:20 +0200 | [diff] [blame] | 58 | }; |
| 59 | |
| 60 | memory { |
| 61 | device_type = "memory"; |
Jason Cooper | e47043a | 2014-06-04 13:41:20 +0000 | [diff] [blame] | 62 | reg = <0 0x00000000 0 0x40000000>; /* 1 GB soldered on */ |
Thomas Petazzoni | 19b85c0 | 2012-10-23 08:17:20 +0200 | [diff] [blame] | 63 | }; |
| 64 | |
| 65 | soc { |
Ezequiel Garcia | 0cd3754 | 2013-07-26 10:17:58 -0300 | [diff] [blame] | 66 | ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000 |
Ezequiel Garcia | de1af8d | 2013-07-26 10:17:59 -0300 | [diff] [blame] | 67 | MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000 |
Thomas Petazzoni | d7d5a43 | 2016-03-08 16:59:57 +0100 | [diff] [blame] | 68 | MBUS_ID(0x01, 0x2f) 0 0 0xe8000000 0x8000000 |
| 69 | MBUS_ID(0x09, 0x09) 0 0 0xf1100000 0x10000 |
Linus Torvalds | 1200b68 | 2016-03-19 10:05:34 -0700 | [diff] [blame] | 70 | MBUS_ID(0x09, 0x05) 0 0 0xf1110000 0x10000 |
Gregory CLEMENT | 293fdc2 | 2016-03-14 09:39:01 +0100 | [diff] [blame] | 71 | MBUS_ID(0x0c, 0x04) 0 0 0xd1200000 0x100000>; |
Ezequiel Garcia | de1af8d | 2013-07-26 10:17:59 -0300 | [diff] [blame] | 72 | |
| 73 | devbus-bootcs { |
| 74 | status = "okay"; |
| 75 | |
| 76 | /* Device Bus parameters are required */ |
| 77 | |
| 78 | /* Read parameters */ |
Thomas Petazzoni | 6e20bae | 2014-04-14 17:29:21 +0200 | [diff] [blame] | 79 | devbus,bus-width = <16>; |
Ezequiel Garcia | de1af8d | 2013-07-26 10:17:59 -0300 | [diff] [blame] | 80 | devbus,turn-off-ps = <60000>; |
| 81 | devbus,badr-skew-ps = <0>; |
| 82 | devbus,acc-first-ps = <124000>; |
| 83 | devbus,acc-next-ps = <248000>; |
| 84 | devbus,rd-setup-ps = <0>; |
| 85 | devbus,rd-hold-ps = <0>; |
| 86 | |
| 87 | /* Write parameters */ |
| 88 | devbus,sync-enable = <0>; |
| 89 | devbus,wr-high-ps = <60000>; |
| 90 | devbus,wr-low-ps = <60000>; |
| 91 | devbus,ale-wr-ps = <60000>; |
| 92 | |
| 93 | /* NOR 128 MiB */ |
| 94 | nor@0 { |
| 95 | compatible = "cfi-flash"; |
| 96 | reg = <0 0x8000000>; |
| 97 | bank-width = <2>; |
| 98 | }; |
| 99 | }; |
Ezequiel Garcia | 00ed4a0 | 2013-05-13 12:22:53 -0300 | [diff] [blame] | 100 | |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 101 | pcie-controller { |
| 102 | status = "okay"; |
| 103 | /* Internal mini-PCIe connector */ |
| 104 | pcie@1,0 { |
| 105 | /* Port 0, Lane 0 */ |
| 106 | status = "okay"; |
| 107 | }; |
| 108 | }; |
| 109 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 110 | internal-regs { |
Gregory CLEMENT | 750e30d | 2015-04-14 11:50:13 +0200 | [diff] [blame] | 111 | rtc@10300 { |
| 112 | /* No crystal connected to the internal RTC */ |
| 113 | status = "disabled"; |
| 114 | }; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 115 | serial@12000 { |
Thomas Petazzoni | 95999cf | 2013-04-09 23:06:35 +0200 | [diff] [blame] | 116 | status = "okay"; |
| 117 | }; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 118 | serial@12100 { |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 119 | status = "okay"; |
| 120 | }; |
Sebastian Hesselbarth | 01c4342 | 2014-09-19 21:20:09 +0200 | [diff] [blame] | 121 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 122 | leds { |
| 123 | compatible = "gpio-leds"; |
| 124 | pinctrl-names = "default"; |
| 125 | pinctrl-0 = <&led_pins>; |
| 126 | |
| 127 | red_led { |
| 128 | label = "red_led"; |
Thomas Petazzoni | 29e74f8 | 2014-02-11 18:07:12 +0100 | [diff] [blame] | 129 | gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 130 | default-state = "off"; |
| 131 | }; |
| 132 | |
| 133 | yellow_led { |
| 134 | label = "yellow_led"; |
Thomas Petazzoni | 29e74f8 | 2014-02-11 18:07:12 +0100 | [diff] [blame] | 135 | gpios = <&gpio1 19 GPIO_ACTIVE_LOW>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 136 | default-state = "off"; |
| 137 | }; |
| 138 | |
| 139 | green_led { |
| 140 | label = "green_led"; |
Thomas Petazzoni | 29e74f8 | 2014-02-11 18:07:12 +0100 | [diff] [blame] | 141 | gpios = <&gpio1 21 GPIO_ACTIVE_LOW>; |
Jason Cooper | dcdf14c | 2013-10-14 17:37:55 +0000 | [diff] [blame] | 142 | default-state = "keep"; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 143 | }; |
| 144 | }; |
| 145 | |
| 146 | gpio_keys { |
| 147 | compatible = "gpio-keys"; |
| 148 | #address-cells = <1>; |
| 149 | #size-cells = <0>; |
| 150 | |
| 151 | button@1 { |
| 152 | label = "Init Button"; |
Thomas Petazzoni | 5c0169d | 2014-02-11 18:07:13 +0100 | [diff] [blame] | 153 | linux,code = <KEY_POWER>; |
Thomas Petazzoni | 29e74f8 | 2014-02-11 18:07:12 +0100 | [diff] [blame] | 154 | gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 155 | }; |
| 156 | }; |
| 157 | |
| 158 | mdio { |
| 159 | phy0: ethernet-phy@0 { |
| 160 | reg = <0>; |
| 161 | }; |
| 162 | |
| 163 | phy1: ethernet-phy@1 { |
| 164 | reg = <1>; |
| 165 | }; |
| 166 | |
| 167 | phy2: ethernet-phy@2 { |
| 168 | reg = <2>; |
| 169 | }; |
| 170 | |
| 171 | phy3: ethernet-phy@3 { |
| 172 | reg = <3>; |
| 173 | }; |
| 174 | }; |
| 175 | |
| 176 | ethernet@70000 { |
| 177 | status = "okay"; |
| 178 | phy = <&phy0>; |
| 179 | phy-mode = "sgmii"; |
Gregory CLEMENT | 293fdc2 | 2016-03-14 09:39:01 +0100 | [diff] [blame] | 180 | buffer-manager = <&bm>; |
| 181 | bm,pool-long = <0>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 182 | }; |
| 183 | ethernet@74000 { |
| 184 | status = "okay"; |
| 185 | phy = <&phy1>; |
| 186 | phy-mode = "sgmii"; |
Gregory CLEMENT | 293fdc2 | 2016-03-14 09:39:01 +0100 | [diff] [blame] | 187 | buffer-manager = <&bm>; |
| 188 | bm,pool-long = <1>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 189 | }; |
| 190 | ethernet@30000 { |
| 191 | status = "okay"; |
| 192 | phy = <&phy2>; |
| 193 | phy-mode = "sgmii"; |
Gregory CLEMENT | 293fdc2 | 2016-03-14 09:39:01 +0100 | [diff] [blame] | 194 | buffer-manager = <&bm>; |
| 195 | bm,pool-long = <2>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 196 | }; |
| 197 | ethernet@34000 { |
| 198 | status = "okay"; |
| 199 | phy = <&phy3>; |
| 200 | phy-mode = "sgmii"; |
Gregory CLEMENT | 293fdc2 | 2016-03-14 09:39:01 +0100 | [diff] [blame] | 201 | buffer-manager = <&bm>; |
| 202 | bm,pool-long = <3>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 203 | }; |
| 204 | i2c@11000 { |
| 205 | status = "okay"; |
| 206 | clock-frequency = <400000>; |
| 207 | }; |
| 208 | i2c@11100 { |
| 209 | status = "okay"; |
| 210 | clock-frequency = <400000>; |
| 211 | |
| 212 | s35390a: s35390a@30 { |
| 213 | compatible = "s35390a"; |
| 214 | reg = <0x30>; |
| 215 | }; |
| 216 | }; |
| 217 | sata@a0000 { |
| 218 | nr-ports = <2>; |
| 219 | status = "okay"; |
| 220 | }; |
Thomas Petazzoni | 8034891 | 2013-05-16 18:07:24 +0200 | [diff] [blame] | 221 | |
| 222 | /* Front side USB 0 */ |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 223 | usb@50000 { |
| 224 | status = "okay"; |
| 225 | }; |
Thomas Petazzoni | 8034891 | 2013-05-16 18:07:24 +0200 | [diff] [blame] | 226 | |
| 227 | /* Front side USB 1 */ |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 228 | usb@51000 { |
| 229 | status = "okay"; |
| 230 | }; |
Gregory CLEMENT | 293fdc2 | 2016-03-14 09:39:01 +0100 | [diff] [blame] | 231 | |
| 232 | bm@c0000 { |
| 233 | status = "okay"; |
| 234 | }; |
| 235 | }; |
| 236 | |
| 237 | bm-bppi { |
| 238 | status = "okay"; |
Thomas Petazzoni | 95999cf | 2013-04-09 23:06:35 +0200 | [diff] [blame] | 239 | }; |
Thomas Petazzoni | 19b85c0 | 2012-10-23 08:17:20 +0200 | [diff] [blame] | 240 | }; |
| 241 | }; |
Sebastian Hesselbarth | 01c4342 | 2014-09-19 21:20:09 +0200 | [diff] [blame] | 242 | |
| 243 | &pinctrl { |
| 244 | led_pins: led-pins-0 { |
| 245 | marvell,pins = "mpp49", "mpp51", "mpp53"; |
| 246 | marvell,function = "gpio"; |
| 247 | }; |
| 248 | }; |