Skip to contentSkip to conversation

i2c: ma35d1: Add support for MA35D1 I2C controller

PATCH Superseded Zi-Yu Chen 2 participants 6 messages May 12 – May 13

Subsystems (4)

v3 of 12 Superseded Latest is v12 →

lore
Share & tools
lore

Zi-Yu Chen

author
#0 lore raw

v3 cover i2c: ma35d1: Add support for MA35D1 I2C controller

This series adds support for the I2C controller found in the Nuvoton MA35D1 SoC. The driver supports controller and optional target mode and runtime power management.

The implementation has been tested on the Nuvoton MA35D1 SOM board.

Changes in v3:
- Fix minor DTS formatting issues (whitespace, missing newline)

v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Overall:
- Rebase on linux-i2c/i2c-next
- Switched terminology from "master/slave" to "controller/target".

- Patch 1 (dt-bindings):
- Simplified description and fixed 'reg' size in example.

- Patch 2 (driver):
- Modernized using devm_*, generic device properties, and FIELD_PREP/GENMASK.
- Optimized power management by moving clock control to runtime PM.
- Simplified code by removing redundant .remove(), .owner, and inlines.
- Added dev_err_probe() and default bus frequency handling.

- Patch 3 (dts):
- Moved i2c aliases to board dts and reordered nodes alphabetically.

v1: https://lore.kernel.org/r/[email protected]
Zi-Yu Chen (3):
dt-bindings: i2c: nuvoton,ma35d1-i2c: Add MA35D1 I2C controller
i2c: ma35d1: Add Nuvoton MA35D1 I2C driver support
arm64: dts: nuvoton: Add I2C nodes for MA35D1 SoC

 .../bindings/i2c/nuvoton,ma35d1-i2c.yaml      |  63 ++
 .../boot/dts/nuvoton/ma35d1-som-256m.dts      |  15 +
 arch/arm64/boot/dts/nuvoton/ma35d1.dtsi       |  60 ++
 drivers/i2c/busses/Kconfig                    |  13 +
 drivers/i2c/busses/Makefile                   |   1 +
 drivers/i2c/busses/i2c-ma35d1.c               | 792 ++++++++++++++++++
 6 files changed, 944 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/i2c/nuvoton,ma35d1-i2c.yaml
 create mode 100644 drivers/i2c/busses/i2c-ma35d1.c
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH v3 1/3 dt-bindings: i2c: nuvoton,ma35d1-i2c: Add MA35D1 I2C controller

Add device tree binding documentation for the I2C controller found in the Nuvoton MA35D1 SoC.

---
 .../bindings/i2c/nuvoton,ma35d1-i2c.yaml      | 63 +++++++++++++++++++
 1 file changed, 63 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/i2c/nuvoton,ma35d1-i2c.yaml
Documentation/devicetree/bindings/i2c/nuvoton,ma35d1-i2c.yaml new file +63 -0
new file mode 100644
index 000000000000..f2c004049d86
@@ -0,0 +1,63 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/i2c/nuvoton,ma35d1-i2c.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Nuvoton MA35D1 I2C Controller
+
+maintainers:
+  - Zi-Yu Chen <[email protected]>
+
+description:
+  The Nuvoton MA35D1 I2C controller supports controller and optional target mode.
+
+allOf:
+  - $ref: /schemas/i2c/i2c-controller.yaml#
+
+properties:
+  compatible:
+    const: nuvoton,ma35d1-i2c
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+
+  clock-frequency:
+    description:
+      Desired I2C bus clock frequency in Hz. The absence of this property
+      indicates the default frequency 100 kHz.
+
+  resets:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+  - resets
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/clock/nuvoton,ma35d1-clk.h>
+    #include <dt-bindings/reset/nuvoton,ma35d1-reset.h>
+
+    i2c0: i2c@40800000 {
+      compatible = "nuvoton,ma35d1-i2c";
+      reg = <0x40800000 0x1000>;
+      interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
+      clocks = <&clk I2C0_GATE>;
+      clock-frequency = <100000>;
+      resets = <&sys MA35D1_RESET_I2C0>;
+      #address-cells = <1>;
+      #size-cells = <0>;
+    };
Signature · 1 line
2.34.1
author
#2 lore raw

PATCH v3 2/3 i2c: ma35d1: Add Nuvoton MA35D1 I2C driver support

In reply to Zi-Yu Chen

Add I2C support for Nuvoton MA35D1 SoC.
The controller supports standard, fast and fast-plus modes, and provides controller/target functionality.

---
 drivers/i2c/busses/Kconfig      |  13 +
 drivers/i2c/busses/Makefile     |   1 +
 drivers/i2c/busses/i2c-ma35d1.c | 792 ++++++++++++++++++++++++++++++++
 3 files changed, 806 insertions(+)
 create mode 100644 drivers/i2c/busses/i2c-ma35d1.c
drivers/i2c/busses/Kconfig +13 -0
index ea3e7e92465d..401dcc9be46b 100644
@@ -1601,4 +1601,17 @@ config I2C_VIRTIO
           This driver can also be built as a module. If so, the module
           will be called i2c-virtio.
 
+config I2C_MA35D1
+	tristate "Nuvoton MA35D1 I2C driver"
+	depends on ARCH_MA35 || COMPILE_TEST
+	select I2C_SLAVE
+	help
+	  If you say yes to this option, support will be included for the
+	  I2C controller in the Nuvoton MA35D1 SoC. This driver
+	  supports the standard I2C bus protocols, including master and
+	  slave modes.
+
+	  This driver can also be built as a module. If so, the module
+	  will be called i2c-ma35d1.
+
 endmenu
drivers/i2c/busses/Makefile +1 -0
index 3755c54b3d82..ca75dae4955c 100644
@@ -131,6 +131,7 @@ obj-$(CONFIG_I2C_XILINX)	+= i2c-xiic.o
 obj-$(CONFIG_I2C_XLP9XX)	+= i2c-xlp9xx.o
 obj-$(CONFIG_I2C_RCAR)		+= i2c-rcar.o
 obj-$(CONFIG_I2C_GXP)		+= i2c-gxp.o
+obj-$(CONFIG_I2C_MA35D1)	+= i2c-ma35d1.o
 
 # External I2C/SMBus adapter drivers
 obj-$(CONFIG_I2C_DIOLAN_U2C)	+= i2c-diolan-u2c.o
drivers/i2c/busses/i2c-ma35d1.c new file +792 -0

792 lines not on this page · raw message

Signature · 1 line
2.34.1
author
#4 lore raw

PATCH v3 3/3 arm64: dts: nuvoton: Add I2C nodes for MA35D1 SoC

In reply to Zi-Yu Chen

Add I2C controller nodes to the MA35D1 SoC dtsi. Also enable the I2C interfaces on the MA35D1 SOM board to allow communication with onboard peripherals.

---
 .../boot/dts/nuvoton/ma35d1-som-256m.dts      | 15 +++++
 arch/arm64/boot/dts/nuvoton/ma35d1.dtsi       | 60 +++++++++++++++++++
 2 files changed, 75 insertions(+)
arch/arm64/boot/dts/nuvoton/ma35d1-som-256m.dts +15 -0
index f6f20a17e501..a0f1d76d288e 100644
@@ -13,6 +13,7 @@ / {
 	compatible = "nuvoton,ma35d1-som", "nuvoton,ma35d1";
 
 	aliases {
+		i2c0 = &i2c2;
 		serial0 = &uart0;
 		serial11 = &uart11;
 		serial12 = &uart12;
@@ -55,6 +56,12 @@ &clk {
 			   "integer";
 };
 
+&i2c1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c1>;
+	status = "okay";
+};
+
 &pinctrl {
 	uart-grp {
 		pinctrl_uart0: uart0-pins {
@@ -98,6 +105,14 @@ pinctrl_uart16: uart16-pins {
 			power-source = <1>;
 		};
 	};
+
+	i2c-grp {
+		pinctrl_i2c1: i2c1-pins {
+			nuvoton,pins = <1 10 12>,
+				       <1 11 12>;
+			bias-disable;
+		};
+	};
 };
 
 &uart0 {
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi +60 -0

66 lines not on this page · raw message

Signature · 1 line
2.34.1
#3 lore raw

Re: [PATCH v3 2/3] i2c: ma35d1: Add Nuvoton MA35D1 I2C driver support

In reply to Zi-Yu Chen
Thank you for your contribution! Sashiko AI review found 11 potential issue(s) to consider: - [High] Missing runtime PM checks in shared IRQ handler and missing synchronize_irq() - [High] Unsafe…

Thank you for your contribution! Sashiko AI review found 11 potential issue(s) to consider:
- [High] Missing runtime PM checks in shared IRQ handler and missing synchronize_irq()
- [High] Unsafe hardware accesses with disabled clock in system PM and target registration
- [High] Transfer timeouts lead to Use-After-Free and fail to reset hardware
- [High] Unhandled NACK with I2C_M_IGNORE_NAK causes infinite interrupt storm
- [High] Protocol violation and memory corruption on 0-length and 1-length read messages
- [High] Race conditions in target unregistration and hardware reset
- [Medium] Data NACK is incorrectly reported as a successful transfer
- [Medium] Unsigned integer comparison prevents probe error detection
- [Medium] Clock resource leak in probe error path
- [Medium] Hardware reset function fails to restore target address configuration
- [Low] Incorrect Runtime PM error check in target unregistration
--

commit 900661bb640e824e1459adee8e6a1180f0ab5bca
Author: Zi-Yu Chen <[email protected]>

i2c: ma35d1: Add Nuvoton MA35D1 I2C driver support

This commit adds I2C support for the Nuvoton MA35D1 SoC. It provides controller and target functionality, and supports standard, fast, and fast-plus modes.

drivers/i2c/busses/i2c-ma35d1.c new file +0 -0
new file mode 100644
index 0000000000000..c643f406e0008
@@ -0,0 +1,792 @@

[ ... ]

Quoted 6 lines
(quoted diff) +6 -0
+static void ma35d1_i2c_reset(struct ma35d1_i2c *i2c)
+{
+	unsigned int tmp;
+
+	tmp = readl(i2c->regs + MA35_CLKDIV);
+

Review

Quoted 10 lines
(quoted diff) +10 -0
+	reset_control_assert(i2c->rst);
+	usleep_range(10, 20);
+	reset_control_deassert(i2c->rst);
+
+	writel(tmp, (i2c->regs + MA35_CLKDIV));
+	ma35d1_i2c_write_CTL(i2c, MA35_CTL_I2CEN);
+
+	if (i2c->target)
+		ma35d1_i2c_write_CTL(i2c, MA35_CTL_SI_AA);
+}

Does this fully restore the target mode configuration? The reset asserts the hardware reset, which wipes the controller state, but it does not rewrite the target address register MA35_ADDR0.

Could this leave the device with a cleared target address, breaking target functionality until it is manually re-registered?

Also, could this sleep during an active interrupt? If this reset is called and the device uses a shared IRQ, could an interrupt fire during the usleep_range() while the device is in reset? Because the lock is not taken here, the IRQ handler might read from MA35_STATUS0 and trigger a bus fault.

[ ... ]

Quoted 6 lines
(quoted diff) +6 -0
+static void i2c_ma35d1_irq_controller_trx(struct ma35d1_i2c *i2c,
+					  unsigned long i2c_status)
+{
+	unsigned char byte;
+
+	switch (i2c_status) {

[ ... ]

Review

Quoted 3 lines
(quoted diff) +3 -0
+	case MA35_M_TRAN_DATA_NACK:
+		ma35d1_i2c_stop(i2c, 0);
+		break;

Does passing 0 to ma35d1_i2c_stop() mask the error? This increments i2c->msg_idx and reports to the caller that the message was successfully transferred, even though the target rejected the data byte.

Should this pass an error code like -EIO or -ENXIO instead?

Review

Quoted 11 lines
(quoted diff) +11 -0
+
+	case MA35_M_TRAN_ADDR_NACK:
+	case MA35_M_RECE_ADDR_NACK:
+		/* Controller Transmit Address NACK */
+		/* 0x20: SLA+W has been transmitted and NACK has been received */
+		/* 0x48: SLA+R has been transmitted and NACK has been received */
+		if (!(i2c->msg->flags & I2C_M_IGNORE_NAK)) {
+			dev_dbg(i2c->dev, "\n i2c: ack was not received\n");
+			ma35d1_i2c_stop(i2c, -ENXIO);
+		}
+		break;

Could this cause an infinite interrupt loop? If I2C_M_IGNORE_NAK is set, the switch breaks without clearing the interrupt flag MA35_CTL_SI or advancing the state machine.

When the IRQ handler returns, the same unacknowledged hardware interrupt will fire again immediately, potentially freezing the CPU.

Review

Quoted 9 lines
(quoted diff) +9 -0
+
+	case MA35_M_RECE_ADDR_ACK:
+		if (is_last_msg(i2c) && i2c->msg->len == 0)
+			ma35d1_i2c_stop(i2c, 0);
+		else if (is_last_msg(i2c) && (i2c->msg->len == 1))
+			ma35d1_i2c_write_CTL(i2c, MA35_CTL_SI);
+		else
+			ma35d1_i2c_write_CTL(i2c, MA35_CTL_SI_AA);
+		break;

Could this corrupt memory on 0-length read messages? If a read message is not the final message (!is_last_msg), it falls through to the else branch, setting MA35_CTL_SI_AA to ACK an incoming byte.

For a 0-length message, this commands the hardware to receive a byte, which triggers MA35_M_RECE_DATA_ACK. The received byte will be written to i2c->msg->buf[0], but the I2C core leaves buf as NULL for 0-length reads, leading to a NULL pointer dereference.

Additionally, for a 1-length intermediate message, it would send an ACK instead of a NACK for the final byte, holding SDA low and violating the I2C protocol, which prevents a Repeated Start.

[ ... ]

Review

Quoted 6 lines
(quoted diff) +6 -0
+static irqreturn_t ma35d1_i2c_irq(int irqno, void *dev_id)
+{
+	struct ma35d1_i2c *i2c = dev_id;
+	unsigned long status, flags;
+
+	status = readl(i2c->regs + MA35_STATUS0);

Is this hardware access safe when the device is runtime suspended?

The device requests the interrupt with IRQF_SHARED in probe. If another device on the same IRQ line triggers an interrupt while this I2C controller is runtime suspended and its clock is gated, reading MA35_STATUS0 will cause a bus fault.

Should this use pm_runtime_get_if_active() to verify the device is powered before accessing registers?

[ ... ]

Quoted 3 lines
(quoted diff) +3 -0
+static int ma35d1_i2c_doxfer(struct ma35d1_i2c *i2c, struct i2c_msg *msgs,
+			     int num)
+{

[ ... ]

Quoted 14 lines
(quoted diff) +14 -0
+	timeout = wait_event_timeout(i2c->wait, i2c->msg_num == 0, HZ * 5);
+	ret = i2c->msg_idx;
+
+	if (timeout == 0)
+		dev_dbg(i2c->dev, "timeout\n");
+	else if (ret != num)
+		dev_dbg(i2c->dev, "incomplete xfer (%d)\n", ret);
+
+	err = readl_poll_timeout(i2c->regs + MA35_CTL0, val,
+				 !(val & MA35_CTL_STO), 100,
+				 STOP_TIMEOUT_MS * 1000);
+
+	if (err) {
+		dev_err(i2c->dev, "Bus stuck! Resetting controller...\n");

Review

Quoted 10 lines
(quoted diff) +10 -0
+		ma35d1_i2c_reset(i2c);
+	}
+
+	if (i2c->arblost) {
+		dev_dbg(i2c->dev, "arb lost, stop\n");
+		i2c->arblost = 0;
+	}
+
+	return ret;
+}

Could a timeout lead to a use-after-free regression?

If wait_event_timeout() expires, no STOP condition was ever commanded, so the MA35_CTL_STO bit is likely already 0. This causes readl_poll_timeout() to succeed instantly.

Because err is 0, ma35d1_i2c_reset() is bypassed, leaving the controller active and interrupts enabled. The function returns without an error code like -ETIMEDOUT, and the caller frees the msgs buffer.

If the hardware later completes the operation or asserts a delayed interrupt, i2c_ma35d1_irq_controller_trx() will dereference the freed i2c->msg pointer.

[ ... ]

Quoted 2 lines
(quoted diff) +2 -0
+static int ma35d1_reg_target(struct i2c_client *target)
+{

[ ... ]

Review

Quoted 6 lines
(quoted diff) +6 -0
+	if (target->flags & I2C_CLIENT_TEN)
+		return -EAFNOSUPPORT;
+
+	ma35d1_i2c_enable_irq(i2c);
+
+	ret = pm_runtime_resume_and_get(i2c->dev);

Can this access the controller while the clock is disabled?

ma35d1_i2c_enable_irq() writes to the MA35_CTL0 register. By calling it before pm_runtime_resume_and_get(), the register write happens while the device may still be runtime suspended with its clock gated off, resulting in a bus fault.

[ ... ]

Quoted 5 lines
(quoted diff) +5 -0
+static int ma35d1_unreg_target(struct i2c_client *target)
+{
+	struct ma35d1_i2c *i2c = i2c_get_adapdata(target->adapter);
+	unsigned int val;
+	int ret;

Review

Quoted 10 lines
(quoted diff) +10 -0
+
+	/* Disable I2C */
+	val = readl(i2c->regs + MA35_CTL0);
+	val &= ~MA35_CTL_I2CEN;
+	writel(val, i2c->regs + MA35_CTL0);
+
+	/* Disable I2C interrupt */
+	ma35d1_i2c_disable_irq(i2c);
+
+	i2c->target = NULL;

Could this race with an active target interrupt? The i2c->target pointer is set to NULL without acquiring i2c->lock.

If a target interrupt is firing concurrently, i2c_slave_event() could dereference the NULL pointer.

Review

Quoted 4 lines
(quoted diff) +4 -0
+
+	ret = pm_runtime_put_sync(i2c->dev);
+	if (ret)
+		dev_err(i2c->dev, "failed to suspend i2c controller");

Does this incorrectly treat a successful put as an error?

According to PM subsystem rules, pm_runtime_put_sync() returns 1 when the device is already suspended. This is a success case, but checking if (ret) will spuriously log an error. Should this be if (ret < 0)?

[ ... ]

Quoted 2 lines
(quoted diff) +2 -0
+struct ma35d1_i2c {
+	spinlock_t lock; /* Protects I2C register access and state */

[ ... ]

Quoted 2 lines
(quoted diff) +2 -0
+	unsigned int msg_ptr;
+	unsigned int irq;

[ ... ]

Quoted 2 lines
(quoted diff) +2 -0
+static int ma35d1_i2c_probe(struct platform_device *pdev)
+{

[ ... ]

Review

Quoted 3 lines
(quoted diff) +3 -0
+	i2c->irq = platform_get_irq(pdev, 0);
+	if (i2c->irq < 0)
+		return dev_err_probe(dev, i2c->irq, "failed to get irq\n");

Does this successfully detect probe errors? Since i2c->irq is declared as an unsigned int, the check if (i2c->irq < 0) will always be false.

A negative error code from platform_get_irq() would be cast to a positive unsigned value, masking the failure here and deferring it until devm_request_irq() fails later.

[ ... ]

Review

Quoted 4 lines
(quoted diff) +4 -0
+rpm_put:
+	pm_runtime_put_noidle(dev);
+	return ret;
+}

Does this leave the clock permanently enabled on probe failure?

Because pm_runtime_resume_and_get() was called earlier, using pm_runtime_put_noidle() drops the usage count without allowing the device to enter the runtime suspended state. When devres cleans up the PM runtime context, the peripheral clock will remain enabled.

[ ... ]

Quoted 9 lines
(quoted diff) +9 -0
+static int ma35d1_i2c_suspend(struct device *dev)
+{
+	struct ma35d1_i2c *i2c = dev_get_drvdata(dev);
+	unsigned int val;
+
+	spin_lock_irq(&i2c->lock);
+
+	/* Prepare for wake-up from I2C events if target mode is active */
+	if (i2c->target) {

Review

Quoted 10 lines
(quoted diff) +10 -0
+		val = readl(i2c->regs + MA35_CTL0);
+		val |= (MA35_CTL_SI | MA35_CTL_AA);
+		writel(val, i2c->regs + MA35_CTL0);
+		ma35d1_i2c_enable_irq(i2c);
+	}
+
+	spin_unlock_irq(&i2c->lock);
+
+	/* Setup wake-up control */
+	writel(0x1, i2c->regs + MA35_WKCTL);

Are these register accesses safe if the device is already runtime suspended?

The ma35d1_i2c_suspend() and ma35d1_i2c_resume() functions unconditionally access the wakeup registers (MA35_WKCTL, MA35_WKSTS). If the device was already runtime suspended before system sleep, its clock is gated off, and these register accesses will cause a synchronous bus fault.

[ ... ]

Quoted 4 lines
(quoted diff) +4 -0
+static int ma35d1_i2c_runtime_suspend(struct device *dev)
+{
+	struct ma35d1_i2c *i2c = dev_get_drvdata(dev);
+	unsigned int val;

Review

Quoted 10 lines
(quoted diff) +10 -0
+
+	/* Disable I2C controller */
+	val = readl(i2c->regs + MA35_CTL0);
+	val &= ~MA35_CTL_I2CEN;
+	writel(val, i2c->regs + MA35_CTL0);
+
+	clk_disable(i2c->clk);
+
+	return 0;
+}

Does this safely handle mid-flight interrupts? Since the interrupt is registered with IRQF_SHARED, disabling the clock without first calling synchronize_irq() risks a crash if an IRQ handler is still executing or about to execute on another CPU when the clock is gated off.

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

Re: [PATCH v3 3/3] arm64: dts: nuvoton: Add I2C nodes for MA35D1 SoC

In reply to Zi-Yu Chen
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider: - [Medium] The I2C0 controller node is entirely missing from the SoC device tree. - [Medium] Dangling…

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [Medium] The I2C0 controller node is entirely missing from the SoC device tree.
- [Medium] Dangling device alias pointing to a disabled node while the active node is left unaliased.
- [Medium] Meaningful mismatch between commit message and implementation.
--

commit 872a73a723152a79752769d63796c54985979c16
Author: Zi-Yu Chen <[email protected]>

arm64: dts: nuvoton: Add I2C nodes for MA35D1 SoC

This commit adds I2C controller nodes to the MA35D1 SoC device tree. It also enables an I2C interface on the MA35D1 SOM board and sets up the corresponding pin control configurations.

Quoted 3 lines

Add I2C controller nodes to the MA35D1 SoC dtsi. Also enable the I2C interfaces on the MA35D1 SOM board to allow communication with onboard peripherals.

The commit message mentions enabling multiple I2C interfaces and allowing communication with onboard peripherals. Since only a single interface is enabled in the device tree and no child nodes for peripherals are added, is this description accurate, or were some parts of the patch omitted?

arch/arm64/boot/dts/nuvoton/ma35d1-som-256m.dts / { · line 16

Quoted 9 lines
arch/arm64/boot/dts/nuvoton/ma35d1-som-256m.dts +1 -0
index f6f20a17e5018..a0f1d76d288e1 100644
@@ -13,6 +13,7 @@ / {
 	compatible = "nuvoton,ma35d1-som", "nuvoton,ma35d1";
 
 	aliases {
+		i2c0 = &i2c2;

Does this alias point to the correct node? Since the i2c2 node remains disabled, the subsystem will not create this interface. Should this be pointing to the newly enabled i2c1 node instead?

[ ... ]

arch/arm64/boot/dts/nuvoton/ma35d1.dtsi uart15: serial@407f0000 { · line 375

Quoted 9 lines
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi +1 -0
index e51b98f5bdce4..a88d1c2938e78 100644
@@ -372,6 +372,66 @@ uart15: serial@407f0000 {
 			status = "disabled";
 		};
 
+		i2c1: i2c@40810000 {

It looks like the i2c0 controller node is missing from the hardware description. Should i2c0 be included here to fully describe the SoC, even if it is marked as reserved for the secure world or a coprocessor?

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