From nobody Mon Feb 9 10:26:48 2026 Received: from mail.netcube.li (mail.netcube.li [173.249.15.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0554B55887; Mon, 27 Jan 2025 20:21:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=173.249.15.149 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738009305; cv=none; b=l9SWm+LyqnSM0ndByuUgzpmGT5wk/R0qHOd7qF5Rp7ocweWyhoCMorHDIHvhK5s/+X76lYiVywtWq96V0R6Ebp/tq8xewN42yDe6hpyTC6p0Y43iQk3eCAOx6nGFXm3SWdQIDvHsOLQi20QyHCiyZ86t7PiAjZe6fCRgkvE2A94= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738009305; c=relaxed/simple; bh=bUJYrPnrWwRcPuvxgBB18esttNvRuShGWNkJny3Be7U=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=kOgaQc7w76GeRjU1J4w1zI7UvpcoMOt1eScCbZjkddvZAqxMheUdAlmGrQmDy5bvm1G8X6xAzcYRXMhdZVipkXq4LEeHdWIAbHyzSLDx+th5/XiK05cpUqYGcJRA1/IYfhYWwWhPtKpmMihvCOBeJItpP98wy7H4JOLENA1zg1E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=netcube.li; spf=pass smtp.mailfrom=netcube.li; dkim=pass (1024-bit key) header.d=netcube.li header.i=@netcube.li header.b=rkljnW/8; arc=none smtp.client-ip=173.249.15.149 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=netcube.li Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netcube.li Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=netcube.li header.i=@netcube.li header.b="rkljnW/8" dkim-signature: v=1; a=rsa-sha256; d=netcube.li; s=s1; c=relaxed/relaxed; q=dns/txt; h=From:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Transfer-Encoding:In-Reply-To:References; bh=UvMQd0CMGgZ6M5Dh0aWqUTlHmxWpXSJE9hm+SSJoE88=; b=rkljnW/8rC9qdYt6bel+AqwbhfrVyg6wRmz4EkFZy+6VeeGO+6ua55PQHce2HmlPuEZkCtLB9ga356zUZXsZ6B8aGtM+F1DVMLnaUndLwXk5hXvvlrvSWM7950XUyNxKVN47zpZoZIJH7TW9G5Rn6uQb+B2frEGhdghk0ZNAVgo= Received: from lukas-hpz440workstation.lan.sk100508.local (cm70-231.liwest.at [212.241.70.231]) by mail.netcube.li with ESMTPSA (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256) ; Mon, 27 Jan 2025 21:21:33 +0100 From: Lukas Schmid To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Maxime Ripard Cc: Lukas Schmid , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v7 1/4] dt-bindings: vendor-prefixes: Add NetCube Systems Austria name Date: Mon, 27 Jan 2025 21:21:22 +0100 Message-Id: <20250127202127.971172-2-lukas.schmid@netcube.li> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250127202127.971172-1-lukas.schmid@netcube.li> References: <20250127202127.971172-1-lukas.schmid@netcube.li> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" NetCube Systems Austria builds Embedded Systems for use in IoT, IIoT, or Smart Home scenarios. Website is still WIP, but the Links on it are active: https://netcubesystems.at/ Signed-off-by: Lukas Schmid Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Docum= entation/devicetree/bindings/vendor-prefixes.yaml index 5079ca6ce1d1..499ab972f9d2 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1031,6 +1031,8 @@ patternProperties: description: Neofidelity Inc. "^neonode,.*": description: Neonode Inc. + "^netcube,.*": + description: NetCube Systems Austria "^netgear,.*": description: NETGEAR "^netlogic,.*": --=20 2.39.5 From nobody Mon Feb 9 10:26:48 2026 Received: from mail.netcube.li (mail.netcube.li [173.249.15.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30267185B76; Mon, 27 Jan 2025 20:21:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=173.249.15.149 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738009312; cv=none; b=H3rzr7jGgdaP4f5V8rfPuuQPR4wzVUICoP0VoA2PjX9Bszo+Fs1xYZDEAOyKIGK6Kx+63/NdSec5xgrnTHuQc6Ki0uSNQ5rYhSJ8sYKj+TZcsW5KPjo2ikJA6aG2ICd184QQqaTnhNelpW3swdH3EISWx5J2pci7O8kH0nGBuGE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738009312; c=relaxed/simple; bh=uhfwaTttjzMwSGv2tkkIxLu37hLhBAp0Cbt8Qk5ZfFk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=SmQ532QgPdUNNR2RVJPmTDvn2/Y9qnggGN/BZ3ThOuArPt8BbbmRe2ZrGGhJaPUvz30j8h00FxjK5WtrTAvlJj/SB6tvkxdMe1Wz9spB81LF1rN3bbFDLyeaPK2O55YOtbSntGVm9ARRnfYvZ+7rboUyIr32xnf8WBZz1/5q9YI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=netcube.li; spf=pass smtp.mailfrom=netcube.li; dkim=pass (1024-bit key) header.d=netcube.li header.i=@netcube.li header.b=U8e3LP41; arc=none smtp.client-ip=173.249.15.149 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=netcube.li Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netcube.li Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=netcube.li header.i=@netcube.li header.b="U8e3LP41" dkim-signature: v=1; a=rsa-sha256; d=netcube.li; s=s1; c=relaxed/relaxed; q=dns/txt; h=From:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Transfer-Encoding:In-Reply-To:References; bh=IyZLcVj8nngA5b/in7zM2rxDQYgjhrOFW7fpCfzVXLA=; b=U8e3LP41V5os38T9kFSayj0bULirueu5a5DJWXX0jnqfwPgvMJ4KtZlfEX2eYx7cldgIxElEc9pO46ymn/NieijZgmZpO/xRlYm8st88kANnBSpxQsDi8W1xdf25Hr6BBTEdzfqZYFHabzW90LKXCpXZg196iIIx07ro2yETw4U= Received: from lukas-hpz440workstation.lan.sk100508.local (cm70-231.liwest.at [212.241.70.231]) by mail.netcube.li with ESMTPSA (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256) ; Mon, 27 Jan 2025 21:21:35 +0100 From: Lukas Schmid To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Maxime Ripard Cc: Lukas Schmid , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v7 2/4] dt-bindings: arm: sunxi: Add NetCube Systems Kumquat board Date: Mon, 27 Jan 2025 21:21:23 +0100 Message-Id: <20250127202127.971172-3-lukas.schmid@netcube.li> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250127202127.971172-1-lukas.schmid@netcube.li> References: <20250127202127.971172-1-lukas.schmid@netcube.li> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The NetCube Systems Kumquat is an Embedded Controller based on the Allwinner V3s SoC. It is intended for Smart Home or Industrial automation without the need for a traditional PLC Signed-off-by: Lukas Schmid Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/sunxi.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentati= on/devicetree/bindings/arm/sunxi.yaml index 046536d02706..f536cdd2c1a6 100644 --- a/Documentation/devicetree/bindings/arm/sunxi.yaml +++ b/Documentation/devicetree/bindings/arm/sunxi.yaml @@ -589,6 +589,11 @@ properties: - const: emlid,neutis-n5h3 - const: allwinner,sun8i-h3 =20 + - description: NetCube Systems Kumquat + items: + - const: netcube,kumquat + - const: allwinner,sun8i-v3s + - description: NextThing Co. CHIP items: - const: nextthing,chip --=20 2.39.5 From nobody Mon Feb 9 10:26:48 2026 Received: from mail.netcube.li (mail.netcube.li [173.249.15.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47D41192B95; Mon, 27 Jan 2025 20:22:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=173.249.15.149 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738009330; cv=none; b=YbJY6zoDwoZQDGzuBLcebeJJunGAUXnH4GhVC0KukSN2NHn0PYAo2VKYTdPCLTjlSnxECgmnjV/ctRZKUO4sdi/wtOMwFj3iOaEuEnpDimT2RZppPkv67M8h7n1TasSXRCrZc/d0+Dmhx9ANxcLG2L6mCFF+UZ66G1uJSSrBcXY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738009330; c=relaxed/simple; bh=z5DJ+7tRWnP86mThktUdcx4Y02EVex9RDatuvcIZmZ8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hmNZCA93xIOvo5t7msyeJGHf8YGuxh/huHfcyQSz2ajLSE9FlI2Hcr0XegfDedsL5oR1zPyXQmu2ZVBQf9PabFum756pQZlpVn7LYet6P6HlmDojKgkw2W5GH7wPzHSqzE0u14PpOzgK5zAAy0SMYpSb64sCtIBZqtfHcxI97Lo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=netcube.li; spf=pass smtp.mailfrom=netcube.li; dkim=pass (1024-bit key) header.d=netcube.li header.i=@netcube.li header.b=sCXa1/5H; arc=none smtp.client-ip=173.249.15.149 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=netcube.li Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netcube.li Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=netcube.li header.i=@netcube.li header.b="sCXa1/5H" dkim-signature: v=1; a=rsa-sha256; d=netcube.li; s=s1; c=relaxed/relaxed; q=dns/txt; h=From:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Transfer-Encoding:In-Reply-To:References; bh=7LpuIfgFkcg7deKdxaYs8XgeKDBHsfgB22qLaTM8G20=; b=sCXa1/5HNH0+VodExpV+nDF3we8MCJkjLPQjDNIn6qUdVrtiuhU2S/YIaR3FWpoRBUgM9aKKDNhTrEE89mObEEr+TjXAjL60xaOqomXiDB4TQ7VtE/uvHVAx/BOHeaAv1VPIiB8jD2cQ5QlrM1uVrC+OF+FlPx+EUl8B5z1RDyY= Received: from lukas-hpz440workstation.lan.sk100508.local (cm70-231.liwest.at [212.241.70.231]) by mail.netcube.li with ESMTPSA (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256) ; Mon, 27 Jan 2025 21:21:38 +0100 From: Lukas Schmid To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Maxime Ripard Cc: Lukas Schmid , Andre Przywara , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v7 3/4] ARM: dts: sunxi: add uart1_pe pinctrl for sun8i-v3s Date: Mon, 27 Jan 2025 21:21:24 +0100 Message-Id: <20250127202127.971172-4-lukas.schmid@netcube.li> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250127202127.971172-1-lukas.schmid@netcube.li> References: <20250127202127.971172-1-lukas.schmid@netcube.li> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Added the uart1_pe_pins pinctrl for use by the NetCube Systems Kumquat board Signed-off-by: Lukas Schmid Reviewed-by: Andre Przywara --- arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi b/arch/arm/boot/dts= /allwinner/sun8i-v3s.dtsi index 9e13c2aa8911..f909b1d4dbca 100644 --- a/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi +++ b/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi @@ -416,6 +416,12 @@ uart0_pb_pins: uart0-pb-pins { function =3D "uart0"; }; =20 + /omit-if-no-ref/ + uart1_pe_pins: uart1-pe-pins { + pins =3D "PE21", "PE22"; + function =3D "uart1"; + }; + uart2_pins: uart2-pins { pins =3D "PB0", "PB1"; function =3D "uart2"; --=20 2.39.5 From nobody Mon Feb 9 10:26:48 2026 Received: from mail.netcube.li (mail.netcube.li [173.249.15.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8A6D1953BD; Mon, 27 Jan 2025 20:22:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=173.249.15.149 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738009335; cv=none; b=IVGep1dMn+o+WBvItuXL9enn2iJkbHeecYbSBxTMbB/HLscaZleap8IRJJx4Af/ECiN7fMAQiZQGr4otLRoywUe4yjXNp2rONYhpo//zFBNdwVrtpHqkeh8tcOYSkCdgKvO++eljgJDInebtATJzJ8tCDROXpwRt54zYlHJ7oto= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738009335; c=relaxed/simple; bh=u3aZn0KHf2AF5UztR4SnXDCQgITElEbs9Imq2Y++paQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=uHTKbYJ7BF6iB7yweNLv6v9toq0zi8PUXw0JoCcm2dri4vVFFhBvZfw22U7o+/zStst+LHagWq1TE8JkhXmV+pLVo/vdcyKFnOiFmu9LRNiwOlO8YC5qvs5VvzCtKT150tTIUPBYtMaZS0ktXlNioe45QV3ngLPpxzAGgrXPfCE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=netcube.li; spf=pass smtp.mailfrom=netcube.li; dkim=pass (1024-bit key) header.d=netcube.li header.i=@netcube.li header.b=D+z1M8Ia; arc=none smtp.client-ip=173.249.15.149 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=netcube.li Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netcube.li Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=netcube.li header.i=@netcube.li header.b="D+z1M8Ia" dkim-signature: v=1; a=rsa-sha256; d=netcube.li; s=s1; c=relaxed/relaxed; q=dns/txt; h=From:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Transfer-Encoding:In-Reply-To:References; bh=aY5JeHYJ5UgvGFFLVKuLxjQPnG18D87SgziU66MY8TA=; b=D+z1M8Ian63MtZgmKtfkYiXcQvetpC/YxgTGrorIXgxjCGKcdgPSY8iLlA8qGTsJmjUmx6mabbczuWgqgjSoAwaQqItPZVyDY9GS9vVHoREqjqein3Ct9AhNmkSZ9Yazz6pGgNm46HShSbYzQGhur3G9kwj3xvZTR3OvltKGHiA= Received: from lukas-hpz440workstation.lan.sk100508.local (cm70-231.liwest.at [212.241.70.231]) by mail.netcube.li with ESMTPSA (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256) ; Mon, 27 Jan 2025 21:21:41 +0100 From: Lukas Schmid To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Maxime Ripard Cc: Lukas Schmid , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v7 4/4] ARM: dts: sunxi: add support for NetCube Systems Kumquat Date: Mon, 27 Jan 2025 21:21:25 +0100 Message-Id: <20250127202127.971172-5-lukas.schmid@netcube.li> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250127202127.971172-1-lukas.schmid@netcube.li> References: <20250127202127.971172-1-lukas.schmid@netcube.li> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" NetCube Systems Kumquat is a board based on the Allwinner V3s SoC, including: - 64MB DDR2 included in SoC - 10/100 Mbps Ethernet - USB-C DRD - Audio Codec - Isolated CAN-FD - ESP32 over SDIO - 8MB SPI-NOR Flash for bootloader - I2C EEPROM for MAC addresses - SDIO Connector for eMMC or SD-Card - 8x 12/24V IOs, 4x normally open relays - DS3232 RTC - QWIIC connectors for external I2C devices Signed-off-by: Lukas Schmid --- arch/arm/boot/dts/allwinner/Makefile | 2 + .../allwinner/sun8i-v3s-netcube-kumquat.dts | 278 ++++++++++++++++++ 2 files changed, 280 insertions(+) create mode 100644 arch/arm/boot/dts/allwinner/sun8i-v3s-netcube-kumquat.d= ts diff --git a/arch/arm/boot/dts/allwinner/Makefile b/arch/arm/boot/dts/allwi= nner/Makefile index 48666f73e638..d799ad153b37 100644 --- a/arch/arm/boot/dts/allwinner/Makefile +++ b/arch/arm/boot/dts/allwinner/Makefile @@ -199,6 +199,7 @@ DTC_FLAGS_sun8i-h3-nanopi-r1 :=3D -@ DTC_FLAGS_sun8i-h3-orangepi-pc :=3D -@ DTC_FLAGS_sun8i-h3-bananapi-m2-plus-v1.2 :=3D -@ DTC_FLAGS_sun8i-h3-orangepi-pc-plus :=3D -@ +DTC_FLAGS_sun8i-v3s-netcube-kumquat :=3D -@ dtb-$(CONFIG_MACH_SUN8I) +=3D \ sun8i-a23-evb.dtb \ sun8i-a23-gt90h-v4.dtb \ @@ -261,6 +262,7 @@ dtb-$(CONFIG_MACH_SUN8I) +=3D \ sun8i-v3s-anbernic-rg-nano.dtb \ sun8i-v3s-licheepi-zero.dtb \ sun8i-v3s-licheepi-zero-dock.dtb \ + sun8i-v3s-netcube-kumquat.dtb \ sun8i-v40-bananapi-m2-berry.dtb dtb-$(CONFIG_MACH_SUN9I) +=3D \ sun9i-a80-optimus.dtb \ diff --git a/arch/arm/boot/dts/allwinner/sun8i-v3s-netcube-kumquat.dts b/ar= ch/arm/boot/dts/allwinner/sun8i-v3s-netcube-kumquat.dts new file mode 100644 index 000000000000..e4e98ddfbd96 --- /dev/null +++ b/arch/arm/boot/dts/allwinner/sun8i-v3s-netcube-kumquat.dts @@ -0,0 +1,278 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2025 Lukas Schmid + */ + +/dts-v1/; +#include "sun8i-v3s.dtsi" + +#include +#include +#include + +/{ + model =3D "NetCube Systems Kumquat"; + compatible =3D "netcube,kumquat", "allwinner,sun8i-v3s"; + + aliases { + serial0 =3D &uart0; + ethernet0 =3D &emac; + rtc0 =3D &ds3232; + rtc1 =3D &rtc; /* not battery backed */ + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; + + /* 40 MHz Crystal Oscillator on PCB */ + clk_can0: clock-can0 { + compatible =3D "fixed-clock"; + #clock-cells =3D <0>; + clock-frequency =3D <40000000>; + }; + + gpio-keys { + compatible =3D "gpio-keys"; + autorepeat; + + key-user { + label =3D "GPIO Key User"; + linux,code =3D ; + gpios =3D <&pio 1 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PB2 */ + }; + }; + + leds { + compatible =3D "gpio-leds"; + + led-heartbeat { + gpios =3D <&pio 4 4 GPIO_ACTIVE_HIGH>; /* PE4 */ + linux,default-trigger =3D "heartbeat"; + color =3D ; + function =3D LED_FUNCTION_HEARTBEAT; + }; + + led-mmc0-act { + gpios =3D <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */ + linux,default-trigger =3D "mmc0"; + color =3D ; + function =3D LED_FUNCTION_DISK; + }; + }; + + /* EA3036C Switching 3 Channel Regulator - Channel 2 */ + reg_vcc3v3: regulator-3v3 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc3v3"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + vin-supply =3D <®_vcc5v0>; + }; + + /* K7805-1000R3 Switching Regulator supplied from main 12/24V terminal bl= ock */ + reg_vcc5v0: regulator-5v0 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc5v0"; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + }; +}; + +&codec { + allwinner,audio-routing =3D + "Headphone", "HP", + "Headphone", "HPCOM", + "MIC1", "Mic", + "Mic", "HBIAS"; + status =3D "okay"; +}; + +&ehci { + status =3D "okay"; +}; + +&emac { + allwinner,leds-active-low; + nvmem-cells =3D <ð0_macaddress>; + nvmem-cell-names =3D "mac-address"; + status =3D "okay"; +}; + +&i2c0 { + status =3D "okay"; + + ds3232: rtc@68 { + compatible =3D "dallas,ds3232"; + reg =3D <0x68>; + }; + + eeprom0: eeprom@50 { + compatible =3D "atmel,24c02"; /* actually it's a 24AA02E48 */ + reg =3D <0x50>; + pagesize =3D <16>; + read-only; + vcc-supply =3D <®_vcc3v3>; + + #address-cells =3D <1>; + #size-cells =3D <1>; + + eth0_macaddress: macaddress@fa { + reg =3D <0xfa 0x06>; + }; + }; + + tusb320: typec@60 { + compatible =3D "ti,tusb320"; + reg =3D <0x60>; + interrupt-parent =3D <&pio>; + interrupts =3D <1 5 IRQ_TYPE_EDGE_FALLING>; + }; +}; + +/* Exposed as the Flash/SD Header on the board */ +&mmc0 { + vmmc-supply =3D <®_vcc3v3>; + bus-width =3D <4>; + broken-cd; + status =3D "okay"; +}; + +/* Connected to the on-board ESP32 */ +&mmc1 { + vmmc-supply =3D <®_vcc3v3>; + bus-width =3D <4>; + broken-cd; + status =3D "okay"; +}; + +&ohci { + status =3D "okay"; +}; + +/* Disable external 32k osc as it is broken on current revision */ +&osc32k { + status =3D "disabled"; +}; + +&pio { + vcc-pb-supply =3D <®_vcc3v3>; + vcc-pc-supply =3D <®_vcc3v3>; + vcc-pe-supply =3D <®_vcc3v3>; + vcc-pf-supply =3D <®_vcc3v3>; + vcc-pg-supply =3D <®_vcc3v3>; + + gpio-line-names =3D "", "", "", "", // PA + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "CAN_nCS", "CAN_nINT", "USER_SW", "PB3", // PB + "USB_ID", "USBC_nINT", "I2C0_SCL", "I2C0_SDA", + "UART0_TX", "UART0_RX", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "SPI_MISO", "SPI_SCK", "FLASH_nCS", "SPI_MOSI", // PC + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", // PD + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "Q12", "Q11", "Q10", "Q9", // PE + "LED_SYS0", "I1", "Q1", "Q2", + "I2", "I3", "Q3", "Q4", + "I4", "I5", "Q5", "Q6", + "I6", "I7", "Q7", "Q8", + "I8", "UART1_TXD", "UART1_RXD", "ESP_nRST", + "ESP_nBOOT", "", "", "", + "", "", "", "", + "SD_D1", "SD_D0", "SD_CLK", "SD_CMD", // PF + "SD_D3", "SD_D2", "LED_SYS1", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "ESP_CLK", "ESP_CMD", "ESP_D0", "ESP_D1", // PG + "ESP_D2", "ESP_D3", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", ""; +}; + +/* Disable external 32k osc as it is broken on current revision */ +&rtc { + /delete-property/ clocks; +}; + +/* Exposed as a USB-C connector with USB-Serial converter */ +&uart0 { + pinctrl-0 =3D <&uart0_pb_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; + +/* Connected to the Bootloader/Console of the ESP32 */ +&uart1 { + pinctrl-0 =3D <&uart1_pe_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; + +&usb_otg { + extcon =3D <&tusb320 0>; + dr_mode =3D "otg"; + status =3D "okay"; +}; + +&usbphy { + usb0_id_det-gpios =3D <&pio 1 4 GPIO_ACTIVE_HIGH>; /* PB4 */ + status =3D "okay"; +}; + +&spi0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + cs-gpios =3D <0>, <&pio 1 0 GPIO_ACTIVE_LOW>; /* PB0 */ + status =3D "okay"; + + flash@0 { + compatible =3D "jedec,spi-nor"; + reg =3D <0>; + #address-cells =3D <1>; + #size-cells =3D <1>; + label =3D "firmware"; + spi-max-frequency =3D <40000000>; + }; + + can@1 { + compatible =3D "microchip,mcp2518fd"; + reg =3D <1>; + clocks =3D <&clk_can0>; + interrupt-parent =3D <&pio>; + interrupts =3D <1 1 IRQ_TYPE_LEVEL_LOW>; /* PB1 */ + spi-max-frequency =3D <20000000>; + vdd-supply =3D <®_vcc3v3>; + xceiver-supply =3D <®_vcc3v3>; + }; +}; --=20 2.39.5