请教一下,为什么我的AXP203的电源芯片在Power_supply下没有内容?按原来小白菜的帖子我的配置了驱动目录下的两个选项。也看了一下axp209.dtsi的内容,也看不出有什么错误,按说这是个官方标配,不应该有任何问题才对。但现就是电池部分没有任何信息。希望有做过的朋友提点一下,不胜感激。
离线
[ 1.271235] i2c driver name i2c_device_probe xxxxxxxxxxxxxxxxxxxxxxxxx
[ 1.277908] i2c driver name = c0806200 xxxxxxxxxxxxxxxxxxxxxxxxx
[ 1.284094] axp20x_i2c_probe xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[ 1.289865] axp20x-i2c 0-0034: AXP20x variant AXP209 found
[ 1.295464] axp20x_i2c_probe 222222222222222222222
[ 1.306817] axp20x-i2c 0-0034: Failed to request IRQ 0 for axp20x_irq_chip: -22
[ 1.314193] axp20x-i2c 0-0034: failed to add irq chip: -22
[ 1.319929] axp20x-i2c: probe of 0-0034 failed with error -22
[ 1.326779] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.335532] rdev->desc->name = regulator-dummy
[ 1.340580] GPIO lookup for consumer cd
[ 1.344439] GPIO lookup for consumer wp
[ 1.407014] sunxi-mmc 1c0f000.mmc: base:0xc41fc000 irq:23
还有
[ 1.519058] rdev->desc->name = regulator-dummy
[ 1.523609] rdev->desc->name = regulator-dummy
[ 1.528820] rdev->desc->name = regulator-dummy
同时在目录下没有生成任何与电源有关系的信息
#
# cd /sys/
# cd class/
# cd power_supply/
# ls
# ^C
#
离线
加了也调试过,不是驱动没加,驱动加载了,那个DTS也是标准的,无须修改。但编译后的结果是它根本就没有产生 电池信息。
离线
不是这样的,我原来的DTS有写一个中断信息,但因为我们的芯片没有接中断IO,所以本质上是没有意义的。而且我也打电话问过代理商,不接IRQ是没有问题的,可以用。
离线
有没有QQ?或才到晕哥的群里聊啊。
首先是有骗过去的。但是也是空的啊
离线
可以骗过去,但依然没什么用
[ 1.156613] input: hy46xx_ts as /devices/virtual/input/input0
[ 1.216859] hy46xx_probe: run over is ok
[ 1.221103] i2c driver name i2c_device_probe xxxxxxxxxxxxxxxxxxxxxxxxx
[ 1.227773] i2c driver name = c0805dbc xxxxxxxxxxxxxxxxxxxxxxxxx
[ 1.233991] axp20x_i2c_probe xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[ 1.239774] axp20x-i2c 0-0034: AXP20x variant AXP209 found
[ 1.245379] axp20x_i2c_probe 222222222222222222222
[ 1.256685] mfd_add_devices xxxxxxxxxxxxx
[ 1.260772] cell->name = axp20x-gpio
[ 1.264792] cell->name = axp20x-pek
[ 1.268540] cell->name = axp20x-regulator
[ 1.272694] axp20x_regulator_probe wwwwwwwwwwwwwwwwwwww
[ 1.278642] regulator_desc->name = ldo1
[ 1.282538] rdev->desc = regulator_desc = ldo1
[ 1.287034] rdev->supply_name = acin
[ 1.290706] rdev->desc->name = regulator-dummy
[ 1.295149] rdev->desc->name = ldo1
[ 1.298656] rdev->desc->name = regulator-dummy
[ 1.303093] ldo1: supplied by regulator-dummy
[ 1.307760] devm_regulator_register xxxxxxxxxxxxxxxxxx
[ 1.312992] regulator_desc->name = ldo2
[ 1.316900] rdev->desc = regulator_desc = ldo2
[ 1.321344] rdev->supply_name = ldo24in
[ 1.325268] rdev->desc->name = regulator-dummy
[ 1.329729] rdev->desc->name = ldo2
[ 1.333211] rdev->desc->name = regulator-dummy
[ 1.337660] ldo2: supplied by regulator-dummy
[ 1.343203] devm_regulator_register xxxxxxxxxxxxxxxxxx
[ 1.348492] regulator_desc->name = ldo3
[ 1.352358] rdev->desc = regulator_desc = ldo3
[ 1.356801] rdev->supply_name = ldo3in
[ 1.360663] rdev->desc->name = regulator-dummy
[ 1.365105] rdev->desc->name = ldo3
[ 1.368601] rdev->desc->name = regulator-dummy
[ 1.373038] ldo3: supplied by regulator-dummy
[ 1.378124] devm_regulator_register xxxxxxxxxxxxxxxxxx
[ 1.383356] regulator_desc->name = ldo4
[ 1.387264] rdev->desc = regulator_desc = ldo4
[ 1.391706] rdev->supply_name = ldo24in
[ 1.395631] rdev->desc->name = regulator-dummy
[ 1.400086] rdev->desc->name = ldo4
[ 1.403570] rdev->desc->name = regulator-dummy
[ 1.408021] ldo4: supplied by regulator-dummy
[ 1.412629] devm_regulator_register xxxxxxxxxxxxxxxxxx
[ 1.417897] regulator_desc->name = ldo5
[ 1.421762] rdev->desc = regulator_desc = ldo5
[ 1.426203] rdev->supply_name = ldo5in
[ 1.430063] rdev->desc->name = regulator-dummy
[ 1.434506] rdev->desc->name = ldo5
[ 1.438004] rdev->desc->name = regulator-dummy
[ 1.442441] ldo5: supplied by regulator-dummy
[ 1.447936] devm_regulator_register xxxxxxxxxxxxxxxxxx
[ 1.453170] regulator_desc->name = dcdc2
[ 1.457164] rdev->desc = regulator_desc = dcdc2
[ 1.461696] rdev->supply_name = vin2
[ 1.465359] rdev->desc->name = regulator-dummy
[ 1.469826] rdev->desc->name = dcdc2
[ 1.473396] rdev->desc->name = regulator-dummy
[ 1.477847] dcdc2: supplied by regulator-dummy
[ 1.483001] devm_regulator_register xxxxxxxxxxxxxxxxxx
[ 1.488277] regulator_desc->name = dcdc3
[ 1.492221] rdev->desc = regulator_desc = dcdc3
[ 1.496750] rdev->supply_name = vin3
[ 1.500436] rdev->desc->name = regulator-dummy
[ 1.504880] rdev->desc->name = dcdc3
[ 1.508468] rdev->desc->name = regulator-dummy
[ 1.512904] dcdc3: supplied by regulator-dummy
[ 1.518095] devm_regulator_register xxxxxxxxxxxxxxxxxx
[ 1.523349] cell->name = axp20x-adc
[ 1.527089] cell->name = axp20x-battery-power-supply
[ 1.532378] cell->name = axp20x-ac-power-supply
[ 1.537303] cell->name = axp20x-usb-power-supply
[ 1.542214] axp20x-i2c 0-0034: AXP20X driver loaded
[ 1.548336] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.557099] rdev->desc->name = regulator-dummy
[ 1.562042] GPIO lookup for consumer cd
[ 1.565895] GPIO lookup for consumer wp
[ 1.626894] sunxi-mmc 1c0f000.mmc: base:0xc41fc000 irq:23
[ 1.633988] usbcore: registered new interface driver usbhid
[ 1.639660] usbhid: USB HID core driver
[ 1.650957] NET: Registered protocol family 17
[ 1.655541] Key type dns_resolver registered
[ 1.660067] Registering SWP/SWPB emulation handler
这个是打印信息,中间我自己添加了一些。打印出来的。它根本最后 都用了regulator-dummy
离线
是的,非常尴尬。。。。。。
离线
最大的一个问题是,它压根没有运行batty部分axp20x_power_probe
离线