WhyCan Forum

本站无需注册,无需积分,无需回复可下载所有资料,如果真的喜欢小站,请您注册之后请至少回复一个帖子激活Id,谢谢支持! 站长QQ: 516333132 (挖坑网/填坑网) admin@whycan.cn

您尚未登录。

#1 2019-08-05 09:48:48

pqfeng
会员
注册时间: 2018-08-18
累计积分: 129

请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了,

请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了,还导致触摸屏注册失败。
这是为什么?
[    1.052101] hy46xx_ts_init  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[    1.059502] Successfully added driver hy46xx_ts
[    1.064630] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.071513] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.076066] i2c /dev entries driver

[    1.080955] i2c i2c-0: Failed to register i2c client  hy46xx_ts at 0x38 (-16)
[    1.088183] i2c i2c-0: of_i2c: Failure registering /soc/i2c@01c2ac00/hycon@38
[    1.095312] i2c i2c-0: Failed to create I2C device for /soc/i2c@01c2ac00/hycon@38

[    1.103009] i2c driver name i2c_device_probe  xxxxxxxxxxxxxxxxxxxxxxxxx
[    1.109658] i2c driver name = c0805f74   xxxxxxxxxxxxxxxxxxxxxxxxx
[    1.115873] axp20x_i2c_probe  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[    1.121648] axp20x-i2c 0-0034: AXP20x variant AXP209 found
[    1.135023] ldo1: supplied by regulator-dummy
[    1.139844] ldo2: supplied by regulator-dummy
[    1.145390] ldo3: supplied by regulator-dummy
[    1.150672] ldo4: supplied by regulator-dummy
[    1.155295] ldo5: supplied by regulator-dummy
[    1.160912] dcdc2: supplied by regulator-dummy
[    1.166068] dcdc3: supplied by regulator-dummy
[    1.172336] axp20x-i2c 0-0034: AXP20X driver loaded
[    1.178653] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.187939] GPIO lookup for consumer cd
[    1.191798] GPIO lookup for consumer wp
[    1.246738] sunxi-mmc 1c0f000.mmc: base:0xc41fc000 irq:23
[    1.253820] usbcore: registered new interface driver usbhid
[    1.259492] usbhid: USB HID core driver
[    1.270782] NET: Registered protocol family 17
[    1.275343] Key type dns_resolver registered
[    1.279871] Registering SWP/SWPB emulation handler
[    1.289297] 222222222222222222222  simplefb_probe 33333333333333333333333333333
[    1.296933] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4380000
[    1.307504] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.316819] xxxxxxxxxxxxxxxxxxxxxxxxxxx  info->fix.smem_len = 1536000
[    1.331726] Console: switching to colour frame buffer device 100x30
[    1.344121] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.351602] GPIO lookup for consumer usb0_id_det
[    1.356284] GPIO lookup for consumer usb0_vbus_det
[    1.362228] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.373624] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.379469] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.389922] hub 3-0:1.0: USB hub found
[    1.395868] hub 3-0:1.0: 1 port detected
[    1.401050] using random self ethernet address
[    1.405509] using random host ethernet address
[    1.410998] usb0: HOST MAC b2:b2:f1:7b:92:58
[    1.415321] usb0: MAC 22:31:d4:6c:34:04
[    1.419311] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.426826] g_cdc gadget: g_cdc ready
[    1.430768] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:36:54 UTC (2214)
[    1.439238] vcc3v0: disabling
[    1.442215] vcc5v0: disabling
[    1.445190] ldo2: disabling
[    1.4

离线

#2 2019-08-05 10:10:04

aozima
会员
注册时间: 2019-05-25
累计积分: 24

Re: 请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了,

1.  断开触摸芯片看能否启动
2. 上逻辑分析仪看具体发生了什么

离线

#3 2019-08-05 11:03:16

pqfeng
会员
注册时间: 2018-08-18
累计积分: 129

Re: 请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了,

触摸芯片的问题是因为我把多个芯片打开了,注释掉就没事了。现在没有问题了。只有
[    1.439238] vcc3v0: disabling
[    1.442215] vcc5v0: disabling
[    1.445190] ldo2: disabling
这个问题了。主要还是不知道AXP这个芯片怎么工作的。

离线

#4 2019-08-05 14:07:59

jimmy
Moderator
注册时间: 2017-10-29
累计积分: 153

Re: 请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了,

万用表量下电源输出,3v0没有会出事吧,你的电路是怎么接的?

离线

#5 2019-08-05 14:32:34

pqfeng
会员
注册时间: 2018-08-18
累计积分: 129

Re: 请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了,

程序跑不下去了。死在这里了。卡死。像是被人为的关闭了那个3V。

离线

#6 2019-08-05 14:34:21

pqfeng
会员
注册时间: 2018-08-18
累计积分: 129

Re: 请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了,

[    1.115873] axp20x_i2c_probe  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[    1.121648] axp20x-i2c 0-0034: AXP20x variant AXP209 found
[    1.135023] ldo1: supplied by regulator-dummy
[    1.139844] ldo2: supplied by regulator-dummy
[    1.145390] ldo3: supplied by regulator-dummy
[    1.150672] ldo4: supplied by regulator-dummy
[    1.155295] ldo5: supplied by regulator-dummy
[    1.160912] dcdc2: supplied by regulator-dummy
[    1.166068] dcdc3: supplied by regulator-dummy
[    1.172336] axp20x-i2c 0-0034: AXP20X driver loaded

这一段中,这个regulator-dummy 是正常的吗

离线

#7 2019-08-05 14:37:29

jimmy
Moderator
注册时间: 2017-10-29
累计积分: 153

Re: 请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了,

dummy 不对吧,这个是虚假的/模拟的输出吧?

离线

#8 2019-08-05 14:38:15

pqfeng
会员
注册时间: 2018-08-18
累计积分: 129

Re: 请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了,

jimmy,,,你好,能在QQ上和你交流吗?谢谢

离线

#9 2019-08-05 14:39:29

pqfeng
会员
注册时间: 2018-08-18
累计积分: 129

Re: 请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了,

我也觉得应该不对。但我不知道如何去改,我感觉应该改dts这一部分:
    regulators {
        /* Default work frequency for buck regulators */
        x-powers,dcdc-freq = <1500>;

        reg_dcdc2: dcdc2 {
            regulator-name = "dcdc2";
        };

        reg_dcdc3: dcdc3 {
            regulator-name = "dcdc3";
        };

        reg_ldo1: ldo1 {
            /* LDO1 is a fixed output regulator */
            regulator-always-on;
            regulator-name = "ldo1";
        };

        reg_ldo2: ldo2 {
            regulator-name = "ldo2";
        };

        reg_ldo3: ldo3 {
            regulator-name = "ldo3";
        };

        reg_ldo4: ldo4 {
            regulator-name = "ldo4";
        };

        reg_ldo5: ldo5 {
            regulator-name = "ldo5";
            /*status = "disabled";*/
        };
    };

但又没有参考资料

离线

#10 2019-08-05 15:02:32

jimmy
Moderator
注册时间: 2017-10-29
累计积分: 153

Re: 请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了,

基本不上qq,这个pmu我也没用过,只是根据输出log猜测而已。

离线

#11 2019-08-05 16:35:02

pqfeng
会员
注册时间: 2018-08-18
累计积分: 129

Re: 请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了,

现在已经能进到console了,但是不知道如何测试电量。

离线

#12 2019-08-05 19:56:50

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 7,176

Re: 请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了,

pqfeng 说:

现在已经能进到console了,但是不知道如何测试电量。

请问怎么解决的?

离线

#13 2019-08-06 09:56:18

pqfeng
会员
注册时间: 2018-08-18
累计积分: 129

Re: 请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了,

呃。写在另一个帖子里了。说一下解决方法:
1,我在每一个名称后添加了最大最小电压值,这个是根据手册上来的,但没有用。依然出错。然后不死心,每几个加上了regulator-always-on;    结果就OK了。之所以加这个,是因为它报错时有disable 所以我想加一下always on试试,不让它关闭。结果是正确的。现在的问题是不知道如何读电量。因为/dev/下没有input/, 更没有event0,这个比较坑爹。。。

    regulators {
        /* Default work frequency for buck regulators */
        x-powers,dcdc-freq = <1500>;

        reg_dcdc2: dcdc2 {
            regulator-name = "dcdc2";   
        regulator-always-on;           
        regulator-min-microvolt = <700000>;
        regulator-max-microvolt = <2275000>;
        };

        reg_dcdc3: dcdc3 {
            regulator-name = "dcdc3";
            regulator-always-on;
        regulator-min-microvolt = <700000>;
        regulator-max-microvolt = <3500000>;
        };

        reg_ldo1: ldo1 {
            /* LDO1 is a fixed output regulator */
            regulator-always-on;
            regulator-name = "ldo1";
        regulator-min-microvolt = <1300000>;
        regulator-max-microvolt = <1300000>;
           
        };

        reg_ldo2: ldo2 {
            regulator-name = "ldo2";
            regulator-always-on;
        regulator-min-microvolt = <1800000>;
        regulator-max-microvolt = <3300000>;
        };

        reg_ldo3: ldo3 {
            regulator-name = "ldo3";
        regulator-min-microvolt = <700000>;
        regulator-max-microvolt = <3500000>;
        };

离线

页脚