summaryrefslogtreecommitdiff
path: root/arch/arm/dts/zynq-brcp170.dts
blob: eee19ce4c5fb98030c23cd12b39ca74539ac7584 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright 2024 B&R Industrial Automation GmbH
 */

/dts-v1/;
/include/ "zynq-7000.dtsi"
#include <dt-bindings/gpio/gpio.h>

/ {
	model = "BRCP170 CPU";
	compatible = "br,cp170",
		     "xlnx,zynq-7000";

	aliases {
		i2c0 = &i2c0;
		serial0 = &uart0;
		spi0 = &qspi;
	};

	memory {
		device_type = "memory";
		reg = <0x0 0x20000000>;
	};

	chosen {
		stdout-path = "serial0:115200n8";
	};

	usb_phy0: phy0 {
		compatible = "usb-nop-xceiv";
		#phy-cells = <0>;
	};

	leds {
		compatible = "gpio-leds";
		re_green {
			label = "R_E_GREEN";
			gpios = <&ledgpio 0 GPIO_ACTIVE_HIGH>;
			default-state = "off";
		};
		re_red {
			label = "R_E_RED";
			gpios = <&ledgpio 1 GPIO_ACTIVE_LOW>;
			default-state = "off";
		};
		rdy_f_red {
			label = "RDY_F_RED";
			gpios = <&ledgpio 2 GPIO_ACTIVE_HIGH>;
			default-state = "off";
		};
		rdy_f_yellow {
			label = "RDY_F_YELLOW";
			gpios = <&ledgpio 3 GPIO_ACTIVE_HIGH>;
			default-state = "off";
		};
		se_green {
			label = "S_E_GREEN";
			gpios = <&ledgpio 4 GPIO_ACTIVE_HIGH>;
			default-state = "off";
		};
		se_red {
			label = "S_E_RED";
			gpios = <&ledgpio 5 GPIO_ACTIVE_HIGH>;
			default-state = "off";
		};
		plk_se_green {
			label = "PLK_S_E_GREEN";
			gpios = <&ledgpio 6 GPIO_ACTIVE_HIGH>;
			default-state = "off";
		};
		eth_se_green {
			label = "ETH_S_E_GREEN";
			gpios = <&ledgpio 7 GPIO_ACTIVE_HIGH>;
			default-state = "off";
		};
	};
};

&gem0 {
	status = "okay";
	phy-mode = "rgmii-id";
	phy-handle = <&ethernet_phy>;

	ethernet_phy: ethernet-phy@0 {
		reg = <0>;
		max-speed = <100>;
		ti,rx-internal-delay = <7>;
		ti,tx-internal-delay = <7>;
		ti,fifo-depth = <0>;
	};
};

&i2c0 {
	status = "okay";
	clock-frequency = <100000>;

	ledgpio: max7320@58 {	/* board LED */
		status = "okay";
		compatible = "maxim,max7320";
		reg = <0x58>;
		#gpio-cells = <2>;
		gpio-controller;
		ngpios = <8>;
	};
};

&sdhci0 {
	status = "okay";
};

&uart0 {
	status = "okay";
};

&qspi {
	status = "okay";
	spi-max-frequency = <100000000>;

	spi_flash: spiflash@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "jedec,spi-nor", "spi-flash", "s25fl256s1";
		spi-max-frequency = <100000000>;
		spi-cpol;
		spi-cpha;
		reg = <0>;
	};
};

&usb0 {
	status = "okay";
	dr_mode = "host";
	usb-phy = <&usb_phy0>;
};

&gpio0 {
	status = "okay";
};