您尚未登录。

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

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 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

离线

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

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 129

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

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

离线

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

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 129

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

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

离线

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

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 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 是正常的吗

离线

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

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 129

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

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

离线

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

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 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";*/
        };
    };

但又没有参考资料

离线

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

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 129

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

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

离线

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

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 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>;
        };

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn