ARM Sunxi Platform Development
 help / color / mirror / Atom feed
* [PATCH 0/3] arm64: dts: sunxi: Add Liontron H-A133L support
@ 2025-05-05 16:47 Andre Przywara
  2025-05-05 16:47 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add Liontron name Andre Przywara
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Andre Przywara @ 2025-05-05 16:47 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland
  Cc: Cody Eksal, Philippe Simons, devicetree, linux-sunxi,
	linux-arm-kernel

The Liontron H-A133L is an industrial development board featuring the
Allwinner A133 SoC.
Alongside the usual standard connectors like USB and Ethernet ports,
it contains a number of dedicated JST connectors, to connect external
peripherals.

Add support for that board with the usual patch trinity: vendor prefix,
board name binding, board .dts file.

Please have a look!

Cheers,
Andre

Andre Przywara (3):
  dt-bindings: vendor-prefixes: Add Liontron name
  dt-bindings: arm: sunxi: Add Liontron H-A133L board name
  arm64: dts: allwinner: a100: add Liontron H-A133L board support

 .../devicetree/bindings/arm/sunxi.yaml        |   5 +
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 arch/arm64/boot/dts/allwinner/Makefile        |   1 +
 .../sun50i-a133-liontron-h-a133l.dts          | 214 ++++++++++++++++++
 4 files changed, 222 insertions(+)
 create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-a133-liontron-h-a133l.dts

-- 
2.46.3


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/3] dt-bindings: vendor-prefixes: Add Liontron name
  2025-05-05 16:47 [PATCH 0/3] arm64: dts: sunxi: Add Liontron H-A133L support Andre Przywara
@ 2025-05-05 16:47 ` Andre Przywara
  2025-05-06 12:06   ` Rob Herring (Arm)
  2025-05-05 16:47 ` [PATCH 2/3] dt-bindings: arm: sunxi: Add Liontron H-A133L board name Andre Przywara
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Andre Przywara @ 2025-05-05 16:47 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland
  Cc: Cody Eksal, Philippe Simons, devicetree, linux-sunxi,
	linux-arm-kernel

Liontron is a company based in Shenzen, China, making industrial
development boards and embedded computers, mostly using Rockchip and
Allwinner SoCs.

Add their name to the list of vendors.

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 411fd65e0bde9..580dfd62dc9ae 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -864,6 +864,8 @@ patternProperties:
     description: Linux-specific binding
   "^linx,.*":
     description: Linx Technologies
+  "^liontron,.*":
+    description: Shenzhen Liontron Technology Co., Ltd
   "^liteon,.*":
     description: LITE-ON Technology Corp.
   "^litex,.*":
-- 
2.46.3


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/3] dt-bindings: arm: sunxi: Add Liontron H-A133L board name
  2025-05-05 16:47 [PATCH 0/3] arm64: dts: sunxi: Add Liontron H-A133L support Andre Przywara
  2025-05-05 16:47 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add Liontron name Andre Przywara
@ 2025-05-05 16:47 ` Andre Przywara
  2025-05-06 12:07   ` Rob Herring (Arm)
  2025-05-05 16:47 ` [PATCH 3/3] arm64: dts: allwinner: a100: add Liontron H-A133L board support Andre Przywara
  2025-05-13 16:29 ` [PATCH 0/3] arm64: dts: sunxi: Add Liontron H-A133L support Chen-Yu Tsai
  3 siblings, 1 reply; 8+ messages in thread
From: Andre Przywara @ 2025-05-05 16:47 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland
  Cc: Cody Eksal, Philippe Simons, devicetree, linux-sunxi,
	linux-arm-kernel

The Liontron H-A133L is an industrial development board using the
Allwinner A133 SoC.

Add its compatible name to the list of valid board names.

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 cb354c2c61b26..7807ea6132589 100644
--- a/Documentation/devicetree/bindings/arm/sunxi.yaml
+++ b/Documentation/devicetree/bindings/arm/sunxi.yaml
@@ -492,6 +492,11 @@ properties:
           - const: lamobo,lamobo-r1
           - const: allwinner,sun7i-a20
 
+      - description: Liontron H-A133L
+        items:
+          - const: liontron,h-a133l
+          - const: allwinner,sun50i-a100
+
       - description: HAOYU Electronics Marsboard A10
         items:
           - const: haoyu,a10-marsboard
-- 
2.46.3


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/3] arm64: dts: allwinner: a100: add Liontron H-A133L board support
  2025-05-05 16:47 [PATCH 0/3] arm64: dts: sunxi: Add Liontron H-A133L support Andre Przywara
  2025-05-05 16:47 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add Liontron name Andre Przywara
  2025-05-05 16:47 ` [PATCH 2/3] dt-bindings: arm: sunxi: Add Liontron H-A133L board name Andre Przywara
@ 2025-05-05 16:47 ` Andre Przywara
  2025-05-14 14:14   ` Chen-Yu Tsai
  2025-05-13 16:29 ` [PATCH 0/3] arm64: dts: sunxi: Add Liontron H-A133L support Chen-Yu Tsai
  3 siblings, 1 reply; 8+ messages in thread
From: Andre Przywara @ 2025-05-05 16:47 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland
  Cc: Cody Eksal, Philippe Simons, devicetree, linux-sunxi,
	linux-arm-kernel

The H-A133L board is an industrial development board made by Liontron.
It contains a number of dedicated JST connectors, to connect external
peripherals. It features:

- Allwinner A133 SoC (4 * Arm Cortex-A53 cores at up to 1.6 GHz)
- 1 GiB, 2 GiB or 4 GiB of LPDDR4 DRAM
- between 16 and 128 GiB eMMC flash
- AXP707 PMIC (compatible to AXP803)
- 100 Mbit/s RJ45 Ethernet socket, using an JLSemi JL1101 PHY
- XR829 WIFI+Bluetooth chip
- 2 * USB 2.0 USB-A ports, plus three sets of USB pins on connectors
  (connected via a USB hub connected to USB1 on the SoC)
- microSD card slot
- 3.5mm A/V port
- 12V power supply
- connectors for an LVDS or MIPI-DSI panel

Add the devicetree describing the board's peripherals and their
connections.

Despite being a devboard, the manufacturer does not publish a schematic
(I asked), so the PMIC rail assignments were bases on BSP dumps,
educated guesses and some experimentation. Dropping the always-on
property from any of the rails carrying it will make the board hang as
soon as the kernel turns off unused regulators.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
 arch/arm64/boot/dts/allwinner/Makefile        |   1 +
 .../sun50i-a133-liontron-h-a133l.dts          | 214 ++++++++++++++++++
 2 files changed, 215 insertions(+)
 create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-a133-liontron-h-a133l.dts

diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
index 790aad3a91e86..773cc02a13d04 100644
--- a/arch/arm64/boot/dts/allwinner/Makefile
+++ b/arch/arm64/boot/dts/allwinner/Makefile
@@ -18,6 +18,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-baseboard.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-teres-i.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h64-remix-mini-pc.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a100-allwinner-perf1.dtb
+dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a133-liontron-h-a133l.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-bananapi-m2-plus.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-bananapi-m2-plus-v1.2.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-emlid-neutis-n5-devboard.dtb
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a133-liontron-h-a133l.dts b/arch/arm64/boot/dts/allwinner/sun50i-a133-liontron-h-a133l.dts
new file mode 100644
index 0000000000000..682ed15d84854
--- /dev/null
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a133-liontron-h-a133l.dts
@@ -0,0 +1,211 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2025 Arm Ltd.
+ */
+
+/dts-v1/;
+
+#include "sun50i-a100.dtsi"
+#include "sun50i-a100-cpu-opp.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
+
+/{
+	model = "Liontron H-A133L";
+	compatible = "liontron,h-a133l", "allwinner,sun50i-a100";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		led {
+			function = LED_FUNCTION_POWER;
+			color = <LED_COLOR_ID_BLUE>;
+			gpios = <&pio 7 16 GPIO_ACTIVE_LOW>; /* PH16 */
+		};
+	};
+
+	reg_vcc5v: vcc5v {
+		/* board wide 5V supply from a 12V->5V regulator */
+		compatible = "regulator-fixed";
+		regulator-name = "vcc-5v";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		regulator-always-on;
+	};
+
+	reg_usb1_vbus: regulator-usb1-vbus {
+		compatible = "regulator-fixed";
+		regulator-name = "usb1-vbus";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		vin-supply = <&reg_vcc5v>;
+		enable-active-high;
+		gpio = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */
+	};
+};
+
+&cpu0 {
+	cpu-supply = <&reg_dcdc2>;
+};
+
+&ehci0 {
+	status = "okay";
+};
+
+&ehci1 {
+	status = "okay";
+};
+
+&mmc0 {
+	vmmc-supply = <&reg_dcdc1>;
+	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
+	bus-width = <4>;
+	status = "okay";
+};
+
+&mmc2 {
+	vmmc-supply = <&reg_dcdc1>;
+	vqmmc-supply = <&reg_eldo1>;
+	cap-mmc-hw-reset;
+	non-removable;
+	bus-width = <8>;
+	mmc-ddr-1_8v;
+	mmc-hs200-1_8v;
+	status = "okay";
+};
+
+&ohci0 {
+	status = "okay";
+};
+
+&ohci1 {
+	status = "okay";
+};
+
+&pio {
+	vcc-pb-supply = <&reg_dcdc1>;
+	vcc-pc-supply = <&reg_eldo1>;
+	vcc-pf-supply = <&reg_dcdc1>;
+	vcc-ph-supply = <&reg_dcdc1>;
+};
+
+&r_i2c0 {
+	status = "okay";
+
+	axp803: pmic@34 {
+		compatible = "x-powers,axp803";
+		reg = <0x34>;
+		interrupt-parent = <&r_intc>;
+		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
+	};
+};
+
+#include "axp803.dtsi"
+
+&ac_power_supply {
+	status = "okay";
+};
+
+&reg_aldo1 {
+	regulator-always-on;
+	regulator-min-microvolt = <1800000>;
+	regulator-max-microvolt = <1800000>;
+	regulator-name = "vcc-codec-avcc";
+};
+
+&reg_aldo2 {
+	regulator-always-on;
+	regulator-min-microvolt = <1800000>;
+	regulator-max-microvolt = <1800000>;
+	regulator-name = "vcc-dram-1";
+};
+
+&reg_aldo3 {
+	regulator-always-on;
+	regulator-min-microvolt = <3300000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-usb-pl";
+};
+
+&reg_dcdc1 {
+	regulator-always-on;
+	regulator-min-microvolt = <3300000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-io-usb-pd-emmc";
+};
+
+&reg_dcdc2 {
+	regulator-always-on;
+	regulator-min-microvolt = <810000>;
+	regulator-max-microvolt = <1200000>;
+	regulator-name = "vdd-cpux";
+};
+
+&reg_dcdc3 {
+	regulator-always-on;
+	regulator-min-microvolt = <900000>;
+	regulator-max-microvolt = <900000>;
+	regulator-name = "vdd-usb-cpus";
+};
+
+&reg_dcdc4 {
+	regulator-always-on;
+	regulator-min-microvolt = <950000>;
+	regulator-max-microvolt = <950000>;
+	regulator-name = "vdd-sys";
+};
+
+&reg_dcdc5 {
+	regulator-always-on;
+	regulator-min-microvolt = <1100000>;
+	regulator-max-microvolt = <1100000>;
+	regulator-name = "vcc-dram";
+};
+
+/* DCDC6 unused */
+/* DLDO3 unused */
+/* DLDO4 unused */
+
+&reg_eldo1 {
+	regulator-min-microvolt = <1800000>;
+	regulator-max-microvolt = <1800000>;
+	regulator-name = "vcc-pc-emmc";
+};
+
+/* ELDO2 unused */
+/* ELDO3 unused */
+
+&reg_fldo1 {
+	regulator-always-on;
+	regulator-min-microvolt = <900000>;
+	regulator-max-microvolt = <900000>;
+	regulator-name = "vdd-cpus-usb";
+};
+
+/* reg_drivevbus unused */
+/* dc1sw unused */
+
+&uart0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart0_pb_pins>;
+	status = "okay";
+};
+
+&usb_otg {
+	dr_mode = "host";       /* USB A type receptable, always powered */
+	status = "okay";
+};
+
+&usbphy {
+	status = "okay";
+	usb1_vbus-supply = <&reg_usb1_vbus>;
+};
-- 
2.46.3


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/3] dt-bindings: vendor-prefixes: Add Liontron name
  2025-05-05 16:47 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add Liontron name Andre Przywara
@ 2025-05-06 12:06   ` Rob Herring (Arm)
  0 siblings, 0 replies; 8+ messages in thread
From: Rob Herring (Arm) @ 2025-05-06 12:06 UTC (permalink / raw)
  To: Andre Przywara
  Cc: linux-arm-kernel, linux-sunxi, Jernej Skrabec, Philippe Simons,
	Samuel Holland, Krzysztof Kozlowski, Cody Eksal, Chen-Yu Tsai,
	Conor Dooley, devicetree


On Mon, 05 May 2025 17:47:27 +0100, Andre Przywara wrote:
> Liontron is a company based in Shenzen, China, making industrial
> development boards and embedded computers, mostly using Rockchip and
> Allwinner SoCs.
> 
> Add their name to the list of vendors.
> 
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
> ---
>  Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
>  1 file changed, 2 insertions(+)
> 

Acked-by: Rob Herring (Arm) <robh@kernel.org>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/3] dt-bindings: arm: sunxi: Add Liontron H-A133L board name
  2025-05-05 16:47 ` [PATCH 2/3] dt-bindings: arm: sunxi: Add Liontron H-A133L board name Andre Przywara
@ 2025-05-06 12:07   ` Rob Herring (Arm)
  0 siblings, 0 replies; 8+ messages in thread
From: Rob Herring (Arm) @ 2025-05-06 12:07 UTC (permalink / raw)
  To: Andre Przywara
  Cc: Philippe Simons, Chen-Yu Tsai, Samuel Holland, devicetree,
	linux-sunxi, Jernej Skrabec, Cody Eksal, Krzysztof Kozlowski,
	linux-arm-kernel, Conor Dooley


On Mon, 05 May 2025 17:47:28 +0100, Andre Przywara wrote:
> The Liontron H-A133L is an industrial development board using the
> Allwinner A133 SoC.
> 
> Add its compatible name to the list of valid board names.
> 
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
> ---
>  Documentation/devicetree/bindings/arm/sunxi.yaml | 5 +++++
>  1 file changed, 5 insertions(+)
> 

Acked-by: Rob Herring (Arm) <robh@kernel.org>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/3] arm64: dts: sunxi: Add Liontron H-A133L support
  2025-05-05 16:47 [PATCH 0/3] arm64: dts: sunxi: Add Liontron H-A133L support Andre Przywara
                   ` (2 preceding siblings ...)
  2025-05-05 16:47 ` [PATCH 3/3] arm64: dts: allwinner: a100: add Liontron H-A133L board support Andre Przywara
@ 2025-05-13 16:29 ` Chen-Yu Tsai
  3 siblings, 0 replies; 8+ messages in thread
From: Chen-Yu Tsai @ 2025-05-13 16:29 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jernej Skrabec,
	Samuel Holland, Andre Przywara
  Cc: Cody Eksal, Philippe Simons, devicetree, linux-sunxi,
	linux-arm-kernel

On Mon, 05 May 2025 17:47:26 +0100, Andre Przywara wrote:
> The Liontron H-A133L is an industrial development board featuring the
> Allwinner A133 SoC.
> Alongside the usual standard connectors like USB and Ethernet ports,
> it contains a number of dedicated JST connectors, to connect external
> peripherals.
> 
> Add support for that board with the usual patch trinity: vendor prefix,
> board name binding, board .dts file.
> 
> [...]

Applied to sunxi/dt-for-6.16 in sunxi/linux.git, thanks!

[1/3] dt-bindings: vendor-prefixes: Add Liontron name
      https://git.kernel.org/sunxi/linux/c/9baa27a2e9fc
[2/3] dt-bindings: arm: sunxi: Add Liontron H-A133L board name
      https://git.kernel.org/sunxi/linux/c/d26382bb852c
[3/3] arm64: dts: allwinner: a100: add Liontron H-A133L board support
      https://git.kernel.org/sunxi/linux/c/b631b0bf7648

Best regards,
-- 
Chen-Yu Tsai <wens@csie.org>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 3/3] arm64: dts: allwinner: a100: add Liontron H-A133L board support
  2025-05-05 16:47 ` [PATCH 3/3] arm64: dts: allwinner: a100: add Liontron H-A133L board support Andre Przywara
@ 2025-05-14 14:14   ` Chen-Yu Tsai
  0 siblings, 0 replies; 8+ messages in thread
From: Chen-Yu Tsai @ 2025-05-14 14:14 UTC (permalink / raw)
  To: Andre Przywara
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jernej Skrabec,
	Samuel Holland, Cody Eksal, Philippe Simons, devicetree,
	linux-sunxi, linux-arm-kernel

On Tue, May 6, 2025 at 12:48 AM Andre Przywara <andre.przywara@arm.com> wrote:
>
> The H-A133L board is an industrial development board made by Liontron.
> It contains a number of dedicated JST connectors, to connect external
> peripherals. It features:
>
> - Allwinner A133 SoC (4 * Arm Cortex-A53 cores at up to 1.6 GHz)
> - 1 GiB, 2 GiB or 4 GiB of LPDDR4 DRAM
> - between 16 and 128 GiB eMMC flash
> - AXP707 PMIC (compatible to AXP803)
> - 100 Mbit/s RJ45 Ethernet socket, using an JLSemi JL1101 PHY
> - XR829 WIFI+Bluetooth chip
> - 2 * USB 2.0 USB-A ports, plus three sets of USB pins on connectors
>   (connected via a USB hub connected to USB1 on the SoC)
> - microSD card slot
> - 3.5mm A/V port
> - 12V power supply
> - connectors for an LVDS or MIPI-DSI panel
>
> Add the devicetree describing the board's peripherals and their
> connections.
>
> Despite being a devboard, the manufacturer does not publish a schematic
> (I asked), so the PMIC rail assignments were bases on BSP dumps,
> educated guesses and some experimentation. Dropping the always-on
> property from any of the rails carrying it will make the board hang as
> soon as the kernel turns off unused regulators.
>
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
> ---
>  arch/arm64/boot/dts/allwinner/Makefile        |   1 +
>  .../sun50i-a133-liontron-h-a133l.dts          | 214 ++++++++++++++++++
>  2 files changed, 215 insertions(+)
>  create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-a133-liontron-h-a133l.dts
>
> diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
> index 790aad3a91e86..773cc02a13d04 100644
> --- a/arch/arm64/boot/dts/allwinner/Makefile
> +++ b/arch/arm64/boot/dts/allwinner/Makefile
> @@ -18,6 +18,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-baseboard.dtb
>  dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-teres-i.dtb
>  dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h64-remix-mini-pc.dtb
>  dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a100-allwinner-perf1.dtb
> +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a133-liontron-h-a133l.dtb
>  dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-bananapi-m2-plus.dtb
>  dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-bananapi-m2-plus-v1.2.dtb
>  dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-emlid-neutis-n5-devboard.dtb
> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a133-liontron-h-a133l.dts b/arch/arm64/boot/dts/allwinner/sun50i-a133-liontron-h-a133l.dts
> new file mode 100644
> index 0000000000000..682ed15d84854
> --- /dev/null
> +++ b/arch/arm64/boot/dts/allwinner/sun50i-a133-liontron-h-a133l.dts
> @@ -0,0 +1,211 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +/*
> + * Copyright (c) 2025 Arm Ltd.
> + */
> +
> +/dts-v1/;
> +
> +#include "sun50i-a100.dtsi"
> +#include "sun50i-a100-cpu-opp.dtsi"
> +
> +#include <dt-bindings/gpio/gpio.h>
> +#include <dt-bindings/leds/common.h>
> +
> +/{
> +       model = "Liontron H-A133L";
> +       compatible = "liontron,h-a133l", "allwinner,sun50i-a100";
> +
> +       aliases {
> +               serial0 = &uart0;
> +       };
> +
> +       chosen {
> +               stdout-path = "serial0:115200n8";
> +       };
> +
> +       leds {
> +               compatible = "gpio-leds";
> +
> +               led {
> +                       function = LED_FUNCTION_POWER;
> +                       color = <LED_COLOR_ID_BLUE>;
> +                       gpios = <&pio 7 16 GPIO_ACTIVE_LOW>; /* PH16 */
> +               };
> +       };
> +
> +       reg_vcc5v: vcc5v {
> +               /* board wide 5V supply from a 12V->5V regulator */
> +               compatible = "regulator-fixed";
> +               regulator-name = "vcc-5v";
> +               regulator-min-microvolt = <5000000>;
> +               regulator-max-microvolt = <5000000>;
> +               regulator-always-on;
> +       };
> +
> +       reg_usb1_vbus: regulator-usb1-vbus {
> +               compatible = "regulator-fixed";
> +               regulator-name = "usb1-vbus";
> +               regulator-min-microvolt = <5000000>;
> +               regulator-max-microvolt = <5000000>;
> +               vin-supply = <&reg_vcc5v>;
> +               enable-active-high;
> +               gpio = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */
> +       };
> +};
> +
> +&cpu0 {
> +       cpu-supply = <&reg_dcdc2>;
> +};
> +
> +&ehci0 {
> +       status = "okay";
> +};
> +
> +&ehci1 {
> +       status = "okay";
> +};
> +
> +&mmc0 {
> +       vmmc-supply = <&reg_dcdc1>;
> +       cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
> +       bus-width = <4>;
> +       status = "okay";
> +};
> +
> +&mmc2 {
> +       vmmc-supply = <&reg_dcdc1>;
> +       vqmmc-supply = <&reg_eldo1>;
> +       cap-mmc-hw-reset;
> +       non-removable;
> +       bus-width = <8>;
> +       mmc-ddr-1_8v;
> +       mmc-hs200-1_8v;
> +       status = "okay";
> +};
> +
> +&ohci0 {
> +       status = "okay";
> +};
> +
> +&ohci1 {
> +       status = "okay";
> +};
> +
> +&pio {
> +       vcc-pb-supply = <&reg_dcdc1>;
> +       vcc-pc-supply = <&reg_eldo1>;
> +       vcc-pf-supply = <&reg_dcdc1>;
> +       vcc-ph-supply = <&reg_dcdc1>;
> +};
> +
> +&r_i2c0 {
> +       status = "okay";
> +
> +       axp803: pmic@34 {
> +               compatible = "x-powers,axp803";
> +               reg = <0x34>;
> +               interrupt-parent = <&r_intc>;
> +               interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
> +       };
> +};
> +
> +#include "axp803.dtsi"
> +
> +&ac_power_supply {
> +       status = "okay";
> +};
> +
> +&reg_aldo1 {
> +       regulator-always-on;
> +       regulator-min-microvolt = <1800000>;
> +       regulator-max-microvolt = <1800000>;
> +       regulator-name = "vcc-codec-avcc";
> +};
> +
> +&reg_aldo2 {
> +       regulator-always-on;
> +       regulator-min-microvolt = <1800000>;
> +       regulator-max-microvolt = <1800000>;
> +       regulator-name = "vcc-dram-1";
> +};
> +
> +&reg_aldo3 {
> +       regulator-always-on;
> +       regulator-min-microvolt = <3300000>;
> +       regulator-max-microvolt = <3300000>;
> +       regulator-name = "vcc-usb-pl";
> +};
> +
> +&reg_dcdc1 {
> +       regulator-always-on;
> +       regulator-min-microvolt = <3300000>;
> +       regulator-max-microvolt = <3300000>;
> +       regulator-name = "vcc-io-usb-pd-emmc";
> +};
> +
> +&reg_dcdc2 {
> +       regulator-always-on;
> +       regulator-min-microvolt = <810000>;
> +       regulator-max-microvolt = <1200000>;
> +       regulator-name = "vdd-cpux";
> +};
> +
> +&reg_dcdc3 {
> +       regulator-always-on;
> +       regulator-min-microvolt = <900000>;
> +       regulator-max-microvolt = <900000>;
> +       regulator-name = "vdd-usb-cpus";
> +};
> +
> +&reg_dcdc4 {
> +       regulator-always-on;
> +       regulator-min-microvolt = <950000>;
> +       regulator-max-microvolt = <950000>;
> +       regulator-name = "vdd-sys";
> +};
> +
> +&reg_dcdc5 {
> +       regulator-always-on;
> +       regulator-min-microvolt = <1100000>;
> +       regulator-max-microvolt = <1100000>;
> +       regulator-name = "vcc-dram";
> +};
> +
> +/* DCDC6 unused */
> +/* DLDO3 unused */
> +/* DLDO4 unused */
> +
> +&reg_eldo1 {
> +       regulator-min-microvolt = <1800000>;
> +       regulator-max-microvolt = <1800000>;
> +       regulator-name = "vcc-pc-emmc";
> +};
> +
> +/* ELDO2 unused */
> +/* ELDO3 unused */
> +
> +&reg_fldo1 {
> +       regulator-always-on;
> +       regulator-min-microvolt = <900000>;
> +       regulator-max-microvolt = <900000>;
> +       regulator-name = "vdd-cpus-usb";
> +};
> +
> +/* reg_drivevbus unused */
> +/* dc1sw unused */
> +
> +&uart0 {
> +       pinctrl-names = "default";
> +       pinctrl-0 = <&uart0_pb_pins>;
> +       status = "okay";
> +};
> +
> +&usb_otg {
> +       dr_mode = "host";       /* USB A type receptacle, always powered */

                                                noticed a typo here.

> +       status = "okay";
> +};
> +
> +&usbphy {
> +       status = "okay";
> +       usb1_vbus-supply = <&reg_usb1_vbus>;

Just noticed that these two were out of order, so I fixed both of
them and re-pushed.

ChenYu

> +};
> --
> 2.46.3
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-05-14 14:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-05 16:47 [PATCH 0/3] arm64: dts: sunxi: Add Liontron H-A133L support Andre Przywara
2025-05-05 16:47 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add Liontron name Andre Przywara
2025-05-06 12:06   ` Rob Herring (Arm)
2025-05-05 16:47 ` [PATCH 2/3] dt-bindings: arm: sunxi: Add Liontron H-A133L board name Andre Przywara
2025-05-06 12:07   ` Rob Herring (Arm)
2025-05-05 16:47 ` [PATCH 3/3] arm64: dts: allwinner: a100: add Liontron H-A133L board support Andre Przywara
2025-05-14 14:14   ` Chen-Yu Tsai
2025-05-13 16:29 ` [PATCH 0/3] arm64: dts: sunxi: Add Liontron H-A133L support Chen-Yu Tsai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox