Skip to contentSkip to conversation

Add support for NetCube Systems OpenNMC (dobermann)

PATCH Superseded Lukas Schmid 3 participants 6 messages Jun 4

Subsystems (3)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

cover Add support for NetCube Systems OpenNMC (dobermann)

This series adds support for the NetCube Systems OpenNMC

---
Lukas Schmid (3):
dt-bindings: arm: sunxi: Add NetCube Systems OpenNMC (dobermann)
riscv: dts: allwinner: d1s-t113: Add uart4 pinctrl required by NetCube
Systems OpenNMC
ARM: dts: sunxi: add support for NetCube Systems OpenNMC (dobermann)

 .../devicetree/bindings/arm/sunxi.yaml        |   1 +
 .../sun8i-t113s-netcube-dobermann.dts         | 149 ++++++++++++++++++
 .../boot/dts/allwinner/sunxi-d1s-t113.dtsi    |   6 +
 3 files changed, 156 insertions(+)
 create mode 100644 arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-dobermann.dts
Signature · 1 line
2.47.3
#1 lore raw

PATCH 1/3 dt-bindings: arm: sunxi: Add NetCube Systems OpenNMC (dobermann)

The OpenNMC is an open replacement for APC SmartSlot management cards based on the Nagami System-on-Module.

---
 Documentation/devicetree/bindings/arm/sunxi.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/sunxi.yaml +1 -0
index e6443c266fa1..8e2c9b8fe121 100644
@@ -600,6 +600,7 @@ properties:
           - enum:
               - netcube,nagami-basic-carrier
               - netcube,nagami-keypad-carrier
+              - netcube,dobermann
           - const: netcube,nagami
           - const: allwinner,sun8i-t113s
 
Signature · 1 line
2.47.3
#2 lore raw

Re: [PATCH v1 1/3] dt-bindings: arm: sunxi: Add NetCube Systems OpenNMC (dobermann)

Quoted 13 lines · Lukas Schmid

The OpenNMC is an open replacement for APC SmartSlot management cards based on the Nagami System-on-Module.

---
 Documentation/devicetree/bindings/arm/sunxi.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/sunxi.yaml +0 -0
index e6443c266fa1..8e2c9b8fe121 100644

Documentation/devicetree/bindings/arm/sunxi.yaml properties: · line 603

Quoted 4 lines
Documentation/devicetree/bindings/arm/sunxi.yaml +1 -0
@@ -600,6 +600,7 @@ properties:
           - enum:
               - netcube,nagami-basic-carrier
               - netcube,nagami-keypad-carrier
+              - netcube,dobermann

Don't break alphabetical order.

Best regards,
Krzysztof

#3 lore raw

PATCH 2/3 riscv: dts: allwinner: d1s-t113: Add uart4 pinctrl required by NetCube Systems OpenNMC

In reply to Lukas Schmid

Added the "uart4_pb_pins" pinctrl used by the OpenNMC

---
 arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi +6 -0
index 82cc85acccb1..00fddedfa36f 100644
@@ -191,6 +191,12 @@ uart3_pb_pins: uart3-pb-pins {
 				pins = "PB6", "PB7";
 				function = "uart3";
 			};
+
+			/omit-if-no-ref/
+			uart4_pb_pins: uart4-pb-pins {
+				pins = "PB2", "PB3";
+				function = "uart4";
+			};
 		};
 
 		ccu: clock-controller@2001000 {
Signature · 1 line
2.47.3
#4 lore raw

PATCH 3/3 ARM: dts: sunxi: add support for NetCube Systems OpenNMC (dobermann)

In reply to Lukas Schmid

NetCube Systems OpenNMC is an open replacement for APC SmartSlot Management Cards. It is based on the Nagami System-on-Module. It breaks out the following interfaces:

- 10/100 Mbps Ethernet
- USB Type-C OTG using a TUSB320 (usb0)
- USB Type-C Console Port using a CH340 (uart3)
- USB Type-A Host with internal CH334 USB-Hub (usb1)
- MicroSD Slot with Card-Detect (mmc0)
- WiFi/Bluetooth using the modules built-in ESP32
- SmartSlot serial interface (uart4)
- DS3232 RTC with CR1220 Battery Backup
- Extension connector providing SPI,I2C,USB,CAN,UART for future use.

---
 .../sun8i-t113s-netcube-dobermann.dts         | 149 ++++++++++++++++++
 1 file changed, 149 insertions(+)
 create mode 100644 arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-dobermann.dts
arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-dobermann.dts new file +149 -0
new file mode 100644
index 000000000000..97dd4b950dd8
@@ -0,0 +1,149 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (C) 2026 Lukas Schmid <[email protected]>
+ */
+
+/dts-v1/;
+#include "sun8i-t113s-netcube-nagami.dtsi"
+
+#include <dt-bindings/leds/common.h>
+
+/ {
+	model = "NetCube Systems OpenNMC (dobermann)";
+	compatible = "netcube,dobermann", "netcube,nagami",
+		     "allwinner,sun8i-t113s";
+
+	aliases {
+		serial2 = &uart4; // UART on SmartSlot
+		rtc0 = &ds3232;
+		rtc1 = &rtc; // not battery backed
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		led_heartbeat_green: led-heartbeat-green {
+			gpios = <&pio 6 14 GPIO_ACTIVE_HIGH>; /* PG14 */
+			linux,default-trigger = "heartbeat";
+			color = <LED_COLOR_ID_GREEN>;
+			function = LED_FUNCTION_HEARTBEAT;
+		};
+	};
+};
+
+&ehci0 {
+	status = "okay";
+};
+
+&ehci1 {
+	status = "okay";
+};
+
+&i2c2 {
+	status = "okay";
+
+	tusb320: typec@60 {
+		compatible = "ti,tusb320";
+		reg = <0x60>;
+		interrupts-extended = <&pio 3 22 IRQ_TYPE_LEVEL_LOW>;  /* PD22 */
+	};
+
+	ds3232: rtc@68 {
+		compatible = "dallas,ds3232";
+		reg = <0x68>;
+	};
+};
+
+/* microSD Card Slot on the board */
+&mmc0 {
+	vmmc-supply = <&reg_vcc3v3>;
+	disable-wp;
+	bus-width = <4>;
+	cd-gpios = <&pio 6 15 GPIO_ACTIVE_LOW>; /* PG15 */
+	status = "okay";
+};
+
+&ohci0 {
+	status = "okay";
+};
+
+&ohci1 {
+	status = "okay";
+};
+
+&pio {
+	gpio-line-names = "", "", "", "", // PA
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "SMART_TX", "SMART_RX", // PB
+			  "EXT_IO3", "EXT_IO2", "CONSOLE_TX", "CONSOLE_RX",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "eMMC_CLK", "eMMC_CMD", // PC
+			  "eMMC_D2", "eMMC_D1", "eMMC_D0", "eMMC_D3",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "", // PD
+			  "", "", "", "",
+			  "", "USB_SEC_EN", "EXT_SPI_nCS", "EXT_SPI_SCK",
+			  "EXT_SPI_MOSI", "EXT_SPI_MISO", "EXT_IO5", "EXT_IO4",
+			  "SMART_SEL", "", "", "",
+			  "I2C3_SCL", "I2C3_SDA", "TUSB320_nINT", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "ETH_CRSDV", "ETH_RXD0", "ETH_RXD1", "ETH_TXCK", // PE
+			  "ETH_TXD0", "ETH_TXD1", "ETH_TXEN", "",
+			  "ETH_MDC", "ETH_MDIO", "I2C3_nINT", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "uSD_D1", "uSD_D0", "uSD_CLK", "uSD_CLK", // PF
+			  "uSD_D3", "uSD_D2", "TUSB320_ID", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "ESP_CLK", "ESP_CMD", "ESP_D0", "ESP_D1", // PG
+			  "ESP_D2", "ESP_D3", "ESP_TXD", "ESP_RXD",
+			  "ESP_nBOOT", "ESP_nRST", "I2C2_SCL", "I2C2_SDA",
+			  "EXT_IO1", "EXT_IO0", "LED_HEARTBEAT", "SD_DETECT",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "",
+			  "", "", "", "";
+};
+
+/* SmartSlot serial */
+&uart4 {
+	pinctrl-0 = <&uart4_pb_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
+&usb_otg {
+	extcon = <&tusb320 0>;
+	dr_mode = "otg";
+	status = "okay";
+};
+
+&usbphy {
+	usb0_id_det-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
+	status = "okay";
+};
Signature · 1 line
2.47.3
#5 lore raw

Re: [PATCH v1 3/3] ARM: dts: sunxi: add support for NetCube Systems OpenNMC (dobermann)

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [Low] The `gpio-line-names` array incorrectly swaps the labels for the I2C2 and I2C3 buses. - [Low] The…

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] The gpio-line-names array incorrectly swaps the labels for the I2C2 and I2C3 buses.
- [Low] The gpio-line-names array duplicates the uSD_CLK label and is missing the uSD_CMD label. --

commit 29f0ec8865f8acd19ab87f4cdc6247b24643400b
Author: Lukas Schmid <[email protected]>
Subject: ARM: dts: sunxi: add support for NetCube Systems OpenNMC (dobermann)

This commit adds a new device tree for the NetCube Systems OpenNMC (dobermann), which is based on the Nagami System-on-Module. It defines hardware configurations for various interfaces including LEDs, USB, I2C, and sets up GPIO line names.

Quoted 5 lines
arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-dobermann.dts new file +0 -0
new file mode 100644
index 0000000000000..97dd4b950dd8a

[ ... ]

Quoted 1 line
arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-dobermann.dts new file +0 -0
@@ -0,0 +1,149 @@

[ ... ]

Quoted 2 lines

+&pio {

arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-dobermann.dts new file +1 -0
+	gpio-line-names = "", "", "", "", // PA

[ ... ]

arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-dobermann.dts line 104

Quoted 6 lines
arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-dobermann.dts new file +6 -0
+			  "", "", "", "", // PD
+			  "", "", "", "",
+			  "", "USB_SEC_EN", "EXT_SPI_nCS", "EXT_SPI_SCK",
+			  "EXT_SPI_MOSI", "EXT_SPI_MISO", "EXT_IO5", "EXT_IO4",
+			  "SMART_SEL", "", "", "",
+			  "I2C3_SCL", "I2C3_SDA", "TUSB320_nINT", "",

[Severity: Low]
Are the labels for I2C2 and I2C3 swapped here?

According to the sunxi-d1s-t113.dtsi pinctrl definitions, PD20 and PD21 are typically associated with I2C2. However, the labels defined here indicate I2C3.

Quoted 3 lines
arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-dobermann.dts new file +3 -0
+			  "", "", "", "",
+			  "", "", "", "",
+			  "ETH_CRSDV", "ETH_RXD0", "ETH_RXD1", "ETH_TXCK", // PE

[ ... ]

arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-dobermann.dts

Quoted 2 lines
arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-dobermann.dts new file +2 -0
+			  "", "", "", "",
+			  "uSD_D1", "uSD_D0", "uSD_CLK", "uSD_CLK", // PF

[Severity: Low]
Is this missing the uSD_CMD label?

Both PF2 and PF3 are identically labeled as uSD_CLK, which exposes a conflicting pin name to userspace utilities.

Quoted 1 line
arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-dobermann.dts new file +1 -0
+			  "uSD_D3", "uSD_D2", "TUSB320_ID", "",

[ ... ]

arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-dobermann.dts line 125

Quoted 4 lines
arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-dobermann.dts new file +4 -0
+			  "", "", "", "",
+			  "ESP_CLK", "ESP_CMD", "ESP_D0", "ESP_D1", // PG
+			  "ESP_D2", "ESP_D3", "ESP_TXD", "ESP_RXD",
+			  "ESP_nBOOT", "ESP_nRST", "I2C2_SCL", "I2C2_SDA",

[Severity: Low]
Similar to the PD pins above, should PG10 and PG11 be labeled as I2C3 instead of I2C2?

Quoted 1 line
arch/arm/boot/dts/allwinner/sun8i-t113s-netcube-dobermann.dts new file +1 -0
+			  "EXT_IO1", "EXT_IO0", "LED_HEARTBEAT", "SD_DETECT",

[ ... ]

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3