From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1CE14C36002 for ; Mon, 24 Mar 2025 07:01:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Cc:To:Subject: From:MIME-Version:Date:Message-ID:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=LeKKrgnLBG9T/eG/Gk6XtoPpi6QMVkqmhURfP3vslIg=; b=2kbtf9bO3BOC+scGaZDOkl8SEq /yArGHFZ9W7b7IvjsE84mSJqQvmVWaM2c6HKj95VY16kO6tmVjU0/onsUeDTLBac29ZTjtIyaD/rh 3PI22lFs6geY5vZyveXPMqc3W/AYzbPS7B7BbLZjMV4GjQkudzPAhX0ePVZsAPaH/kALhR3jrGqCA UP6xy4vT51cABhZDD/RdnePcYnbkxx2MWHgkfPGwc4f8Q3DWU2bRQniGAjAkpf/yNN/vMeZpPvuWx s/Xf7ZyD7yl+ooYfXUKrMnbszwIFKkbIHCyzZv9N2A7JUlQ1IYN/+2p4xmMnSh2JsZ3E6A0/zzI80 sUzO8blw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1twbob-00000002ODv-1vOb; Mon, 24 Mar 2025 07:01:41 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1twbmq-00000002O4N-04Zb for linux-arm-kernel@lists.infradead.org; Mon, 24 Mar 2025 06:59:53 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-43ce71582e9so25823445e9.1 for ; Sun, 23 Mar 2025 23:59:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1742799589; x=1743404389; darn=lists.infradead.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=LeKKrgnLBG9T/eG/Gk6XtoPpi6QMVkqmhURfP3vslIg=; b=IPY+SLbM7yAo3yTBMzCiBBfqoX9N08SmmZ8xBbkW/a7qNqRZEtzGi00q/xbEDmtUm4 my7n8IuHsDg/SKvtwkpSSzuRvGSCi3OkD5plwoQGUHbSuc76xyv1E3v2jcAdAIZH4B4H jP7CW7Ex14k2szlWBSAbU0s5VZCySHoNpCOfB9t9bl2qemxKYlkzi6bqRRO9lh0lOXVS 7VaQJAPwrneuJVQJ310EMEwZc/dsSIztibJ95vzgGZJ/NQgRpBbFuJ1rhzDhUmVWoRh9 fd84Nt6UqZPhPir4OSVjP+gyCB4aUJOn87pj+xzpc0jV2/FZmyidVbPPUeTz6eVT8RQA qVVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742799589; x=1743404389; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=LeKKrgnLBG9T/eG/Gk6XtoPpi6QMVkqmhURfP3vslIg=; b=e+ZSxa43tvyxw6610n8+Y18vdO88IyZ2bP94wuRRs/wkLmZzqXIXfoWF2tdKnQ3OC3 T4ftbkX+ukm+IMyjvO1luRPMC7cP/9X9HuQDB8c2fksBrO9VxL6PAC5cefAVIBsh1hSt q+i3a1Dq/89/TUB9yOnJdWN1lcJMqI/Rb1m3RHT5eciP829tTFr0++ZnhtcHvG+wxjlv Xb5fBJhdVEBcTXXpyEul0Rqq1s0ReZQt+4DmHQf+IkaMgjyUphpuoaW+/kik7DWJvRz/ SXfaLkITS7ZIAvZO3O5FWOi6C6AODXKwwWCMCETu+Qoao9DjYeMxom/fwj0JiwnopIM6 xCOA== X-Forwarded-Encrypted: i=1; AJvYcCWNeVJbSJwrjUCBtpUhj2E9ZxHjTYlWxYOdR72wo3PjTcIRJFumbjQCQURobh84F1hx5DLGRzwyimA/tzj714L8@lists.infradead.org X-Gm-Message-State: AOJu0YyDGb14oPFAoy8sMOjVkI5YHkwTwONxBWNzeLOs6cA6WHbfxYLz frLbvhc0cyHWXBlNNJynN4q7feut0jKG5l3QdYUHorX9fMHgMdg7iE74bJvRL9S/9qiOzoLBsC2 b X-Gm-Gg: ASbGncs2AksKkGI6pWR1VE1Ua/2nsox3NoUzb276EbNlfOzSVsdEZ7zeEp7a7mSpPWt 01EFfqTosiWn4VDbPEX5ZR8OOFndD7FgJ+ISISpEwpQa0o2AEqFjWx9CdlpNuiFNYcFvV/TtsUg l/6cDNeOxSX3kI2iarXF8W3oq2ZmPFxce4fYyMffXuLkB/ohN+6p6/E5Nyk44d8HuSNSqMQN5rp bs7aQGb8AW+TpvLQ3sqSUQ0G63Eha9t4w/NyZWGDKhrAMxyRkipweUMTCFBLTVG9wS+ZKXrPgWR YOpV0qsmXdks3RyvvVBeswNK87vanHmRdT8pbA30wX6hGzyzN+0RcYbnhxfp85EgqU13VW7/8NQ MFYFJkHudNd31cgmz X-Google-Smtp-Source: AGHT+IEV7+p8YJkKF2xllJmF1iygnLG2rxwF8AEdIWdNJB9wMlJdgYfQKAIWCl4+n4viMeZeNUkRYQ== X-Received: by 2002:a05:600c:35ca:b0:43c:fc04:6d48 with SMTP id 5b1f17b1804b1-43d50873ee8mr110879945e9.0.1742799589482; Sun, 23 Mar 2025 23:59:49 -0700 (PDT) Received: from ?IPV6:2a01:e0a:3d9:2080:a356:8d0:d4d:bb5f? ([2a01:e0a:3d9:2080:a356:8d0:d4d:bb5f]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d43f55c99sm162223625e9.24.2025.03.23.23.59.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 23 Mar 2025 23:59:49 -0700 (PDT) Message-ID: Date: Mon, 24 Mar 2025 07:59:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Subject: Re: [PATCH 3/3] ARM: dts: amlogic: Add TCU Fernsehfee 3.0 To: j.ne@posteo.net, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Martin Blumenstingl , Jerome Brunet , Kevin Hilman Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org References: <20250323-fernsehfee-v1-0-2621341cd37a@posteo.net> <20250323-fernsehfee-v1-3-2621341cd37a@posteo.net> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIw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WvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <20250323-fernsehfee-v1-3-2621341cd37a@posteo.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250323_235952_051139_B215C743 X-CRM114-Status: GOOD ( 21.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: neil.armstrong@linaro.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 23/03/2025 13:37, J. Neuschäfer via B4 Relay wrote: > From: "J. Neuschäfer" > > 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) > > Signed-off-by: J. Neuschäfer > --- > arch/arm/boot/dts/amlogic/Makefile | 1 + > arch/arm/boot/dts/amlogic/meson8-fernsehfee3.dts | 219 +++++++++++++++++++++++ > arch/arm/boot/dts/amlogic/meson8.dtsi | 18 ++ > 3 files changed, 238 insertions(+) > > diff --git a/arch/arm/boot/dts/amlogic/Makefile b/arch/arm/boot/dts/amlogic/Makefile > index 504c533b1173298ec7f45099888d88b2fb74b978..3c8a1e88b386cd7fb9b5f41f47d7ff78fe7eeacc 100644 > --- a/arch/arm/boot/dts/amlogic/Makefile > +++ b/arch/arm/boot/dts/amlogic/Makefile > @@ -1,6 +1,7 @@ > # SPDX-License-Identifier: GPL-2.0 > dtb-$(CONFIG_MACH_MESON8) += \ > meson8-minix-neo-x8.dtb \ > + meson8-fernsehfee3.dtb \ > meson8b-ec100.dtb \ > meson8b-mxq.dtb \ > meson8b-odroidc1.dtb \ > diff --git a/arch/arm/boot/dts/amlogic/meson8-fernsehfee3.dts b/arch/arm/boot/dts/amlogic/meson8-fernsehfee3.dts > new file mode 100644 > index 0000000000000000000000000000000000000000..47507316ac4a56f2bcf84ad0446a06ea9fe890cd > --- /dev/null > +++ b/arch/arm/boot/dts/amlogic/meson8-fernsehfee3.dts > @@ -0,0 +1,219 @@ > +// SPDX-License-Identifier: GPL-2.0-only OR MIT > +// Copyright (C) 2025 J. Neuschäfer > + > +/dts-v1/; > + > +#include > +#include > +#include > + > +#include "meson8.dtsi" > + > +/ { > + model = "Fernsehfee 3.0"; > + compatible = "tcu,fernsehfee3", "amlogic,meson8"; > + > + aliases { > + serial0 = &uart_AO; > + gpiochip0 = &gpio; > + gpiochip1 = &gpio_ao; > + i2c0 = &i2c_AO; > + i2c1 = &i2c_B; > + mmc0 = &sdhc; > + mmc1 = &sdio; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + memory@0 { > + device_type = "memory"; > + reg = <0x0 0x40000000>; /* 1 GiB */ > + }; > + > + gpio-keys { > + compatible = "gpio-keys-polled"; > + poll-interval = <100>; > + > + power-button { > + label = "Power button"; > + linux,code = ; > + gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>; > + }; > + }; > + > + leds { > + compatible = "gpio-leds"; > + > + led-0 { > + /* > + * The power LED can be turned red, otherwise it is green. > + */ > + gpios = <&gpio_ao GPIO_TEST_N GPIO_ACTIVE_LOW>; > + function = LED_FUNCTION_POWER; > + color = ; > + }; > + }; > + > + vcc_5v: regulator-5v { > + /* 5V rail, always on as long as the system is running */ > + compatible = "regulator-fixed"; > + regulator-name = "5V"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + regulator-always-on; > + }; > + > + vcc_3v3: regulator-3v3 { > + /* Chipown AP2420 step-down converter */ > + compatible = "regulator-fixed"; > + regulator-name = "3.3V"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + vin-supply = <&vcc_5v>; > + }; > + > + vcc_1v8: regulator-1v8 { > + compatible = "regulator-fixed"; > + regulator-name = "1.8V"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + vin-supply = <&vcc_3v3>; > + }; > + > + wifi_3v3: regulator-wifi { > + compatible = "regulator-fixed"; > + regulator-name = "3.3V-WIFI"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + vin-supply = <&vcc_3v3>; > + gpio = <&gpio GPIOX_11 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + }; > +}; > + > +ðmac { > + status = "okay"; > + pinctrl-0 = <ð_pins>; > + pinctrl-names = "default"; > + phy-handle = <ð_phy0>; > + phy-mode = "rmii"; > + > + mdio { > + compatible = "snps,dwmac-mdio"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + eth_phy0: ethernet-phy@0 { > + /* IC Plus IP101A (0x02430c54) */ > + reg = <0>; > + > + reset-assert-us = <10000>; > + reset-deassert-us = <10000>; > + reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>; > + }; > + }; > +}; > + > +&i2c_AO { > + status = "okay"; > + pinctrl-0 = <&i2c_ao_pins>; > + pinctrl-names = "default"; > + > + pmic@32 { > + compatible = "ricoh,rn5t618"; > + reg = <0x32>; > + system-power-controller; > + }; > + > + eeprom@50 { > + /* Fairchild FM24C08A */ > + compatible = "atmel,24c08"; > + reg = <0x50>; > + pagesize = <16>; > + wp-gpios = <&gpio GPIOH_3 GPIO_ACTIVE_HIGH>; > + num-addresses = <4>; > + }; > +}; > + > +&i2c_B { > + status = "okay"; > + pinctrl-0 = <&i2c_b_pins>; > + pinctrl-names = "default"; > + > + /* TODO: SiI9293 HDMI receiver @ 0x39 */ > +}; > + > +&sdhc { > + status = "okay"; > + pinctrl-0 = <&sdxc_c_pins>; > + pinctrl-names = "default"; > + > + /* eMMC */ > + bus-width = <8>; > + max-frequency = <100000000>; > + > + disable-wp; > + cap-mmc-highspeed; > + mmc-hs200-1_8v; > + no-sdio; > + > + vmmc-supply = <&vcc_3v3>; > + vqmmc-supply = <&vcc_1v8>; > +}; > + > +&sdio { > + status = "okay"; > + pinctrl-0 = <&sd_b_pins>; > + > + /* SD card */ > + sd_card_slot: slot@1 { Small NIT: no need to for a label here > + compatible = "mmc-slot"; > + reg = <1>; > + status = "okay"; > + > + bus-width = <4>; > + cap-mmc-highspeed; > + cap-sd-highspeed; > + disable-wp; > + > + cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>; > + > + vmmc-supply = <&vcc_3v3>; > + }; > +}; > + > +&uart_AO { > + status = "okay"; > + pinctrl-0 = <&uart_ao_a_pins>; > + pinctrl-names = "default"; > +}; > + > +&usb0 { > + status = "okay"; > +}; > + > +&usb0_phy { > + status = "okay"; > +}; > + > +&usb1 { > + status = "okay"; > + dr_mode = "host"; > + /* > + * This bus features a Realtek RTL8188 2.4GHz WiFi module, with a > + * 3.3V supply voltage that must be enabled before use. > + */ > + vbus-supply = <&wifi_3v3>; > +}; > + > +&usb1_phy { > + status = "okay"; > +}; > + > +&ir_receiver { > + status = "okay"; > + pinctrl-0 = <&ir_recv_pins>; > + pinctrl-names = "default"; > +}; > diff --git a/arch/arm/boot/dts/amlogic/meson8.dtsi b/arch/arm/boot/dts/amlogic/meson8.dtsi > index 9ff142d9fe3f4576fdd3230a966c8a6250870de7..300eccbfc0071ce10290be1c496132ac6b6a4dbc 100644 > --- a/arch/arm/boot/dts/amlogic/meson8.dtsi > +++ b/arch/arm/boot/dts/amlogic/meson8.dtsi > @@ -477,6 +477,14 @@ gpio: bank@80 { > gpio-ranges = <&pinctrl_cbus 0 0 120>; > }; > > + i2c_b_pins: i2c-b { > + mux { > + groups = "i2c_sda_b", "i2c_sck_b"; > + function = "i2c_b"; > + bias-disable; > + }; > + }; > + > sd_a_pins: sd-a { > mux { > groups = "sd_d0_a", "sd_d1_a", "sd_d2_a", > @@ -522,6 +530,16 @@ mux { > }; > }; > > + sdxc_c_pins: sdxc-c { > + mux { > + groups = "sdxc_d0_c", "sdxc_d13_c", > + "sdxc_clk_c", "sdxc_cmd_c", > + "sdxc_d47_c"; > + function = "sdxc_c"; > + bias_pull_up; > + }; > + }; > + > spdif_out_pins: spdif-out { > mux { > groups = "spdif_out"; > Apart that: Reviewed-by: Neil Armstrong Thanks ! Neil