Konstantin Porotchkin | 814009f | 2017-02-16 13:52:30 +0200 | [diff] [blame] | 1 | /* |
Pali Rohár | b9431a7 | 2020-11-25 19:20:07 +0100 | [diff] [blame] | 2 | * Device Tree file for Marvell Armada 3720 community board |
| 3 | * (ESPRESSOBin) |
Konstantin Porotchkin | 814009f | 2017-02-16 13:52:30 +0200 | [diff] [blame] | 4 | * Copyright (C) 2016 Marvell |
| 5 | * |
Pali Rohár | b9431a7 | 2020-11-25 19:20:07 +0100 | [diff] [blame] | 6 | * Gregory CLEMENT <gregory.clement@free-electrons.com> |
| 7 | * Konstantin Porotchkin <kostap@marvell.com> |
Konstantin Porotchkin | 814009f | 2017-02-16 13:52:30 +0200 | [diff] [blame] | 8 | * |
Pali Rohár | b9431a7 | 2020-11-25 19:20:07 +0100 | [diff] [blame] | 9 | * This file is dual-licensed: you can use it either under the terms |
| 10 | * of the GPL or the X11 license, at your option. Note that this dual |
| 11 | * licensing only applies to this file, and not this project as a |
| 12 | * whole. |
| 13 | * |
| 14 | * a) This file is free software; you can redistribute it and/or |
| 15 | * modify it under the terms of the GNU General Public License as |
| 16 | * published by the Free Software Foundation; either version 2 of the |
| 17 | * License, or (at your option) any later version. |
| 18 | * |
| 19 | * This file is distributed in the hope that it will be useful |
| 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 | * GNU General Public License for more details. |
| 23 | * |
| 24 | * Or, alternatively |
| 25 | * |
| 26 | * b) Permission is hereby granted, free of charge, to any person |
| 27 | * obtaining a copy of this software and associated documentation |
| 28 | * files (the "Software"), to deal in the Software without |
| 29 | * restriction, including without limitation the rights to use |
| 30 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 31 | * sell copies of the Software, and to permit persons to whom the |
| 32 | * Software is furnished to do so, subject to the following |
| 33 | * conditions: |
| 34 | * |
| 35 | * The above copyright notice and this permission notice shall be |
| 36 | * included in all copies or substantial portions of the Software. |
| 37 | * |
| 38 | * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND |
| 39 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 40 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 41 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 42 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY |
| 43 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 44 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 45 | * OTHER DEALINGS IN THE SOFTWARE. |
Konstantin Porotchkin | 814009f | 2017-02-16 13:52:30 +0200 | [diff] [blame] | 46 | */ |
| 47 | |
| 48 | /dts-v1/; |
| 49 | |
Pali Rohár | b9431a7 | 2020-11-25 19:20:07 +0100 | [diff] [blame] | 50 | #include "armada-372x.dtsi" |
Konstantin Porotchkin | 814009f | 2017-02-16 13:52:30 +0200 | [diff] [blame] | 51 | |
| 52 | / { |
Andre Heider | 3d33c1d | 2020-10-02 07:51:12 +0200 | [diff] [blame] | 53 | model = "Globalscale Marvell ESPRESSOBin Board"; |
| 54 | compatible = "globalscale,espressobin", "marvell,armada3720", "marvell,armada3710"; |
Pali Rohár | b9431a7 | 2020-11-25 19:20:07 +0100 | [diff] [blame] | 55 | |
| 56 | chosen { |
| 57 | stdout-path = "serial0:115200n8"; |
| 58 | }; |
| 59 | |
| 60 | aliases { |
| 61 | ethernet0 = ð0; |
| 62 | i2c0 = &i2c0; |
| 63 | spi0 = &spi0; |
| 64 | }; |
| 65 | |
| 66 | memory { |
| 67 | device_type = "memory"; |
| 68 | reg = <0x00000000 0x00000000 0x00000000 0x20000000>; |
| 69 | }; |
| 70 | |
| 71 | vcc_sd_reg0: regulator@0 { |
| 72 | compatible = "regulator-gpio"; |
| 73 | regulator-name = "vcc_sd0"; |
| 74 | regulator-min-microvolt = <1800000>; |
| 75 | regulator-max-microvolt = <3300000>; |
| 76 | regulator-type = "voltage"; |
| 77 | states = <1800000 0x1 |
| 78 | 3300000 0x0>; |
| 79 | gpios = <&gpionb 4 GPIO_ACTIVE_HIGH>; |
| 80 | }; |
| 81 | }; |
| 82 | |
| 83 | &comphy { |
| 84 | max-lanes = <3>; |
| 85 | phy0 { |
Igal Liberman | ffd5d2f | 2017-04-26 15:40:00 +0300 | [diff] [blame] | 86 | phy-type = <COMPHY_TYPE_USB3_HOST0>; |
| 87 | phy-speed = <COMPHY_SPEED_5G>; |
Pali Rohár | b9431a7 | 2020-11-25 19:20:07 +0100 | [diff] [blame] | 88 | }; |
| 89 | |
| 90 | phy1 { |
Igal Liberman | ffd5d2f | 2017-04-26 15:40:00 +0300 | [diff] [blame] | 91 | phy-type = <COMPHY_TYPE_PEX0>; |
| 92 | phy-speed = <COMPHY_SPEED_2_5G>; |
Pali Rohár | b9431a7 | 2020-11-25 19:20:07 +0100 | [diff] [blame] | 93 | }; |
| 94 | |
| 95 | phy2 { |
Igal Liberman | ffd5d2f | 2017-04-26 15:40:00 +0300 | [diff] [blame] | 96 | phy-type = <COMPHY_TYPE_SATA0>; |
| 97 | phy-speed = <COMPHY_SPEED_5G>; |
Pali Rohár | b9431a7 | 2020-11-25 19:20:07 +0100 | [diff] [blame] | 98 | }; |
| 99 | }; |
| 100 | |
| 101 | ð0 { |
| 102 | status = "okay"; |
| 103 | pinctrl-names = "default"; |
| 104 | pinctrl-0 = <&rgmii_pins>, <&smi_pins>; |
| 105 | phy-mode = "rgmii"; |
| 106 | phy_addr = <0x1>; |
| 107 | fixed-link { |
| 108 | speed = <1000>; |
| 109 | full-duplex; |
| 110 | }; |
| 111 | }; |
| 112 | |
| 113 | &i2c0 { |
| 114 | pinctrl-names = "default"; |
| 115 | pinctrl-0 = <&i2c1_pins>; |
| 116 | status = "okay"; |
| 117 | }; |
| 118 | |
| 119 | /* CON3 */ |
| 120 | &sata { |
| 121 | status = "okay"; |
| 122 | }; |
| 123 | |
| 124 | &sdhci0 { |
| 125 | pinctrl-names = "default"; |
| 126 | pinctrl-0 = <&sdio_pins>; |
| 127 | bus-width = <4>; |
| 128 | cd-gpios = <&gpionb 3 GPIO_ACTIVE_LOW>; |
| 129 | vqmmc-supply = <&vcc_sd_reg0>; |
| 130 | status = "okay"; |
| 131 | }; |
| 132 | |
Pali Rohár | 53d2076 | 2020-11-25 19:20:09 +0100 | [diff] [blame] | 133 | /* U11 */ |
| 134 | &sdhci1 { |
| 135 | non-removable; |
| 136 | bus-width = <8>; |
| 137 | mmc-ddr-1_8v; |
| 138 | mmc-hs400-1_8v; |
| 139 | marvell,xenon-emmc; |
| 140 | marvell,xenon-tun-count = <9>; |
| 141 | marvell,pad-type = "fixed-1-8v"; |
| 142 | |
| 143 | pinctrl-names = "default"; |
| 144 | pinctrl-0 = <&mmc_pins>; |
| 145 | status = "okay"; |
| 146 | |
| 147 | #address-cells = <1>; |
| 148 | #size-cells = <0>; |
| 149 | mmccard: mmccard@0 { |
| 150 | compatible = "mmc-card"; |
| 151 | reg = <0>; |
| 152 | }; |
| 153 | }; |
| 154 | |
Pali Rohár | b9431a7 | 2020-11-25 19:20:07 +0100 | [diff] [blame] | 155 | &spi0 { |
| 156 | status = "okay"; |
| 157 | pinctrl-names = "default"; |
| 158 | pinctrl-0 = <&spi_quad_pins>; |
| 159 | |
| 160 | spi-flash@0 { |
| 161 | #address-cells = <1>; |
| 162 | #size-cells = <1>; |
| 163 | compatible = "st,m25p128", "jedec,spi-nor"; |
| 164 | reg = <0>; /* Chip select 0 */ |
| 165 | spi-max-frequency = <50000000>; |
| 166 | m25p,fast-read; |
Pali Rohár | 80a60da | 2021-07-16 12:34:42 +0200 | [diff] [blame] | 167 | |
| 168 | #ifdef CONFIG_ENV_IS_IN_SPI_FLASH |
| 169 | partitions { |
| 170 | compatible = "fixed-partitions"; |
| 171 | #address-cells = <1>; |
| 172 | #size-cells = <1>; |
| 173 | |
| 174 | partition@firmware { |
| 175 | reg = <0 CONFIG_ENV_OFFSET>; |
| 176 | label = "firmware"; |
| 177 | }; |
| 178 | |
| 179 | partition@u-boot-env { |
| 180 | reg = <CONFIG_ENV_OFFSET CONFIG_ENV_SIZE>; |
| 181 | label = "u-boot-env"; |
| 182 | }; |
| 183 | }; |
| 184 | #endif |
Pali Rohár | b9431a7 | 2020-11-25 19:20:07 +0100 | [diff] [blame] | 185 | }; |
| 186 | }; |
| 187 | |
| 188 | /* Exported on the micro USB connector CON32 through an FTDI */ |
| 189 | &uart0 { |
| 190 | pinctrl-names = "default"; |
| 191 | pinctrl-0 = <&uart1_pins>; |
| 192 | status = "okay"; |
| 193 | }; |
| 194 | |
| 195 | /* CON29 */ |
| 196 | &usb2 { |
| 197 | status = "okay"; |
| 198 | }; |
| 199 | |
| 200 | /* CON31 */ |
| 201 | &usb3 { |
| 202 | status = "okay"; |
| 203 | }; |
| 204 | |
| 205 | &pcie0 { |
| 206 | pinctrl-names = "default"; |
| 207 | pinctrl-0 = <&pcie_pins>; |
| 208 | reset-gpios = <&gpiosb 3 GPIO_ACTIVE_LOW>; |
| 209 | status = "okay"; |
Wilson Ding | 4655593 | 2018-03-26 15:57:31 +0800 | [diff] [blame] | 210 | }; |