Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 148998

Forum Post: RE: Ili 210x capacitive touchscreen am335x custom board

$
0
0

I checked the hardware and it's definitely this I2C adress. My touchscreen is connected to I2C bus 1. But as you suggested, my pinmux appears wrong. When the kernel boots, this comes up:

[    0.088958] _omap_mux_get_by_name: Could not find signal mii1_crs.i2c1_sda
[    0.088989] _omap_mux_get_by_name: Could not find signal mii1_rxerr.i2c1_scl

I don't know why the signal can't be found. In mux33xx.c I defined the signals:

_AM33XX_MUXENTRY(MII1_CRS, 0,   "gmii1_crs", "rmii1_crs_dv", "spi1_d0", "i2c1_sda",   "mcasp1_aclkx", "uart5_ctsn", "uart2_rxd", "gpio3_1"),  _AM33XX_MUXENTRY(MII1_RXERR, 0,   "gmii1_rxerr", "rmii1_rxerr", "spi1_d1", "i2c1_scl",   "mcasp1_fsx", "uart5_rtsn", "uart2_txd", "gpio3_2"),

And in board-am335xevm.c I have the pinmux declared for my touchscreen:

static struct pinmux_config i2c1_pin_mux[] = {  {"mii1_crs.i2c1_sda",    OMAP_MUX_MODE3 | AM33XX_SLEWCTRL_SLOW |      AM33XX_PULL_ENBL | AM33XX_INPUT_EN},  {"mii1_rxerr.i2c1_scl",   OMAP_MUX_MODE3 | AM33XX_SLEWCTRL_SLOW |      AM33XX_PULL_ENBL | AM33XX_INPUT_EN},  {"mcasp0_axr1.gpio3_20", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT},//toegevoegd voor tp_reset  {"xdma_event_intr0.gpio0_19", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT},  {NULL, 0}, };

and I set it up:

static void i2c1_init(void) {        setup_pin_mux(i2c1_pin_mux);  omap_register_i2c_bus(2, 100, am335x_i2c1_boardinfo,ARRAY_SIZE(am335x_i2c1_boardinfo));  return; }

Viewing all articles
Browse latest Browse all 148998

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>