Other Parts Discussed in Thread: SYSCONFIG
we would like to assess all the R5F interfaces from A72 side.
for that , i have pin mux configurations for both UART and I2C from WKUP domain as below in k3-j784s4-evm.dts file.
&wkup_pmx2 {
soc_wkup_i2c0_pins: mywkup_gpio_vddshv0_mcu1-default-pins {
pinctrl-single,pins = <
J784S4_WKUP_IOPAD(0x098, PIN_INPUT, 0) /* (N33) WKUP_I2C0_SCL.WKUP_GPIO0_63 */
J784S4_WKUP_IOPAD(0x09c, PIN_INPUT, 0) /* (N35) WKUP_I2C0_SDA.WKUP_GPIO0_64 */
>;
};
mcu_i2c0_pins: mywkup_gpio_vddshv0_mcu1-default-pins {
pinctrl-single,pins = <
J784S4_WKUP_IOPAD(0x0a0, PIN_INPUT, 0) /* (M35) MCU_I2C0_SCL.WKUP_GPIO0_65 */
J784S4_WKUP_IOPAD(0x0a4, PIN_INPUT, 0) /* (G34) MCU_I2C0_SDA.WKUP_GPIO0_87 */
>;
};
mymcu_uart0_vddshv0_mcu1_pins_default: mywkup_gpio_vddshv0_mcu1-default-pins {
pinctrl-single,pins = <
J784S4_WKUP_IOPAD(0x088, PIN_OUTPUT, 0) /* (J37) WKUP_GPIO0_12 */
J784S4_WKUP_IOPAD(0x08c, PIN_INPUT, 0) /* (K38) WKUP_GPIO0_13 */
J784S4_WKUP_IOPAD(0x090, PIN_INPUT, 0) /* (H37) WKUP_GPIO0_14 */
J784S4_WKUP_IOPAD(0x094, PIN_OUTPUT, 0) /* (K37) WKUP_GPIO0_15 */
>;
};
mywkup_uart0_pins_default: mywkup_uart0-default-pins {
pinctrl-single,pins = <
J784S4_WKUP_IOPAD(0x070, PIN_INPUT, 0) /* (L37) WKUP_GPIO0_6.WKUP_UART0_CTSn */
J784S4_WKUP_IOPAD(0x074, PIN_OUTPUT, 0) /* (L36) WKUP_GPIO0_7.WKUP_UART0_RTSn */
J784S4_WKUP_IOPAD(0x048, PIN_INPUT, 0) /* (K35) WKUP_UART0_RXD */
J784S4_WKUP_IOPAD(0x04c, PIN_OUTPUT, 0) /* (K34) WKUP_UART0_TXD */
>;
};
};
&mcu_i2c0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&mcu_i2c0_pins>;
clock-frequency = <400000>;
};
&wkup_i2c0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&soc_wkup_i2c0_pins>;
clock-frequency = <400000>;
eeprom@50 {
compatible = "onsemi,24c256";
reg = <0x50>;
read-only;
};
};
&wkup_uart0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&mywkup_uart0_pins_default>;
};
&mcu_uart0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&mymcu_uart0_vddshv0_mcu1_pins_default>;
};
after this i built and copied dtb file to rootfs and expecting the driver probe for both MCU I2C and WKUP I2C in the linux, but only wakup i2c driver probed and mcu I2c is not. as you can see below.
this behavior has been observed for all GPIO, I2C , UART interfaces.
root@j784s4-evm:~# dmesg | grep i2c
[ 0.512251] platform 4800000.dsi: Fixed dependency cycle(s) with /bus@100000/i2c@2040000/dsi-edp-bridge@2c
[ 0.541354] platform panel: Fixed dependency cycle(s) with /bus@100000/i2c@2040000/dsi-edp-bridge@2c
[ 1.052561] i2c_dev: i2c /dev entries driver
[ 1.204311] omap_i2c 42120000.i2c: bus 2 rev0.12 at 400 kHz
[ 1.210073] pinctrl-single 4301c068.pinctrl: pin PIN34 already requested by 42120000.i2c; cannot claim for 40b00000.i2c
[ 1.221102] pinctrl-single 4301c068.pinctrl: pin-34 (40b00000.i2c) status -22
[ 1.242355] omap_i2c 40b00000.i2c: Error applying setting, reverse things back
[ 1.293993] omap_i2c 2000000.i2c: bus 0 rev0.12 at 400 kHz
[ 1.334751] omap_i2c 2040000.i2c: bus 3 rev0.12 at 400 kHz
[ 1.374584] omap_i2c 2050000.i2c: bus 4 rev0.12 at 400 kHz
[ 1.493908] pinctrl-single 4301c068.pinctrl: pin PIN34 already requested by 42120000.i2c; cannot claim for 40a00000.serial
root@j784s4-evm:~# dmesg | grep 40a00000
[ 1.493908] pinctrl-single 4301c068.pinctrl: pin PIN34 already requested by 42120000.i2c; cannot claim for 40a00000.serial
[ 1.505204] pinctrl-single 4301c068.pinctrl: pin-34 (40a00000.serial) status -22
[ 1.526718] omap8250 40a00000.serial: Error applying setting, reverse things back
root@j784s4-evm:~# dmesg | grep 40b00000
[ 1.210073] pinctrl-single 4301c068.pinctrl: pin PIN34 already requested by 42120000.i2c; cannot claim for 40b00000.i2c
[ 1.221102] pinctrl-single 4301c068.pinctrl: pin-34 (40b00000.i2c) status -22
[ 1.242355] omap_i2c 40b00000.i2c: Error applying setting, reverse things back
root@j784s4-evm:~#