From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795159336; b=j+IXFp2bBP+X0qcq8c1+hAH4iGeJ5RfWa8kHILSgmzLD9uNp9aNhrL4sSJlsKK5trQzN xtso/hyrpnouR7dsEIKwpximQ7HDiAfZpXwm6XkEL8Zfx0B1kp/G6SpTPu6xVyfKyq6vK QtLDoxzxRS+tOZOB6Gba7Mvw+kzEiEy8hG5Jnq+HCFtSY3/kDjuVuW76w/MEPe7tTN2lK U5+ECrCQ1+m7y1LfBFxLwC4fpRKt8byN1xi4jnzcuFjWYQfvgjLzJmsDIiBlPlr40sCBb w8m9IDQTB6UbVirep6W7t0T2Fvn6sEKgx45os0AAW63nCwxaeYX5Q+x8j+i4JmhIaFA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795159336; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=No7KAsYTECpnGhFXlBM/KGWZ+Af2mI5fNN1XKp9NC0g=; b=pj8BV9V5xaTqfEQHEIXw9ykOBxB2YE2uiQxdP8KGK3cGKWLxiwIWWu1nwsL88ci4j6ay tmaHAQVwNY1+HwkJCtO8NrJI5zJAF6MMrZCKp7BGFOBZAr0Ny+1Kya7R2DBITnPH9QVFy rd5TicaeminfHapIUJI8trDBJAM0oUSMtuE1sbE3LMH6cJRZQ9aukWUJqGyqser5r7uLb 6V7ZmfuUjh8N9W7KSzz11TUbJKD1i5CwgNFIhLHP1YPSO+a8jwLvUz7g5Zr5ylDFTLyrG spI0Wd4yVFN9bwQ+WxYwTqtODdh0IMrzAU8ol7IUdubebBalncRwJ0GKRTZf1eyPc1w== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=NOXADCBw; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C467860A2613; Fri, 20 Nov 2026 07:22:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=NOXADCBw Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795159336; b=iHK32t5ld9WN5KbRqZjYJz5HGKKrxZyRKTHbRoDkQX0iayrh3tyY6LC7+gy9Kz77bwYs 6zL0JrwSdAfE1XYlXdjWRTciKZYPCzPp44GjudlDNrQGynGaUHwF3ZGjUJvqQB5iGFHir hBCXLO8hTE8362hnVWSbIkpXZfyTzShv9NZ9EYaRqZBMfn356wKAa5m1h1thX6Nc+TxSg RTsGTr0hEVvu+vVY8/7OMkujNdusvCPPRClnt4mCiRwXFlyl4T56Ld/nwEO3v4gUjcELD kXNFULNUieLrSDRZkWBXfmkh++RoHy8vxPC91lCRVIr3YtrkZmLIKICJYLrySNfFsIA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795159336; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=No7KAsYTECpnGhFXlBM/KGWZ+Af2mI5fNN1XKp9NC0g=; b=snSERYcANGfB5BSczf8lvqX0fMB/HJLCeIo3Qij5rEtYrUE0qKvkz8RcBjbD5n8reRl2 DKFq4ugQgwgr9wPVMvfV2prAkwFQqWM68+fg3+MtobvidfzSbm2bwOqL9FekO+Axt43Wj x4JbKbNIsYKM/Tel/E0jzA0eIDiF5qaw0fVBJjF5xYAGwn9QeTLLvLi1gdglj6h58hmxg giGRHy6j9wKBAY5jM+jUus1ycHlYrNCPjsW/6fgu9LT8YVQeauh2DO7AHcMeRUv/HC75W gl493lD9EnGT1HXHdlYLmGHDgjOoIdyFoyFaD0QKboj7w0BHQzbiWMOWhatcjLSYseA== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 84C1E1F000D1; Fri, 20 Nov 2026 07:22:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795159336; bh=No7KAsYTECpnGhFXlBM/KGWZ+Af2mI5fNN1XKp9NC0g=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=NOXADCBwrr54MIP2Y5dqYpg0HYq8BJLY5emd7JBCSeCWJ1ymcXGna2vIGl5h/BsLV lZ2Tn92Bas7ZfNrTvfiUtG6SMK5wGi4/TmRUCHuhAWYB6crWYpOz0yYP56SHouhPbw bXkQtn8y//6aSEolbL6x6ikk0MGxI9OZoNOnzHwxTCpdtZPXmB9R+tZCGhlVVvepiY Or6eTdz7NWtU08sQo6iYLvYqrZ5GU4lU7NFiSlnU011sWngCm/aEyW2XrPxo+6kLg4 tLdf4euoaeTg3gvp3MednwcEwHoHF9jjGBW4TvnDUqV1b0xTPU7Kc2AWHvKOUN31oG pJjSXeXddtbWg== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 10F1149764; Fri, 20 Nov 2026 07:22:14 +0000 (UTC) From: Rajan Yadav via B4 Relay Date: Fri, 20 Nov 2026 01:22:16 -0600 Subject: [PATCH 4/4] arm64: dts: allwinner: a133: Add KickPi K5C X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261120-k5c-dt-v1-v1-4-d9681df67bc0@gmail.com> References: <20261120-k5c-dt-v1-v1-0-d9681df67bc0@gmail.com> In-Reply-To: <20261120-k5c-dt-v1-v1-0-d9681df67bc0@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Maxime Ripard Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Andre Przywara , Paul Kocialkowski , Rajan Yadav X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795159332; l=8414; i=rajanyadav0307@gmail.com; s=20261103; h=from:subject:message-id; bh=cOXdIbM/pxnMp4m5in4E4b9UGDrGObP7s7gq1j9qWLU=; b=6ZlAFSKWhIIcH7bpVonXOW+g8iBc9q5PAmvbUt9xL5XN1on7IvKciJ3/UWFZaVxInuruQvOnP L5ZAbW7TBb5B1+WZ8CLvrth0ceqVsR1/AhCVkS8KJVhgYJ3ed1UHAF7 X-Developer-Key: i=rajanyadav0307@gmail.com; a=ed25519; pk=4ZPeiP5qrv2b44q/Obxi2koUS70Q6npbttJnpUoTlgg= X-Endpoint-Received: by B4 Relay for rajanyadav0307@gmail.com/20261103 with auth_id=1391 X-Original-From: Rajan Yadav Reply-To: rajanyadav0307@gmail.com Content-Transfer-Encoding: 7bit From: Rajan Yadav 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 Link: https://lore.kernel.org/all/d4d89cf9-884d-424b-927d-5b6692f50327@arm.com/ Signed-off-by: Rajan Yadav --- 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 + */ + +/dts-v1/; + +#include "sun50i-a100.dtsi" +#include "sun50i-a100-cpu-opp.dtsi" + +#include +#include +#include + +/{ + 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 = ; + 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"; + + 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>; + + 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>; + + 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. + */ + 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"; +}; -- 2.34.1