Skip to content

Commit 709c8af

Browse files
committed
Merge tag 'amlogic-arm-dt-for-v6.16' of https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux into soc/dt
Amlogic ARM DT for v6.16: - UART RX/TX pull-up pinconf properties for all SoCs - New Boards: - Meson8 TCU Fernsehfee 3.0 * tag 'amlogic-arm-dt-for-v6.16' of https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux: ARM: dts: amlogic: meson8-fernsehfee3: Describe regulators ARM: dts: amlogic: Add TCU Fernsehfee 3.0 dt-bindings: arm: amlogic: Add TCU Fernsehfee 3.0 board dt-bindings: vendor-prefixes: Add TC Unterhaltungselektronik AG ARM: dts: amlogic: meson8b: enable UART RX and TX pull up by default ARM: dts: amlogic: meson8: enable UART RX and TX pull up by default Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents e04381e + 2c1879a commit 709c8af

File tree

6 files changed

+332
-4
lines changed

6 files changed

+332
-4
lines changed

Documentation/devicetree/bindings/arm/amlogic.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ properties:
2727
items:
2828
- enum:
2929
- minix,neo-x8
30+
- tcu,fernsehfee3
3031
- const: amlogic,meson8
3132

3233
- description: Boards with the Amlogic Meson8m2 SoC

Documentation/devicetree/bindings/vendor-prefixes.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,6 +1496,8 @@ patternProperties:
14961496
description: Toby Churchill Ltd.
14971497
"^tcs,.*":
14981498
description: Shenzhen City Tang Cheng Technology Co., Ltd.
1499+
"^tcu,.*":
1500+
description: TC Unterhaltungselektronik AG
14991501
"^tdo,.*":
15001502
description: Shangai Top Display Optoelectronics Co., Ltd
15011503
"^team-source-display,.*":

arch/arm/boot/dts/amlogic/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
dtb-$(CONFIG_MACH_MESON8) += \
33
meson8-minix-neo-x8.dtb \
4+
meson8-fernsehfee3.dtb \
45
meson8b-ec100.dtb \
56
meson8b-mxq.dtb \
67
meson8b-odroidc1.dtb \
Lines changed: 306 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,306 @@
1+
// SPDX-License-Identifier: GPL-2.0-only OR MIT
2+
// Copyright (C) 2025 J. Neuschäfer <[email protected]>
3+
4+
/dts-v1/;
5+
6+
#include <dt-bindings/gpio/gpio.h>
7+
#include <dt-bindings/input/linux-event-codes.h>
8+
#include <dt-bindings/leds/common.h>
9+
10+
#include "meson8.dtsi"
11+
12+
/ {
13+
model = "Fernsehfee 3.0";
14+
compatible = "tcu,fernsehfee3", "amlogic,meson8";
15+
16+
aliases {
17+
serial0 = &uart_AO;
18+
gpiochip0 = &gpio;
19+
gpiochip1 = &gpio_ao;
20+
i2c0 = &i2c_AO;
21+
i2c1 = &i2c_B;
22+
mmc0 = &sdhc;
23+
mmc1 = &sdio;
24+
};
25+
26+
chosen {
27+
stdout-path = "serial0:115200n8";
28+
};
29+
30+
memory@0 {
31+
device_type = "memory";
32+
reg = <0x0 0x40000000>; /* 1 GiB */
33+
};
34+
35+
gpio-keys {
36+
compatible = "gpio-keys-polled";
37+
poll-interval = <100>;
38+
39+
power-button {
40+
label = "Power button";
41+
linux,code = <KEY_POWER>;
42+
gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>;
43+
};
44+
};
45+
46+
leds {
47+
compatible = "gpio-leds";
48+
49+
led-0 {
50+
/*
51+
* The power LED can be turned red, otherwise it is green.
52+
*/
53+
gpios = <&gpio_ao GPIO_TEST_N GPIO_ACTIVE_LOW>;
54+
function = LED_FUNCTION_POWER;
55+
color = <LED_COLOR_ID_RED>;
56+
};
57+
};
58+
59+
vcc_5v: regulator-5v {
60+
/* 5V rail, always on as long as the system is running */
61+
compatible = "regulator-fixed";
62+
regulator-name = "5V";
63+
regulator-min-microvolt = <5000000>;
64+
regulator-max-microvolt = <5000000>;
65+
regulator-always-on;
66+
};
67+
68+
vcc_3v3: regulator-3v3 {
69+
/* Chipown AP2420 step-down converter */
70+
compatible = "regulator-fixed";
71+
regulator-name = "3.3V";
72+
regulator-min-microvolt = <3300000>;
73+
regulator-max-microvolt = <3300000>;
74+
vin-supply = <&vcc_5v>;
75+
};
76+
77+
wifi_3v3: regulator-wifi {
78+
compatible = "regulator-fixed";
79+
regulator-name = "3.3V-WIFI";
80+
regulator-min-microvolt = <3300000>;
81+
regulator-max-microvolt = <3300000>;
82+
vin-supply = <&vcc_3v3>;
83+
gpio = <&gpio GPIOX_11 GPIO_ACTIVE_HIGH>;
84+
enable-active-high;
85+
};
86+
};
87+
88+
&cpu0 {
89+
cpu-supply = <&vcck>;
90+
};
91+
92+
&ethmac {
93+
status = "okay";
94+
pinctrl-0 = <&eth_pins>;
95+
pinctrl-names = "default";
96+
phy-handle = <&eth_phy0>;
97+
phy-mode = "rmii";
98+
99+
mdio {
100+
compatible = "snps,dwmac-mdio";
101+
#address-cells = <1>;
102+
#size-cells = <0>;
103+
104+
eth_phy0: ethernet-phy@0 {
105+
/* IC Plus IP101A (0x02430c54) */
106+
reg = <0>;
107+
108+
reset-assert-us = <10000>;
109+
reset-deassert-us = <10000>;
110+
reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
111+
};
112+
};
113+
};
114+
115+
&i2c_AO {
116+
status = "okay";
117+
pinctrl-0 = <&i2c_ao_pins>;
118+
pinctrl-names = "default";
119+
120+
pmic@32 {
121+
compatible = "ricoh,rn5t618";
122+
reg = <0x32>;
123+
system-power-controller;
124+
125+
regulators {
126+
vcck: DCDC1 {
127+
regulator-name = "VCCK";
128+
regulator-min-microvolt = <825000>;
129+
regulator-max-microvolt = <1150000>;
130+
regulator-boot-on;
131+
regulator-always-on;
132+
};
133+
134+
vddee: DCDC2 {
135+
/* the output is also used as VDDAO */
136+
regulator-name = "VDD_EE";
137+
regulator-min-microvolt = <950000>;
138+
regulator-max-microvolt = <1150000>;
139+
regulator-boot-on;
140+
regulator-always-on;
141+
};
142+
143+
DCDC3 {
144+
regulator-name = "VDD_DDR";
145+
regulator-min-microvolt = <1500000>;
146+
regulator-max-microvolt = <1500000>;
147+
regulator-boot-on;
148+
regulator-always-on;
149+
};
150+
151+
LDO1 {
152+
regulator-name = "VDDIO_AO28";
153+
regulator-min-microvolt = <2900000>;
154+
regulator-max-microvolt = <2900000>;
155+
regulator-boot-on;
156+
regulator-always-on;
157+
};
158+
159+
LDO2 {
160+
regulator-name = "VDDIO_AO18";
161+
regulator-min-microvolt = <1800000>;
162+
regulator-max-microvolt = <1800000>;
163+
regulator-boot-on;
164+
regulator-always-on;
165+
};
166+
167+
vcc1v8_usb: LDO3 {
168+
regulator-name = "VCC1V8_USB";
169+
regulator-min-microvolt = <1800000>;
170+
regulator-max-microvolt = <1800000>;
171+
regulator-boot-on;
172+
};
173+
174+
LDO4 {
175+
/* This one appears to be unused */
176+
regulator-name = "VCC2V8";
177+
regulator-min-microvolt = <2850000>;
178+
regulator-max-microvolt = <2850000>;
179+
};
180+
181+
LDO5 {
182+
regulator-name = "AVDD1V8";
183+
regulator-min-microvolt = <1800000>;
184+
regulator-max-microvolt = <1800000>;
185+
regulator-boot-on;
186+
regulator-always-on;
187+
};
188+
189+
LDORTC1 {
190+
regulator-name = "VDD_LDO";
191+
regulator-min-microvolt = <2700000>;
192+
regulator-max-microvolt = <2700000>;
193+
regulator-boot-on;
194+
regulator-always-on;
195+
};
196+
197+
LDORTC2 {
198+
regulator-name = "RTC_0V9";
199+
regulator-min-microvolt = <900000>;
200+
regulator-max-microvolt = <900000>;
201+
regulator-boot-on;
202+
regulator-always-on;
203+
};
204+
};
205+
};
206+
207+
eeprom@50 {
208+
/* Fairchild FM24C08A */
209+
compatible = "atmel,24c08";
210+
reg = <0x50>;
211+
pagesize = <16>;
212+
wp-gpios = <&gpio GPIOH_3 GPIO_ACTIVE_HIGH>;
213+
num-addresses = <4>;
214+
};
215+
};
216+
217+
&i2c_B {
218+
status = "okay";
219+
pinctrl-0 = <&i2c_b_pins>;
220+
pinctrl-names = "default";
221+
222+
/* TODO: SiI9293 HDMI receiver @ 0x39 */
223+
};
224+
225+
&mali {
226+
mali-supply = <&vddee>;
227+
};
228+
229+
&sdhc {
230+
status = "okay";
231+
pinctrl-0 = <&sdxc_c_pins>;
232+
pinctrl-names = "default";
233+
234+
/* eMMC */
235+
bus-width = <8>;
236+
max-frequency = <100000000>;
237+
238+
disable-wp;
239+
cap-mmc-highspeed;
240+
mmc-hs200-1_8v;
241+
no-sdio;
242+
243+
vmmc-supply = <&vcc_3v3>;
244+
vqmmc-supply = <&vcc_3v3>;
245+
};
246+
247+
&sdio {
248+
status = "okay";
249+
pinctrl-0 = <&sd_b_pins>;
250+
251+
/* SD card */
252+
slot@1 {
253+
compatible = "mmc-slot";
254+
reg = <1>;
255+
status = "okay";
256+
257+
bus-width = <4>;
258+
cap-mmc-highspeed;
259+
cap-sd-highspeed;
260+
disable-wp;
261+
262+
cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
263+
264+
vmmc-supply = <&vcc_3v3>;
265+
};
266+
};
267+
268+
&uart_AO {
269+
status = "okay";
270+
pinctrl-0 = <&uart_ao_a_pins>;
271+
pinctrl-names = "default";
272+
};
273+
274+
&usb0 {
275+
status = "okay";
276+
};
277+
278+
&usb0_phy {
279+
status = "okay";
280+
phy-supply = <&vcc1v8_usb>;
281+
};
282+
283+
&usb1 {
284+
status = "okay";
285+
dr_mode = "host";
286+
#address-cells = <1>;
287+
#size-cells = <0>;
288+
289+
wifi: wifi@1 {
290+
/* Realtek RTL8188 2.4GHz WiFi module */
291+
compatible = "usbbda,179";
292+
reg = <1>;
293+
vdd-supply = <&wifi_3v3>;
294+
};
295+
};
296+
297+
&usb1_phy {
298+
status = "okay";
299+
phy-supply = <&vcc1v8_usb>;
300+
};
301+
302+
&ir_receiver {
303+
status = "okay";
304+
pinctrl-0 = <&ir_recv_pins>;
305+
pinctrl-names = "default";
306+
};

arch/arm/boot/dts/amlogic/meson8.dtsi

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@
398398
mux {
399399
groups = "uart_tx_ao_a", "uart_rx_ao_a";
400400
function = "uart_ao";
401-
bias-disable;
401+
bias-pull-up;
402402
};
403403
};
404404

@@ -481,6 +481,14 @@
481481
gpio-ranges = <&pinctrl_cbus 0 0 120>;
482482
};
483483

484+
i2c_b_pins: i2c-b {
485+
mux {
486+
groups = "i2c_sda_b", "i2c_sck_b";
487+
function = "i2c_b";
488+
bias-disable;
489+
};
490+
};
491+
484492
sd_a_pins: sd-a {
485493
mux {
486494
groups = "sd_d0_a", "sd_d1_a", "sd_d2_a",
@@ -526,6 +534,16 @@
526534
};
527535
};
528536

537+
sdxc_c_pins: sdxc-c {
538+
mux {
539+
groups = "sdxc_d0_c", "sdxc_d13_c",
540+
"sdxc_clk_c", "sdxc_cmd_c",
541+
"sdxc_d47_c";
542+
function = "sdxc_c";
543+
bias-pull-up;
544+
};
545+
};
546+
529547
spdif_out_pins: spdif-out {
530548
mux {
531549
groups = "spdif_out";
@@ -567,7 +585,7 @@
567585
groups = "uart_tx_a1",
568586
"uart_rx_a1";
569587
function = "uart_a";
570-
bias-disable;
588+
bias-pull-up;
571589
};
572590
};
573591

arch/arm/boot/dts/amlogic/meson8b.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@
368368
mux {
369369
groups = "uart_tx_ao_a", "uart_rx_ao_a";
370370
function = "uart_ao";
371-
bias-disable;
371+
bias-pull-up;
372372
};
373373
};
374374

@@ -521,7 +521,7 @@
521521
groups = "uart_tx_b0",
522522
"uart_rx_b0";
523523
function = "uart_b";
524-
bias-disable;
524+
bias-pull-up;
525525
};
526526
};
527527

0 commit comments

Comments
 (0)