Skip to content

Commit dac9287

Browse files
neuschaefersuperna9999
authored andcommitted
ARM: dts: amlogic: Add TCU Fernsehfee 3.0
Fernsehfee[1] ("TV fairy") 3.0 is a set-top box with HDMI input and output ports. It originally ran Android 4.4 and a Linux 3.10 kernel. The following features are tested and known to work: - Ethernet - Power LED (switching between green and red) - Power button - eMMC - SD Card - USB - Wifi The following features are untested or not working: - HDMI input and output - Infrared remote control input and output [1]: https://fernsehfee.de/ (German), https://telefairy.com/ (English) Reviewed-by: Neil Armstrong <[email protected]> Signed-off-by: J. Neuschäfer <[email protected]> Reviewed-by: Martin Blumenstingl <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Neil Armstrong <[email protected]>
1 parent eb7af12 commit dac9287

File tree

3 files changed

+234
-0
lines changed

3 files changed

+234
-0
lines changed

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: 215 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,215 @@
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+
&ethmac {
89+
status = "okay";
90+
pinctrl-0 = <&eth_pins>;
91+
pinctrl-names = "default";
92+
phy-handle = <&eth_phy0>;
93+
phy-mode = "rmii";
94+
95+
mdio {
96+
compatible = "snps,dwmac-mdio";
97+
#address-cells = <1>;
98+
#size-cells = <0>;
99+
100+
eth_phy0: ethernet-phy@0 {
101+
/* IC Plus IP101A (0x02430c54) */
102+
reg = <0>;
103+
104+
reset-assert-us = <10000>;
105+
reset-deassert-us = <10000>;
106+
reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
107+
};
108+
};
109+
};
110+
111+
&i2c_AO {
112+
status = "okay";
113+
pinctrl-0 = <&i2c_ao_pins>;
114+
pinctrl-names = "default";
115+
116+
pmic@32 {
117+
compatible = "ricoh,rn5t618";
118+
reg = <0x32>;
119+
system-power-controller;
120+
};
121+
122+
eeprom@50 {
123+
/* Fairchild FM24C08A */
124+
compatible = "atmel,24c08";
125+
reg = <0x50>;
126+
pagesize = <16>;
127+
wp-gpios = <&gpio GPIOH_3 GPIO_ACTIVE_HIGH>;
128+
num-addresses = <4>;
129+
};
130+
};
131+
132+
&i2c_B {
133+
status = "okay";
134+
pinctrl-0 = <&i2c_b_pins>;
135+
pinctrl-names = "default";
136+
137+
/* TODO: SiI9293 HDMI receiver @ 0x39 */
138+
};
139+
140+
&sdhc {
141+
status = "okay";
142+
pinctrl-0 = <&sdxc_c_pins>;
143+
pinctrl-names = "default";
144+
145+
/* eMMC */
146+
bus-width = <8>;
147+
max-frequency = <100000000>;
148+
149+
disable-wp;
150+
cap-mmc-highspeed;
151+
mmc-hs200-1_8v;
152+
no-sdio;
153+
154+
vmmc-supply = <&vcc_3v3>;
155+
vqmmc-supply = <&vcc_3v3>;
156+
};
157+
158+
&sdio {
159+
status = "okay";
160+
pinctrl-0 = <&sd_b_pins>;
161+
162+
/* SD card */
163+
slot@1 {
164+
compatible = "mmc-slot";
165+
reg = <1>;
166+
status = "okay";
167+
168+
bus-width = <4>;
169+
cap-mmc-highspeed;
170+
cap-sd-highspeed;
171+
disable-wp;
172+
173+
cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
174+
175+
vmmc-supply = <&vcc_3v3>;
176+
};
177+
};
178+
179+
&uart_AO {
180+
status = "okay";
181+
pinctrl-0 = <&uart_ao_a_pins>;
182+
pinctrl-names = "default";
183+
};
184+
185+
&usb0 {
186+
status = "okay";
187+
};
188+
189+
&usb0_phy {
190+
status = "okay";
191+
};
192+
193+
&usb1 {
194+
status = "okay";
195+
dr_mode = "host";
196+
#address-cells = <1>;
197+
#size-cells = <0>;
198+
199+
wifi: wifi@1 {
200+
/* Realtek RTL8188 2.4GHz WiFi module */
201+
compatible = "usbbda,179";
202+
reg = <1>;
203+
vdd-supply = <&wifi_3v3>;
204+
};
205+
};
206+
207+
&usb1_phy {
208+
status = "okay";
209+
};
210+
211+
&ir_receiver {
212+
status = "okay";
213+
pinctrl-0 = <&ir_recv_pins>;
214+
pinctrl-names = "default";
215+
};

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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";

0 commit comments

Comments
 (0)