Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | 288ba07 | 2016-05-25 08:23:31 +0200 | [diff] [blame] | 2 | /* |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 3 | * Copyright (C) 2016- 2021 Marvell International Ltd. |
Stefan Roese | 288ba07 | 2016-05-25 08:23:31 +0200 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | /* |
| 7 | * Device Tree file for Marvell Armada 7040 Development board platform |
Konstantin Porotchkin | 546a546 | 2017-04-05 18:22:32 +0300 | [diff] [blame] | 8 | * Boot device: SPI NOR, 0x32 (SW3) |
Stefan Roese | 288ba07 | 2016-05-25 08:23:31 +0200 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #include "armada-7040.dtsi" |
| 12 | |
| 13 | / { |
| 14 | model = "Marvell Armada 7040 DB board"; |
| 15 | compatible = "marvell,armada7040-db", "marvell,armada7040", |
| 16 | "marvell,armada-ap806-quad", "marvell,armada-ap806"; |
| 17 | |
| 18 | chosen { |
| 19 | stdout-path = "serial0:115200n8"; |
| 20 | }; |
| 21 | |
Stefan Roese | 30eec0c | 2016-08-31 14:47:36 +0200 | [diff] [blame] | 22 | aliases { |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 23 | i2c0 = &cp0_i2c0; |
| 24 | spi0 = &cp0_spi1; |
Stefan Roese | 30eec0c | 2016-08-31 14:47:36 +0200 | [diff] [blame] | 25 | }; |
| 26 | |
Stefan Roese | 288ba07 | 2016-05-25 08:23:31 +0200 | [diff] [blame] | 27 | memory@00000000 { |
| 28 | device_type = "memory"; |
| 29 | reg = <0x0 0x0 0x0 0x80000000>; |
| 30 | }; |
| 31 | }; |
| 32 | |
Konstantin Porotchkin | ff80bd7 | 2016-12-08 12:22:30 +0200 | [diff] [blame] | 33 | &ap_pinctl { |
| 34 | /* MPP Bus: |
| 35 | * SDIO [0-5] |
| 36 | * UART0 [11,19] |
| 37 | */ |
| 38 | /* 0 1 2 3 4 5 6 7 8 9 */ |
| 39 | pin-func = < 1 1 1 1 1 1 0 0 0 0 |
| 40 | 0 3 0 0 0 0 0 0 0 3 >; |
| 41 | }; |
| 42 | |
Stefan Roese | 288ba07 | 2016-05-25 08:23:31 +0200 | [diff] [blame] | 43 | &uart0 { |
| 44 | status = "okay"; |
| 45 | }; |
| 46 | |
| 47 | |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 48 | &cp0_pcie2 { |
Stefan Roese | 288ba07 | 2016-05-25 08:23:31 +0200 | [diff] [blame] | 49 | status = "okay"; |
| 50 | }; |
| 51 | |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 52 | &cp0_i2c0 { |
Konstantin Porotchkin | ff80bd7 | 2016-12-08 12:22:30 +0200 | [diff] [blame] | 53 | pinctrl-names = "default"; |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 54 | pinctrl-0 = <&cp0_i2c0_pins>; |
Stefan Roese | 288ba07 | 2016-05-25 08:23:31 +0200 | [diff] [blame] | 55 | status = "okay"; |
| 56 | clock-frequency = <100000>; |
| 57 | }; |
| 58 | |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 59 | &cp0_pinctl { |
Konstantin Porotchkin | ff80bd7 | 2016-12-08 12:22:30 +0200 | [diff] [blame] | 60 | /* MPP Bus: |
| 61 | * TDM [0-11] |
| 62 | * SPI [13-16] |
| 63 | * SATA1 [28] |
| 64 | * UART0 [29-30] |
| 65 | * SMI [32,34] |
| 66 | * XSMI [35-36] |
| 67 | * I2C [37-38] |
| 68 | * RGMII1[44-55] |
| 69 | * SD [56-62] |
| 70 | */ |
| 71 | /* 0 1 2 3 4 5 6 7 8 9 */ |
| 72 | pin-func = < 4 4 4 4 4 4 4 4 4 4 |
| 73 | 4 4 0 3 3 3 3 0 0 0 |
| 74 | 0 0 0 0 0 0 0 0 9 0xA |
| 75 | 0xA 0 7 0 7 7 7 2 2 0 |
| 76 | 0 0 0 0 1 1 1 1 1 1 |
| 77 | 1 1 1 1 1 1 0xE 0xE 0xE 0xE |
| 78 | 0xE 0xE 0xE >; |
| 79 | }; |
| 80 | |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 81 | &cp0_spi1 { |
Konstantin Porotchkin | ff80bd7 | 2016-12-08 12:22:30 +0200 | [diff] [blame] | 82 | pinctrl-names = "default"; |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 83 | pinctrl-0 = <&cp0_spi0_pins>; |
Stefan Roese | 288ba07 | 2016-05-25 08:23:31 +0200 | [diff] [blame] | 84 | status = "okay"; |
| 85 | |
| 86 | spi-flash@0 { |
| 87 | #address-cells = <0x1>; |
| 88 | #size-cells = <0x1>; |
| 89 | compatible = "jedec,spi-nor"; |
| 90 | reg = <0x0>; |
| 91 | spi-max-frequency = <20000000>; |
| 92 | |
| 93 | partitions { |
| 94 | compatible = "fixed-partitions"; |
| 95 | #address-cells = <1>; |
| 96 | #size-cells = <1>; |
| 97 | |
| 98 | partition@0 { |
| 99 | label = "U-Boot"; |
| 100 | reg = <0x0 0x200000>; |
| 101 | }; |
| 102 | |
| 103 | partition@400000 { |
| 104 | label = "Filesystem"; |
| 105 | reg = <0x200000 0xe00000>; |
| 106 | }; |
| 107 | }; |
| 108 | }; |
| 109 | }; |
| 110 | |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 111 | &cp0_sata0 { |
Stefan Roese | 288ba07 | 2016-05-25 08:23:31 +0200 | [diff] [blame] | 112 | status = "okay"; |
| 113 | }; |
| 114 | |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 115 | &cp0_usb3_0 { |
Stefan Roese | 288ba07 | 2016-05-25 08:23:31 +0200 | [diff] [blame] | 116 | status = "okay"; |
| 117 | }; |
| 118 | |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 119 | &cp0_usb3_1 { |
Stefan Roese | 288ba07 | 2016-05-25 08:23:31 +0200 | [diff] [blame] | 120 | status = "okay"; |
| 121 | }; |
Stefan Roese | c0d8f4e | 2016-05-25 09:06:29 +0200 | [diff] [blame] | 122 | |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 123 | &cp0_comphy { |
Stefan Roese | c0d8f4e | 2016-05-25 09:06:29 +0200 | [diff] [blame] | 124 | phy0 { |
Igal Liberman | ffd5d2f | 2017-04-26 15:40:00 +0300 | [diff] [blame] | 125 | phy-type = <COMPHY_TYPE_SGMII1>; |
| 126 | phy-speed = <COMPHY_SPEED_1_25G>; |
Stefan Roese | c0d8f4e | 2016-05-25 09:06:29 +0200 | [diff] [blame] | 127 | }; |
| 128 | |
| 129 | phy1 { |
Igal Liberman | ffd5d2f | 2017-04-26 15:40:00 +0300 | [diff] [blame] | 130 | phy-type = <COMPHY_TYPE_USB3_HOST0>; |
| 131 | phy-speed = <COMPHY_SPEED_5G>; |
Stefan Roese | c0d8f4e | 2016-05-25 09:06:29 +0200 | [diff] [blame] | 132 | }; |
| 133 | |
| 134 | phy2 { |
Igal Liberman | d7297e3 | 2018-05-14 11:20:54 +0300 | [diff] [blame] | 135 | phy-type = <COMPHY_TYPE_SFI0>; |
| 136 | phy-speed = <COMPHY_SPEED_10_3125G>; |
Stefan Roese | c0d8f4e | 2016-05-25 09:06:29 +0200 | [diff] [blame] | 137 | }; |
| 138 | |
| 139 | phy3 { |
Igal Liberman | ffd5d2f | 2017-04-26 15:40:00 +0300 | [diff] [blame] | 140 | phy-type = <COMPHY_TYPE_SATA1>; |
| 141 | phy-speed = <COMPHY_SPEED_5G>; |
Stefan Roese | c0d8f4e | 2016-05-25 09:06:29 +0200 | [diff] [blame] | 142 | }; |
| 143 | |
| 144 | phy4 { |
Igal Liberman | ffd5d2f | 2017-04-26 15:40:00 +0300 | [diff] [blame] | 145 | phy-type = <COMPHY_TYPE_USB3_HOST1>; |
| 146 | phy-speed = <COMPHY_SPEED_5G>; |
Stefan Roese | c0d8f4e | 2016-05-25 09:06:29 +0200 | [diff] [blame] | 147 | }; |
| 148 | |
| 149 | phy5 { |
Igal Liberman | ffd5d2f | 2017-04-26 15:40:00 +0300 | [diff] [blame] | 150 | phy-type = <COMPHY_TYPE_PEX2>; |
| 151 | phy-speed = <COMPHY_SPEED_5G>; |
Stefan Roese | c0d8f4e | 2016-05-25 09:06:29 +0200 | [diff] [blame] | 152 | }; |
| 153 | }; |
| 154 | |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 155 | &cp0_utmi0 { |
Stefan Roese | c0d8f4e | 2016-05-25 09:06:29 +0200 | [diff] [blame] | 156 | status = "okay"; |
| 157 | }; |
| 158 | |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 159 | &cp0_utmi1 { |
Stefan Roese | c0d8f4e | 2016-05-25 09:06:29 +0200 | [diff] [blame] | 160 | status = "okay"; |
| 161 | }; |
Stefan Roese | 9b5b2a4 | 2016-12-09 15:42:15 +0100 | [diff] [blame] | 162 | |
| 163 | &ap_sdhci0 { |
| 164 | status = "okay"; |
| 165 | bus-width = <4>; |
| 166 | no-1-8-v; |
| 167 | non-removable; |
| 168 | }; |
| 169 | |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 170 | &cp0_sdhci0 { |
Stefan Roese | 9b5b2a4 | 2016-12-09 15:42:15 +0100 | [diff] [blame] | 171 | status = "okay"; |
| 172 | bus-width = <4>; |
| 173 | no-1-8-v; |
| 174 | non-removable; |
| 175 | }; |
Thomas Petazzoni | 24d55a6 | 2017-02-20 12:27:25 +0100 | [diff] [blame] | 176 | |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 177 | &cp0_mdio { |
Sven Auhagen | f0268cb | 2021-08-24 10:14:25 +0200 | [diff] [blame] | 178 | status = "okay"; |
Thomas Petazzoni | 24d55a6 | 2017-02-20 12:27:25 +0100 | [diff] [blame] | 179 | phy0: ethernet-phy@0 { |
| 180 | reg = <0>; |
| 181 | }; |
| 182 | phy1: ethernet-phy@1 { |
| 183 | reg = <1>; |
| 184 | }; |
| 185 | }; |
| 186 | |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 187 | &cp0_ethernet { |
Thomas Petazzoni | 24d55a6 | 2017-02-20 12:27:25 +0100 | [diff] [blame] | 188 | status = "okay"; |
| 189 | }; |
| 190 | |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 191 | &cp0_eth0 { |
Stefan Roese | 201aa04 | 2017-04-06 15:39:07 +0200 | [diff] [blame] | 192 | status = "okay"; |
| 193 | phy-mode = "sfi"; /* lane-2 */ |
| 194 | }; |
| 195 | |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 196 | &cp0_eth1 { |
Thomas Petazzoni | 24d55a6 | 2017-02-20 12:27:25 +0100 | [diff] [blame] | 197 | status = "okay"; |
| 198 | phy = <&phy0>; |
| 199 | phy-mode = "sgmii"; |
| 200 | }; |
| 201 | |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 202 | &cp0_eth2 { |
Thomas Petazzoni | 24d55a6 | 2017-02-20 12:27:25 +0100 | [diff] [blame] | 203 | status = "okay"; |
| 204 | phy = <&phy1>; |
| 205 | phy-mode = "rgmii-id"; |
| 206 | }; |