sunxi: construct DTS name from device node name and SOC
[openwrt/openwrt.git] / target / linux / sunxi / image / cortex-a7.mk
1 #
2 # Copyright (C) 2013-2019 OpenWrt.org
3 # Copyright (C) 2016 Yousong Zhou
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 ifeq ($(SUBTARGET),cortexa7)
10
11 define Device/olimex_a20-olinuxino-lime
12 DEVICE_VENDOR := Olimex
13 DEVICE_MODEL := A20-OLinuXino-LIME
14 DEVICE_PACKAGES:=kmod-ata-core kmod-ata-sunxi kmod-rtc-sunxi
15 SUNXI_SOC := sun7i
16 endef
17
18 TARGET_DEVICES += olimex_a20-olinuxino-lime
19
20
21 define Device/olimex_a20-olinuxino-lime2
22 DEVICE_VENDOR := Olimex
23 DEVICE_MODEL := A20-OLinuXino-LIME2
24 DEVICE_PACKAGES:=kmod-ata-core kmod-ata-sunxi kmod-rtc-sunxi kmod-usb-hid
25 SUNXI_SOC := sun7i
26 endef
27
28 TARGET_DEVICES += olimex_a20-olinuxino-lime2
29
30
31 define Device/olimex_a20-olinuxino-lime2-emmc
32 DEVICE_VENDOR := Olimex
33 DEVICE_MODEL := A20-OLinuXino-LIME2
34 DEVICE_VARIANT := eMMC
35 DEVICE_PACKAGES:=kmod-ata-core kmod-ata-sunxi kmod-rtc-sunxi kmod-usb-hid
36 SUNXI_SOC := sun7i
37 endef
38
39 TARGET_DEVICES += olimex_a20-olinuxino-lime2-emmc
40
41
42 define Device/olimex_a20-olinuxino-micro
43 DEVICE_VENDOR := Olimex
44 DEVICE_MODEL := A20-OLinuXino-MICRO
45 DEVICE_PACKAGES:=kmod-ata-core kmod-ata-sunxi kmod-sun4i-emac kmod-rtc-sunxi
46 SUNXI_SOC := sun7i
47 endef
48
49 TARGET_DEVICES += olimex_a20-olinuxino-micro
50
51
52 define Device/lemaker_bananapi
53 DEVICE_VENDOR := LeMaker
54 DEVICE_MODEL := Banana Pi
55 DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-ata-core kmod-ata-sunxi
56 SUNXI_SOC := sun7i-a20
57 endef
58
59 TARGET_DEVICES += lemaker_bananapi
60
61
62 define Device/lemaker_bananapro
63 DEVICE_VENDOR := LeMaker
64 DEVICE_MODEL := Banana Pro
65 DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-ata-core kmod-ata-sunxi kmod-brcmfmac
66 SUNXI_SOC := sun7i-a20
67 endef
68
69 TARGET_DEVICES += lemaker_bananapro
70
71
72 define Device/cubietech_cubieboard2
73 DEVICE_VENDOR := Cubietech
74 DEVICE_MODEL := Cubieboard2
75 DEVICE_PACKAGES:=kmod-ata-core kmod-ata-sunxi kmod-sun4i-emac kmod-rtc-sunxi
76 SUNXI_SOC := sun7i-a20
77 endef
78
79 TARGET_DEVICES += cubietech_cubieboard2
80
81
82 define Device/cubietech_cubietruck
83 DEVICE_VENDOR := Cubietech
84 DEVICE_MODEL := Cubietruck
85 DEVICE_PACKAGES:=kmod-ata-core kmod-ata-sunxi kmod-rtc-sunxi kmod-brcmfmac
86 SUNXI_SOC := sun7i-a20
87 endef
88
89 TARGET_DEVICES += cubietech_cubietruck
90
91
92 define Device/lamobo_lamobo-r1
93 DEVICE_VENDOR := Lamobo
94 DEVICE_MODEL := Lamobo R1
95 DEVICE_PACKAGES:=kmod-ata-sunxi kmod-rtl8192cu swconfig wpad-basic
96 SUNXI_SOC := sun7i-a20
97 endef
98
99 TARGET_DEVICES += lamobo_lamobo-r1
100
101
102 define Device/mele_m9
103 DEVICE_VENDOR := Mele
104 DEVICE_MODEL := M9
105 DEVICE_PACKAGES:=kmod-sun4i-emac kmod-rtc-sunxi kmod-rtl8192cu
106 SUNXI_SOC := sun6i-a31
107 endef
108
109 TARGET_DEVICES += mele_m9
110
111
112 define Device/xunlong_orangepi-zero
113 DEVICE_VENDOR := Xunlong
114 DEVICE_MODEL := Orange Pi Zero
115 DEVICE_PACKAGES:=kmod-rtc-sunxi
116 SUNXI_SOC := sun8i-h2-plus
117 endef
118
119 TARGET_DEVICES += xunlong_orangepi-zero
120
121
122 define Device/xunlong_orangepi-r1
123 DEVICE_VENDOR := Xunlong
124 DEVICE_MODEL := Orange Pi R1
125 DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-usb-net kmod-usb-net-rtl8152
126 SUNXI_SOC := sun8i-h2-plus
127 endef
128
129 TARGET_DEVICES += xunlong_orangepi-r1
130
131 define Device/sinovoip_bananapi-m2-plus
132 DEVICE_VENDOR := Sinovoip
133 DEVICE_MODEL := Banana Pi M2+
134 DEVICE_PACKAGES:=kmod-rtc-sunxi \
135 kmod-leds-gpio kmod-ledtrig-heartbeat \
136 kmod-brcmfmac brcmfmac-firmware-43430a0-sdio wpad-basic
137 SUNXI_SOC := sun8i-h3
138 endef
139
140 TARGET_DEVICES += sinovoip_bananapi-m2-plus
141
142 define Device/friendlyarm_nanopi-m1-plus
143 DEVICE_VENDOR := FriendlyARM
144 DEVICE_MODEL := NanoPi M1 Plus
145 DEVICE_PACKAGES:=kmod-rtc-sunxi \
146 kmod-leds-gpio kmod-ledtrig-heartbeat \
147 kmod-brcmfmac brcmfmac-firmware-43430-sdio wpad-basic
148 SUNXI_SOC := sun8i-h3
149 endef
150
151 TARGET_DEVICES += friendlyarm_nanopi-m1-plus
152
153
154 define Device/friendlyarm_nanopi-neo
155 DEVICE_VENDOR := FriendlyARM
156 DEVICE_MODEL := NanoPi NEO
157 SUNXI_SOC := sun8i-h3
158 endef
159
160 TARGET_DEVICES += friendlyarm_nanopi-neo
161
162
163 define Device/xunlong_orangepi-one
164 DEVICE_VENDOR := Xunlong
165 DEVICE_MODEL := Orange Pi One
166 DEVICE_PACKAGES:=kmod-rtc-sunxi
167 SUNXI_SOC := sun8i-h3
168 endef
169
170 TARGET_DEVICES += xunlong_orangepi-one
171
172
173 define Device/xunlong_orangepi-pc
174 DEVICE_VENDOR := Xunlong
175 DEVICE_MODEL := Orange Pi PC
176 DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-gpio-button-hotplug
177 SUNXI_SOC := sun8i-h3
178 endef
179
180 TARGET_DEVICES += xunlong_orangepi-pc
181
182
183 define Device/xunlong_orangepi-pc-plus
184 DEVICE_VENDOR := Xunlong
185 DEVICE_MODEL := Orange Pi PC Plus
186 DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-gpio-button-hotplug
187 SUNXI_SOC := sun8i-h3
188 endef
189
190 TARGET_DEVICES += xunlong_orangepi-pc-plus
191
192
193 define Device/xunlong_orangepi-plus
194 DEVICE_VENDOR := Xunlong
195 DEVICE_MODEL := Orange Pi Plus
196 DEVICE_PACKAGES:=kmod-rtc-sunxi
197 SUNXI_SOC := sun8i-h3
198 endef
199
200 TARGET_DEVICES += xunlong_orangepi-plus
201
202 define Device/xunlong_orangepi-2
203 DEVICE_VENDOR := Xunlong
204 DEVICE_MODEL := Orange Pi 2
205 DEVICE_PACKAGES:=kmod-rtc-sunxi
206 SUNXI_SOC := sun8i-h3
207 endef
208
209 TARGET_DEVICES += xunlong_orangepi-2
210
211
212 define Device/linksprite_pcduino3
213 DEVICE_VENDOR := LinkSprite
214 DEVICE_MODEL := pcDuino3
215 DEVICE_PACKAGES:=kmod-sun4i-emac kmod-rtc-sunxi kmod-ata-core kmod-ata-sunxi kmod-rtl8xxxu rtl8188eu-firmware
216 SUNXI_SOC := sun7i-a20
217 endef
218
219 TARGET_DEVICES += linksprite_pcduino3
220
221 define Device/lemaker_bananapi-m2-ultra
222 DEVICE_VENDOR := LeMaker
223 DEVICE_MODEL := Banana Pi M2 Ultra
224 DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-ata-core kmod-ata-sunxi
225 SUNXI_SOC := sun8i-r40
226 endef
227
228 TARGET_DEVICES += lemaker_bananapi-m2-ultra
229
230 endif