1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2019 Marvell International Ltd.
5 * Device tree for the CN9130-DB board.
10 #include <dt-bindings/gpio/gpio.h>
13 model = "Marvell Armada CN9130-DB";
16 stdout-path = "serial0:115200n8";
23 ethernet0 = &cp0_eth0;
24 ethernet1 = &cp0_eth1;
25 ethernet2 = &cp0_eth2;
31 device_type = "memory";
32 reg = <0x0 0x0 0x0 0x80000000>;
35 ap0_reg_sd_vccq: ap0_sd_vccq@0 {
36 compatible = "regulator-gpio";
37 regulator-name = "ap0_sd_vccq";
38 regulator-min-microvolt = <1800000>;
39 regulator-max-microvolt = <3300000>;
40 gpios = <&expander0 8 GPIO_ACTIVE_HIGH>;
41 states = <1800000 0x1 3300000 0x0>;
44 cp0_reg_usb3_vbus0: cp0_usb3_vbus@0 {
45 compatible = "regulator-fixed";
46 regulator-name = "cp0-xhci0-vbus";
47 regulator-min-microvolt = <5000000>;
48 regulator-max-microvolt = <5000000>;
50 gpio = <&expander0 0 GPIO_ACTIVE_HIGH>;
53 cp0_usb3_0_phy0: cp0_usb3_phy@0 {
54 compatible = "usb-nop-xceiv";
55 vcc-supply = <&cp0_reg_usb3_vbus0>;
58 cp0_reg_usb3_vbus1: cp0_usb3_vbus@1 {
59 compatible = "regulator-fixed";
60 regulator-name = "cp0-xhci1-vbus";
61 regulator-min-microvolt = <5000000>;
62 regulator-max-microvolt = <5000000>;
64 gpio = <&expander0 1 GPIO_ACTIVE_HIGH>;
67 cp0_usb3_0_phy1: cp0_usb3_phy@1 {
68 compatible = "usb-nop-xceiv";
69 vcc-supply = <&cp0_reg_usb3_vbus1>;
72 cp0_reg_sd_vccq: cp0_sd_vccq@0 {
73 compatible = "regulator-gpio";
74 regulator-name = "cp0_sd_vccq";
75 regulator-min-microvolt = <1800000>;
76 regulator-max-microvolt = <3300000>;
77 gpios = <&expander0 15 GPIO_ACTIVE_HIGH>;
82 cp0_reg_sd_vcc: cp0_sd_vcc@0 {
83 compatible = "regulator-fixed";
84 regulator-name = "cp0_sd_vcc";
85 regulator-min-microvolt = <3300000>;
86 regulator-max-microvolt = <3300000>;
87 gpio = <&expander0 14 GPIO_ACTIVE_HIGH>;
92 cp0_sfp_eth0: sfp-eth@0 {
93 compatible = "sff,sfp";
94 i2c-bus = <&cp0_sfpp0_i2c>;
95 los-gpio = <&cp0_module_expander1 11 GPIO_ACTIVE_HIGH>;
96 mod-def0-gpio = <&cp0_module_expander1 10 GPIO_ACTIVE_LOW>;
97 tx-disable-gpio = <&cp0_module_expander1 9 GPIO_ACTIVE_HIGH>;
98 tx-fault-gpio = <&cp0_module_expander1 8 GPIO_ACTIVE_HIGH>;
100 * SFP cages are unconnected on early PCBs because of an the I2C
101 * lanes not being connected. Prevent the port for being
102 * unusable by disabling the SFP node.
112 /* on-board eMMC - U9 */
114 pinctrl-names = "default";
116 vqmmc-supply = <&ap0_reg_sd_vccq>;
128 /* SLM-1521-V2, CON9 */
131 phy-mode = "10gbase-kr";
132 /* Generic PHY, providing serdes lanes */
133 phys = <&cp0_comphy4 0>;
134 managed = "in-band-status";
135 sfp = <&cp0_sfp_eth0>;
142 phy-mode = "rgmii-id";
149 phy-mode = "rgmii-id";
162 pinctrl-names = "default";
163 pinctrl-0 = <&cp0_i2c0_pins>;
164 clock-frequency = <100000>;
167 expander0: pca953x@21 {
168 compatible = "nxp,pca9555";
169 pinctrl-names = "default";
178 compatible = "atmel,24c64";
185 compatible = "atmel,24c64";
193 clock-frequency = <100000>;
195 /* SLM-1521-V2 - U3 */
196 i2c-mux@72 { /* verify address - depends on dpr */
197 compatible = "nxp,pca9544";
198 #address-cells = <1>;
201 cp0_sfpp0_i2c: i2c@0 {
202 #address-cells = <1>;
208 #address-cells = <1>;
212 cp0_module_expander1: pca9555@21 {
213 compatible = "nxp,pca9555";
214 pinctrl-names = "default";
227 phy0: ethernet-phy@0 {
231 phy1: ethernet-phy@1 {
237 &cp0_nand_controller {
238 pinctrl-names = "default";
239 pinctrl-0 = <&nand_pins &nand_rb>;
243 label = "main-storage";
245 nand-ecc-mode = "hw";
247 nand-ecc-strength = <8>;
248 nand-ecc-step-size = <512>;
251 compatible = "fixed-partitions";
252 #address-cells = <1>;
261 reg = <0x200000 0xd00000>;
264 label = "Filesystem";
265 reg = <0x1000000 0x3f000000>;
271 /* SLM-1521-V2, CON6 */
276 /* Generic PHY, providing serdes lanes */
277 phys = <&cp0_comphy0 0
286 /* SLM-1521-V2, CON2 */
289 /* Generic PHY, providing serdes lanes */
290 phys = <&cp0_comphy5 1>;
297 pinctrl-names = "default";
298 pinctrl-0 = <&cp0_sdhci_pins
301 cd-gpios = <&cp0_gpio2 11 GPIO_ACTIVE_LOW>;
303 vqmmc-supply = <&cp0_reg_sd_vccq>;
304 vmmc-supply = <&cp0_reg_sd_vcc>;
310 pinctrl-names = "default";
311 pinctrl-0 = <&cp0_spi0_pins>;
312 reg = <0x700680 0x50>;
315 #address-cells = <0x1>;
317 compatible = "jedec,spi-nor";
319 /* On-board MUX does not allow higher frequencies */
320 spi-max-frequency = <40000000>;
323 compatible = "fixed-partitions";
324 #address-cells = <1>;
329 reg = <0x0 0x200000>;
333 label = "Filesystem-0";
334 reg = <0x200000 0xe00000>;
341 cp0_pinctrl: pinctrl {
342 compatible = "marvell,cp115-standalone-pinctrl";
344 cp0_i2c0_pins: cp0-i2c-pins-0 {
345 marvell,pins = "mpp37", "mpp38";
346 marvell,function = "i2c0";
348 cp0_i2c1_pins: cp0-i2c-pins-1 {
349 marvell,pins = "mpp35", "mpp36";
350 marvell,function = "i2c1";
352 cp0_ge1_rgmii_pins: cp0-ge-rgmii-pins-0 {
353 marvell,pins = "mpp0", "mpp1", "mpp2",
354 "mpp3", "mpp4", "mpp5",
355 "mpp6", "mpp7", "mpp8",
356 "mpp9", "mpp10", "mpp11";
357 marvell,function = "ge0";
359 cp0_ge2_rgmii_pins: cp0-ge-rgmii-pins-1 {
360 marvell,pins = "mpp44", "mpp45", "mpp46",
361 "mpp47", "mpp48", "mpp49",
362 "mpp50", "mpp51", "mpp52",
363 "mpp53", "mpp54", "mpp55";
364 marvell,function = "ge1";
366 cp0_sdhci_cd_pins: cp0-sdhci-cd-pins-0 {
367 marvell,pins = "mpp43";
368 marvell,function = "gpio";
370 cp0_sdhci_pins: cp0-sdhi-pins-0 {
371 marvell,pins = "mpp56", "mpp57", "mpp58",
372 "mpp59", "mpp60", "mpp61";
373 marvell,function = "sdio";
375 cp0_spi0_pins: cp0-spi-pins-0 {
376 marvell,pins = "mpp13", "mpp14", "mpp15", "mpp16";
377 marvell,function = "spi1";
379 nand_pins: nand-pins {
380 marvell,pins = "mpp15", "mpp16", "mpp17", "mpp18",
381 "mpp19", "mpp20", "mpp21", "mpp22",
382 "mpp23", "mpp24", "mpp25", "mpp26",
384 marvell,function = "dev";
387 marvell,pins = "mpp13";
388 marvell,function = "nf";
395 usb-phy = <&cp0_usb3_0_phy0>;
401 usb-phy = <&cp0_usb3_0_phy1>;