|
rk3288 pwm 中断号 数值问题咨询(请教)
发表于 2017-8-16 11:45:15
浏览:8806
|
回复:1
打印
只看该作者
[复制链接]
楼主
各位好。
rk3288中,有4路的pwm,pwm0,pwm1,pwm2,pwm3; 在内核源码 rk3288.dtsi 文件中,有这四路pwm的描述:
pwm0: pwm@ff680000 {
compatible = "rockchip,rk-pwm";
reg = <0xff680000 0x10>;
/* used by driver on remotectl'pwm */
interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
#pwm-cells = <2>;
pinctrl-names = "default";
pinctrl-0 = <&pwm0_pin>;
clocks = <&clk_gates11 11>;
clock-names = "pclk_pwm";
status = "disabled";
};
pwm1: pwm@ff680010 {
compatible = "rockchip,rk-pwm";
reg = <0xff680010 0x10>;
/* used by driver on remotectl'pwm */
interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
#pwm-cells = <2>;
pinctrl-names = "default";
pinctrl-0 = <&pwm1_pin>;
clocks = <&clk_gates11 11>;
clock-names = "pclk_pwm";
status = "disabled";
};
pwm2: pwm@ff680020 {
compatible = "rockchip,rk-pwm";
reg = <0xff680020 0x10>;
/* used by driver on remotectl'pwm */
interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
#pwm-cells = <2>;
pinctrl-names = "default";
pinctrl-0 = <&pwm2_pin>;
clocks = <&clk_gates11 11>;
clock-names = "pclk_pwm";
status = "disabled";
};
pwm3: pwm@ff680030 {
compatible = "rockchip,rk-pwm";
reg = <0xff680030 0x10>;
/* used by driver on remotectl'pwm */
interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
#pwm-cells = <2>;
pinctrl-names = "default";
pinctrl-0 = <&pwm3_pin>;
clocks = <&clk_gates11 11>;
clock-names = "pclk_pwm";
status = "disabled";
};
查看这些信息,发现有一个项都是一样的:
interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
这里是对应的中断号。有一个疑问:
为什么4路pwm的中断号是一样的呢?
在使用pwm的过程中,遇到一个问题,firefly3288的源码中,红外接收的驱动,用的是pwm0,能够正常;
而实际使用时,用这个驱动,但是pwm由pwm0改为pwm1,这样改后,发现pwm并不会进入中断;
针对这个问题,我猜测是由于对于的pwm的中断号不对。
1)
请问有遇到同样问题的朋友吗? 即使用pwm时,中断号不对的情况? 可以如何解决呢?
2)
这里的rk3288.dtsi文件中,用到了很多的中断号,这些中断号的确定,可以从哪些文件或者资料可以查阅到呢?
谢谢。
|
|