Hi and upps, 2015-08-21 14:09 GMT+02:00 Christian Hartmann <cornogle@xxxxxxxxxxxxxx>: > Hi > > 2015-08-21 9:43 GMT+02:00 Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>: >> So please drop the code in 1) to be able to request the GPIO in the >> driver. > > [ 6.129664] spi spi-WM510205:00: 8333333 Hz actual, PIO > [ 6.129675] spi spi-WM510205:00: setup mode 0, 8 bits/w, 8000000 Hz max --> 0 > [ 6.129759] spi spi-WM510205:00: checking WM510205 with bmp180 > [ 6.129765] spi spi-WM510205:00: checking WM510205 with bmp181 > [ 6.129797] spi spi-WM510205:00: modalias WM510205 in id_table not > found, returns NULL > [ 6.129825] arizona spi-WM510205:00: arizona_acpi_get_type(), than > via spi_get_device_id(). > [ 6.129831] arizona spi-WM510205:00: arizona_acpi_get_type matched > [ 6.129836] arizona spi-WM510205:00: using 1 as type for arizona audio codec > [ 6.129840] arizona spi-WM510205:00: regmap set to wm5102_spi > [ 6.130630] arizona spi-WM510205:00: spi_irq = -1 > [ 6.130638] arizona spi-WM510205:00: acpi_dev_add_driver_gpios > arizona_acpi_gpios added done, 0 > [ 6.130642] arizona spi-WM510205:00: arizona_spi_probe done, > calling arizona_dev_init > [ 6.130647] arizona spi-WM510205:00: dev_set_drvdata done for 1 > [ 6.130653] acpi WM510205:00: GPIO: looking up 0 in _CRS > [ 6.130703] arizona spi-WM510205:00: arizona_of_get_core_pdata > (ACPI) using irq_gpio GPIO = 146 > [ 6.130708] arizona spi-WM510205:00: arizona_of_get_core_pdata for 1 > [ 6.130713] arizona spi-WM510205:00: regcache_cache_only for 1 set > [ 6.130717] arizona spi-WM510205:00: added wm5102_core_supplies for 1 > [ 6.131255] arizona spi-WM510205:00: mfd_add_devices done for 1 > [ 6.131267] spi-WM510205:00 supply AVDD not found, using dummy regulator > [ 6.131301] spi-WM510205:00 supply DBVDD1 not found, using dummy regulator > [ 6.131332] arizona spi-WM510205:00: devm_regulator_bulk_get done for 1 > [ 6.131338] LDO1: supplied by regulator-dummy > [ 6.131389] arizona spi-WM510205:00: regulator_get done for 1 > [ 6.131397] arizona spi-WM510205:00: GPIO lookup for consumer reset > [ 6.131401] arizona spi-WM510205:00: using ACPI for GPIO lookup > [ 6.131407] acpi WM510205:00: GPIO: looking up reset-gpios > [ 6.131414] acpi WM510205:00: GPIO: _DSD returned WM510205:00 3 1 0 0 > [ 6.131498] acpi WM510205:00: GPIO: looking up 0 in _CRS > [ 6.131543] no flags found for reset > [ 6.131549] arizona spi-WM510205:00: devm_gpiod_get done to request > /RESET: -1 > [ 6.131556] arizona spi-WM510205:00: regulator_bulk_enable done, > enable core supplies: 0 > [ 6.131561] arizona spi-WM510205:00: regulator_enable done, enable DCVDD: 0 > [ 6.141803] arizona spi-WM510205:00: arizona_disabe_reset > [ 6.141813] arizona spi-WM510205:00: regcache_cache_only > [ 6.144796] arizona spi-WM510205:00: regmap_read : read ID > register, return value: 0 > [ 6.144806] arizona spi-WM510205:00: found device ID: ffff > [ 6.175352] arizona spi-WM510205:00: Unknown device ID ffff > [ 6.175584] pxa2xx-spi 80860F0E:00: registered child spi-WM510205:00 > [ 6.177870] sst-acpi 80860F28:00: No matching ASoC machine driver found > > as you said, I removed the code in 1) so the EBUSY error is gone. > > What is with the spi_irq = -1 ?? is this a problem here? > > the message "no flags found for reset" seems also ok, but it does not > read the device id yet, > what else can be wrong here? > > In previous mails I added the _CRS for this device WM510202, is the > gpio-mapping, with its indexes ok so far?? > > The last two messages are clear to me. > I will add the machine driver if the device id was read correctly etc. > > cheers > chris I have overseen the code, where the function arizona_ldo1_of_get_pdata() is called only if CONFIG_OF is enabled.... will fix this first... sorry for the extra noise cheers chris -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html