Other Parts Discussed in Thread: J7200XSOMXEVM
Tool/software:
Hi Team,
We have designed a custom board based on the J7200XSOMXEVM reference design.
We are developing the software for the custom board with PROCESSOR-SDK-LINUX-RT-J7200 (10.00.07.03).
The custom board is equipped with a 7-segment LED display. The pin configuration is as follows:
sseg_led_pins_default: sseg-led-pins-default {
pinctrl-single,pins = <
J721E_WKUP_IOPAD(0x64, PIN_OUTPUT, 7) /* (B21) WKUP_GPIO0_3 */
J721E_WKUP_IOPAD(0x68, PIN_OUTPUT, 7) /* (D13) WKUP_GPIO0_4 */
J721E_WKUP_IOPAD(0x6c, PIN_OUTPUT, 7) /* (B16) WKUP_GPIO0_5 */
J721E_WKUP_IOPAD(0x70, PIN_OUTPUT, 7) /* (C14) WKUP_GPIO0_6 */
J721E_WKUP_IOPAD(0x74, PIN_OUTPUT, 7) /* (C18) WKUP_GPIO0_7 */
J721E_WKUP_IOPAD(0x78, PIN_OUTPUT, 7) /* (C21) WKUP_GPIO0_8 */
J721E_WKUP_IOPAD(0x7c, PIN_OUTPUT, 7) /* (C19) WKUP_GPIO0_9 */
J721E_WKUP_IOPAD(0x80, PIN_OUTPUT, 7) /* (C20) WKUP_GPIO0_10 */
>;
};
"GPIO Direction Register" is set to output during bootloader(u-boot).
=> gpio status -a
Bank gpio@42110000_:
gpio@42110000_0: input: 0 [ ]
gpio@42110000_1: input: 0 [ ]
gpio@42110000_2: input: 0 [ ]
gpio@42110000_3: output: 0 [ ]
gpio@42110000_4: output: 0 [ ]
gpio@42110000_5: output: 0 [ ]
gpio@42110000_6: output: 0 [ ]
gpio@42110000_7: output: 0 [ ]
gpio@42110000_8: output: 0 [ ]
gpio@42110000_9: output: 0 [ ]
gpio@42110000_10: output: 0 [ ]
...
However, during kernel startup, some LEDs lit up unintentionally. Upon checking the registers, it was found that the "GPIO Direction Register" had been rewritten.
~# devmem2 0x42110010
/dev/mem opened.
Memory mapped at address 0xffffa0f82000.
Read at address 0x42110010 (0xffffa0f82010): 0xFFFFF847
I checked the device tree and there were no pin conflicts.
Are there any other things I should check besides the device tree?
Also, the reference design J7200XSOMXEVM uses WKUP_GPIO0_6 as an input. Does this have any effect?
Regards,
mizutani
