Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 2 | /* |
Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 3 | * Device Tree file for Marvell Armada 385 AMC board |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 4 | * (DB-88F6820-AMC) |
| 5 | * |
Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 6 | * Copyright (C) 2017 Allied Telesis Labs |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | /dts-v1/; |
| 10 | #include "armada-385.dtsi" |
Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 11 | |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 12 | #include <dt-bindings/gpio/gpio.h> |
| 13 | |
| 14 | / { |
| 15 | model = "Marvell Armada 385 AMC"; |
Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 16 | compatible = "marvell,a385-db-amc", "marvell,armada385", "marvell,armada380"; |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 17 | |
| 18 | chosen { |
| 19 | stdout-path = "serial0:115200n8"; |
| 20 | }; |
| 21 | |
| 22 | aliases { |
| 23 | ethernet0 = ð0; |
Chris Packham | c0f4572 | 2018-01-08 16:17:12 +1300 | [diff] [blame] | 24 | ethernet1 = ð2; |
Chris Packham | 5bb30bc | 2017-05-02 20:35:25 +1200 | [diff] [blame] | 25 | i2c0 = &i2c0; |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 26 | spi1 = &spi1; |
| 27 | }; |
| 28 | |
| 29 | memory { |
| 30 | device_type = "memory"; |
Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 31 | reg = <0x00000000 0x80000000>; /* 2GB */ |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | soc { |
| 35 | ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 |
| 36 | MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000>; |
Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 37 | }; |
| 38 | }; |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 39 | |
Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 40 | &i2c0 { |
| 41 | u-boot,i2c-slave-addr = <0x0>; |
| 42 | pinctrl-names = "default"; |
| 43 | pinctrl-0 = <&i2c0_pins>; |
| 44 | status = "okay"; |
| 45 | }; |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 46 | |
Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 47 | &uart0 { |
| 48 | /* |
| 49 | * Exported on the micro USB connector CON3 |
| 50 | * through an FTDI |
| 51 | */ |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 52 | |
Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 53 | pinctrl-names = "default"; |
| 54 | pinctrl-0 = <&uart0_pins>; |
| 55 | status = "okay"; |
Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 56 | }; |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 57 | |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 58 | |
Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 59 | ð0 { |
| 60 | pinctrl-names = "default"; |
| 61 | /* |
| 62 | * The Reference Clock 0 is used to provide a |
| 63 | * clock to the PHY |
| 64 | */ |
| 65 | pinctrl-0 = <&ge0_rgmii_pins>, <&ref_clk0_pins>; |
| 66 | status = "okay"; |
| 67 | phy = <&phy0>; |
| 68 | phy-mode = "rgmii-id"; |
| 69 | }; |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 70 | |
Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 71 | ð2 { |
| 72 | status = "okay"; |
| 73 | phy = <&phy1>; |
| 74 | phy-mode = "sgmii"; |
| 75 | }; |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 76 | |
Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 77 | &usb0 { |
| 78 | status = "okay"; |
| 79 | }; |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 80 | |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 81 | |
Chris Packham | 228efd0 | 2016-09-22 12:56:15 +1200 | [diff] [blame] | 82 | |
Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 83 | &mdio { |
| 84 | pinctrl-names = "default"; |
| 85 | pinctrl-0 = <&mdio_pins>; |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 86 | |
Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 87 | phy0: ethernet-phy@1 { |
| 88 | reg = <1>; |
| 89 | }; |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 90 | |
Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 91 | phy1: ethernet-phy@0 { |
| 92 | reg = <0>; |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 93 | }; |
| 94 | }; |
| 95 | |
Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 96 | &nand_controller { |
| 97 | status = "okay"; |
| 98 | marvell,nand-keep-config; |
| 99 | marvell,nand-enable-arbiter; |
| 100 | nand-on-flash-bbt; |
| 101 | }; |
| 102 | |
| 103 | &pciec { |
| 104 | status = "okay"; |
| 105 | }; |
| 106 | |
| 107 | &pcie1 { |
| 108 | /* Port 0, Lane 0 */ |
| 109 | status = "okay"; |
| 110 | }; |
| 111 | |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 112 | &spi1 { |
| 113 | pinctrl-names = "default"; |
| 114 | pinctrl-0 = <&spi1_pins>; |
| 115 | status = "okay"; |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 116 | |
| 117 | spi-flash@0 { |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 118 | #address-cells = <1>; |
| 119 | #size-cells = <1>; |
Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 120 | compatible = "jedec,spi-nor"; |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 121 | reg = <0>; /* Chip select 0 */ |
| 122 | spi-max-frequency = <50000000>; |
| 123 | m25p,fast-read; |
Chris Packham | 574e3aa | 2019-04-12 08:47:05 +1200 | [diff] [blame] | 124 | |
| 125 | partitions { |
| 126 | compatible = "fixed-partitions"; |
| 127 | #address-cells = <1>; |
| 128 | #size-cells = <1>; |
| 129 | partition@0 { |
| 130 | reg = <0x00000000 0x00100000>; |
| 131 | label = "u-boot"; |
| 132 | }; |
| 133 | partition@100000 { |
| 134 | reg = <0x00100000 0x00040000>; |
| 135 | label = "u-boot-env"; |
| 136 | }; |
| 137 | }; |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 138 | }; |
| 139 | }; |
| 140 | |
| 141 | &refclk { |
| 142 | clock-frequency = <20000000>; |
| 143 | }; |