From nobody Fri Dec 19 22:04:05 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 AA92E1F4E29; Tue, 7 Jan 2025 19:23:09 +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=1736277793; cv=none; b=uzHq7R03SePsq0D5dQVwDiZbNUKsS1Gw3ToPiR350gw+lf+2UV6DQmCHn7ym1KBVLF1uosGYx6jHBM5hJ+wcIXerIHPfnJfWmuLnrpt4IbvZzhmTHJKvSbHdhHqOFFdlNs7KWMz8KyVT7L2nfvnIhEq+YphlFZJ3pgA5mwCnhHA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736277793; c=relaxed/simple; bh=ZMqzoHr0ieXWlzslJRVdpOUFAflwy7dsFWdH2A+h+dU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=n4YWgkFf8b4YXF0iWBxApIOEN1SisIRpOYG9nKYC+/ftbobWel/l7mdKt7pIzodH2y0Q+iIe1UoxB29+idv2ERTeTnttE+OItzOqyzIuFnLoMt5MCpDOKJqCF5wmnxO2jXOL8La2FBLUKUAXpTGNTJTFO7T+Ebf1Lsbg6brYWWQ= 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=fMxpMEWs; 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="fMxpMEWs" 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=AgKpNJodXe38lRki/3Ji+GW/mJVBFbjjhLoQGnR6d1I=; b=fMxpMEWshsJuxB2PC/wfmTNrbpX6p2fwHs5LMnRwwJUF1Ghzvl1nqa8VcRDShA0HfuU2pKA0CljsD+0flvkTgYBl9qeYYB1IythHKPWSUPJ6oHvr7FON5/yntT61fGm2wbDsO0zsWx5qLQCb4XPRoTCGO51P0UiyS3coD1kEUwQ= Received: from 854af3ed5e24.lan.sk100508.local (cm70-231.liwest.at [212.241.70.231]) by mail.netcube.li with ESMTPA ; Tue, 7 Jan 2025 20:22:13 +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 v6 1/4] dt-bindings: vendor-prefixes: Add NetCube Systems Austria name Date: Tue, 7 Jan 2025 19:18:39 +0000 Message-Id: <20250107191844.4151-2-lukas.schmid@netcube.li> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250107191844.4151-1-lukas.schmid@netcube.li> References: <20250107191844.4151-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 da01616802c7..a30ed9547098 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1027,6 +1027,8 @@ patternProperties: description: Neofidelity Inc. "^neonode,.*": description: Neonode Inc. + "^netcube,.*": + description: NetCube Systems Austria "^netgear,.*": description: NETGEAR "^netlogic,.*": --=20 2.47.1 From nobody Fri Dec 19 22:04:05 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 303F22C187; Tue, 7 Jan 2025 19:22:23 +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=1736277747; cv=none; b=evazzZi3IN/r5fumbTP34p9W3+pJTlxrZvnwp+0b/Gbie7Zga0UO4C8vgvDLHr2pIK470D7LeYOEFDCVQTk2t091qDHaJYm3WbMiLAsA+y/zrMNMsq/gQ5PWJXzTP9OdsT9qfFc/yJizUOwUsuHrqA1fOBFAY/0ogixzewhBLIk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736277747; c=relaxed/simple; bh=eWI2w4kZIKItWJFqtABsMZBReAEf/IfcxbXkswKKkBE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KAdHMrcS9hmOZbB8VbRsCnNfbarOrP6GD9AtG31PSHZ2M2YcKfxjogy1HspKgwN/O14r5repU/eTcPhnR/99fVdq4Lh8gFX0DFq8Iz0t/f6Byb2itE3xtoFIzlV+HBr/UibKG+n1+9Kh1j3zlcGPhe8y7hMblPxqUwYLIxqPLOI= 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=GSGSnNIB; 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="GSGSnNIB" 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=g+7UfoPF3qmmcXZAVXeXLOUoflzmC+w8EwZzm4k7Dco=; b=GSGSnNIBtCGwMqx9vRCuvnOY+SuMK4j0TTAzFaRGir2hI29tOuwKSnHNce1RVJeNQhGCuHwfFBYpAUk2B3NxM/QM1elj+JjGygzzf/OjHMVm3anIlXjwTKofK/2Kny1u00IW1y60ZGmeV5jfK3tPog3py/LvnFw4HJuFg4OXbVw= Received: from 854af3ed5e24.lan.sk100508.local (cm70-231.liwest.at [212.241.70.231]) by mail.netcube.li with ESMTPA ; Tue, 7 Jan 2025 20:22:15 +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 v6 2/4] dt-bindings: arm: sunxi: Add NetCube Systems Kumquat board Date: Tue, 7 Jan 2025 19:18:40 +0000 Message-Id: <20250107191844.4151-3-lukas.schmid@netcube.li> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250107191844.4151-1-lukas.schmid@netcube.li> References: <20250107191844.4151-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 --- 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.47.1 From nobody Fri Dec 19 22:04:05 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 07D6D2C187; Tue, 7 Jan 2025 19:22:36 +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=1736277760; cv=none; b=F2S9+cGAlK+FNJ3CP30YOK4X6hhN4Vfpdg43hexCI06TS1tkSt5v8OQScNu9l9LHjp3fQYHWDzcqvy0n/qkjn32NTOSmfWzH8cMZAQOxHWx3f4bbew12+vtYZLxVvL73OCoCXIvSkcOMxwvU2FI71zpbksTi3YgGxHNKVl2Ozr8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736277760; c=relaxed/simple; bh=pl9ygqJR4JSvEKW2oEuirGebTOJK7iFbCuT5qmbdJPE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mUgrklhHCU+pHUxIpYYx4x5vKzpxiWZQwJt1aLrvEIFeopekRFeeEukCBmh/EKmsG7hwoq/Wf/WUU8pZUZKFt1cuTQ6xkxvDow5TwyQI16lkQWv1MCPcT+4DaA8Uzxt5Jjbs3ycli2/WxjMoIbQd8KOo1ulrr85oWzDEFSnHf7o= 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=vsuKM/tq; 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="vsuKM/tq" 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=mUaOJdlvF3UtlVjv2dtx6mt6dyDnML8GE0nto6UoBsk=; b=vsuKM/tqQjeZpsIch4ugTLrrzZ2zrDpCFxr33JCVlSv3SfR392bxfMvoeVUUf43vUrOqeFH52N0hhzNjYegcUhty/k/PfYwvS31BlAPT1Mhmd7rEUEJl3T2YJFsWqeTUBuxPPb3TKsuYetTkwtK8JalV+reiWgDz36kYG5r3d30= Received: from 854af3ed5e24.lan.sk100508.local (cm70-231.liwest.at [212.241.70.231]) by mail.netcube.li with ESMTPA ; Tue, 7 Jan 2025 20:22:18 +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 v6 3/4] ARM: dts: sunxi: add uart1_pe pinctrl for sun8i-v3s Date: Tue, 7 Jan 2025 19:18:41 +0000 Message-Id: <20250107191844.4151-4-lukas.schmid@netcube.li> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250107191844.4151-1-lukas.schmid@netcube.li> References: <20250107191844.4151-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.47.1 From nobody Fri Dec 19 22:04:05 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 DF1171F4E55; Tue, 7 Jan 2025 19:22:58 +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=1736277784; cv=none; b=JvD+xUariEsF1XLg8fWPi/fiojt3P+Ko8qqk6O9V7pv8Th3F7aqjT/gzhzLfBYbCt+VOXaVTk3zupFXipXYh2TZIV8g53lfTxAqgfa12u2BpjDoORyzf4i2363xZP6E1GdEzxGaNUj34JwOYGVj0xW/jvodE7pNWAbomtpVjFGA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736277784; c=relaxed/simple; bh=YP2JNqzgvZv5X6dFlR1jY6wXDBH0cpCZl+LatlAOCts=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CegQyD+voRfD5taTFprSM8Tjyql2A1TebWpGm3dpDpWsI1NHY2je90fR/bXfStYJRei4q0venbkwj5T3CP6Ta4uJZROLM+djeO1oUNu7m+oVBpMX294sgIv8s4V6dV8Ucf59RqiPDjNxyjiQVjYuA2gbQqfRSVNBiL+yshljgz8= 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=F1YS490i; 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="F1YS490i" 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=7UV2RlDcMIOqQq8XiZJxERNQb3Sc82Loeonqjdqan0M=; b=F1YS490iE4cMO0xzrfscc4ETYiCapSntSAS17RmuC40FRrw3VksHEHf+RgYVxCGVGfgyfT0/LXaheLy/CVN1B0JDllu9xsjJ0DXJSLEwUYXQkY9G78eWDUzFsGe1OeM6d19JAeYpe347RvgY4Yg/OmzEw2m27f9xtcfeHXxPUhA= Received: from 854af3ed5e24.lan.sk100508.local (cm70-231.liwest.at [212.241.70.231]) by mail.netcube.li with ESMTPA ; Tue, 7 Jan 2025 20:22:20 +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 v6 4/4] ARM: dts: sunxi: add support for NetCube Systems Kumquat Date: Tue, 7 Jan 2025 19:18:42 +0000 Message-Id: <20250107191844.4151-5-lukas.schmid@netcube.li> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250107191844.4151-1-lukas.schmid@netcube.li> References: <20250107191844.4151-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 | 268 ++++++++++++++++++ 2 files changed, 270 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..019042700558 --- /dev/null +++ b/arch/arm/boot/dts/allwinner/sun8i-v3s-netcube-kumquat.dts @@ -0,0 +1,268 @@ +// 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"; +}; + +&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", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", ""; +}; + +/* 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.47.1