Thread 中讨论的其他器件:J7200XSOMXEVM
工具与软件:
大家好、团队成员:
我们 已根据 J7200XSOMXEVM 参考设计设计设计了定制电路板。
我们正在使用 PROCESSOR-SDK-LINUX-RT J7200(10.00.07.03)为定制电路板开发软件。
定制电路板配备了7段 LED 显示屏。 引脚配置如下:
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 */
>;
};
在引导加载程序(u-boot)期间、"GPIO 方向寄存器"设置为输出。
=> 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 [ ] ...
但是、在内核启动期间、某些 LED 会意外亮起。 检查寄存器后发现"GPIO 方向寄存器"已被重写。
~# devmem2 0x42110010 /dev/mem opened. Memory mapped at address 0xffffa0f82000. Read at address 0x42110010 (0xffffa0f82010): 0xFFFFF847
我检查了器件树、没有引脚冲突。
除了设备树之外、我还应该检查什么其他内容吗?
此外、参考设计 J7200XSOMXEVM 使用 WKUP_GPIO0_6作为输入。 这是否有任何影响?
此致、
Mizutani
