blob: ebaf42d9419d8c479c9f300ca4758e3ce4dfc69e [file] [log] [blame]
Bernhard Messerklingerf37594c2025-04-04 09:28:00 +02001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2024 B&R Industrial Automation GmbH
4 */
5
6/include/ "zynq-7000.dtsi"
7#include <dt-bindings/gpio/gpio.h>
8
9/ {
10 model = "BRCP1 CPU";
11 compatible = "br,cp1",
12 "xlnx,zynq-7000";
13
14 aliases {
15 i2c0 = &i2c0;
16 serial0 = &uart0;
17 spi0 = &qspi;
18 mmc0 = &sdhci0;
19 };
20
21 memory {
22 device_type = "memory";
23 reg = <0x0 0x40000000>;
24 };
25
26 chosen {
27 stdout-path = "serial0:115200n8";
28 };
29
30 usb_phy0: phy0 {
31 compatible = "usb-nop-xceiv";
32 #phy-cells = <0>;
33 };
34
35 brd_rst: board_reset {
36 compatible = "br,board-reset";
37 pin = <&gpio0 9 GPIO_ACTIVE_HIGH>;
38 };
39
40 leds {
41 compatible = "gpio-leds";
42 se_green {
43 label = "S_E_GREEN";
44 gpios = <&ledgpio 0 GPIO_ACTIVE_LOW>;
45 default-state = "off";
46 };
47 se_red {
48 label = "S_E_RED";
49 gpios = <&ledgpio 1 GPIO_ACTIVE_LOW>;
50 default-state = "off";
51 };
52 rdy_f_yellow {
53 label = "RDY_F_YELLOW";
54 gpios = <&ledgpio 2 GPIO_ACTIVE_LOW>;
55 default-state = "off";
56 };
57 re_green {
58 label = "R_E_GREEN";
59 gpios = <&ledgpio 3 GPIO_ACTIVE_LOW>;
60 default-state = "off";
61 };
62 re_red {
63 label = "R_E_RED";
64 gpios = <&ledgpio 4 GPIO_ACTIVE_HIGH>;
65 default-state = "off";
66 };
67 plk_se_green {
68 label = "PLK_S_E_GREEN";
69 gpios = <&ledgpio 5 GPIO_ACTIVE_LOW>;
70 default-state = "off";
71 };
72 eth_se_green {
73 label = "ETH_S_E_GREEN";
74 gpios = <&ledgpio 6 GPIO_ACTIVE_LOW>;
75 default-state = "off";
76 };
77 };
78};
79
80&i2c0 {
81 status = "okay";
82 clock-frequency = <100000>;
83
84 ledgpio: max7320@5d { /* board LED */
85 status = "okay";
86 compatible = "maxim,max7320";
87 reg = <0x5d>;
88 #gpio-cells = <2>;
89 gpio-controller;
90 ngpios = <8>;
91 };
92
93 pmic0: da9062@58 {
94 compatible = "dlg,da9062";
95 reg = <0x58>;
96 };
97};
98
99&sdhci0 {
100 status = "okay";
101 max-frequency = <25000000>;
102};
103
104&uart0 {
105 status = "okay";
106};
107
108&qspi {
109 status = "okay";
110 spi-max-frequency = <100000000>;
111
112 spi_flash: spiflash@0 {
113 #address-cells = <1>;
114 #size-cells = <1>;
115 compatible = "jedec,spi-nor", "spi-flash", "s25fl256s1";
116 spi-max-frequency = <100000000>;
117 spi-cpol;
118 spi-cpha;
119 reg = <0>;
120 };
121};
122
123&usb0 {
124 status = "okay";
125 dr_mode = "host";
126 usb-phy = <&usb_phy0>;
127};
128
129&gpio0 {
130 status = "okay";
131};