xref: /freebsd/sys/contrib/device-tree/src/arm/cirrus/ep93xx-bk3.dts (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1*b2d2a78aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*b2d2a78aSEmmanuel Vadot/*
3*b2d2a78aSEmmanuel Vadot * Device Tree file for Liebherr controller BK3.1 based on Cirrus EP9302 SoC
4*b2d2a78aSEmmanuel Vadot */
5*b2d2a78aSEmmanuel Vadot/dts-v1/;
6*b2d2a78aSEmmanuel Vadot#include "ep93xx.dtsi"
7*b2d2a78aSEmmanuel Vadot
8*b2d2a78aSEmmanuel Vadot/ {
9*b2d2a78aSEmmanuel Vadot	model = "Liebherr controller BK3.1";
10*b2d2a78aSEmmanuel Vadot	compatible = "liebherr,bk3", "cirrus,ep9301";
11*b2d2a78aSEmmanuel Vadot	#address-cells = <1>;
12*b2d2a78aSEmmanuel Vadot	#size-cells = <1>;
13*b2d2a78aSEmmanuel Vadot
14*b2d2a78aSEmmanuel Vadot	chosen {
15*b2d2a78aSEmmanuel Vadot	};
16*b2d2a78aSEmmanuel Vadot
17*b2d2a78aSEmmanuel Vadot	memory@0 {
18*b2d2a78aSEmmanuel Vadot		device_type = "memory";
19*b2d2a78aSEmmanuel Vadot		/* should be set from ATAGS */
20*b2d2a78aSEmmanuel Vadot		reg = <0x00000000 0x02000000>,
21*b2d2a78aSEmmanuel Vadot		      <0x000530c0 0x01fdd000>;
22*b2d2a78aSEmmanuel Vadot	};
23*b2d2a78aSEmmanuel Vadot
24*b2d2a78aSEmmanuel Vadot	leds {
25*b2d2a78aSEmmanuel Vadot		compatible = "gpio-leds";
26*b2d2a78aSEmmanuel Vadot		led-0 {
27*b2d2a78aSEmmanuel Vadot			label = "grled";
28*b2d2a78aSEmmanuel Vadot			gpios = <&gpio4 0 GPIO_ACTIVE_HIGH>;
29*b2d2a78aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
30*b2d2a78aSEmmanuel Vadot			function = LED_FUNCTION_HEARTBEAT;
31*b2d2a78aSEmmanuel Vadot		};
32*b2d2a78aSEmmanuel Vadot
33*b2d2a78aSEmmanuel Vadot		led-1 {
34*b2d2a78aSEmmanuel Vadot			label = "rdled";
35*b2d2a78aSEmmanuel Vadot			gpios = <&gpio4 1 GPIO_ACTIVE_HIGH>;
36*b2d2a78aSEmmanuel Vadot			function = LED_FUNCTION_FAULT;
37*b2d2a78aSEmmanuel Vadot		};
38*b2d2a78aSEmmanuel Vadot	};
39*b2d2a78aSEmmanuel Vadot};
40*b2d2a78aSEmmanuel Vadot
41*b2d2a78aSEmmanuel Vadot&ebi {
42*b2d2a78aSEmmanuel Vadot	nand-controller@60000000 {
43*b2d2a78aSEmmanuel Vadot		compatible = "technologic,ts7200-nand";
44*b2d2a78aSEmmanuel Vadot		reg = <0x60000000 0x8000000>;
45*b2d2a78aSEmmanuel Vadot		#address-cells = <1>;
46*b2d2a78aSEmmanuel Vadot		#size-cells = <0>;
47*b2d2a78aSEmmanuel Vadot
48*b2d2a78aSEmmanuel Vadot		nand@0 {
49*b2d2a78aSEmmanuel Vadot			reg = <0>;
50*b2d2a78aSEmmanuel Vadot			partitions {
51*b2d2a78aSEmmanuel Vadot				compatible = "fixed-partitions";
52*b2d2a78aSEmmanuel Vadot				#address-cells = <1>;
53*b2d2a78aSEmmanuel Vadot				#size-cells = <1>;
54*b2d2a78aSEmmanuel Vadot
55*b2d2a78aSEmmanuel Vadot				partition@0 {
56*b2d2a78aSEmmanuel Vadot					label = "System";
57*b2d2a78aSEmmanuel Vadot					reg = <0x00000000 0x01e00000>;
58*b2d2a78aSEmmanuel Vadot					read-only;
59*b2d2a78aSEmmanuel Vadot				};
60*b2d2a78aSEmmanuel Vadot
61*b2d2a78aSEmmanuel Vadot				partition@1e00000 {
62*b2d2a78aSEmmanuel Vadot					label = "Data";
63*b2d2a78aSEmmanuel Vadot					reg = <0x01e00000 0x05f20000>;
64*b2d2a78aSEmmanuel Vadot				};
65*b2d2a78aSEmmanuel Vadot
66*b2d2a78aSEmmanuel Vadot				partition@7d20000 {
67*b2d2a78aSEmmanuel Vadot					label = "RedBoot";
68*b2d2a78aSEmmanuel Vadot					reg = <0x07d20000 0x002e0000>;
69*b2d2a78aSEmmanuel Vadot					read-only;
70*b2d2a78aSEmmanuel Vadot				};
71*b2d2a78aSEmmanuel Vadot			};
72*b2d2a78aSEmmanuel Vadot		};
73*b2d2a78aSEmmanuel Vadot	};
74*b2d2a78aSEmmanuel Vadot};
75*b2d2a78aSEmmanuel Vadot
76*b2d2a78aSEmmanuel Vadot&eth0 {
77*b2d2a78aSEmmanuel Vadot	phy-handle = <&phy0>;
78*b2d2a78aSEmmanuel Vadot};
79*b2d2a78aSEmmanuel Vadot
80*b2d2a78aSEmmanuel Vadot&i2s {
81*b2d2a78aSEmmanuel Vadot	dmas = <&dma0 0 1>, <&dma0 0 2>;
82*b2d2a78aSEmmanuel Vadot	dma-names = "tx", "rx";
83*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
84*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&i2s_on_ac97_pins>;
85*b2d2a78aSEmmanuel Vadot	status = "okay";
86*b2d2a78aSEmmanuel Vadot};
87*b2d2a78aSEmmanuel Vadot
88*b2d2a78aSEmmanuel Vadot&gpio1 {
89*b2d2a78aSEmmanuel Vadot	/* PWM */
90*b2d2a78aSEmmanuel Vadot	gpio-ranges = <&syscon 6 163 1>;
91*b2d2a78aSEmmanuel Vadot};
92*b2d2a78aSEmmanuel Vadot
93*b2d2a78aSEmmanuel Vadot&gpio4 {
94*b2d2a78aSEmmanuel Vadot	gpio-ranges = <&syscon 0 97 2>;
95*b2d2a78aSEmmanuel Vadot	status = "okay";
96*b2d2a78aSEmmanuel Vadot};
97*b2d2a78aSEmmanuel Vadot
98*b2d2a78aSEmmanuel Vadot&gpio6 {
99*b2d2a78aSEmmanuel Vadot	gpio-ranges = <&syscon 0 87 2>;
100*b2d2a78aSEmmanuel Vadot	status = "okay";
101*b2d2a78aSEmmanuel Vadot};
102*b2d2a78aSEmmanuel Vadot
103*b2d2a78aSEmmanuel Vadot&gpio7 {
104*b2d2a78aSEmmanuel Vadot	gpio-ranges = <&syscon 2 199 4>;
105*b2d2a78aSEmmanuel Vadot	status = "okay";
106*b2d2a78aSEmmanuel Vadot};
107*b2d2a78aSEmmanuel Vadot
108*b2d2a78aSEmmanuel Vadot&mdio0 {
109*b2d2a78aSEmmanuel Vadot	phy0: ethernet-phy@1 {
110*b2d2a78aSEmmanuel Vadot		reg = <1>;
111*b2d2a78aSEmmanuel Vadot		device_type = "ethernet-phy";
112*b2d2a78aSEmmanuel Vadot	};
113*b2d2a78aSEmmanuel Vadot};
114*b2d2a78aSEmmanuel Vadot
115*b2d2a78aSEmmanuel Vadot&uart0 {
116*b2d2a78aSEmmanuel Vadot	status = "okay";
117*b2d2a78aSEmmanuel Vadot};
118*b2d2a78aSEmmanuel Vadot
119*b2d2a78aSEmmanuel Vadot&uart1 {
120*b2d2a78aSEmmanuel Vadot	status = "okay";
121*b2d2a78aSEmmanuel Vadot};
122*b2d2a78aSEmmanuel Vadot
123*b2d2a78aSEmmanuel Vadot&usb0 {
124*b2d2a78aSEmmanuel Vadot	status = "okay";
125*b2d2a78aSEmmanuel Vadot};
126