From nobody Fri Dec 19 20:55:09 2025 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 211341FDE0E; Wed, 5 Feb 2025 16:48:29 +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=1738774112; cv=none; b=fteYvKw/XjpVyf5qeYlR9LDhCZvidmpuMPQPWlEL5uZA04WcAX4X4UZrGSWpS+eN4OlZf7SLKwPrDOQhLKFkQoZBz7PgU48jZm8kQxQLli2nEH4UcjgtpdYIRX0d+P3VqOtKuxCgKD9AIP4OQ2gML8eJ2gjGnlKF+U2XvvrmyB8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738774112; c=relaxed/simple; bh=BzXXA/cI0W1sFyho2VjDgr9ILcR75btGyHtzelRuuB8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=az7Tdk7u99yRryM4cYC9P5kGu9hm9EWgAlPaMBcL80BI/HSkuhfTn40kOA1IbSj/a9vjbuk+QhFscbvRaZXTthCtkRq46cPLmUL4SnjOkBKO5+aVJuwA1VuCj3o0sl0QxoZOmRAon+XoR2EeSb6aasSrEwN2zmWZJsNCVZ5YMpA= 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=O7xWhQTY; 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="O7xWhQTY" 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=UWzy9f37TLLTSuTbfCAgfOB34y28JpT9kZ7G8h4yvw8=; b=O7xWhQTY+j6CDzuVj0bVlxJdGYjWrYYHy1bIpjot3z0OKBiZvA8+4A70qmAMbVmgiGWva+EQp5goWTKflZsZUgLvlfHkLZgC/VCDFQj//7euFFk5H/F5/dfCuGbSLSIs4twWsR2J8fGzUlqHHPTWavSkB5E8FTYBjj6f1vH0sOM= 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) ; Wed, 5 Feb 2025 17:48:06 +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 v9 1/4] dt-bindings: vendor-prefixes: Add NetCube Systems Austria name Date: Wed, 5 Feb 2025 17:47:10 +0100 Message-Id: <20250205164716.2509650-2-lukas.schmid@netcube.li> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250205164716.2509650-1-lukas.schmid@netcube.li> References: <20250205164716.2509650-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 Fri Dec 19 20:55:09 2025 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 96A991F8908; Wed, 5 Feb 2025 17:49:30 +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=1738777772; cv=none; b=M2kCrbJ1lnAm1HSOKf2ZDbnxNkcz8LeFL6FjYDsjzv9nESB4kEElRlzCFw3g0XSyy1FjzfN+fXw4Bw8QeRH6GHvfgyZ6VLA5lGVlQpE5JYGxERuJCkIqNwEjIEqDUZN5BCYcOxltzx4AHKrkbtyzZi9/YPijDjCIHWEadRSlBQg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738777772; c=relaxed/simple; bh=InoRUYkTbcYQ+vP4+GqLM2Ee+VA2ASPW5As7qkgLHFY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tO1yiM19z6SakNccys5xuF2/qsdNGBeSTGGMwB0JvhHPbPYc2xG0vAAG56nxdKr/WJLSiqo1ORW0+gIPr8xd902sJKlk3tiM2YRV2l5QKuG3q2otsYBe19y798ZUNfWpQaixT8ssqVZETiquqt5SVHNMy8fQwjgNCZzlPu1vNm0= 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=agCBS0jx; 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="agCBS0jx" 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=w+M8tkGYZnAzssMSrKjwe9AXXmu2ZiWoPOQS5vB+XAE=; b=agCBS0jxLuluaV9hV9+j/lZ5sepVlXOxWxc62MKyH/X+4BnenSfYoA7uu/SDZzhhSqbhptJJ5nNLnEReIxjuOiDMHw8DjkfZesFgRkf94usIFTHjVYo0ulNoWFCRJ9YR5oEBFTF3I67+G05hIui7XsEzHnIa8U0iQq2TAaTo1BE= 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) ; Wed, 5 Feb 2025 17:48:09 +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 v9 2/4] dt-bindings: arm: sunxi: Add NetCube Systems Kumquat board Date: Wed, 5 Feb 2025 17:47:11 +0100 Message-Id: <20250205164716.2509650-3-lukas.schmid@netcube.li> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250205164716.2509650-1-lukas.schmid@netcube.li> References: <20250205164716.2509650-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 Fri Dec 19 20:55:09 2025 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 751C01FDE11; Wed, 5 Feb 2025 16:48:31 +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=1738774113; cv=none; b=GP37Io4CO/n1wN5owK6kewvThX1EPWtZz8ac0PRZ4dOtKfpN5qkQafUvEVhkcSdVv+zRl4nyT4zhqyYpJusdyPNb9sLIQmiYaT9ZEyYQ0ED/ZfXqrhfE2IolegvyNlazQ7cvWQp0N6Ff0MPMXoYjzhwO1nTpbBNZnFONJIQvurE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738774113; c=relaxed/simple; bh=QsMgutx7rgk6dDTVWZLk0JUq+kbYrVU2sGg7mLKOf8E=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VUIEUxWa+zjqOXeiVrpW/53MQvlv0jW6ZsjSyyUrBG0/nPWTN/3dGm5fGFdB3HFYMZ7UxU0AMRuJOzKb6fKmRGNTAZfeOdjV4d6vj2Q3b1oqkQOypEwAB6rDK++a+OTSC4xTHyA51G6K1yaSgVXQOUlFL+lAlnP+qizLaOTydMo= 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=VpX4hX8S; 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="VpX4hX8S" 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=91ShiD7uo+IWo9yqW8YxhlAmABdbZ6uPN62jmpFDzqo=; b=VpX4hX8S6P57g9El7v9PI0IvxjRam6zKyHmQ5dssIYuS2hEb992vQJoYyn4vVZTkqr2mMq10N8czZdlJAyGZ/KdcdEx/JV611JGcVTZiIJH884GyZ74HEuEqjNw9YUCIOkMWZKHJ1AXeGNQKIpOyXiN7OA8X+vdpbs3q1WE2fbY= 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) ; Wed, 5 Feb 2025 17:48:12 +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 v9 3/4] ARM: dts: sunxi: add uart1_pe pinctrl for sun8i-v3s Date: Wed, 5 Feb 2025 17:47:12 +0100 Message-Id: <20250205164716.2509650-4-lukas.schmid@netcube.li> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250205164716.2509650-1-lukas.schmid@netcube.li> References: <20250205164716.2509650-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 Fri Dec 19 20:55:09 2025 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 1763520C032; Wed, 5 Feb 2025 16:48:38 +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=1738774121; cv=none; b=loq9G/HzqpNvlVolNC2+TLpuwkBfmtZGz3Jtc/QFJ5drF3cPH71BFSDFSFkRkM2NshqRTSBlardcm7KIEfmavUBTtzuLmEPU5l/s6o79x05g+4L+bMpjuV7nUuR+rQ/b+xizTjUlsasYzs44o3wJ3QqZ6j3yVdF7pb6gCWHjiH0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738774121; c=relaxed/simple; bh=aW20Ga3oWN9mKloTAw3jECuSEj7gVfvtiuBDixZfaOA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=htxt6/s3XLzwisylPolipaceJ8QEN10QQYUeqGFYNn3A8YDhvxLHL5N3Ae9PRckswikLWJvvzt0vUFuxpuXarKyhNdb1DE1lAQPwAA0gPCPSFY//3rcMrezyDTa1xZznQDgNFh5py48Peh8Wn3vcJc4xA8J/n1mxrNUzNK780UQ= 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=AvwqPksi; 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="AvwqPksi" 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=NU343bS9tujTpsxS0pvEsPWsJvqxL7DKggJ7rJQHSbU=; b=AvwqPksi1/kD+FGN8EPUXp/VOGmeDjp8Jf1XgGdficKblWPmFMZWQdlfVbZBu16e0rmV2jJSt2j1k/WavDtp2/JCtf+XnyeObjSMMJBtCwBRTuHE6SUKGHyDZZ/+b5KMrV+Fb4xPByNtfNRpFX+7q+w7Vlzi60Xii+g0qSBnH7Q= 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) ; Wed, 5 Feb 2025 17:48:16 +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 v9 4/4] ARM: dts: sunxi: add support for NetCube Systems Kumquat Date: Wed, 5 Feb 2025 17:47:13 +0100 Message-Id: <20250205164716.2509650-5-lukas.schmid@netcube.li> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250205164716.2509650-1-lukas.schmid@netcube.li> References: <20250205164716.2509650-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 with Battery Backup - QWIIC connectors for external I2C devices Signed-off-by: Lukas Schmid --- arch/arm/boot/dts/allwinner/Makefile | 2 + .../allwinner/sun8i-v3s-netcube-kumquat.dts | 276 ++++++++++++++++++ 2 files changed, 278 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..5143cb4e7b78 --- /dev/null +++ b/arch/arm/boot/dts/allwinner/sun8i-v3s-netcube-kumquat.dts @@ -0,0 +1,276 @@ +// 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"; + + 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>; + interrupts-extended =3D <&pio 1 5 IRQ_TYPE_LEVEL_LOW>; /* PB5 */ + }; + + ds3232: rtc@68 { + compatible =3D "dallas,ds3232"; + reg =3D <0x68>; + }; +}; + +/* 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>; + interrupts-extended =3D <&pio 1 1 IRQ_TYPE_LEVEL_LOW>; /* PB1 */ + spi-max-frequency =3D <20000000>; + vdd-supply =3D <®_vcc3v3>; + xceiver-supply =3D <®_vcc3v3>; + }; +}; --=20 2.39.5