From: Andre Przywara <andre.przywara@arm.com>
To: rajanyadav0307@gmail.com, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Chen-Yu Tsai <wens@kernel.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>,
Maxime Ripard <mripard@kernel.org>
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev,
Paul Kocialkowski <paulk@sys-base.io>
Subject: Re: [PATCH 4/4] arm64: dts: allwinner: a133: Add KickPi K5C
Date: Tue, 1 Dec 2026 15:51:17 +0100 [thread overview]
Message-ID: <8c2bc84a-0201-4d91-99b9-cbb081c40c6b@arm.com> (raw)
In-Reply-To: <20261120-k5c-dt-v1-v1-4-d9681df67bc0@gmail.com>
Hi Rajan,
many thanks for taking the time to put this together and sending it out!
On 11/20/26 08:22, Rajan Yadav via B4 Relay wrote:
> From: Rajan Yadav <rajanyadav0307@gmail.com>
>
> The KickPi K5C is a single board computer with an Allwinner A133 SoC.
> Mainline Linux has no support for it yet; its factory firmware runs a
> vendor Linux 4.9 kernel. Add a device tree for PCB version V1.3, which
> has:
> - 2 GB DDR3 DRAM, 8-bit eMMC (HS200) and a micro SD card slot
> - an X-Powers AXP707 PMIC, which drives VDD-CPU from DCDC2 and DCDC3
> in dual phase mode
> - a HYM8563 RTC on I2C3 (PH12/PH13)
> - power input through a 12 V DC jack or the USB-C port (5 V)
> - two USB-A ports behind an on-board USB hub on USB1, whose power
> switch is enabled by PL8
> - a blue status LED on PL10
> - the debug UART on PB9/PB10
>
> The regulator assignment and the pins come from the board schematic
> (V1.3) and were checked against the vendor's device tree and on the
> board. The pin bank supplies are the same as on the Baijie HelperBoard
> A133. All tests were done with the board powered through the USB-C
> port.
>
> Mainline has no binding for the AXP707. Its chip ID register reads 0x51,
> which U-Boot's AXP803 code accepts, it works with the AXP803 driver, and
> the vendor device tree also describes it as an AXP803, so the PMIC node
> uses the AXP803 compatible.
>
> Not described yet:
> - Ethernet: the board has a Maxio MAE0621A PHY, which needs a driver
> that is not in mainline yet
> - the Wi-Fi/BT module (VS6621S40, Seekwave SWT6621S) on MMC1: there is
> no mainline driver for it, and in my tests its SDIO card did not come
> up after a cold boot, so the slot is left out until that is understood
> - USB data on the USB-C port (USB0): the vendor's firmware uses it as
> a peripheral port, but I could not test that yet
> - the RTC alarm interrupt on PB8: first tests pass, and it will follow
> in a separate patch after more testing
> - display, camera, audio, the IR receiver, the fan header and the
> battery connector
>
> The CPU uses the A100 OPP table, like the other A133 boards today.
>
> Claude Code (Anthropic) drafted this device tree and its message from
> the schematic, KickPi's documentation, the vendor device tree (as a
> reference for values only) and my board measurements; I reviewed it
> and tested it on a KickPi K5C.
>
> Suggested-by: Andre Przywara <andre.przywara@arm.com>
> Link: https://lore.kernel.org/all/d4d89cf9-884d-424b-927d-5b6692f50327@arm.com/
> Signed-off-by: Rajan Yadav <rajanyadav0307@gmail.com>
> ---
> arch/arm64/boot/dts/allwinner/Makefile | 1 +
> .../boot/dts/allwinner/sun50i-a133-kickpi-k5c.dts | 228 +++++++++++++++++++++
> 2 files changed, 229 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
> index da39f02252d..0176de509fb 100644
> --- a/arch/arm64/boot/dts/allwinner/Makefile
> +++ b/arch/arm64/boot/dts/allwinner/Makefile
> @@ -25,6 +25,7 @@ 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-helperboard.dtb
> +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a133-kickpi-k5c.dtb
> dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a133-liontron-h-a133l.dtb
> dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a133-teclast-p80.dtb
> dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-bananapi-m2-plus.dtb
> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a133-kickpi-k5c.dts b/arch/arm64/boot/dts/allwinner/sun50i-a133-kickpi-k5c.dts
> new file mode 100644
> index 00000000000..ce977e9edbd
> --- /dev/null
> +++ b/arch/arm64/boot/dts/allwinner/sun50i-a133-kickpi-k5c.dts
> @@ -0,0 +1,228 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +/*
> + * Copyright (c) 2026 Rajan Yadav <rajanyadav0307@gmail.com>
> + */
> +
> +/dts-v1/;
> +
> +#include "sun50i-a100.dtsi"
> +#include "sun50i-a100-cpu-opp.dtsi"
> +
> +#include <dt-bindings/gpio/gpio.h>
> +#include <dt-bindings/interrupt-controller/irq.h>
> +#include <dt-bindings/leds/common.h>
> +
> +/{
> + model = "KickPi K5C";
> + compatible = "kickpi,k5c", "allwinner,sun50i-a133";
> +
> + aliases {
> + serial0 = &uart0;
> + };
> +
> + chosen {
> + stdout-path = "serial0:115200n8";
> + };
> +
> + leds {
> + compatible = "gpio-leds";
> +
> + led {
> + function = LED_FUNCTION_STATUS;
> + color = <LED_COLOR_ID_BLUE>;
> + gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */
> + };
> + };
> +
> + reg_usb1_vbus: regulator-usb1-vbus {
> + /* USB-A port power switch, also powers the on-board USB hub */
> + compatible = "regulator-fixed";
> + enable-active-high;
> + gpio = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + regulator-name = "usb1-vbus";
> + vin-supply = <®_vcc5v>;
> + };
> +
> + reg_vcc5v: regulator-vcc5v {
> + /* 5V rail, powered from the USB-C port or the 12V DC jack */
> + compatible = "regulator-fixed";
> + regulator-always-on;
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + regulator-name = "vcc-5v";
> + };
> +};
> +
> +&cpu0 {
> + cpu-supply = <®_dcdc2>;
> +};
> +
> +&ehci1 {
> + status = "okay";
> +};
> +
> +&i2c3 {
> + pinctrl-0 = <&i2c3_ph_pins>;
> + pinctrl-names = "default";
> +
No empty line here, please.
> + status = "okay";
> +
> + rtc@51 {
> + compatible = "haoyu,hym8563";
> + reg = <0x51>;
> + #clock-cells = <0>;
> + };
> +};
> +
> +&mmc0 {
> + bus-width = <4>;
> + cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
> + disable-wp;
> + vmmc-supply = <®_dcdc1>;
> +
same here, drop the empty line
> + status = "okay";
> +};
> +
> +&mmc2 {
> + bus-width = <8>;
> + cap-mmc-hw-reset;
> + mmc-ddr-1_8v;
> + mmc-hs200-1_8v;
> + non-removable;
> + vmmc-supply = <®_dcdc1>;
> + vqmmc-supply = <®_eldo1>;
> +
... and here
> + status = "okay";
> +};
> +
> +&ohci1 {
> + status = "okay";
> +};
> +
> +&pio {
> + vcc-pb-supply = <®_dcdc1>;
> + vcc-pc-supply = <®_eldo1>;
> + vcc-pd-supply = <®_dcdc1>;
> + vcc-pe-supply = <®_dldo2>;
> + vcc-pf-supply = <®_dcdc1>;
> + vcc-pg-supply = <®_dldo1>;
> + vcc-ph-supply = <®_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"
> +
> +®_aldo1 {
> + /* AVCC, PLL and DRAM 1.8V */
> + regulator-always-on;
> + regulator-min-microvolt = <1800000>;
> + regulator-max-microvolt = <1800000>;
> + regulator-name = "vcc-pll-avcc";
> +};
> +
> +/* ALDO2 is for LPDDR and not used with the DDR3 on this board */
> +
> +®_aldo3 {
> + /*
> + * Supply of the PL pin bank. It is not given to r_pio as
> + * vcc-pl-supply: the PMIC is reached through PL0/PL1, so r_pio and
> + * the PMIC would each wait for the other and the boot stops.
> + */
Drop the long comment, if you want, you can use a comment in the r_pio
to show the supply line that should be there.
> + regulator-always-on;
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + regulator-name = "vcc-pl";
> +};
> +
> +®_dcdc1 {
> + /* SoC I/O, USB analog, eMMC and SD card */
> + regulator-always-on;
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + regulator-name = "vcc-3v3";
> +};
> +
> +®_dcdc2 {
> + regulator-always-on;
> + regulator-min-microvolt = <810000>;
> + regulator-max-microvolt = <1200000>;
> + regulator-name = "vdd-cpux";
> +};
> +
> +/* DCDC3 runs in dual phase with DCDC2 for VDD-CPUX and has no node */
> +
> +®_dcdc4 {
> + /* VDD-SYS, also used as VDD-USB */
> + regulator-always-on;
> + regulator-min-microvolt = <950000>;
> + regulator-max-microvolt = <950000>;
> + regulator-name = "vdd-sys";
> +};
> +
> +®_dcdc5 {
> + /* DDR3 */
> + regulator-always-on;
> + regulator-min-microvolt = <1500000>;
> + regulator-max-microvolt = <1500000>;
> + regulator-name = "vcc-dram";
> +};
> +
> +/* DCDC6 is not connected */
> +®_dcdc6 {
> + status = "disabled";
> +};
> +
> +®_dldo1 {
> + regulator-min-microvolt = <1800000>;
> + regulator-max-microvolt = <1800000>;
> + regulator-name = "vcc-pg";
> +};
> +
> +®_dldo2 {
> + regulator-min-microvolt = <1800000>;
> + regulator-max-microvolt = <1800000>;
> + regulator-name = "vcc-pe";
> +};
> +
> +®_eldo1 {
> + regulator-min-microvolt = <1800000>;
> + regulator-max-microvolt = <1800000>;
> + regulator-name = "vcc-pc";
> +};
> +
> +®_fldo1 {
> + /* VDD-CPUS */
> + regulator-always-on;
> + regulator-min-microvolt = <900000>;
> + regulator-max-microvolt = <900000>;
> + regulator-name = "vdd-cpus";
> +};
> +
> +&uart0 {
> + pinctrl-0 = <&uart0_pb_pins>;
> + pinctrl-names = "default";
> +
> + status = "okay";
> +};
> +
> +&usb_power_supply {
> + status = "okay";
> +};
> +
> +&usbphy {
> + usb1_vbus-supply = <®_usb1_vbus>;
> +
> + status = "okay";
> +};
>
prev parent reply other threads:[~2026-12-01 14:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 7:22 [PATCH 0/4] arm64: dts: allwinner: " Rajan Yadav via B4 Relay
2026-11-20 7:22 ` [PATCH 1/4] dt-bindings: vendor-prefixes: Add Shenzhen Kickpi Digital Technology Rajan Yadav via B4 Relay
2026-11-25 9:39 ` Krzysztof Kozlowski
2026-11-20 7:22 ` [PATCH 2/4] dt-bindings: arm: sunxi: Add KickPi K5C Rajan Yadav via B4 Relay
2026-11-25 9:39 ` Krzysztof Kozlowski
2026-11-20 7:22 ` [PATCH 3/4] arm64: dts: allwinner: a100: Add I2C3 pins on PH12/PH13 Rajan Yadav via B4 Relay
2026-11-20 16:55 ` Andre Przywara
2026-11-20 7:22 ` [PATCH 4/4] arm64: dts: allwinner: a133: Add KickPi K5C Rajan Yadav via B4 Relay
2026-11-26 1:05 ` Andre Przywara
2026-11-29 4:03 ` Rajan Yadav
2026-12-01 14:51 ` Andre Przywara [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8c2bc84a-0201-4d91-99b9-cbb081c40c6b@arm.com \
--to=andre.przywara@arm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jernej.skrabec@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=mripard@kernel.org \
--cc=paulk@sys-base.io \
--cc=rajanyadav0307@gmail.com \
--cc=robh@kernel.org \
--cc=samuel@sholland.org \
--cc=wens@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®