1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Device tree for the uDPU board. 4 * Based on Marvell Armada 3720 development board (DB-88F3720-DDR3) 5 * Copyright (C) 2016 Marvell 6 * Copyright (C) 2019 Methode Electronics 7 * Copyright (C) 2019 Telus 8 * 9 * Vladimir Vid <vladimir.vid@sartura.hr> 10 */ 11 12/dts-v1/; 13 14#include <dt-bindings/gpio/gpio.h> 15#include "armada-372x.dtsi" 16 17/ { 18 chosen { 19 stdout-path = "serial0:115200n8"; 20 }; 21 22 memory@0 { 23 device_type = "memory"; 24 reg = <0x00000000 0x00000000 0x00000000 0x20000000>; 25 }; 26 27 leds { 28 compatible = "gpio-leds"; 29 pinctrl-names = "default"; 30 pinctrl-0 = <&spi_quad_pins>; 31 32 led-power1 { 33 label = "udpu:green:power"; 34 gpios = <&gpionb 11 GPIO_ACTIVE_LOW>; 35 }; 36 37 led-power2 { 38 label = "udpu:red:power"; 39 gpios = <&gpionb 12 GPIO_ACTIVE_LOW>; 40 }; 41 42 led-network1 { 43 label = "udpu:green:network"; 44 gpios = <&gpionb 13 GPIO_ACTIVE_LOW>; 45 }; 46 47 led-network2 { 48 label = "udpu:red:network"; 49 gpios = <&gpionb 14 GPIO_ACTIVE_LOW>; 50 }; 51 52 led-alarm1 { 53 label = "udpu:green:alarm"; 54 gpios = <&gpionb 15 GPIO_ACTIVE_LOW>; 55 }; 56 57 led-alarm2 { 58 label = "udpu:red:alarm"; 59 gpios = <&gpionb 16 GPIO_ACTIVE_LOW>; 60 }; 61 }; 62 63 sfp_eth1: sfp-eth1 { 64 compatible = "sff,sfp"; 65 i2c-bus = <&i2c1>; 66 los-gpio = <&gpiosb 7 GPIO_ACTIVE_HIGH>; 67 mod-def0-gpio = <&gpiosb 8 GPIO_ACTIVE_LOW>; 68 tx-disable-gpio = <&gpiosb 9 GPIO_ACTIVE_HIGH>; 69 tx-fault-gpio = <&gpiosb 10 GPIO_ACTIVE_HIGH>; 70 maximum-power-milliwatt = <3000>; 71 }; 72}; 73 74&sdhci0 { 75 status = "okay"; 76 bus-width = <8>; 77 mmc-ddr-1_8v; 78 mmc-hs400-1_8v; 79 marvell,pad-type = "fixed-1-8v"; 80 non-removable; 81 no-sd; 82 no-sdio; 83}; 84 85&spi0 { 86 status = "okay"; 87 88 flash@0 { 89 compatible = "jedec,spi-nor"; 90 reg = <0>; 91 spi-max-frequency = <54000000>; 92 93 partitions { 94 compatible = "fixed-partitions"; 95 #address-cells = <1>; 96 #size-cells = <1>; 97 98 partition@0 { 99 label = "firmware"; 100 reg = <0x0 0x180000>; 101 }; 102 103 partition@180000 { 104 label = "u-boot-env"; 105 reg = <0x180000 0x10000>; 106 }; 107 }; 108 }; 109}; 110 111&spi_quad_pins { 112 function = "gpio"; 113}; 114 115&pinctrl_nb { 116 i2c2_recovery_pins: i2c2-recovery-pins { 117 groups = "i2c2"; 118 function = "gpio"; 119 }; 120}; 121 122&i2c1 { 123 status = "okay"; 124 pinctrl-names = "default", "recovery"; 125 pinctrl-0 = <&i2c2_pins>; 126 pinctrl-1 = <&i2c2_recovery_pins>; 127 /delete-property/mrvl,i2c-fast-mode; 128 scl-gpios = <&gpionb 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 129 sda-gpios = <&gpionb 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 130 131 temp-sensor@48 { 132 compatible = "ti,tmp75c"; 133 reg = <0x48>; 134 }; 135 136 temp-sensor@49 { 137 compatible = "ti,tmp75c"; 138 reg = <0x49>; 139 }; 140}; 141 142ð0 { 143 status = "okay"; 144 managed = "in-band-status"; 145 phys = <&comphy1 0>; 146}; 147 148ð1 { 149 phy-mode = "sgmii"; 150 status = "okay"; 151 managed = "in-band-status"; 152 phys = <&comphy0 1>; 153 sfp = <&sfp_eth1>; 154}; 155 156&usb3 { 157 status = "okay"; 158 phys = <&usb2_utmi_otg_phy>; 159 phy-names = "usb2-utmi-otg-phy"; 160}; 161 162&uart0 { 163 status = "okay"; 164}; 165