Bernhard Messerklinger | f37594c | 2025-04-04 09:28:00 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright 2024 B&R Industrial Automation GmbH |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | /include/ "zynq-7000.dtsi" |
| 8 | #include <dt-bindings/gpio/gpio.h> |
| 9 | |
| 10 | / { |
| 11 | model = "BRSMARC2 CPU"; |
| 12 | compatible = "br,smarc2", |
| 13 | "xlnx,zynq-7000"; |
| 14 | |
| 15 | aliases { |
| 16 | i2c0 = &i2c0; |
| 17 | serial0 = &uart0; |
| 18 | spi0 = &qspi; |
| 19 | mmc0 = &sdhci0; |
| 20 | can0 = &can0; |
| 21 | can1 = &can1; |
| 22 | }; |
| 23 | |
| 24 | memory { |
| 25 | device_type = "memory"; |
| 26 | reg = <0x0 0x10000000>; |
| 27 | }; |
| 28 | |
| 29 | chosen { |
| 30 | stdout-path = "serial0:115200n8"; |
| 31 | }; |
| 32 | |
| 33 | usb_phy0: phy0 { |
| 34 | compatible = "usb-nop-xceiv"; |
| 35 | #phy-cells = <0>; |
| 36 | }; |
| 37 | |
| 38 | brd_rst: board_reset { |
| 39 | compatible = "br,board-reset"; |
| 40 | pin = <&gpio0 9 GPIO_ACTIVE_HIGH>; |
| 41 | }; |
| 42 | |
| 43 | leds { |
| 44 | compatible = "gpio-leds"; |
| 45 | plk_se_green { |
| 46 | label = "PLK_S_E_GREEN"; |
| 47 | gpios = <&ledgpio 0 GPIO_ACTIVE_LOW>; |
| 48 | default-state = "off"; |
| 49 | }; |
| 50 | plk_se_red { |
| 51 | label = "PLK_S_E_RED"; |
| 52 | gpios = <&ledgpio 1 GPIO_ACTIVE_LOW>; |
| 53 | default-state = "off"; |
| 54 | }; |
| 55 | rdy_f_yellow { |
| 56 | label = "RDY_F_YELLOW"; |
| 57 | gpios = <&ledgpio 2 GPIO_ACTIVE_LOW>; |
| 58 | default-state = "off"; |
| 59 | }; |
| 60 | re_green { |
| 61 | label = "R_E_GREEN"; |
| 62 | gpios = <&ledgpio 3 GPIO_ACTIVE_LOW>; |
| 63 | default-state = "off"; |
| 64 | }; |
| 65 | re_red { |
| 66 | label = "R_E_RED"; |
| 67 | gpios = <&ledgpio 4 GPIO_ACTIVE_HIGH>; |
| 68 | default-state = "off"; |
| 69 | }; |
| 70 | }; |
| 71 | }; |
| 72 | |
| 73 | &gem0 { |
| 74 | status = "okay"; |
| 75 | phy-mode = "rgmii-id"; |
| 76 | phy-handle = <ðernet_phy0>; |
| 77 | |
| 78 | ethernet_phy0: ethernet-phy@1 { |
| 79 | ti,ledcr = <0x0480>; |
| 80 | ti,rgmii-rxclk-shift; |
| 81 | reg = <1>; |
| 82 | }; |
| 83 | }; |
| 84 | |
| 85 | &gem1 { |
| 86 | status = "okay"; |
| 87 | phy-mode = "rgmii-id"; |
| 88 | phy-handle = <ðernet_phy1>; |
| 89 | mac-address = [ 00 00 00 00 00 00 ]; |
| 90 | |
| 91 | ethernet_phy1: ethernet-phy@3{ |
| 92 | ti,ledcr = <0x0480>; |
| 93 | reg = <3>; |
| 94 | }; |
| 95 | }; |
| 96 | |
| 97 | &i2c0 { |
| 98 | status = "okay"; |
| 99 | clock-frequency = <100000>; |
| 100 | |
| 101 | resetc: rststm@60 { /* reset controller */ |
| 102 | compatible = "bur,rststm"; |
| 103 | reg = <0x60>; |
| 104 | hit-gpios = <&gpio0 84 GPIO_ACTIVE_HIGH>; |
| 105 | cooling-min-state = <0>; |
| 106 | cooling-max-state = <1>; /* reset gets fired */ |
| 107 | #cooling-cells = <2>; /* min followed by max */ |
| 108 | }; |
| 109 | |
| 110 | ledgpio: max7320@5d { /* board LED */ |
| 111 | status = "okay"; |
| 112 | compatible = "maxim,max7320"; |
| 113 | reg = <0x5d>; |
| 114 | #gpio-cells = <2>; |
| 115 | gpio-controller; |
| 116 | ngpios = <8>; |
| 117 | }; |
| 118 | }; |
| 119 | |
| 120 | &i2c1 { |
| 121 | status = "okay"; |
| 122 | clock-frequency = <100000>; |
| 123 | }; |
| 124 | |
| 125 | &sdhci0 { |
| 126 | status = "okay"; |
| 127 | max-frequency = <25000000>; |
| 128 | }; |
| 129 | |
| 130 | &uart0 { |
| 131 | status = "okay"; |
| 132 | }; |
| 133 | |
| 134 | &qspi { |
| 135 | status = "okay"; |
| 136 | spi-max-frequency = <100000000>; |
| 137 | |
| 138 | spi_flash: spiflash@0 { |
| 139 | #address-cells = <1>; |
| 140 | #size-cells = <1>; |
| 141 | compatible = "jedec,spi-nor", "spi-flash", "s25fl256s1"; |
| 142 | spi-max-frequency = <100000000>; |
| 143 | spi-cpol; |
| 144 | spi-cpha; |
| 145 | reg = <0>; |
| 146 | }; |
| 147 | }; |
| 148 | |
| 149 | &gpio0 { |
| 150 | status = "okay"; |
| 151 | }; |
| 152 | |
| 153 | &usb0 { |
| 154 | status = "okay"; |
| 155 | dr_mode = "host"; |
| 156 | usb-phy = <&usb_phy0>; |
| 157 | }; |