Skip to content

Commit 454b61d

Browse files
maquefelarndb
authored andcommitted
ARM: dts: ep93xx: add ts7250 board
Add device tree file for Technologic Systems ts7250 board and Liebherr bk3 board which have many in common, both are based on ep9302 SoC variant. Signed-off-by: Nikita Shubin <[email protected]> Acked-by: Vinod Koul <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent ed5244a commit 454b61d

File tree

3 files changed

+273
-0
lines changed

3 files changed

+273
-0
lines changed

arch/arm/boot/dts/cirrus/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ dtb-$(CONFIG_ARCH_CLPS711X) += \
33
ep7211-edb7211.dtb
44
dtb-$(CONFIG_ARCH_CLPS711X) += \
55
ep7211-edb7211.dtb
6+
dtb-$(CONFIG_ARCH_EP93XX) += \
7+
ep93xx-bk3.dtb \
8+
ep93xx-ts7250.dtb
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
/*
3+
* Device Tree file for Liebherr controller BK3.1 based on Cirrus EP9302 SoC
4+
*/
5+
/dts-v1/;
6+
#include "ep93xx.dtsi"
7+
8+
/ {
9+
model = "Liebherr controller BK3.1";
10+
compatible = "liebherr,bk3", "cirrus,ep9301";
11+
#address-cells = <1>;
12+
#size-cells = <1>;
13+
14+
chosen {
15+
};
16+
17+
memory@0 {
18+
device_type = "memory";
19+
/* should be set from ATAGS */
20+
reg = <0x00000000 0x02000000>,
21+
<0x000530c0 0x01fdd000>;
22+
};
23+
24+
leds {
25+
compatible = "gpio-leds";
26+
led-0 {
27+
label = "grled";
28+
gpios = <&gpio4 0 GPIO_ACTIVE_HIGH>;
29+
linux,default-trigger = "heartbeat";
30+
function = LED_FUNCTION_HEARTBEAT;
31+
};
32+
33+
led-1 {
34+
label = "rdled";
35+
gpios = <&gpio4 1 GPIO_ACTIVE_HIGH>;
36+
function = LED_FUNCTION_FAULT;
37+
};
38+
};
39+
};
40+
41+
&ebi {
42+
nand-controller@60000000 {
43+
compatible = "technologic,ts7200-nand";
44+
reg = <0x60000000 0x8000000>;
45+
#address-cells = <1>;
46+
#size-cells = <0>;
47+
48+
nand@0 {
49+
reg = <0>;
50+
partitions {
51+
compatible = "fixed-partitions";
52+
#address-cells = <1>;
53+
#size-cells = <1>;
54+
55+
partition@0 {
56+
label = "System";
57+
reg = <0x00000000 0x01e00000>;
58+
read-only;
59+
};
60+
61+
partition@1e00000 {
62+
label = "Data";
63+
reg = <0x01e00000 0x05f20000>;
64+
};
65+
66+
partition@7d20000 {
67+
label = "RedBoot";
68+
reg = <0x07d20000 0x002e0000>;
69+
read-only;
70+
};
71+
};
72+
};
73+
};
74+
};
75+
76+
&eth0 {
77+
phy-handle = <&phy0>;
78+
};
79+
80+
&i2s {
81+
dmas = <&dma0 0 1>, <&dma0 0 2>;
82+
dma-names = "tx", "rx";
83+
pinctrl-names = "default";
84+
pinctrl-0 = <&i2s_on_ac97_pins>;
85+
status = "okay";
86+
};
87+
88+
&gpio1 {
89+
/* PWM */
90+
gpio-ranges = <&syscon 6 163 1>;
91+
};
92+
93+
&gpio4 {
94+
gpio-ranges = <&syscon 0 97 2>;
95+
status = "okay";
96+
};
97+
98+
&gpio6 {
99+
gpio-ranges = <&syscon 0 87 2>;
100+
status = "okay";
101+
};
102+
103+
&gpio7 {
104+
gpio-ranges = <&syscon 2 199 4>;
105+
status = "okay";
106+
};
107+
108+
&mdio0 {
109+
phy0: ethernet-phy@1 {
110+
reg = <1>;
111+
device_type = "ethernet-phy";
112+
};
113+
};
114+
115+
&uart0 {
116+
status = "okay";
117+
};
118+
119+
&uart1 {
120+
status = "okay";
121+
};
122+
123+
&usb0 {
124+
status = "okay";
125+
};
Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
/*
3+
* Device Tree file for Technologic Systems ts7250 board based on Cirrus EP9302 SoC
4+
*/
5+
/dts-v1/;
6+
#include "ep93xx.dtsi"
7+
8+
/ {
9+
compatible = "technologic,ts7250", "cirrus,ep9301";
10+
model = "TS-7250 SBC";
11+
#address-cells = <1>;
12+
#size-cells = <1>;
13+
14+
chosen {
15+
};
16+
17+
memory@0 {
18+
device_type = "memory";
19+
/* should be set from ATAGS */
20+
reg = <0x00000000 0x02000000>,
21+
<0x000530c0 0x01fdd000>;
22+
};
23+
24+
leds {
25+
compatible = "gpio-leds";
26+
led-0 {
27+
label = "grled";
28+
gpios = <&gpio4 0 GPIO_ACTIVE_HIGH>;
29+
linux,default-trigger = "heartbeat";
30+
function = LED_FUNCTION_HEARTBEAT;
31+
};
32+
33+
led-1 {
34+
label = "rdled";
35+
gpios = <&gpio4 1 GPIO_ACTIVE_HIGH>;
36+
function = LED_FUNCTION_FAULT;
37+
};
38+
};
39+
};
40+
41+
&ebi {
42+
nand-controller@60000000 {
43+
compatible = "technologic,ts7200-nand";
44+
reg = <0x60000000 0x8000000>;
45+
#address-cells = <1>;
46+
#size-cells = <0>;
47+
48+
nand@0 {
49+
reg = <0>;
50+
partitions {
51+
compatible = "fixed-partitions";
52+
#address-cells = <1>;
53+
#size-cells = <1>;
54+
55+
partition@0 {
56+
label = "TS-BOOTROM";
57+
reg = <0x00000000 0x00020000>;
58+
read-only;
59+
};
60+
61+
partition@20000 {
62+
label = "Linux";
63+
reg = <0x00020000 0x07d00000>;
64+
};
65+
66+
partition@7d20000 {
67+
label = "RedBoot";
68+
reg = <0x07d20000 0x002e0000>;
69+
read-only;
70+
};
71+
};
72+
};
73+
};
74+
75+
rtc@10800000 {
76+
compatible = "st,m48t86";
77+
reg = <0x10800000 0x1>,
78+
<0x11700000 0x1>;
79+
};
80+
81+
watchdog@23800000 {
82+
compatible = "technologic,ts7200-wdt";
83+
reg = <0x23800000 0x01>,
84+
<0x23c00000 0x01>;
85+
timeout-sec = <30>;
86+
};
87+
};
88+
89+
&eth0 {
90+
phy-handle = <&phy0>;
91+
};
92+
93+
&gpio1 {
94+
/* PWM */
95+
gpio-ranges = <&syscon 6 163 1>;
96+
};
97+
98+
/* ts7250 doesn't have GPIO Port D present */
99+
&gpio3 {
100+
status = "disabled";
101+
};
102+
103+
&gpio4 {
104+
gpio-ranges = <&syscon 0 97 2>;
105+
};
106+
107+
&gpio6 {
108+
gpio-ranges = <&syscon 0 87 2>;
109+
};
110+
111+
&gpio7 {
112+
gpio-ranges = <&syscon 2 199 4>;
113+
};
114+
115+
&spi0 {
116+
cs-gpios = <&gpio5 2 GPIO_ACTIVE_HIGH>;
117+
dmas = <&dma1 10 2>, <&dma1 10 1>;
118+
dma-names = "rx", "tx";
119+
status = "okay";
120+
121+
tmp122: temperature-sensor@0 {
122+
compatible = "ti,tmp122";
123+
reg = <0>;
124+
spi-max-frequency = <2000000>;
125+
};
126+
};
127+
128+
&mdio0 {
129+
phy0: ethernet-phy@1 {
130+
reg = <1>;
131+
device_type = "ethernet-phy";
132+
};
133+
};
134+
135+
&uart0 {
136+
status = "okay";
137+
};
138+
139+
&uart1 {
140+
status = "okay";
141+
};
142+
143+
&usb0 {
144+
status = "okay";
145+
};

0 commit comments

Comments
 (0)