Add initial support for T95 TV boxes
Subsystems (2)
v2 cover Add initial support for T95 TV boxes
changes since v1:
- introduce sun50i-h616-t95.dtsi for common nodes in t95 boxes
- validate and add cd-gpios for microsd card detect
- add wi-fi node
- remove mmc2 node - it's not used
- add uart1 for bluetooth device
- update copyright
T95 is a most commonly known for being a box with a pre-installed malware. It uses Allwinner H616 and comes with NAND, and DDR3 memory.
Those TV boxes usually come with common hardware:
- Allwinner H616 SoC
- 2/4 GB DDR3 SDRAM (Hynix H5TQ2G43BFR)
- 16/32/64 GB NAND flash
- microSD slot
- AXP305 or AXP313 PMIC depending on board revision
- 3.5mm A/V output
- HDMI port
- 2x USB 2.0 ports
- 100M ETH using Internal PHY
- LG642 Wi-Fi and BT chip (rebranded BCM43342)
- 7-segment display
- DC 5V barrel jack port
The board contains holes hor UART header wired to &uart0. &uart1 is used by bluetooth module
From the DRAM specification its operation voltage is 1.5V.
To: Rob Herring <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Conor Dooley <[email protected]>
To: Chen-Yu Tsai <[email protected]>
To: Jernej Skrabec <[email protected]>
To: Samuel Holland <[email protected]>
To: Maxime Ripard <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
Kamil Kasperski (3):
dt-bindings: vendor-prefixes: add t95 string
dt-bindings: arm: sunxi: add T95 AXP313
arm64: dts: allwinner: h616: add support for T95 tv boxes
Documentation/devicetree/bindings/arm/sunxi.yaml | 5 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + arch/arm64/boot/dts/allwinner/Makefile | 1 + arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi | 109 +++++++++++++++++++++ .../dts/allwinner/sun50i-h616-t95max-axp313.dts | 85 ++++++++++++++++ 5 files changed, 202 insertions(+)
---
base-commit: 4138f02288333cb596885e9af03dd3ea2de845cb
change-id: 20240315-add-t95-axp313-support-5f3da8996edd
Best regards,
Signature · 1 line
Kamil Kasperski <[email protected]>
PATCH v2 1/3 dt-bindings: vendor-prefixes: add t95 string
Add vendor prefix for T95 tv boxes of unnamed brand. It's hard to determine the actual vendor, so let's assume t95 as default vendor for all t95-branded tv boxes.
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -1416,6 +1416,8 @@ patternProperties: "^synopsys,.*": description: Synopsys, Inc. (deprecated, use snps) deprecated: true + "^t95,.*": + description: T95 "^tbs,.*": description: TBS Technologies "^tbs-biometrics,.*":
Signature · 1 line
2.34.1
Re: [PATCH v2 1/3] dt-bindings: vendor-prefixes: add t95 string
Quoted 6 lines · Kamil Kasperski
Add vendor prefix for T95 tv boxes of unnamed brand. It's hard to determine the actual vendor, so let's assume t95 as default vendor for all t95-branded tv boxes.
Signed-off-by Kamil Kasperski <[email protected]>---
---
This is an automated instruction, just in case, because many review tags are being ignored. If you know the process, you can skip it (please do not feel offended by me posting it here - no bad intentions intended). If you do not know the process, here is a short explanation:
Please add Acked-by/Reviewed-by/Tested-by tags when posting new versions, under or above your Signed-off-by tag. Tag is "received", when provided in a message replied to you on the mailing list. Tools like b4 can help here. However, there's no need to repost patches *only* to add the tags. The upstream maintainer will do that for tags received on the version they apply.
https://elixir.bootlin.com/linux/v6.5-rc3/source/Documentation/process/submitting-patches.rst#L577
Best regards,
Krzysztof
PATCH v2 2/3 dt-bindings: arm: sunxi: add T95 AXP313
In reply to Kamil KasperskiAdd T95 AXP313 TV Box variant to dt-bindings.
--- Documentation/devicetree/bindings/arm/sunxi.yaml | 5 +++++ 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/sunxi.yaml +5 -0
@@ -860,6 +860,11 @@ properties: - const: allwinner,sl631 - const: allwinner,sun8i-v3 + - description: T95 5G (AXP313) TV Box + items: + - const: t95,t95max-axp313 + - const: allwinner,sun50i-h616 + - description: Tanix TX6 items: - const: oranth,tanix-tx6
Signature · 1 line
2.34.1
Re: [PATCH v2 2/3] dt-bindings: arm: sunxi: add T95 AXP313
Quoted 7 lines · Kamil Kasperski
Add T95 AXP313 TV Box variant to dt-bindings.
Signed-off-by Kamil Kasperski <[email protected]>--- Documentation/devicetree/bindings/arm/sunxi.yaml | 5 +++++ 1 file changed, 5 insertions(+)
Best regards,
Krzysztof
PATCH v2 3/3 arm64: dts: allwinner: h616: add support for T95 tv boxes
In reply to Kamil KasperskiAdd dtsi file for T95 tv boxes and add initial support for T95 5G AXP313A variant with a board name H616-T95MAX-AXP313A-v3.0
internal NAND chip is connected to NAND controller I can't see any nand in sun50i-h616.dtsi, so access to internal memory is not implemented.
--- arch/arm64/boot/dts/allwinner/Makefile | 1 + arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi | 109 +++++++++++++++++++++ .../dts/allwinner/sun50i-h616-t95max-axp313.dts | 85 ++++++++++++++++ 3 files changed, 195 insertions(+)
arch/arm64/boot/dts/allwinner/Makefile +1 -0
@@ -42,6 +42,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6-mini.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-bigtreetech-cb1-manta.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-bigtreetech-pi.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-orangepi-zero2.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-t95max-axp313.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-x96-mate.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-longanpi-3h.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero2w.dtb
arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi new file +109 -0
109 lines not on this page · raw message
arch/arm64/boot/dts/allwinner/sun50i-h616-t95max-axp313.dts new file +85 -0
85 lines not on this page · raw message
Signature · 1 line
2.34.1
Re: [PATCH v2 3/3] arm64: dts: allwinner: h616: add support for T95 tv boxes
Quoted 7 lines · Kamil Kasperski
Add dtsi file for T95 tv boxes and add initial support for T95 5G AXP313A variant with a board name H616-T95MAX-AXP313A-v3.0
internal NAND chip is connected to NAND controller I can't see any nand in
sun50i-h616.dtsi, so access to internal memory is not implemented.
Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597
Quoted 10 lines
Signed-off-by Kamil Kasperski <[email protected]>--- arch/arm64/boot/dts/allwinner/Makefile | 1 + arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi | 109 +++++++++++++++++++++ .../dts/allwinner/sun50i-h616-t95max-axp313.dts | 85 ++++++++++++++++ 3 files changed, 195 insertions(+)arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi new file +1
-0+
arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi line 42
Quoted 10 lines
arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi new file +10
-0+ reg_vcc3v3: vcc3v3 { + /* discrete 3.3V regulator */ + compatible = "regulator-fixed"; + regulator-name = "vcc-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + wifi_pwrseq: wifi_pwrseq {
No underscores in node names. From where did you copy this code?
arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi line 51
Quoted 9 lines
arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi new file +9
-0+ compatible = "mmc-pwrseq-simple"; + clocks = <&rtc CLK_OSC32K_FANOUT>; + clock-names = "ext_clock"; + pinctrl-0 = <&x32clk_fanout_pin>; + pinctrl-names = "default"; + reset-gpios = <&pio 6 18 GPIO_ACTIVE_LOW>; /* PG18 */ + }; +}; +
Best regards,
Krzysztof
Re: [PATCH v2 3/3] arm64: dts: allwinner: h616: add support for T95 tv boxes
W dniu 17.03.2024 o 15:57, Krzysztof Kozlowski pisze:
Quoted 19 lines · Kamil Kasperski
Quoted 7 lines
Add dtsi file for T95 tv boxes and add initial support for T95 5G AXP313A variant with a board name H616-T95MAX-AXP313A-v3.0
internal NAND chip is connected to NAND controller I can't see any nand in
sun50i-h616.dtsi, so access to internal memory is not implemented.Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597Quoted 7 lines
Signed-off-by Kamil Kasperski <[email protected]>--- arch/arm64/boot/dts/allwinner/Makefile | 1 + arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi | 109 +++++++++++++++++++++ .../dts/allwinner/sun50i-h616-t95max-axp313.dts | 85 ++++++++++++++++ 3 files changed, 195 insertions(+)
Quoted 12 lines
arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi line 42
Quoted 11 lines
arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi new file +11
-0+ + reg_vcc3v3: vcc3v3 { + /* discrete 3.3V regulator */ + compatible = "regulator-fixed"; + regulator-name = "vcc-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + wifi_pwrseq: wifi_pwrseq {No underscores in node names. From where did you copy this code?
arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts#L44 Seems this one needs a fixup.
Quoted 13 lines
arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi line 51
Quoted 9 lines
arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi new file +9
-0+ compatible = "mmc-pwrseq-simple"; + clocks = <&rtc CLK_OSC32K_FANOUT>; + clock-names = "ext_clock"; + pinctrl-0 = <&x32clk_fanout_pin>; + pinctrl-names = "default"; + reset-gpios = <&pio 6 18 GPIO_ACTIVE_LOW>; /* PG18 */ + }; +}; +Best regards,
Krzysztof
Re: [PATCH v2 3/3] arm64: dts: allwinner: h616: add support for T95 tv boxes
Quoted 33 lines · Kamil Kasperski
W dniu 17.03.2024 o 15:57, Krzysztof Kozlowski pisze:
Quoted 19 lines · Kamil Kasperski
Quoted 7 lines
Add dtsi file for T95 tv boxes and add initial support for T95 5G AXP313A variant with a board name H616-T95MAX-AXP313A-v3.0
internal NAND chip is connected to NAND controller I can't see any nand in
sun50i-h616.dtsi, so access to internal memory is not implemented.Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597Quoted 7 lines
Signed-off-by Kamil Kasperski <[email protected]>--- arch/arm64/boot/dts/allwinner/Makefile | 1 + arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi | 109 +++++++++++++++++++++ .../dts/allwinner/sun50i-h616-t95max-axp313.dts | 85 ++++++++++++++++ 3 files changed, 195 insertions(+)Quoted 12 lines
arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi line 42
Quoted 11 lines
arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi new file +11
-0+ + reg_vcc3v3: vcc3v3 { + /* discrete 3.3V regulator */ + compatible = "regulator-fixed"; + regulator-name = "vcc-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + wifi_pwrseq: wifi_pwrseq {No underscores in node names. From where did you copy this code?
Quoted 3 lines
arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts#L44 Seems this one needs a fixup.
I see sunxi has a lot of this... I thought we fixed all mainstream platforms, but apparently not. I'll send a patch.
Best regards,
Krzysztof