Stefan Roese | 459e064 | 2016-01-20 08:13:29 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree file for Marvell Armada XP theadorable board |
| 3 | * |
| 4 | * Copyright (C) 2013-2014 Marvell |
| 5 | * |
| 6 | * Lior Amsalem <alior@marvell.com> |
| 7 | * Gregory CLEMENT <gregory.clement@free-electrons.com> |
| 8 | * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
| 9 | * |
| 10 | * This file is dual-licensed: you can use it either under the terms |
| 11 | * of the GPL or the X11 license, at your option. Note that this dual |
| 12 | * licensing only applies to this file, and not this project as a |
| 13 | * whole. |
| 14 | * |
| 15 | * a) This file is free software; you can redistribute it and/or |
| 16 | * modify it under the terms of the GNU General Public License as |
| 17 | * published by the Free Software Foundation; either version 2 of the |
| 18 | * License, or (at your option) any later version. |
| 19 | * |
| 20 | * This file is distributed in the hope that it will be useful |
| 21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 23 | * GNU General Public License for more details. |
| 24 | * |
| 25 | * Or, alternatively |
| 26 | * |
| 27 | * b) Permission is hereby granted, free of charge, to any person |
| 28 | * obtaining a copy of this software and associated documentation |
| 29 | * files (the "Software"), to deal in the Software without |
| 30 | * restriction, including without limitation the rights to use |
| 31 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 32 | * sell copies of the Software, and to permit persons to whom the |
| 33 | * Software is furnished to do so, subject to the following |
| 34 | * conditions: |
| 35 | * |
| 36 | * The above copyright notice and this permission notice shall be |
| 37 | * included in all copies or substantial portions of the Software. |
| 38 | * |
| 39 | * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND |
| 40 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 41 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 42 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 43 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY |
| 44 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 45 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 46 | * OTHER DEALINGS IN THE SOFTWARE. |
| 47 | * |
| 48 | * Note: this Device Tree assumes that the bootloader has remapped the |
| 49 | * internal registers to 0xf1000000 (instead of the default |
| 50 | * 0xd0000000). The 0xf1000000 is the default used by the recent, |
| 51 | * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier |
| 52 | * boards were delivered with an older version of the bootloader that |
| 53 | * left internal registers mapped at 0xd0000000. If you are in this |
| 54 | * situation, you should either update your bootloader (preferred |
| 55 | * solution) or the below Device Tree should be adjusted. |
| 56 | */ |
| 57 | |
| 58 | /dts-v1/; |
| 59 | #include <dt-bindings/gpio/gpio.h> |
| 60 | #include "armada-xp-mv78260.dtsi" |
| 61 | |
| 62 | / { |
| 63 | model = "Marvell Armada XP theadorable"; |
| 64 | compatible = "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp"; |
| 65 | |
| 66 | chosen { |
| 67 | stdout-path = "serial0:115200n8"; |
| 68 | }; |
| 69 | |
| 70 | aliases { |
| 71 | spi0 = &spi0; |
Stefan Roese | f054758 | 2016-02-12 14:24:07 +0100 | [diff] [blame] | 72 | spi1 = &spi1; |
Stefan Roese | 459e064 | 2016-01-20 08:13:29 +0100 | [diff] [blame] | 73 | ethernet0 = ð0; |
Stefan Roese | 2dc6bc7 | 2021-11-18 09:19:39 +0100 | [diff] [blame] | 74 | i2c0 = &i2c0; |
| 75 | i2c1 = &i2c1; |
Stefan Roese | 459e064 | 2016-01-20 08:13:29 +0100 | [diff] [blame] | 76 | }; |
| 77 | |
| 78 | memory { |
| 79 | device_type = "memory"; |
| 80 | reg = <0x00000000 0x00000000 0x00000000 0x80000000>; |
| 81 | }; |
| 82 | |
| 83 | soc { |
| 84 | ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xf1000000 0x100000 |
| 85 | MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000 |
| 86 | MBUS_ID(0x01, 0x2f) 0 0 0xf0000000 0x1000000>; |
| 87 | |
| 88 | internal-regs { |
| 89 | serial@12000 { |
| 90 | status = "okay"; |
Stefan Roese | 459e064 | 2016-01-20 08:13:29 +0100 | [diff] [blame] | 91 | }; |
| 92 | |
| 93 | serial@12100 { |
| 94 | status = "okay"; |
| 95 | }; |
| 96 | |
| 97 | serial@12200 { |
| 98 | status = "okay"; |
| 99 | }; |
| 100 | |
| 101 | serial@12300 { |
| 102 | status = "okay"; |
| 103 | }; |
| 104 | |
| 105 | sata@a0000 { |
| 106 | nr-ports = <2>; |
| 107 | status = "okay"; |
| 108 | }; |
| 109 | |
Stefan Roese | 459e064 | 2016-01-20 08:13:29 +0100 | [diff] [blame] | 110 | usb@50000 { |
| 111 | status = "okay"; |
| 112 | }; |
| 113 | |
| 114 | usb@51000 { |
| 115 | status = "okay"; |
| 116 | }; |
| 117 | |
Stefan Roese | d64c113 | 2019-01-30 08:54:13 +0100 | [diff] [blame] | 118 | /* The LCD controller is only used on this board */ |
| 119 | lcd0: lcd-controller@e0000 { |
| 120 | compatible = "marvell,armada-xp-lcd"; |
| 121 | reg = <0xe0000 0x10000>; |
| 122 | status = "okay"; |
Stefan Roese | d64c113 | 2019-01-30 08:54:13 +0100 | [diff] [blame] | 123 | |
| 124 | display-timings { |
| 125 | native-mode = <&timing0>; |
| 126 | timing0: panel0 { |
| 127 | hactive = <240>; |
| 128 | vactive = <320>; |
| 129 | hfront-porch = <1>; |
| 130 | hback-porch = <45>; |
| 131 | vfront-porch = <1>; |
| 132 | vback-porch = <3>; |
| 133 | |
| 134 | /* Some dummy parameters */ |
| 135 | clock-frequency = <0>; |
| 136 | hsync-len = <0>; |
| 137 | vsync-len = <0>; |
| 138 | }; |
| 139 | }; |
| 140 | }; |
Stefan Roese | 459e064 | 2016-01-20 08:13:29 +0100 | [diff] [blame] | 141 | }; |
| 142 | }; |
| 143 | }; |
Stefan Roese | 0627400 | 2019-01-25 11:52:45 +0100 | [diff] [blame] | 144 | |
Stefan Roese | 2dc6bc7 | 2021-11-18 09:19:39 +0100 | [diff] [blame] | 145 | &i2c0 { |
| 146 | status = "okay"; |
| 147 | clock-frequency = <100000>; |
| 148 | }; |
| 149 | |
| 150 | &i2c1 { |
| 151 | status = "okay"; |
| 152 | clock-frequency = <100000>; |
| 153 | }; |
| 154 | |
Stefan Roese | 2e137cd | 2022-09-15 15:21:22 +0200 | [diff] [blame] | 155 | &mdio { |
| 156 | phy0: ethernet-phy@0 { |
| 157 | reg = <0>; |
| 158 | }; |
| 159 | }; |
| 160 | |
| 161 | ð0 { |
| 162 | status = "okay"; |
| 163 | phy = <&phy0>; |
| 164 | phy-mode = "sgmii"; |
| 165 | }; |
| 166 | |
Chris Packham | 7d64c8f | 2019-02-16 11:48:58 +1300 | [diff] [blame] | 167 | &spi0 { |
| 168 | status = "okay"; |
Chris Packham | 7d64c8f | 2019-02-16 11:48:58 +1300 | [diff] [blame] | 169 | |
| 170 | spi-flash@0 { |
Chris Packham | 7d64c8f | 2019-02-16 11:48:58 +1300 | [diff] [blame] | 171 | #address-cells = <1>; |
| 172 | #size-cells = <1>; |
Tom Rini | d5cdfd5 | 2019-04-14 00:03:06 -0400 | [diff] [blame] | 173 | compatible = "n25q128a13", "jedec,spi-nor"; |
Chris Packham | 7d64c8f | 2019-02-16 11:48:58 +1300 | [diff] [blame] | 174 | reg = <0>; /* Chip select 0 */ |
| 175 | spi-max-frequency = <27777777>; |
| 176 | }; |
| 177 | |
| 178 | fpga@1 { |
| 179 | #address-cells = <1>; |
| 180 | #size-cells = <1>; |
| 181 | compatible = "spi-generic-device"; |
| 182 | reg = <1>; /* Chip select 1 */ |
| 183 | spi-max-frequency = <27777777>; |
| 184 | }; |
| 185 | }; |
| 186 | |
| 187 | &spi1 { |
| 188 | status = "okay"; |
| 189 | |
| 190 | fpga@0 { |
| 191 | #address-cells = <1>; |
| 192 | #size-cells = <1>; |
| 193 | compatible = "spi-generic-device"; |
| 194 | reg = <0>; /* Chip select 0 */ |
| 195 | spi-max-frequency = <27777777>; |
| 196 | }; |
| 197 | }; |
| 198 | |
Stefan Roese | 0627400 | 2019-01-25 11:52:45 +0100 | [diff] [blame] | 199 | &pciec { |
| 200 | status = "okay"; |
| 201 | |
| 202 | pcie@1,0 { |
| 203 | /* Port 0, Lane 0 */ |
| 204 | status = "okay"; |
| 205 | }; |
| 206 | |
| 207 | pcie@9,0 { |
| 208 | /* Port 2, Lane 0 */ |
| 209 | status = "okay"; |
Pali Rohár | 5fc93e2 | 2021-12-21 12:20:19 +0100 | [diff] [blame] | 210 | num-lanes = <4>; |
Stefan Roese | 0627400 | 2019-01-25 11:52:45 +0100 | [diff] [blame] | 211 | }; |
| 212 | }; |