[PATCH 3/3] arm64: dts: allwinner: a100: add Liontron H-A133L board support

Chen-Yu Tsai wens at csie.org
Wed May 14 07:14:42 PDT 2025


On Tue, May 6, 2025 at 12:48 AM Andre Przywara <andre.przywara at 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 at 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 at 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
>



More information about the linux-arm-kernel mailing list