I2C0默认是给pmic使用,因此需要修改TFA两个设备树如下。需要按照下面方式配置。 output/build/arm-trusted-firmware-custom/fdts/ma35d1.dtsi ,修改如下,增加<I2C0_TZNS> sspcc: sspcc@404F0000 { compatible = "nuvoton,ma35d1-sspcc"; reg = <0x0 0x404F0000 0x0 0x1000>; config = <UART0_TZNS>, <SDH0_TZNS>, <SDH1_TZNS>, <NAND_TZNS>, <QSPI0_TZNS>, <CRYPTO_TZNS>, <WDTWWDT1_TZNS>, <HSUSBD_TZNS>, <PDMA0_TZNS>, <PDMA1_TZNS>, <TIMER01_TZNS>, <UART16_SUBM>, <I2C0_TZNS>, <TRNG_TZNS>; };
output/build/arm-trusted-firmware-custom/fdts/ma35d1-cpu800-wb-128m.dts 屏蔽以下代码
/*&sspcc { gpio_s = <PD6_S>, <PD7_S>; }; */
|