* [PATCH 0/3] arm64: dts: allwinner: Add Transpeed 8K618-T TV box
@ 2023-12-12 1:08 Andre Przywara
2023-12-12 1:08 ` [PATCH 1/3] dt-bindings: vendor-prefixes: add Transpeed Andre Przywara
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Andre Przywara @ 2023-12-12 1:08 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai,
Jernej Skrabec, Samuel Holland
Cc: Icenowy Zheng, devicetree, linux-arm-kernel, linux-sunxi
The Transpeed 8K618-T is one example of various cheap Chinese TV boxes
using the Allwinner H618 SoC. It comes with up to 4GB DRAM and up to
128GB eMMC flash, plus the usual HDMI, 100Mbit Ethernet, WiFi/BT and
dual USB ports, not to forget the mandatory microSD card slot.
More details: https://linux-sunxi.org/Transpeed_8K618-T
Ethernet relies on the yet unsupported integrated PHY, and the HDMI
output is similarly not yet supported, but patches exist that await
polishing for mainline submission.
Meanwhile USB and eMMC plus SD card work, so you can hook up an USB
Ethernet or WiFi adapter to get things going.
This series is the usual trilogy of DT support patches: adding the vendor
name in patch 1, the board compatible name in patch 2, and the actual
.dts file in patch 3.
Please have a look!
Thanks,
Andre
Andre Przywara (3):
dt-bindings: vendor-prefixes: add Transpeed
dt-bindings: arm: sunxi: document Transpeed 8K618-T board name
arm64: dts: allwinner: h618: add Transpeed 8K618-T TV box
.../devicetree/bindings/arm/sunxi.yaml | 5 +
.../devicetree/bindings/vendor-prefixes.yaml | 2 +
arch/arm64/boot/dts/allwinner/Makefile | 1 +
.../sun50i-h618-transpeed-8k618-t.dts | 164 ++++++++++++++++++
4 files changed, 172 insertions(+)
create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts
--
2.35.8
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 10+ messages in thread* [PATCH 1/3] dt-bindings: vendor-prefixes: add Transpeed 2023-12-12 1:08 [PATCH 0/3] arm64: dts: allwinner: Add Transpeed 8K618-T TV box Andre Przywara @ 2023-12-12 1:08 ` Andre Przywara 2023-12-12 9:01 ` Krzysztof Kozlowski 2023-12-12 1:08 ` [PATCH 2/3] dt-bindings: arm: sunxi: document Transpeed 8K618-T board name Andre Przywara 2023-12-12 1:08 ` [PATCH 3/3] arm64: dts: allwinner: h618: add Transpeed 8K618-T TV box Andre Przywara 2 siblings, 1 reply; 10+ messages in thread From: Andre Przywara @ 2023-12-12 1:08 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland Cc: Icenowy Zheng, devicetree, linux-arm-kernel, linux-sunxi This is a name used by some Chinese TV boxes, add it to the bindings. Signed-off-by: Andre Przywara <andre.przywara@arm.com> --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 309b94c328c84..d9dd3f929cdcf 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1438,6 +1438,8 @@ patternProperties: description: Traverse Technologies Australia Pty Ltd "^tronfy,.*": description: Tronfy + "^transpeed,.*": + description: Transpeed "^tronsmart,.*": description: Tronsmart "^truly,.*": -- 2.35.8 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 1/3] dt-bindings: vendor-prefixes: add Transpeed 2023-12-12 1:08 ` [PATCH 1/3] dt-bindings: vendor-prefixes: add Transpeed Andre Przywara @ 2023-12-12 9:01 ` Krzysztof Kozlowski 2023-12-14 0:58 ` Andre Przywara 0 siblings, 1 reply; 10+ messages in thread From: Krzysztof Kozlowski @ 2023-12-12 9:01 UTC (permalink / raw) To: Andre Przywara, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland Cc: Icenowy Zheng, devicetree, linux-arm-kernel, linux-sunxi On 12/12/2023 02:08, Andre Przywara wrote: > This is a name used by some Chinese TV boxes, add it to the bindings. > > Signed-off-by: Andre Przywara <andre.przywara@arm.com> > --- > Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml > index 309b94c328c84..d9dd3f929cdcf 100644 > --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml > +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml > @@ -1438,6 +1438,8 @@ patternProperties: > description: Traverse Technologies Australia Pty Ltd > "^tronfy,.*": > description: Tronfy > + "^transpeed,.*": > + description: Transpeed Please keep alphabetical order. Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/3] dt-bindings: vendor-prefixes: add Transpeed 2023-12-12 9:01 ` Krzysztof Kozlowski @ 2023-12-14 0:58 ` Andre Przywara 0 siblings, 0 replies; 10+ messages in thread From: Andre Przywara @ 2023-12-14 0:58 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, Icenowy Zheng, devicetree, linux-arm-kernel, linux-sunxi On Tue, 12 Dec 2023 10:01:25 +0100 Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > On 12/12/2023 02:08, Andre Przywara wrote: > > This is a name used by some Chinese TV boxes, add it to the bindings. > > > > Signed-off-by: Andre Przywara <andre.przywara@arm.com> > > --- > > Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml > > index 309b94c328c84..d9dd3f929cdcf 100644 > > --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml > > +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml > > @@ -1438,6 +1438,8 @@ patternProperties: > > description: Traverse Technologies Australia Pty Ltd > > "^tronfy,.*": > > description: Tronfy > > + "^transpeed,.*": > > + description: Transpeed > > Please keep alphabetical order. Argh, sorry, managed indeed to mess up this super simple patch! Will fix it, thanks for having a look and spotting this! Cheers, Andre > Best regards, > Krzysztof > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/3] dt-bindings: arm: sunxi: document Transpeed 8K618-T board name 2023-12-12 1:08 [PATCH 0/3] arm64: dts: allwinner: Add Transpeed 8K618-T TV box Andre Przywara 2023-12-12 1:08 ` [PATCH 1/3] dt-bindings: vendor-prefixes: add Transpeed Andre Przywara @ 2023-12-12 1:08 ` Andre Przywara 2023-12-12 9:01 ` Krzysztof Kozlowski 2023-12-12 1:08 ` [PATCH 3/3] arm64: dts: allwinner: h618: add Transpeed 8K618-T TV box Andre Przywara 2 siblings, 1 reply; 10+ messages in thread From: Andre Przywara @ 2023-12-12 1:08 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland Cc: Icenowy Zheng, devicetree, linux-arm-kernel, linux-sunxi The Transpeed 8K618-T TV box is a Chinese Android TV box, using the Allwinner H618 SoC. Add the board/SoC compatible string pair to the list of known boards. Signed-off-by: Andre Przywara <andre.przywara@arm.com> --- Documentation/devicetree/bindings/arm/sunxi.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml index 11c5ce941dd7e..5e91110cc9eb8 100644 --- a/Documentation/devicetree/bindings/arm/sunxi.yaml +++ b/Documentation/devicetree/bindings/arm/sunxi.yaml @@ -868,6 +868,11 @@ properties: - const: topwise,a721 - const: allwinner,sun4i-a10 + - description: Transpeed 8K618-T + items: + - const: transpeed,8k618-t + - const: allwinner,sun50i-h618 + - description: Utoo P66 items: - const: utoo,p66 -- 2.35.8 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 2/3] dt-bindings: arm: sunxi: document Transpeed 8K618-T board name 2023-12-12 1:08 ` [PATCH 2/3] dt-bindings: arm: sunxi: document Transpeed 8K618-T board name Andre Przywara @ 2023-12-12 9:01 ` Krzysztof Kozlowski 2023-12-14 0:56 ` Andre Przywara 0 siblings, 1 reply; 10+ messages in thread From: Krzysztof Kozlowski @ 2023-12-12 9:01 UTC (permalink / raw) To: Andre Przywara, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland Cc: Icenowy Zheng, devicetree, linux-arm-kernel, linux-sunxi On 12/12/2023 02:08, Andre Przywara wrote: > The Transpeed 8K618-T TV box is a Chinese Android TV box, using the > Allwinner H618 SoC. > > Add the board/SoC compatible string pair to the list of known boards. > > Signed-off-by: Andre Przywara <andre.przywara@arm.com> > --- > Documentation/devicetree/bindings/arm/sunxi.yaml | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml > index 11c5ce941dd7e..5e91110cc9eb8 100644 > --- a/Documentation/devicetree/bindings/arm/sunxi.yaml > +++ b/Documentation/devicetree/bindings/arm/sunxi.yaml > @@ -868,6 +868,11 @@ properties: > - const: topwise,a721 > - const: allwinner,sun4i-a10 > > + - description: Transpeed 8K618-T > + items: > + - const: transpeed,8k618-t > + - const: allwinner,sun50i-h618 Assuming you kept the existing order (its style) of a file: Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/3] dt-bindings: arm: sunxi: document Transpeed 8K618-T board name 2023-12-12 9:01 ` Krzysztof Kozlowski @ 2023-12-14 0:56 ` Andre Przywara 0 siblings, 0 replies; 10+ messages in thread From: Andre Przywara @ 2023-12-14 0:56 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, Icenowy Zheng, devicetree, linux-arm-kernel, linux-sunxi On Tue, 12 Dec 2023 10:01:56 +0100 Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: Hi, > On 12/12/2023 02:08, Andre Przywara wrote: > > The Transpeed 8K618-T TV box is a Chinese Android TV box, using the > > Allwinner H618 SoC. > > > > Add the board/SoC compatible string pair to the list of known boards. > > > > Signed-off-by: Andre Przywara <andre.przywara@arm.com> > > --- > > Documentation/devicetree/bindings/arm/sunxi.yaml | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml > > index 11c5ce941dd7e..5e91110cc9eb8 100644 > > --- a/Documentation/devicetree/bindings/arm/sunxi.yaml > > +++ b/Documentation/devicetree/bindings/arm/sunxi.yaml > > @@ -868,6 +868,11 @@ properties: > > - const: topwise,a721 > > - const: allwinner,sun4i-a10 > > > > + - description: Transpeed 8K618-T > > + items: > > + - const: transpeed,8k618-t > > + - const: allwinner,sun50i-h618 > > Assuming you kept the existing order (its style) of a file: Ah, a good point. The file seems to be sort alphabetically after the "description" name, though there are some outliers. Will send a patch to fix them. But at least this entry is correctly sorted. > Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Thanks! Andre > > Best regards, > Krzysztof > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 3/3] arm64: dts: allwinner: h618: add Transpeed 8K618-T TV box 2023-12-12 1:08 [PATCH 0/3] arm64: dts: allwinner: Add Transpeed 8K618-T TV box Andre Przywara 2023-12-12 1:08 ` [PATCH 1/3] dt-bindings: vendor-prefixes: add Transpeed Andre Przywara 2023-12-12 1:08 ` [PATCH 2/3] dt-bindings: arm: sunxi: document Transpeed 8K618-T board name Andre Przywara @ 2023-12-12 1:08 ` Andre Przywara 2023-12-13 19:22 ` Jernej Škrabec 2 siblings, 1 reply; 10+ messages in thread From: Andre Przywara @ 2023-12-12 1:08 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland Cc: Icenowy Zheng, devicetree, linux-arm-kernel, linux-sunxi This is a Chinese TV box, probably very similar if not identical to various other cheap TV boxes with the same specs: - Allwinner H618 SoC (4 * Arm Cortex-A53 cores, 1MB L2 cache) - 2 or 4GiB DDR3L DRAM - 32, 64, or 128 GiB eMMC flash - AXP313a PMIC - 100 Mbit/s Ethernet (using yet unsupported internal PHY) - HDMI port - 2 * USB 2.0 ports - microSD card slot - 3.5mm A/V port - 7-segment display - 5V barrel plug power supply The PCB provides holes for soldering a UART header or cable, this is connected to the debug UART0. UART1 is used for the Bluetooth chip, although this isn't working yet. Signed-off-by: Andre Przywara <andre.przywara@arm.com> --- arch/arm64/boot/dts/allwinner/Makefile | 1 + .../sun50i-h618-transpeed-8k618-t.dts | 164 ++++++++++++++++++ 2 files changed, 165 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile index 3aca6787a1679..91d505b385de5 100644 --- a/arch/arm64/boot/dts/allwinner/Makefile +++ b/arch/arm64/boot/dts/allwinner/Makefile @@ -43,3 +43,4 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-bigtreetech-pi.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-orangepi-zero2.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-x96-mate.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero3.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-transpeed-8k618-t.dtb diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts b/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts new file mode 100644 index 0000000000000..fd7ea7bcde2c1 --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts @@ -0,0 +1,164 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2023 Arm Ltd. + */ + +/dts-v1/; + +#include "sun50i-h616.dtsi" + +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/interrupt-controller/arm-gic.h> + +/ { + model = "Transpeed 8K618-T"; + compatible = "transpeed,8k618-t", "allwinner,sun50i-h618"; + + aliases { + serial0 = &uart0; + serial1 = &uart1; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + reg_vcc5v: vcc5v { + /* board wide 5V supply directly from the DC input */ + compatible = "regulator-fixed"; + regulator-name = "vcc-5v"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + + 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; + }; +}; + +&ehci0 { + status = "okay"; +}; + +&ehci1 { + status = "okay"; +}; + +&ir { + status = "okay"; +}; + +&mmc0 { + vmmc-supply = <®_dldo1>; + cd-gpios = <&pio 8 16 GPIO_ACTIVE_LOW>; /* PI16 */ + bus-width = <4>; + status = "okay"; +}; + +&mmc2 { + vmmc-supply = <®_dldo1>; + vqmmc-supply = <®_aldo1>; + bus-width = <8>; + non-removable; + cap-mmc-hw-reset; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + status = "okay"; +}; + +&ohci0 { + status = "okay"; +}; + +&ohci1 { + status = "okay"; +}; + +&r_i2c { + status = "okay"; + + axp313: pmic@36 { + compatible = "x-powers,axp313a"; + reg = <0x36>; + #interrupt-cells = <1>; + interrupt-controller; + + vin1-supply = <®_vcc5v>; + vin2-supply = <®_vcc5v>; + vin3-supply = <®_vcc5v>; + + regulators { + /* Supplies VCC-PLL, so needs to be always on. */ + reg_aldo1: aldo1 { + regulator-always-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc1v8"; + }; + + /* Supplies VCC-IO, so needs to be always on. */ + reg_dldo1: dldo1 { + regulator-always-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc3v3"; + }; + + reg_dcdc1: dcdc1 { + regulator-always-on; + regulator-min-microvolt = <810000>; + regulator-max-microvolt = <990000>; + regulator-name = "vdd-gpu-sys"; + }; + + reg_dcdc2: dcdc2 { + regulator-always-on; + regulator-min-microvolt = <810000>; + regulator-max-microvolt = <1100000>; + regulator-name = "vdd-cpu"; + }; + + reg_dcdc3: dcdc3 { + regulator-always-on; + regulator-min-microvolt = <1360000>; + regulator-max-microvolt = <1360000>; + regulator-name = "vdd-dram"; + }; + }; + }; +}; + +&pio { + vcc-pc-supply = <®_aldo1>; + vcc-pg-supply = <®_dldo1>; + vcc-ph-supply = <®_dldo1>; + vcc-pi-supply = <®_dldo1>; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_ph_pins>; + status = "okay"; +}; + +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + uart-has-rtscts; + status = "okay"; +}; + +&usbotg { + dr_mode = "host"; /* USB A type receptable */ + status = "okay"; +}; + +&usbphy { + status = "okay"; +}; -- 2.35.8 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 3/3] arm64: dts: allwinner: h618: add Transpeed 8K618-T TV box 2023-12-12 1:08 ` [PATCH 3/3] arm64: dts: allwinner: h618: add Transpeed 8K618-T TV box Andre Przywara @ 2023-12-13 19:22 ` Jernej Škrabec 2023-12-14 1:23 ` Andre Przywara 0 siblings, 1 reply; 10+ messages in thread From: Jernej Škrabec @ 2023-12-13 19:22 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai, Samuel Holland, Andre Przywara Cc: Icenowy Zheng, devicetree, linux-arm-kernel, linux-sunxi Hi Andre! On Tuesday, December 12, 2023 2:08:59 AM CET Andre Przywara wrote: > This is a Chinese TV box, probably very similar if not identical to > various other cheap TV boxes with the same specs: > - Allwinner H618 SoC (4 * Arm Cortex-A53 cores, 1MB L2 cache) > - 2 or 4GiB DDR3L DRAM > - 32, 64, or 128 GiB eMMC flash > - AXP313a PMIC > - 100 Mbit/s Ethernet (using yet unsupported internal PHY) > - HDMI port > - 2 * USB 2.0 ports > - microSD card slot > - 3.5mm A/V port > - 7-segment display > - 5V barrel plug power supply > > The PCB provides holes for soldering a UART header or cable, this is > connected to the debug UART0. UART1 is used for the Bluetooth chip, > although this isn't working yet. > > Signed-off-by: Andre Przywara <andre.przywara@arm.com> > --- > arch/arm64/boot/dts/allwinner/Makefile | 1 + > .../sun50i-h618-transpeed-8k618-t.dts | 164 ++++++++++++++++++ > 2 files changed, 165 insertions(+) > create mode 100644 > arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts > > diff --git a/arch/arm64/boot/dts/allwinner/Makefile > b/arch/arm64/boot/dts/allwinner/Makefile index 3aca6787a1679..91d505b385de5 > 100644 > --- a/arch/arm64/boot/dts/allwinner/Makefile > +++ b/arch/arm64/boot/dts/allwinner/Makefile > @@ -43,3 +43,4 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-bigtreetech-pi.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-orangepi-zero2.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-x96-mate.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero3.dtb > +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-transpeed-8k618-t.dtb > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts > b/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts new file > mode 100644 > index 0000000000000..fd7ea7bcde2c1 > --- /dev/null > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts > @@ -0,0 +1,164 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright (C) 2023 Arm Ltd. > + */ > + > +/dts-v1/; > + > +#include "sun50i-h616.dtsi" > + > +#include <dt-bindings/gpio/gpio.h> > +#include <dt-bindings/interrupt-controller/arm-gic.h> > + > +/ { > + model = "Transpeed 8K618-T"; > + compatible = "transpeed,8k618-t", "allwinner,sun50i-h618"; > + > + aliases { > + serial0 = &uart0; > + serial1 = &uart1; Any particular reason for above alias? > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + reg_vcc5v: vcc5v { > + /* board wide 5V supply directly from the DC input */ > + compatible = "regulator-fixed"; > + regulator-name = "vcc-5v"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + regulator-always-on; > + }; > + > + 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; > + }; > +}; > + > +&ehci0 { > + status = "okay"; > +}; > + > +&ehci1 { > + status = "okay"; > +}; > + > +&ir { > + status = "okay"; > +}; > + > +&mmc0 { > + vmmc-supply = <®_dldo1>; > + cd-gpios = <&pio 8 16 GPIO_ACTIVE_LOW>; /* PI16 */ > + bus-width = <4>; > + status = "okay"; > +}; > + > +&mmc2 { > + vmmc-supply = <®_dldo1>; > + vqmmc-supply = <®_aldo1>; > + bus-width = <8>; > + non-removable; > + cap-mmc-hw-reset; > + mmc-ddr-1_8v; > + mmc-hs200-1_8v; > + status = "okay"; > +}; > + > +&ohci0 { > + status = "okay"; > +}; > + > +&ohci1 { > + status = "okay"; > +}; > + > +&r_i2c { > + status = "okay"; > + > + axp313: pmic@36 { > + compatible = "x-powers,axp313a"; > + reg = <0x36>; > + #interrupt-cells = <1>; > + interrupt-controller; > + > + vin1-supply = <®_vcc5v>; > + vin2-supply = <®_vcc5v>; > + vin3-supply = <®_vcc5v>; > + > + regulators { > + /* Supplies VCC-PLL, so needs to be always on. */ > + reg_aldo1: aldo1 { > + regulator-always-on; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "vcc1v8"; It would be great to expand all PMIC regulator names with (known) areas they power, so something like "vcc1v8-pll-pc". With that, I think you can remove comments. Best regards, Jernej > + }; > + > + /* Supplies VCC-IO, so needs to be always on. */ > + reg_dldo1: dldo1 { > + regulator-always-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc3v3"; > + }; > + > + reg_dcdc1: dcdc1 { > + regulator-always-on; > + regulator-min-microvolt = <810000>; > + regulator-max-microvolt = <990000>; > + regulator-name = "vdd-gpu-sys"; > + }; > + > + reg_dcdc2: dcdc2 { > + regulator-always-on; > + regulator-min-microvolt = <810000>; > + regulator-max-microvolt = <1100000>; > + regulator-name = "vdd-cpu"; > + }; > + > + reg_dcdc3: dcdc3 { > + regulator-always-on; > + regulator-min-microvolt = <1360000>; > + regulator-max-microvolt = <1360000>; > + regulator-name = "vdd-dram"; > + }; > + }; > + }; > +}; > + > +&pio { > + vcc-pc-supply = <®_aldo1>; > + vcc-pg-supply = <®_dldo1>; > + vcc-ph-supply = <®_dldo1>; > + vcc-pi-supply = <®_dldo1>; > +}; > + > +&uart0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&uart0_ph_pins>; > + status = "okay"; > +}; > + > +&uart1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; > + uart-has-rtscts; > + status = "okay"; > +}; > + > +&usbotg { > + dr_mode = "host"; /* USB A type receptable */ > + status = "okay"; > +}; > + > +&usbphy { > + status = "okay"; > +}; _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 3/3] arm64: dts: allwinner: h618: add Transpeed 8K618-T TV box 2023-12-13 19:22 ` Jernej Škrabec @ 2023-12-14 1:23 ` Andre Przywara 0 siblings, 0 replies; 10+ messages in thread From: Andre Przywara @ 2023-12-14 1:23 UTC (permalink / raw) To: Jernej Škrabec Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai, Samuel Holland, Icenowy Zheng, devicetree, linux-arm-kernel, linux-sunxi On Wed, 13 Dec 2023 20:22:55 +0100 Jernej Škrabec <jernej.skrabec@gmail.com> wrote: Hi Jernej, thanks for having a look, much appreciated. > On Tuesday, December 12, 2023 2:08:59 AM CET Andre Przywara wrote: > > This is a Chinese TV box, probably very similar if not identical to > > various other cheap TV boxes with the same specs: > > - Allwinner H618 SoC (4 * Arm Cortex-A53 cores, 1MB L2 cache) > > - 2 or 4GiB DDR3L DRAM > > - 32, 64, or 128 GiB eMMC flash > > - AXP313a PMIC > > - 100 Mbit/s Ethernet (using yet unsupported internal PHY) > > - HDMI port > > - 2 * USB 2.0 ports > > - microSD card slot > > - 3.5mm A/V port > > - 7-segment display > > - 5V barrel plug power supply > > > > The PCB provides holes for soldering a UART header or cable, this is > > connected to the debug UART0. UART1 is used for the Bluetooth chip, > > although this isn't working yet. > > > > Signed-off-by: Andre Przywara <andre.przywara@arm.com> > > --- > > arch/arm64/boot/dts/allwinner/Makefile | 1 + > > .../sun50i-h618-transpeed-8k618-t.dts | 164 ++++++++++++++++++ > > 2 files changed, 165 insertions(+) > > create mode 100644 > > arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts > > > > diff --git a/arch/arm64/boot/dts/allwinner/Makefile > > b/arch/arm64/boot/dts/allwinner/Makefile index 3aca6787a1679..91d505b385de5 > > 100644 > > --- a/arch/arm64/boot/dts/allwinner/Makefile > > +++ b/arch/arm64/boot/dts/allwinner/Makefile > > @@ -43,3 +43,4 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-bigtreetech-pi.dtb > > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-orangepi-zero2.dtb > > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-x96-mate.dtb > > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero3.dtb > > +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-transpeed-8k618-t.dtb > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts > > b/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts new file > > mode 100644 > > index 0000000000000..fd7ea7bcde2c1 > > --- /dev/null > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts > > @@ -0,0 +1,164 @@ > > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > > +/* > > + * Copyright (C) 2023 Arm Ltd. > > + */ > > + > > +/dts-v1/; > > + > > +#include "sun50i-h616.dtsi" > > + > > +#include <dt-bindings/gpio/gpio.h> > > +#include <dt-bindings/interrupt-controller/arm-gic.h> > > + > > +/ { > > + model = "Transpeed 8K618-T"; > > + compatible = "transpeed,8k618-t", "allwinner,sun50i-h618"; > > + > > + aliases { > > + serial0 = &uart0; > > + serial1 = &uart1; > > Any particular reason for above alias? Not really, and since UART1 is used for Bluetooth, its name should not matter at all, the BT driver will just use its parent device. Will remove it. > > > + }; > > + > > + chosen { > > + stdout-path = "serial0:115200n8"; > > + }; > > + > > + reg_vcc5v: vcc5v { > > + /* board wide 5V supply directly from the DC input */ > > + compatible = "regulator-fixed"; > > + regulator-name = "vcc-5v"; > > + regulator-min-microvolt = <5000000>; > > + regulator-max-microvolt = <5000000>; > > + regulator-always-on; > > + }; > > + > > + 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; > > + }; > > +}; > > + > > +&ehci0 { > > + status = "okay"; > > +}; > > + > > +&ehci1 { > > + status = "okay"; > > +}; > > + > > +&ir { > > + status = "okay"; > > +}; > > + > > +&mmc0 { > > + vmmc-supply = <®_dldo1>; > > + cd-gpios = <&pio 8 16 GPIO_ACTIVE_LOW>; /* PI16 */ > > + bus-width = <4>; > > + status = "okay"; > > +}; > > + > > +&mmc2 { > > + vmmc-supply = <®_dldo1>; > > + vqmmc-supply = <®_aldo1>; > > + bus-width = <8>; > > + non-removable; > > + cap-mmc-hw-reset; > > + mmc-ddr-1_8v; > > + mmc-hs200-1_8v; > > + status = "okay"; > > +}; > > + > > +&ohci0 { > > + status = "okay"; > > +}; > > + > > +&ohci1 { > > + status = "okay"; > > +}; > > + > > +&r_i2c { > > + status = "okay"; > > + > > + axp313: pmic@36 { > > + compatible = "x-powers,axp313a"; > > + reg = <0x36>; > > + #interrupt-cells = <1>; > > + interrupt-controller; > > + > > + vin1-supply = <®_vcc5v>; > > + vin2-supply = <®_vcc5v>; > > + vin3-supply = <®_vcc5v>; > > + > > + regulators { > > + /* Supplies VCC-PLL, so needs to be always > on. */ > > + reg_aldo1: aldo1 { > > + regulator-always-on; > > + regulator-min-microvolt = > <1800000>; > > + regulator-max-microvolt = > <1800000>; > > + regulator-name = "vcc1v8"; > > It would be great to expand all PMIC regulator names with (known) areas they > power, so something like "vcc1v8-pll-pc". With that, I think you can remove > comments. Alright, will do. I will stick with those users that I am pretty sure of, either because they are mentioned in the BSP DT, or because they must be supplied by that rail: there seem to be only one 1.8V source. Cheers, Andre > > Best regards, > Jernej > > > + }; > > + > > + /* Supplies VCC-IO, so needs to be always on. > */ > > + reg_dldo1: dldo1 { > > + regulator-always-on; > > + regulator-min-microvolt = > <3300000>; > > + regulator-max-microvolt = > <3300000>; > > + regulator-name = "vcc3v3"; > > + }; > > + > > + reg_dcdc1: dcdc1 { > > + regulator-always-on; > > + regulator-min-microvolt = > <810000>; > > + regulator-max-microvolt = > <990000>; > > + regulator-name = "vdd-gpu-sys"; > > + }; > > + > > + reg_dcdc2: dcdc2 { > > + regulator-always-on; > > + regulator-min-microvolt = > <810000>; > > + regulator-max-microvolt = > <1100000>; > > + regulator-name = "vdd-cpu"; > > + }; > > + > > + reg_dcdc3: dcdc3 { > > + regulator-always-on; > > + regulator-min-microvolt = > <1360000>; > > + regulator-max-microvolt = > <1360000>; > > + regulator-name = "vdd-dram"; > > + }; > > + }; > > + }; > > +}; > > + > > +&pio { > > + vcc-pc-supply = <®_aldo1>; > > + vcc-pg-supply = <®_dldo1>; > > + vcc-ph-supply = <®_dldo1>; > > + vcc-pi-supply = <®_dldo1>; > > +}; > > + > > +&uart0 { > > + pinctrl-names = "default"; > > + pinctrl-0 = <&uart0_ph_pins>; > > + status = "okay"; > > +}; > > + > > +&uart1 { > > + pinctrl-names = "default"; > > + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; > > + uart-has-rtscts; > > + status = "okay"; > > +}; > > + > > +&usbotg { > > + dr_mode = "host"; /* USB A type receptable */ > > + status = "okay"; > > +}; > > + > > +&usbphy { > > + status = "okay"; > > +}; > > > > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2023-12-14 1:24 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-12-12 1:08 [PATCH 0/3] arm64: dts: allwinner: Add Transpeed 8K618-T TV box Andre Przywara 2023-12-12 1:08 ` [PATCH 1/3] dt-bindings: vendor-prefixes: add Transpeed Andre Przywara 2023-12-12 9:01 ` Krzysztof Kozlowski 2023-12-14 0:58 ` Andre Przywara 2023-12-12 1:08 ` [PATCH 2/3] dt-bindings: arm: sunxi: document Transpeed 8K618-T board name Andre Przywara 2023-12-12 9:01 ` Krzysztof Kozlowski 2023-12-14 0:56 ` Andre Przywara 2023-12-12 1:08 ` [PATCH 3/3] arm64: dts: allwinner: h618: add Transpeed 8K618-T TV box Andre Przywara 2023-12-13 19:22 ` Jernej Škrabec 2023-12-14 1:23 ` Andre Przywara
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).