Skip to contentSkip to conversation

arm64: dts: allwinner: Add Tanix TX1 support

PATCH Applied Andre Przywara 2 participants 4 messages Apr 18, 2024 – Apr 21, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover arm64: dts: allwinner: Add Tanix TX1 support

v2 just removes the premature OPP header inclusion, and adds tags, otherwise it's the same as the previous post. Based on sunxi/for-next.

==================
Tanix TX1 is a tiny TV box (60% of a credit card) with an Allwinner H313 SoC. This seems to be the same as the H616, just the "bad bin" version, limited to 1.3 GHz.
The box has no Ethernet or SD card slot, which makes booting from it somewhat interesting: Pressing the hidden FEL button and using a USB-A to USB-A cable to upload code from a host PC is one way to run mainline. The box features a minimal set of peripherals: one USB port, 8 or 16GB of eMMC, an HDMI port and an (unsupported) SCI S9082H WiFi chip.

Patch 1 adds the DT binding for the board compatible, I refrained from using the H313 name here, since it seems to be functionally identical to the H616.
Patch 2 adds the devicetree.

There is a blue and a red LED, both connected to the same GPIO pin, but with different polarities, so it's only either one of them enabled. I did not find a way to describe this in DT, so I omitted the red LED.

Please have a look!

Cheers,
Andre

Changelog v1 .. v2:
- add tags
- remove premature opp.dtsi inclusion

Andre Przywara (2):
dt-bindings: arm: sunxi: document Tanix TX1 name
arm64: dts: allwinner: Add Tanix TX1 support

 .../devicetree/bindings/arm/sunxi.yaml        |   5 +
 arch/arm64/boot/dts/allwinner/Makefile        |   1 +
 .../dts/allwinner/sun50i-h313-tanix-tx1.dts   | 183 ++++++++++++++++++
 3 files changed, 189 insertions(+)
 create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h313-tanix-tx1.dts
Signature · 1 line
2.25.1
#1 lore raw

PATCH v2 1/2 dt-bindings: arm: sunxi: document Tanix TX1 name

The Tanix TX1 is a tiny TV box with the Allwinner H313 SoC, a lower bin version of the Allwinner H616. It comes with no SD card slot or Ethernet port.

Add the board/SoC compatible string pair to the list of known boards. Since the H313 does not look different from a software point of view, we keep the H616 compatible string.

---
 Documentation/devicetree/bindings/arm/sunxi.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/sunxi.yaml +5 -0
index 43491e7f8a5e6..f465f3a59c806 100644
@@ -865,6 +865,11 @@ properties:
           - const: allwinner,sl631
           - const: allwinner,sun8i-v3
 
+      - description: Tanix TX1
+        items:
+          - const: oranth,tanix-tx1
+          - const: allwinner,sun50i-h616
+
       - description: Tanix TX6
         items:
           - const: oranth,tanix-tx6
Signature · 1 line
2.25.1
#2 lore raw

PATCH v2 2/2 arm64: dts: allwinner: Add Tanix TX1 support

In reply to Andre Przywara

The Tanix TX1 is a tiny TV box with the Allwinner H313 SoC. The box features no Ethernet or an SD card slot, which makes booting from it somewhat interesting: Pressing the hidden FEL button and using a USB-A to USB-A cable to upload code from a host PC is one way to run mainline. The box features:
- Allwinner H313 SoC (4 * Arm Cortex-A53 cores)
- 1 or 2 GB DRAM
- 8 or 16 GB eMMC flash
- SCI S9082H WiFi chip
- HDMI port
- one USB 2.0 port
- 3.5mm AV port
- barrel plug 5V DC input via barrel plug

The devicetree covers most peripherals.
The eMMC did not work properly in HS200 speed mode, so this mode property is omitted. HS-DDR seems to work fine.
The blue LED is connected to the same GPIO pin as the red LED, just using the opposite polarity. Apparently there is no way of describing this in DT, so the red LED is omitted.
Next to the FEL button is a hidden button, that can be pushed by using something like a paperclip, through the ventilation vents of the case.

---
 arch/arm64/boot/dts/allwinner/Makefile        |   1 +
 .../dts/allwinner/sun50i-h313-tanix-tx1.dts   | 183 ++++++++++++++++++
 2 files changed, 184 insertions(+)
 create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h313-tanix-tx1.dts
arch/arm64/boot/dts/allwinner/Makefile +1 -0
index 21149b346a60e..c571971f2fac3 100644
@@ -39,6 +39,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64-model-b.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6-mini.dtb
+dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h313-tanix-tx1.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
arch/arm64/boot/dts/allwinner/sun50i-h313-tanix-tx1.dts new file +183 -0

183 lines not on this page · raw message

Signature · 1 line
2.25.1
maintainer Applied
#3 lore raw
In reply to Andre Przywara

Dne četrtek, 18. april 2024 ob 12:49:40 GMT +2 je Andre Przywara napisal(a):

Quoted 18 lines

v2 just removes the premature OPP header inclusion, and adds tags, otherwise it's the same as the previous post. Based on sunxi/for-next.

==================
Tanix TX1 is a tiny TV box (60% of a credit card) with an Allwinner H313 SoC. This seems to be the same as the H616, just the "bad bin" version, limited to 1.3 GHz.
The box has no Ethernet or SD card slot, which makes booting from it somewhat interesting: Pressing the hidden FEL button and using a USB-A to USB-A cable to upload code from a host PC is one way to run mainline. The box features a minimal set of peripherals: one USB port, 8 or 16GB of eMMC, an HDMI port and an (unsupported) SCI S9082H WiFi chip.

Patch 1 adds the DT binding for the board compatible, I refrained from using the H313 name here, since it seems to be functionally identical to the H616.
Patch 2 adds the devicetree.

Quoted 5 lines

There is a blue and a red LED, both connected to the same GPIO pin, but with different polarities, so it's only either one of them enabled. I did not find a way to describe this in DT, so I omitted the red LED.

Please have a look!

Applied, thanks!

Best regards,
Jernej

Quoted 19 lines

Cheers,
Andre

Changelog v1 .. v2:
- add tags
- remove premature opp.dtsi inclusion

Andre Przywara (2):
dt-bindings: arm: sunxi: document Tanix TX1 name
arm64: dts: allwinner: Add Tanix TX1 support

 .../devicetree/bindings/arm/sunxi.yaml        |   5 +
 arch/arm64/boot/dts/allwinner/Makefile        |   1 +
 .../dts/allwinner/sun50i-h313-tanix-tx1.dts   | 183 ++++++++++++++++++
 3 files changed, 189 insertions(+)
 create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h313-tanix-tx1.dts