主题中讨论的其他器件:TSC2046
你(们)好
在内核中 、我们的 tsc2046 在 MCSPI2上工作正常、但我们希望通过 U-boot 中的 SSPI cmd 来读取它。
CMD SSPI 不工作、
Hit any key to stop autoboot: 0 => => sspi 2:0.0 16 d0 Invalid bus 2 (err=-19) =>In \u-boot-2018.01\arch\arm\dts\am571x-idk.dts we have aliases { spi0 = &mcspi2; }; &mcspi2 { status = "okay"; ti,pindir-d0-out-d1-in; tsc2046@0 { interrupt-parent = <&gpio1>; interrupts = <25 0>; /* gpio1_25=25 */ pendown-gpio = <&gpio1 25 GPIO_ACTIVE_HIGH>; reg = <0>; /* CS0 */ compatible = "spidev"; spi-max-frequency = <1500000>; vcc-supply = <&ldousb_reg>; ti,x-min = /bits/ 16 <0>; ti,x-max = /bits/ 16 <8000>; ti,y-min = /bits/ 16 <0>; ti,y-max = /bits/ 16 <4800>; ti,x-plate-ohms = /bits/ 16 <40>; ti,pressure-max = /bits/ 16 <255>; ti,swap-xy; wakeup-source; }; }; In u-boot-2018.01\configs\am57xx_evm_defconfig we have CONFIG_DM_SPI=y CONFIG_TI_QSPI=y In u-boot-2018.01\arch\arm\mach-omap2\omap5\hw_data.c we have voidenable_basic_clocks(void) + (*prcm)->cm_l4per_i2c2_clkctrl, + (*prcm)->cm_l4per_mcspi2_clkctrl, voidenable_basic_uboot_clocks(void) + (*prcm)->cm_l4per_mcspi2_clkctrl,
