From nobody Fri Oct 3 13:32:18 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 08318248873; Sat, 30 Aug 2025 09:47:55 +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=1756547278; cv=none; b=qvX2NC3ZAn6QJvHq7nhRY4nK8nZ01n3eQDdyCf8/s053IVpEirB6PH63tQmqdVA1OCPTdpctl3f2FDvQrFzVpA3/JbOqivk9trdeukn4pFdY+75Eee4EMwJBU64IZ8V+ui40mPVO/IuyMTtrxXLP96LifmbIysuGbQwVigh0Ct4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756547278; c=relaxed/simple; bh=aWJ0oT/vrMHdwaRjqfi3ZDgJP+ZufSwdIMJxHY0u8uQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=snXULbX/F6/THbAa/KWxXciLVB1aHTPwMtiskxIbQe1sfdynASuRGYP0K0Nvh+krpxhBZzrIUFSbE/KiSXH0sHWcpVTwVfIXWlascRe9haz3kFG2kxm5oBgkeHA3ywbxOuNTDQxqSaUxGbc2oc6I1GgFsqgDsObiaQSs6f6Y32g= 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=r/+mcEIt; 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="r/+mcEIt" 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=IbrIg1eU413356pzs4YTMme/8HXkQ5PaIsuPZ7aPwhg=; b=r/+mcEIt+b0AxqCo8gCeD75X1YXv11GbyIYuLdYV+umM9tNaIQAJJSAVopKt4Pzbbd82mnxEjnD8Hc3M0FfLbmmoVXupeZrWKJASkF17kwSBWWZCBBELZuFvtxMk7od4JKkMSHCDenhAz+5eXN/ow2Di/Awm13EGHfxPxjfXzVc= Received: from lukas-hpz440workstation.lan.sk100508.local (cm70-231.liwest.at [212.241.70.231]) by mail.netcube.li with ESMTPA ; Sat, 30 Aug 2025 11:47:33 +0200 From: Lukas Schmid To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , 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, linux-riscv@lists.infradead.org Subject: [PATCH v7 1/5] dt-bindings: arm: sunxi: Add NetCube Systems Nagami SoM and carrier board bindings Date: Sat, 30 Aug 2025 11:46:53 +0200 Message-Id: <20250830094700.1715658-2-lukas.schmid@netcube.li> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250830094700.1715658-1-lukas.schmid@netcube.li> References: <20250830094700.1715658-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 Nagami is an System on Module base on the Allwinner T113s SoC. It is intended to be used in low cost devices which require simple layouts and low BOM cost. The NetCube Systems Nagami Basic Carrier Board is a simple carrier for the Nagami SoM. It is intended to serve as a simple reference design for a custom implementation or just evaluating the module with other peripherals The NetCube Systems Nagami Keypad Carrier is a custom board intended to fit a standard Ritto Intercom enclosure and provides a Keypad, NFC-Reader and Status-LED all controllable over Ethernet with PoE support. Signed-off-by: Lukas Schmid Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/sunxi.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentati= on/devicetree/bindings/arm/sunxi.yaml index 7807ea613258..50f08d8d22f6 100644 --- a/Documentation/devicetree/bindings/arm/sunxi.yaml +++ b/Documentation/devicetree/bindings/arm/sunxi.yaml @@ -599,6 +599,14 @@ properties: - const: netcube,kumquat - const: allwinner,sun8i-v3s =20 + - description: NetCube Systems Nagami SoM based boards + items: + - enum: + - netcube,nagami-basic-carrier + - netcube,nagami-keypad-carrier + - const: netcube,nagami + - const: allwinner,sun8i-t113s + - description: NextThing Co. CHIP items: - const: nextthing,chip --=20 2.39.5 From nobody Fri Oct 3 13:32:18 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 3250F22129F; Sat, 30 Aug 2025 09:48:03 +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=1756547286; cv=none; b=oWhAtIjXrXPsTUEk+ZNcbWjh7vAsvLkZxm1WGo8zv3E9JbEGtQ72R4giwtOvucnTjgAr/hsEO5fVrDzivvS6UHi6lFZXy/m2Zhr2IlSHdw+I9IjXcFvvpUOnic2rR0xkenc6UfFLcqZSQM5yEmuA5J8BjOQhO8mizlRy/G0PY8I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756547286; c=relaxed/simple; bh=IAEUllPYaczp2aMU1bdOaTuDN7VOxW55hFIj6W3H8Nc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=W0NHNnKInQ++bFBuqTLu1hKoFTvODSyrSoVoc+ipxk+DNVXVeXyFmw5+2OvAGPTENzq8YrbdM0YzDvhm39khwFB9eWwvDOxe5wdtkjDVdR28wauzniH/yb5ihGUTLORopGWU1MzGocvT2cc1q0ToCXK4gOy13tt5vvZ08RKK9XY= 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=pRJcNI9B; 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="pRJcNI9B" 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=Tulqcgl5E7xddxV0QVa8ixoBhbEOneG+ZJlK77Ah9ws=; b=pRJcNI9Bf3JFnHaLbwbeD3wmPJuWGF28HTy9SE5rduqMknD9IRlAKj2CKOEihWgf8Vv0oi9ANybSoR7UMmAlya/CGd1TvG2hG3vwFET2GDFodGNsuQKG8KfgtipyuSfZgRSNKJ7Zm8c9p2fMWZIh19Ba+RUlh39YKm6qawq7nF8= Received: from lukas-hpz440workstation.lan.sk100508.local (cm70-231.liwest.at [212.241.70.231]) by mail.netcube.li with ESMTPA ; Sat, 30 Aug 2025 11:47:39 +0200 From: Lukas Schmid To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , 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, linux-riscv@lists.infradead.org Subject: [PATCH v7 2/5] riscv: dts: allwinner: d1s-t113: Add pinctrl's required by NetCube Systems Nagami SoM Date: Sat, 30 Aug 2025 11:46:54 +0200 Message-Id: <20250830094700.1715658-3-lukas.schmid@netcube.li> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250830094700.1715658-1-lukas.schmid@netcube.li> References: <20250830094700.1715658-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 following pinctrl's used by the NetCube Systems Nagami SoM * i2c2_pins * i2c3_pins * i2s1_pins, i2s1_din_pins, i2s1_dout_pins * spi1_pins, spi1_hold_pin, spi1_wp_pin Signed-off-by: Lukas Schmid --- .../boot/dts/allwinner/sunxi-d1s-t113.dtsi | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi b/arch/riscv= /boot/dts/allwinner/sunxi-d1s-t113.dtsi index e4175adb028d..c00996d6275c 100644 --- a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi +++ b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi @@ -78,6 +78,36 @@ dsi_4lane_pins: dsi-4lane-pins { function =3D "dsi"; }; =20 + /omit-if-no-ref/ + i2c2_pins: i2c2-pins { + pins =3D "PD20", "PD21"; + function =3D "i2c2"; + }; + + /omit-if-no-ref/ + i2c3_pins: i2c3-pins { + pins =3D "PG10", "PG11"; + function =3D "i2c3"; + }; + + /omit-if-no-ref/ + i2s1_pins: i2s1-pins { + pins =3D "PG12", "PG13"; + function =3D "i2s1"; + }; + + /omit-if-no-ref/ + i2s1_din_pins: i2s1-din-pins { + pins =3D "PG14"; + function =3D "i2s1_din"; + }; + + /omit-if-no-ref/ + i2s1_dout_pins: i2s1-dout-pins { + pins =3D "PG15"; + function =3D "i2s1_dout"; + }; + /omit-if-no-ref/ lcd_rgb666_pins: lcd-rgb666-pins { pins =3D "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", @@ -126,6 +156,24 @@ spi0_pins: spi0-pins { function =3D "spi0"; }; =20 + /omit-if-no-ref/ + spi1_pins: spi1-pins { + pins =3D "PD10", "PD11", "PD12", "PD13"; + function =3D "spi1"; + }; + + /omit-if-no-ref/ + spi1_hold_pin: spi1-hold-pin { + pins =3D "PD14"; + function =3D "spi1"; + }; + + /omit-if-no-ref/ + spi1_wp_pin: spi1-wp-pin { + pins =3D "PD15"; + function =3D "spi1"; + }; + /omit-if-no-ref/ uart1_pg6_pins: uart1-pg6-pins { pins =3D "PG6", "PG7"; --=20 2.39.5 From nobody Fri Oct 3 13:32:18 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 85CEF223DDD; Sat, 30 Aug 2025 09:48:04 +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=1756547286; cv=none; b=PWGF18Rv7TmPWO0gxzr8XdmS3ckhwrdlVZIzki5rlEWQXDr+isQYrEDuhsReVzfsTWcQ2NT2xVUxgAGHj7inhpzSB1ypwHDQl4J31qxXScYdsU0Nprje7ZDcCaDPs8O8ebfKZsufty0n+CQjq/iiGJi28+SMolHHZaQzjztsLY0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756547286; c=relaxed/simple; bh=jI3auve+DEWR7hkLcdH3s5pH4u3YLGCvc5svsK3Njww=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=JNM1ItUP1dBrFF+wI0JTNm05DjLkRfcDv0xJYsvj0jwZrCDWO9Z+THhwryGq344JTyK1axtTIygBOx6sHyxljD3VihNaTRcOcN2wO93fZeBqiPaftoUHXwj7GSlmCXy98d23+quolhuJYVe5ifL5OeZ6IXKb1xB1JfBym5Dttss= 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=doModtXf; 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="doModtXf" 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=N9quo2pacaFqL3HTBVMc0so4ux95fg7kRQiQIeD0F7Q=; b=doModtXflPcGVUrkz+Wn67IfsMdQa7l9db58IHhfI2m1UbqJ0Ty5/iAXyo19kIuq3bdwn0QAiaZO3FEEAws0GIlEIEDiLWEYSPiT/REJUCMwWkjSvpaMgjn27TVgML+vWgDSldTKBeu3Z+Dl9dreRCvQDijDPaiOjfGkdMhx7e0= Received: from lukas-hpz440workstation.lan.sk100508.local (cm70-231.liwest.at [212.241.70.231]) by mail.netcube.li with ESMTPA ; Sat, 30 Aug 2025 11:47:45 +0200 From: Lukas Schmid To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , 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, linux-riscv@lists.infradead.org Subject: [PATCH v7 3/5] ARM: dts: sunxi: add support for NetCube Systems Nagami SoM Date: Sat, 30 Aug 2025 11:46:55 +0200 Message-Id: <20250830094700.1715658-4-lukas.schmid@netcube.li> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250830094700.1715658-1-lukas.schmid@netcube.li> References: <20250830094700.1715658-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 Nagami SoM is a module based around the Allwinner T113s SoC. It includes the following features and interfaces: - 128MB DDR3 included in SoC - 10/100 Mbps Ethernet using LAN8720A phy - One USB-OTG interface - One USB-Host interface - One I2S interface with in and output support - Two CAN interfaces - ESP32 over SDIO - One SPI interface - I2C EEPROM for MAC address - One QWIIC I2C Interface with dedicated interrupt pin shared with EEPROM - One external I2C interface - SD interface for external SD-Card Signed-off-by: Lukas Schmid --- .../allwinner/sun8i-t113s-netcube-nagami.dtsi | 249 ++++++++++++++++++ 1 file changed, 249 insertions(+) create mode 100644 arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-nagami.= dtsi diff --git a/arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-nagami.dtsi b/= arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-nagami.dtsi new file mode 100644 index 000000000000..013ab280a208 --- /dev/null +++ b/arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-nagami.dtsi @@ -0,0 +1,249 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2025 Lukas Schmid + */ + +/dts-v1/; +#include "sun8i-t113s.dtsi" + +#include +#include + +/ { + model =3D "NetCube Systems Nagami SoM"; + compatible =3D "netcube,nagami", "allwinner,sun8i-t113s"; + + aliases { + serial1 =3D &uart1; // ESP32 Bootloader UART + serial3 =3D &uart3; // Console UART on Card Edge + ethernet0 =3D &emac; + }; + + chosen { + stdout-path =3D "serial3:115200n8"; + }; + + /* module wide 3.3V supply directly from the card edge */ + reg_vcc3v3: regulator-3v3 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc-3v3"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + regulator-always-on; + }; + + /* SY8008 DC/DC regulator on the board, also supplying VDD-SYS */ + reg_vcc_core: regulator-core { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc-core"; + regulator-min-microvolt =3D <880000>; + regulator-max-microvolt =3D <880000>; + vin-supply =3D <®_vcc3v3>; + }; + + /* Reset of ESP32 */ + wifi_pwrseq: wifi-pwrseq { + compatible =3D "mmc-pwrseq-simple"; + reset-gpios =3D <&pio 6 9 GPIO_ACTIVE_LOW>; /* PG9 */ + post-power-on-delay-ms =3D <1500>; + power-off-delay-us =3D <200>; + }; +}; + +&cpu0 { + cpu-supply =3D <®_vcc_core>; +}; + +&cpu1 { + cpu-supply =3D <®_vcc_core>; +}; + +&dcxo { + clock-frequency =3D <24000000>; +}; + +&emac { + nvmem-cells =3D <ð0_macaddress>; + nvmem-cell-names =3D "mac-address"; + phy-handle =3D <&lan8720a>; + phy-mode =3D "rmii"; + pinctrl-0 =3D <&rmii_pe_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; + +/* Default I2C Interface on Card-Edge */ +&i2c2 { + pinctrl-0 =3D <&i2c2_pins>; + pinctrl-names =3D "default"; + status =3D "disabled"; +}; + +/* Exposed as the QWIIC connector and used by the internal EEPROM */ +&i2c3 { + pinctrl-0 =3D <&i2c3_pins>; + pinctrl-names =3D "default"; + 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>; + }; + }; +}; + +/* Default I2S Interface on Card-Edge */ +&i2s1 { + pinctrl-0 =3D <&i2s1_pins>, <&i2s1_din_pins>, <&i2s1_dout_pins>; + pinctrl-names =3D "default"; + status =3D "disabled"; +}; + +/* Phy is on SoM. MDI signals pre-magentics are on the card edge */ +&mdio { + lan8720a: ethernet-phy@0 { + compatible =3D "ethernet-phy-ieee802.3-c22"; + reg =3D <0>; + }; +}; + +/* Default SD Interface on Card-Edge */ +&mmc0 { + pinctrl-0 =3D <&mmc0_pins>; + pinctrl-names =3D "default"; + status =3D "disabled"; +}; + +/* Connected to the on-board ESP32 */ +&mmc1 { + pinctrl-0 =3D <&mmc1_pins>; + pinctrl-names =3D "default"; + vmmc-supply =3D <®_vcc3v3>; + bus-width =3D <4>; + non-removable; + mmc-pwrseq =3D <&wifi_pwrseq>; + status =3D "okay"; +}; + +/* Connected to the on-board eMMC */ +&mmc2 { + pinctrl-0 =3D <&mmc2_pins>; + pinctrl-names =3D "default"; + vmmc-supply =3D <®_vcc3v3>; + vqmmc-supply =3D <®_vcc3v3>; + bus-width =3D <4>; + non-removable; + status =3D "okay"; +}; + +&pio { + vcc-pb-supply =3D <®_vcc3v3>; + vcc-pc-supply =3D <®_vcc3v3>; + vcc-pd-supply =3D <®_vcc3v3>; + vcc-pe-supply =3D <®_vcc3v3>; + vcc-pf-supply =3D <®_vcc3v3>; + vcc-pg-supply =3D <®_vcc3v3>; + + gpio-line-names =3D "", "", "", "", // PA + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "CAN0_TX", "CAN0_RX", // PB + "CAN1_TX", "CAN1_RX", "UART3_TX", "UART3_RX", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "eMMC_CLK", "eMMC_CMD", // PC + "eMMC_D2", "eMMC_D1", "eMMC_D0", "eMMC_D3", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", // PD + "", "", "", "", + "", "USB_SEC_EN", "SPI1_CS", "SPI1_CLK", + "SPI1_MOSI", "SPI1_MISO", "SPI1_HOLD", "SPI1_WP", + "PD16", "", "", "", + "I2C2_SCL", "I2C2_SDA", "PD22", "", + "", "", "", "", + "", "", "", "", + "ETH_CRSDV", "ETH_RXD0", "ETH_RXD1", "ETH_TXCK", // PE + "ETH_TXD0", "ETH_TXD1", "ETH_TXEN", "", + "ETH_MDC", "ETH_MDIO", "QWIIC_nINT", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "SD_D1", "SD_D0", "SD_CLK", "SD_CLK", // PF + "SD_D3", "SD_D2", "PF6", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "ESP_CLK", "ESP_CMD", "ESP_D0", "ESP_D1", // PG + "ESP_D2", "ESP_D3", "UART1_TXD", "UART1_RXD", + "ESP_nBOOT", "ESP_nRST", "I2C3_SCL", "I2C3_SDA", + "I2S1_WS", "I2S1_CLK", "I2S1_DIN0", "I2S1_DOUT0", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", ""; + + usb0-enable-hog { + gpio-hog; + gpios =3D <3 9 GPIO_ACTIVE_HIGH>; + line-name =3D "USB_SEC_EN"; + output-high; + }; +}; + +/* Remove the unused CK pin from the pinctl as it is unconnected */ +&rmii_pe_pins { + pins =3D "PE0", "PE1", "PE2", "PE3", "PE4", + "PE5", "PE6", "PE8", "PE9"; +}; + +/* Default SPI Interface on Card-Edge */ +&spi1 { + #address-cells =3D <1>; + #size-cells =3D <0>; + pinctrl-0 =3D <&spi1_pins>, <&spi1_hold_pin>, <&spi1_wp_pin>; + pinctrl-names =3D "default"; + cs-gpios =3D <0>; + status =3D "disabled"; +}; + +/* Connected to the Bootloader/Console of the ESP32 */ +&uart1 { + pinctrl-0 =3D <&uart1_pg6_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; + +/* Console/Debug UART on Card-Edge */ +&uart3 { + pinctrl-0 =3D <&uart3_pb_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; --=20 2.39.5 From nobody Fri Oct 3 13:32:18 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 98345214813; Sat, 30 Aug 2025 09:47:52 +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=1756547274; cv=none; b=XWvaArIRLSkfKqbc9SwdsKkllu8o0JzC3L7WDpybeRLoHeKKb6JM3OkQiW4XICiUpPgeCI6Vl3rLiotmXyeCQjdwsSdUWO4lKmYdxGyNZ14gyvHXUzPQdnkCl7xwEuFh02YVapXMjy2QsxvHRFOCfqHxiuc7T7ExaVGRpubz2dE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756547274; c=relaxed/simple; bh=o/UMy3Tt1tq/6z4hkxm21x6XQuWNYC1qG02R3gzUFAw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=khd0RZSCgp3VVfKjWHF03/4uK0Qzaei9ZGTQl5owzikg2yxINylwLmPC2JT3DQ7pml3W7w/I+JQVTshHDnkRl3Uep63+64qDZDaMgUOigJQLbTl7rIuXT14tD1mWr5giP3M1KGtZYSDAsTRbdvHYesh1UQ8wsTlZmQej/OgzB/s= 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=Cehl5yr5; 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="Cehl5yr5" 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=qXVKCltj1fq6EwK3VjDJ0tB61eSP6doosd0jsyQ0Cyg=; b=Cehl5yr5wjaMhSTZfUzj5O/1uVIhqMOGxMK6zNVNxaKzKLyT1v1OxogyNpqiKFXIefBoKRERtTA3th6OxJJ2EV4NoAU5Ek/KzjeU72vmGzZVHOG7zORReqoVSlqM5O9OakT6av660xxd/HtwPVlmHUBHLDZMeELfImkUrApbmEQ= Received: from lukas-hpz440workstation.lan.sk100508.local (cm70-231.liwest.at [212.241.70.231]) by mail.netcube.li with ESMTPA ; Sat, 30 Aug 2025 11:47:49 +0200 From: Lukas Schmid To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , 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, linux-riscv@lists.infradead.org Subject: [PATCH v7 4/5] ARM: dts: sunxi: add support for NetCube Systems Nagami Basic Carrier Date: Sat, 30 Aug 2025 11:46:56 +0200 Message-Id: <20250830094700.1715658-5-lukas.schmid@netcube.li> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250830094700.1715658-1-lukas.schmid@netcube.li> References: <20250830094700.1715658-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 Nagami Basic Carrier is a Carrier for the Nagami SoM It provides an ethernet port for the phy on the SoM and some USB-Ports. All other interfaces and gpios are available on pinheader, except for the SD-Interface which is available on a micro-sd slot. Signed-off-by: Lukas Schmid --- arch/arm/boot/dts/allwinner/Makefile | 2 + ...n8i-t113s-netcube-nagami-basic-carrier.dts | 67 +++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-nagami-= basic-carrier.dts diff --git a/arch/arm/boot/dts/allwinner/Makefile b/arch/arm/boot/dts/allwi= nner/Makefile index d799ad153b37..af287bb3231c 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-t113s-netcube-nagami-basic-carrier :=3D -@ DTC_FLAGS_sun8i-v3s-netcube-kumquat :=3D -@ dtb-$(CONFIG_MACH_SUN8I) +=3D \ sun8i-a23-evb.dtb \ @@ -257,6 +258,7 @@ dtb-$(CONFIG_MACH_SUN8I) +=3D \ sun8i-s3-lichee-zero-plus.dtb \ sun8i-s3-pinecube.dtb \ sun8i-t113s-mangopi-mq-r-t113.dtb \ + sun8i-t113s-netcube-nagami-basic-carrier.dtb \ sun8i-t3-cqa3t-bv3.dtb \ sun8i-v3-sl631-imx179.dtb \ sun8i-v3s-anbernic-rg-nano.dtb \ diff --git a/arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-nagami-basic-c= arrier.dts b/arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-nagami-basic-c= arrier.dts new file mode 100644 index 000000000000..5ee9a211a5cc --- /dev/null +++ b/arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-nagami-basic-carrier.= dts @@ -0,0 +1,67 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2025 Lukas Schmid + */ + +/dts-v1/; +#include "sun8i-t113s-netcube-nagami.dtsi" + +/ { + model =3D "NetCube Systems Nagami Basic Carrier Board"; + compatible =3D "netcube,nagami-basic-carrier", "netcube,nagami", + "allwinner,sun8i-t113s"; +}; + +&can0 { + status =3D "okay"; +}; + +&can1 { + status =3D "okay"; +}; + +&ehci0 { + status =3D "okay"; +}; + +&ehci1 { + status =3D "okay"; +}; + +&i2c2 { + status =3D "okay"; +}; + +&i2s1 { + status =3D "okay"; +}; + +&mmc0 { + vmmc-supply =3D <®_vcc3v3>; + broken-cd; + disable-wp; + bus-width =3D <4>; + status =3D "okay"; +}; + +&ohci0 { + status =3D "okay"; +}; + +&ohci1 { + status =3D "okay"; +}; + +&spi1 { + status =3D "okay"; +}; + +&usb_otg { + dr_mode =3D "otg"; + status =3D "okay"; +}; + +&usbphy { + usb0_id_det-gpios =3D <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */ + status =3D "okay"; +}; --=20 2.39.5 From nobody Fri Oct 3 13:32:18 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 8A0DA1DE8AE; Sat, 30 Aug 2025 09:48:15 +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=1756547297; cv=none; b=k72xbpH0h1mWaud/t2ORMoA51gH4Ktdp43SaBNrX2aa/JYaE+r46sYn3FxD8ojrK4mcgefjEbppm5NYwCTcOJ9sJe1qTDadGZh5ajFy+UvsgUde64F3b6OiGTwKhmCYAymQqPseq/8HRdT2zq2b+tFU8cS/fJhOJlrdVmMeOZGY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756547297; c=relaxed/simple; bh=s3x925jgw5KeuMhfQGgV1IGdbT+9uZeElH50ZzPLZFM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VS09TvFhDMmR6AAdvW0vl092oRVV2W53qOM5OhIO7Zx6Xj3H8EGQL0qw1qoDEXIHjWh2Q+sRvt0ZvwA0ZM630UyhItQ+TV2afpQz+fW3brE0RKn0Im8FkKlRkrZ+iFq6GG+ssoqw180MBwGuW/CB3NC/IfowM0vgUgQMTPne4A8= 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=VUVKjkx6; 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="VUVKjkx6" 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=jRy/S1m33Q74m2vLNvRcZ66fmz2K2y/9/fVpVzz+O0E=; b=VUVKjkx6tUN9+aogRN/pEJXnLaoKPzjfsWvZRVjEHQwF3hV+TutmJEmRH9veaXsUoaoZ6UXPpFLRgyFGnghF/aEKCpGYKEsBANPGaKNOnILHoJKBxVVeMeWqFOnkkz96WWjmrpbXemS/TMLB6vL3ogITb4z74cJHEfgKfgfV6pI= Received: from lukas-hpz440workstation.lan.sk100508.local (cm70-231.liwest.at [212.241.70.231]) by mail.netcube.li with ESMTPA ; Sat, 30 Aug 2025 11:47:54 +0200 From: Lukas Schmid To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , 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, linux-riscv@lists.infradead.org Subject: [PATCH v7 5/5] ARM: dts: sunxi: add support for NetCube Systems Nagami Keypad Carrier Date: Sat, 30 Aug 2025 11:46:57 +0200 Message-Id: <20250830094700.1715658-6-lukas.schmid@netcube.li> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250830094700.1715658-1-lukas.schmid@netcube.li> References: <20250830094700.1715658-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 Nagami Keypad Carrier uses the Nagami SoM and contains a TCA8418 connected to a 4x4 matrix keypad. The I2C2 interface is connected to said TCA8418 and also a header for an PN532 NFC-Module. It also provides a pin-header for a bi-color status led. Ethernet with PoE support is available on a screwterminal after magnetics. Signed-off-by: Lukas Schmid --- arch/arm/boot/dts/allwinner/Makefile | 1 + ...8i-t113s-netcube-nagami-keypad-carrier.dts | 129 ++++++++++++++++++ 2 files changed, 130 insertions(+) create mode 100644 arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-nagami-= keypad-carrier.dts diff --git a/arch/arm/boot/dts/allwinner/Makefile b/arch/arm/boot/dts/allwi= nner/Makefile index af287bb3231c..a2137bbe2230 100644 --- a/arch/arm/boot/dts/allwinner/Makefile +++ b/arch/arm/boot/dts/allwinner/Makefile @@ -259,6 +259,7 @@ dtb-$(CONFIG_MACH_SUN8I) +=3D \ sun8i-s3-pinecube.dtb \ sun8i-t113s-mangopi-mq-r-t113.dtb \ sun8i-t113s-netcube-nagami-basic-carrier.dtb \ + sun8i-t113s-netcube-nagami-keypad-carrier.dtb \ sun8i-t3-cqa3t-bv3.dtb \ sun8i-v3-sl631-imx179.dtb \ sun8i-v3s-anbernic-rg-nano.dtb \ diff --git a/arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-nagami-keypad-= carrier.dts b/arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-nagami-keypad= -carrier.dts new file mode 100644 index 000000000000..048a6245684a --- /dev/null +++ b/arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-nagami-keypad-carrier= .dts @@ -0,0 +1,129 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2025 Lukas Schmid + */ + +/dts-v1/; +#include "sun8i-t113s-netcube-nagami.dtsi" + +#include +#include + +/ { + model =3D "NetCube Systems Nagami Keypad Carrier Board"; + compatible =3D "netcube,nagami-keypad-carrier", "netcube,nagami", + "allwinner,sun8i-t113s"; + + leds { + compatible =3D "gpio-leds"; + + led_status_red: led-status-red { + gpios =3D <&pio 3 16 GPIO_ACTIVE_HIGH>; /* PD16 */ + color =3D ; + function =3D LED_FUNCTION_STATUS; + }; + + led_status_green: led-status-green { + gpios =3D <&pio 3 22 GPIO_ACTIVE_HIGH>; /* PD22 */ + color =3D ; + function =3D LED_FUNCTION_STATUS; + }; + }; +}; + +&i2c2 { + status =3D "okay"; + + tca8418: keypad@34 { + compatible =3D "ti,tca8418"; + reg =3D <0x34>; + interrupts-extended =3D <&pio 5 6 IRQ_TYPE_EDGE_FALLING>; /* PF6 */ + linux,keymap =3D ; + keypad,num-rows =3D <4>; + keypad,num-columns =3D <4>; + }; +}; + +&pio { + gpio-line-names =3D "", "", "", "", // PA + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", // PB + "", "", "UART3_TX", "UART3_RX", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "eMMC_CLK", "eMMC_CMD", // PC + "eMMC_D2", "eMMC_D1", "eMMC_D0", "eMMC_D3", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", // PD + "", "", "", "", + "", "USB_SEC_EN", "", "", + "", "", "", "", + "LED_STATUS_RED", "", "", "", + "I2C2_SCL", "I2C2_SDA", "LED_STATUS_GREEN", "", + "", "", "", "", + "", "", "", "", + "ETH_CRSDV", "ETH_RXD0", "ETH_RXD1", "ETH_TXCK", // PE + "ETH_TXD0", "ETH_TXD1", "ETH_TXEN", "", + "ETH_MDC", "ETH_MDIO", "QWIIC_nINT", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", // PF + "", "", "KEY_nINT", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "ESP_CLK", "ESP_CMD", "ESP_D0", "ESP_D1", // PG + "ESP_D2", "ESP_D3", "UART1_TXD", "UART1_RXD", + "ESP_nBOOT", "ESP_nRST", "I2C3_SCL", "I2C3_SDA", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", ""; +}; + +&usb_otg { + dr_mode =3D "peripheral"; + status =3D "okay"; +}; + +&usbphy { + status =3D "okay"; +}; --=20 2.39.5