Marek BehĂșn | 1b01011 | 2023-10-20 16:29:16 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ or X11 |
| 2 | /* |
| 3 | * Device Tree file for CZ.NIC' RIPE Atlas Probe |
| 4 | * 2021 by Marek BehĂșn <marek.behun@nic.cz> |
| 5 | */ |
| 6 | |
| 7 | /dts-v1/; |
| 8 | |
| 9 | #include <dt-bindings/gpio/gpio.h> |
| 10 | #include <dt-bindings/leds/common.h> |
| 11 | #include "armada-372x.dtsi" |
| 12 | |
| 13 | / { |
| 14 | model = "CZ.NIC's RIPE Atlas Probe"; |
| 15 | compatible = "cznic,ripe-atlas", "marvell,armada3720", |
| 16 | "marvell,armada3710"; |
| 17 | |
| 18 | aliases { |
| 19 | ethernet0 = ð0; |
| 20 | mmc0 = &sdhci0; |
| 21 | }; |
| 22 | |
| 23 | chosen { |
| 24 | stdout-path = "serial0:115200n8"; |
| 25 | }; |
| 26 | |
| 27 | memory { |
| 28 | device_type = "memory"; |
| 29 | reg = <0x00000000 0x00000000 0x00000000 0x20000000>; |
| 30 | }; |
| 31 | |
| 32 | leds { |
| 33 | compatible = "gpio-leds"; |
| 34 | |
| 35 | led { |
| 36 | gpios = <&gpiosb 21 GPIO_ACTIVE_LOW>; |
| 37 | color = <LED_COLOR_ID_RED>; |
| 38 | function = LED_FUNCTION_ACTIVITY; |
| 39 | }; |
| 40 | }; |
| 41 | |
| 42 | vsdc_reg: vsdc-reg { |
| 43 | compatible = "regulator-gpio"; |
| 44 | regulator-name = "vsdc"; |
| 45 | regulator-min-microvolt = <1800000>; |
| 46 | regulator-max-microvolt = <3300000>; |
| 47 | regulator-boot-on; |
| 48 | |
| 49 | gpios = <&gpiosb 23 GPIO_ACTIVE_HIGH>; |
| 50 | gpios-states = <0>; |
| 51 | states = <1800000 0x1 |
| 52 | 3300000 0x0>; |
| 53 | enable-active-high; |
| 54 | }; |
| 55 | }; |
| 56 | |
| 57 | &comphy { |
| 58 | status = "disabled"; |
| 59 | }; |
| 60 | |
| 61 | &mdio { |
| 62 | pinctrl-names = "default"; |
| 63 | pinctrl-0 = <&smi_pins>; |
| 64 | status = "okay"; |
| 65 | |
| 66 | phy1: ethernet-phy@1 { |
| 67 | reg = <1>; |
| 68 | }; |
| 69 | }; |
| 70 | |
| 71 | ð0 { |
| 72 | pinctrl-names = "default"; |
| 73 | pinctrl-0 = <&rgmii_pins>; |
| 74 | phy-mode = "rgmii"; |
| 75 | phy-handle = <&phy1>; |
| 76 | status = "okay"; |
| 77 | }; |
| 78 | |
| 79 | &sdhci0 { |
| 80 | bus-width = <8>; |
| 81 | non-removable; |
| 82 | vqmmc-supply = <&vsdc_reg>; |
| 83 | marvell,pad-type = "sd"; |
| 84 | status = "okay"; |
| 85 | }; |
| 86 | |
| 87 | &uart0 { |
| 88 | pinctrl-names = "default"; |
| 89 | pinctrl-0 = <&uart1_pins>; |
| 90 | status = "okay"; |
| 91 | }; |