Marek Behún | 80af1a9 | 2018-04-24 17:21:31 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ or X11 |
| 2 | /* |
| 3 | * Device Tree file for CZ.NIC Turris Mox Board |
| 4 | * 2018 by Marek Behun <marek.behun@nic.cz> |
| 5 | * |
| 6 | * Based on armada-3720-espressobin.dts by: |
| 7 | * Gregory CLEMENT <gregory.clement@free-electrons.com> |
| 8 | * Konstantin Porotchkin <kostap@marvell.com> |
| 9 | */ |
| 10 | |
| 11 | /dts-v1/; |
| 12 | |
| 13 | #include <dt-bindings/gpio/gpio.h> |
| 14 | #include "armada-372x.dtsi" |
| 15 | |
| 16 | / { |
| 17 | model = "CZ.NIC Turris Mox Board"; |
| 18 | compatible = "cznic,turris-mox", "marvell,armada3720", |
| 19 | "marvell,armada3710"; |
| 20 | |
| 21 | chosen { |
| 22 | stdout-path = "serial0:115200n8"; |
| 23 | }; |
| 24 | |
| 25 | aliases { |
| 26 | ethernet0 = ð0; |
Marek Behún | 3dc2f45 | 2018-12-17 16:10:04 +0100 | [diff] [blame] | 27 | ethernet1 = ð1; |
Marek Behún | 80af1a9 | 2018-04-24 17:21:31 +0200 | [diff] [blame] | 28 | i2c0 = &i2c0; |
| 29 | spi0 = &spi0; |
| 30 | }; |
| 31 | |
| 32 | memory { |
| 33 | device_type = "memory"; |
| 34 | reg = <0x00000000 0x00000000 0x00000000 0x20000000>; |
| 35 | }; |
| 36 | |
| 37 | reg_usb3_vbus: usb3_vbus@0 { |
| 38 | compatible = "regulator-fixed"; |
| 39 | regulator-name = "usb3-vbus"; |
| 40 | regulator-min-microvolt = <5000000>; |
| 41 | regulator-max-microvolt = <5000000>; |
Marek Behún | 3dc2f45 | 2018-12-17 16:10:04 +0100 | [diff] [blame] | 42 | startup-delay-us = <2000000>; |
Marek Behún | 80af1a9 | 2018-04-24 17:21:31 +0200 | [diff] [blame] | 43 | shutdown-delay-us = <1000000>; |
| 44 | gpio = <&gpiosb 0 GPIO_ACTIVE_HIGH>; |
Marek Behún | 9e4cdba | 2020-04-08 12:02:06 +0200 | [diff] [blame] | 45 | enable-active-high; |
Marek Behún | 80af1a9 | 2018-04-24 17:21:31 +0200 | [diff] [blame] | 46 | regulator-boot-on; |
| 47 | }; |
| 48 | |
Marek Behún | eddd6f9 | 2020-04-08 12:02:04 +0200 | [diff] [blame] | 49 | vsdc_reg: vsdc-reg { |
| 50 | compatible = "regulator-gpio"; |
| 51 | regulator-name = "vsdc"; |
| 52 | regulator-min-microvolt = <1800000>; |
| 53 | regulator-max-microvolt = <3300000>; |
| 54 | regulator-boot-on; |
| 55 | |
| 56 | gpios = <&gpiosb 23 GPIO_ACTIVE_HIGH>; |
| 57 | gpios-states = <0>; |
| 58 | states = <1800000 0x1 |
| 59 | 3300000 0x0>; |
| 60 | enable-active-high; |
| 61 | }; |
| 62 | |
Marek Behún | 80af1a9 | 2018-04-24 17:21:31 +0200 | [diff] [blame] | 63 | mdio { |
Marek Behún | 3dc2f45 | 2018-12-17 16:10:04 +0100 | [diff] [blame] | 64 | #address-cells = <1>; |
| 65 | #size-cells = <0>; |
| 66 | |
Marek Behún | 80af1a9 | 2018-04-24 17:21:31 +0200 | [diff] [blame] | 67 | eth_phy1: ethernet-phy@1 { |
| 68 | reg = <1>; |
| 69 | }; |
| 70 | }; |
| 71 | }; |
| 72 | |
| 73 | &comphy { |
| 74 | max-lanes = <3>; |
| 75 | phy0 { |
Igal Liberman | 2dbba24 | 2017-04-26 15:40:00 +0300 | [diff] [blame^] | 76 | phy-type = <COMPHY_TYPE_SGMII1>; |
| 77 | phy-speed = <COMPHY_SPEED_3_125G>; |
Marek Behún | 80af1a9 | 2018-04-24 17:21:31 +0200 | [diff] [blame] | 78 | }; |
| 79 | |
| 80 | phy1 { |
Igal Liberman | 2dbba24 | 2017-04-26 15:40:00 +0300 | [diff] [blame^] | 81 | phy-type = <COMPHY_TYPE_PEX0>; |
| 82 | phy-speed = <COMPHY_SPEED_5G>; |
Marek Behún | 80af1a9 | 2018-04-24 17:21:31 +0200 | [diff] [blame] | 83 | }; |
| 84 | |
| 85 | phy2 { |
Igal Liberman | 2dbba24 | 2017-04-26 15:40:00 +0300 | [diff] [blame^] | 86 | phy-type = <COMPHY_TYPE_USB3_HOST0>; |
| 87 | phy-speed = <COMPHY_SPEED_5G>; |
Marek Behún | 80af1a9 | 2018-04-24 17:21:31 +0200 | [diff] [blame] | 88 | }; |
| 89 | }; |
| 90 | |
| 91 | ð0 { |
| 92 | status = "okay"; |
| 93 | pinctrl-names = "default"; |
| 94 | pinctrl-0 = <&rgmii_pins>, <&smi_pins>; |
| 95 | phy-mode = "rgmii"; |
| 96 | phy = <ð_phy1>; |
| 97 | }; |
| 98 | |
| 99 | &i2c0 { |
| 100 | pinctrl-names = "default"; |
| 101 | pinctrl-0 = <&i2c1_pins>; |
| 102 | status = "okay"; |
Stefan Roese | ac5cd42 | 2020-08-10 10:16:56 +0200 | [diff] [blame] | 103 | #address-cells = <1>; |
| 104 | #size-cells = <0>; |
Marek Behún | 3dc2f45 | 2018-12-17 16:10:04 +0100 | [diff] [blame] | 105 | |
| 106 | rtc@6f { |
| 107 | compatible = "microchip,mcp7941x"; |
| 108 | reg = <0x6f>; |
| 109 | }; |
Marek Behún | 80af1a9 | 2018-04-24 17:21:31 +0200 | [diff] [blame] | 110 | }; |
| 111 | |
| 112 | &sdhci1 { |
Marek Behún | eddd6f9 | 2020-04-08 12:02:04 +0200 | [diff] [blame] | 113 | wp-inverted; |
Marek Behún | 80af1a9 | 2018-04-24 17:21:31 +0200 | [diff] [blame] | 114 | bus-width = <4>; |
Marek Behún | eddd6f9 | 2020-04-08 12:02:04 +0200 | [diff] [blame] | 115 | cd-gpios = <&gpionb 10 GPIO_ACTIVE_HIGH>; |
| 116 | vqmmc-supply = <&vsdc_reg>; |
| 117 | marvell,pad-type = "sd"; |
Marek Behún | 80af1a9 | 2018-04-24 17:21:31 +0200 | [diff] [blame] | 118 | status = "okay"; |
| 119 | }; |
| 120 | |
| 121 | &pinctrl_nb { |
| 122 | spi_cs1_pins: spi-cs1-pins { |
| 123 | groups = "spi_cs1"; |
| 124 | function = "spi"; |
| 125 | }; |
| 126 | }; |
| 127 | |
Marek Behún | 80af1a9 | 2018-04-24 17:21:31 +0200 | [diff] [blame] | 128 | &spi0 { |
| 129 | status = "okay"; |
| 130 | pinctrl-names = "default"; |
| 131 | pinctrl-0 = <&spi_cs1_pins>; |
Marek Behún | 0f6686e | 2018-08-17 12:59:01 +0200 | [diff] [blame] | 132 | assigned-clocks = <&nb_periph_clk 7>; |
| 133 | assigned-clock-parents = <&tbg 1>; |
| 134 | assigned-clock-rates = <20000000>; |
Marek Behún | 80af1a9 | 2018-04-24 17:21:31 +0200 | [diff] [blame] | 135 | |
| 136 | spi-flash@0 { |
| 137 | #address-cells = <1>; |
| 138 | #size-cells = <1>; |
Neil Armstrong | ffd4c7c | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 139 | compatible = "st,s25fl064l", "jedec,spi-nor"; |
Marek Behún | 80af1a9 | 2018-04-24 17:21:31 +0200 | [diff] [blame] | 140 | reg = <0>; |
| 141 | spi-max-frequency = <20000000>; |
| 142 | m25p,fast-read; |
| 143 | }; |
Marek Behún | 7dd7c2e | 2018-12-17 16:10:03 +0100 | [diff] [blame] | 144 | |
| 145 | moxtet@1 { |
| 146 | #address-cells = <1>; |
| 147 | #size-cells = <0>; |
| 148 | compatible = "cznic,moxtet"; |
| 149 | reg = <1>; |
| 150 | reset-gpios = <&gpiosb 2 GPIO_ACTIVE_LOW>; |
| 151 | spi-max-frequency = <1000000>; |
| 152 | spi-cpol; |
| 153 | spi-cpha; |
| 154 | }; |
Marek Behún | 80af1a9 | 2018-04-24 17:21:31 +0200 | [diff] [blame] | 155 | }; |
| 156 | |
| 157 | &uart0 { |
| 158 | pinctrl-names = "default"; |
| 159 | pinctrl-0 = <&uart1_pins>; |
| 160 | status = "okay"; |
| 161 | }; |
| 162 | |
| 163 | &usb2 { |
| 164 | status = "okay"; |
| 165 | }; |
| 166 | |
| 167 | &usb3 { |
| 168 | vbus-supply = <®_usb3_vbus>; |
| 169 | status = "okay"; |
| 170 | }; |
Marek Behún | 863949e | 2018-08-21 12:22:09 +0200 | [diff] [blame] | 171 | |
| 172 | &pcie0 { |
| 173 | pinctrl-names = "default"; |
| 174 | pinctrl-0 = <&pcie_pins>; |
Pali Rohár | 563b85b | 2020-08-19 15:57:06 +0200 | [diff] [blame] | 175 | reset-gpios = <&gpiosb 3 GPIO_ACTIVE_LOW>; |
Marek Behún | 863949e | 2018-08-21 12:22:09 +0200 | [diff] [blame] | 176 | status = "disabled"; |
| 177 | }; |