1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2018-2021 Marvell International Ltd.
6 #include "cn9130.dtsi" /* include SoC device tree */
7 #include "cn9130-db-dev-info.dtsi"
11 compatible = "marvell,cn9130-db", "marvell,cn91xx", "marvell,cn9030-vd",
12 "marvell,cn9030", "marvell,armada-ap806-quad",
13 "marvell,armada-ap806";
16 stdout-path = "serial0:115200n8";
27 device_type = "memory";
28 reg = <0x0 0x0 0x0 0x80000000>;
35 expander0: pca953x@21 {
36 compatible = "nxp,pca9555";
43 vqmmc-supply = <&cp0_reg_sd_vccq>;
44 vmmc-supply = <&cp0_reg_sd_vcc>;
47 ap_reg_mmc_vccq: ap_mmc_vccq@0 {
48 compatible = "regulator-gpio";
49 regulator-name = "ap_mmc_vccq";
50 regulator-min-microvolt = <1800000>;
51 regulator-max-microvolt = <3300000>;
52 gpios = <&expander0 8 GPIO_ACTIVE_HIGH>;
56 cp0_reg_usb3_vbus0: cp0_usb3_vbus@0 {
57 compatible = "regulator-fixed";
58 regulator-name = "cp0-xhci0-vbus";
59 regulator-min-microvolt = <5000000>;
60 regulator-max-microvolt = <5000000>;
61 startup-delay-us = <100000>;
62 regulator-force-boot-off;
63 gpio = <&expander0 0 GPIO_ACTIVE_HIGH>;
66 cp0_reg_usb3_vbus1: cp0_usb3_vbus@1 {
67 compatible = "regulator-fixed";
68 regulator-name = "cp0-xhci1-vbus";
69 regulator-min-microvolt = <5000000>;
70 regulator-max-microvolt = <5000000>;
71 startup-delay-us = <100000>;
72 regulator-force-boot-off;
73 gpio = <&expander0 1 GPIO_ACTIVE_HIGH>;
75 cp0_reg_sd_vccq: cp0_sd_vccq@0 {
76 compatible = "regulator-gpio";
77 regulator-name = "cp0_sd_vccq";
78 regulator-min-microvolt = <1800000>;
79 regulator-max-microvolt = <3300000>;
80 gpios = <&expander0 15 GPIO_ACTIVE_HIGH>;
84 cp0_reg_sd_vcc: cp0_sd_vcc@0 {
85 compatible = "regulator-fixed";
86 regulator-name = "cp0_sd_vcc";
87 regulator-min-microvolt = <3300000>;
88 regulator-max-microvolt = <3300000>;
89 gpio = <&expander0 14 GPIO_ACTIVE_HIGH>;
93 cp0_reg_usb3_current_lim0:cp0_usb3_current_limiter@0 {
94 compatible = "regulator-fixed";
95 regulator-min-microamp = <900000>;
96 regulator-max-microamp = <900000>;
97 regulator-force-boot-off;
98 gpio = <&expander0 4 GPIO_ACTIVE_HIGH>;
101 cp0_reg_usb3_current_lim1: cp0_usb3_current_limiter@1 {
102 compatible = "regulator-fixed";
103 regulator-min-microamp = <900000>;
104 regulator-max-microamp = <900000>;
105 regulator-force-boot-off;
106 gpio = <&expander0 5 GPIO_ACTIVE_HIGH>;
117 * AP related configuration
124 /* 0 1 2 3 4 5 6 7 8 9 */
125 pin-func = < 1 1 1 1 1 1 1 1 1 1
126 1 3 1 0 0 0 0 0 0 3 >;
129 /* on-board eMMC - U9 */
131 pinctrl-names = "default";
132 pinctrl-0 = <&ap_emmc_pins>;
133 vqmmc-supply = <&ap_reg_mmc_vccq>;
141 * CP related configuration
144 cp0_nand_pins: cp0-nand-pins {
145 marvell,pins = <15 16 17 18 19 20 21 22 23 24 25 26 27 >;
146 marvell,function = <1>;
148 cp0_nand_rb: cp0-nand-rb {
149 marvell,pins = < 13 >;
150 marvell,function = <2>;
158 pinctrl-names = "default";
159 pinctrl-0 = <&cp0_i2c0_pins>;
161 clock-frequency = <100000>;
170 pinctrl-names = "default";
171 pinctrl-0 = <&cp0_sdhci_pins>;
178 pinctrl-names = "default";
179 pinctrl-0 = <&cp0_nand_pins &cp0_nand_rb>;
185 pinctrl-names = "default";
186 pinctrl-0 = <&cp0_spi0_pins>;
187 reg = <0x700680 0x50>, /* control */
188 <0x2000000 0x1000000>, /* CS0 */
189 <0 0xffffffff>, /* CS1 */
190 <0 0xffffffff>, /* CS2 */
191 <0 0xffffffff>; /* CS3 */
195 #address-cells = <0x1>;
197 compatible = "jedec,spi-nor", "spi-flash";
199 /* On-board MUX does not allow higher frequencies */
200 spi-max-frequency = <40000000>;
203 compatible = "fixed-partitions";
204 #address-cells = <1>;
209 reg = <0x0 0x200000>;
213 label = "Filesystem";
214 reg = <0x200000 0xe00000>;
222 phy-type = <COMPHY_TYPE_PEX0>;
226 phy-type = <COMPHY_TYPE_PEX0>;
230 phy-type = <COMPHY_TYPE_PEX0>;
234 phy-type = <COMPHY_TYPE_PEX0>;
238 phy-type = <COMPHY_TYPE_SFI0>;
239 phy-speed = <COMPHY_SPEED_10_3125G>;
243 phy-type = <COMPHY_TYPE_SATA1>;
247 /* SLM-1521-V2, CON6 */
255 phy0: ethernet-phy@0 {
258 phy1: ethernet-phy@1 {
267 /* SLM-1521-V2, CON9 */
277 phy-mode = "rgmii-id";
284 phy-mode = "rgmii-id";
287 /* SLM-1521-V2, CON2 */
302 vbus-supply = <&cp0_reg_usb3_vbus0>;
303 current-limiter = <&cp0_reg_usb3_current_lim0>;
304 vbus-disable-delay = <500>;
309 vbus-supply = <&cp0_reg_usb3_vbus1>;
310 current-limiter = <&cp0_reg_usb3_current_lim1>;
311 vbus-disable-delay = <500>;