FAQ_MA35D1_I2C0_Interface_on_MA35D1_IoT_EVB

Post Reply
yhcheng3
Posts: 55
Joined: 02 Dec 2022, 10:46

26 May 2023, 17:40

Question :

I2C0 Interface on MA35D1 IoT EVB cannot work


Answer.

I2C0 is originally reserved for PMIC usage, so it requires modifying the device tree entries for TFA as follows. Please configure it as shown below.


The modification to the "ma35d1.dtsi" file in "output/build/arm-trusted-firmware-custom/fdts" should be as follows, adding "<I2C0_TZNS>":

Code: Select all

sspcc: sspcc@404F0000 {
    compatible = "nuvoton,ma35d1-sspcc";
    reg = <0x0 0x404F0000 0x0 0x1000>;
    config = …,
             …
             <I2C0_TZNS>,
             …
};


Note that "<I2C0_TZNS>" has been added to the "config" property under the "sspcc" node.

To disable the following code in "output/build/arm-trusted-firmware-custom/fdts/ma35d1-cpu800-wb-128m.dts":

Code: Select all

/*&sspcc {
        gpio_s = <PD6_S>,
                <PD7_S>;
};*/

#MA35D1, #IOT_EVB, # I2C0
.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests