您尚未登录。

楼主 # 2024-06-21 15:30:40

mxfh
会员
注册时间: 2021-04-30
已发帖子: 8
积分: 0.5

V3S使用AXP203

请教各位大神,把V3S改成了AXP203供电,用的是linux5.2,中断引脚接的是PB2,参考了 https://whycan.com/t_583.html 写的,启动报错如下
[    0.701748] i2c /dev entries driver
[    0.706274] axp20x-i2c 0-0034: AXP20x variant AXP209 found
[    0.717585] gpio gpiochip0: (1c20800.pinctrl): gpiochip_lock_as_irq: tried to flag a GPIO set as output for IRQ
[    0.727716] sun8i-v3s-pinctrl 1c20800.pinctrl: unable to lock HW IRQ 2 for IRQ
[    0.734942] genirq: Failed to request resources for axp20x_irq_chip (irq 45) on irqchip sunxi_pio_edge
[    0.744359] axp20x-i2c 0-0034: Failed to request IRQ 45 for axp20x_irq_chip: -5
[    0.751664] axp20x-i2c 0-0034: failed to add irq chip: -5
[    0.757115] axp20x-i2c: probe of 0-0034 failed with error -5
[    0.763884] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.772510] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    0.783072] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    0.813088] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    0.820378] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    0.856330] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB

不知道为啥提示申请不到中断,PB2没有复用,MMC CD引脚PB3又是可以正常申请到中断的;
/sys/class/power_supply下面没有任何东西

我的设备树节点如下
&i2c0 {
    status = "okay";

    axp209: pmic@34 {
        compatible = "x-powers,axp209";
        reg = <0x34>;
        interrupt-parent=<&pio>;
        interrupts=<1 2 IRQ_TYPE_EDGE_FALLING>;
        //irq-gpios = <&pio 1 2 IRQ_TYPE_EDGE_FALLING>;
        interrupt-controller;
        #interrupt-cells = <1>;

        ac-power-supply {
            compatible = "x-powers,axp202-ac-power-supply";
            status = "okay";
        };

        gpio {
            compatible = "x-powers,axp209-gpio";
            gpio-controller;
            #gpio-cells = <0x02>;
            status = "okay";
        };

        battery-power-supply {
            compatible = "x-powers,axp209-battery-power-supply";
            status = "okay";
            //monitored-battery = <0x15>;
        };

        regulators {
            x-powers,dcdc-freq = <1500>;

            dcdc2 {
                regulator-name = "dcdc2";
                regulator-always-on;
                regulator-min-microvolt = <1200000>;
                regulator-max-microvolt = <1200000>;
            };

            dcdc3 {
                regulator-name = "dcdc3";
                regulator-always-on;
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
            };

            ldo1 {
                regulator-always-on;
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
                regulator-name = "ldo1";
            };

            ldo2 {
                regulator-name = "ldo2";
                regulator-always-on;
                regulator-min-microvolt = <3000000>;
                regulator-max-microvolt = <3000000>;
            };

            ldo3 {
                regulator-name = "ldo3";
                regulator-always-on;
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
            };

            ldo4 {
                regulator-name = "ldo4";
                regulator-always-on;
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
            };

            ldo5 {
                regulator-name = "ldo5";
                status = "disabled";
            };
        };

        usb_power_supply {
            compatible = "x-powers,axp202-usb-power-supply";
            status = "disabled";
        };
    };
};

最近编辑记录 mxfh (2024-06-21 18:21:31)

离线

页脚

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

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