Closed M0Rf30 closed 7 months ago
@vipaoL @z3ntu @alikates
I can confirm it works on markw, I can turn the ir LED on by executing echo 1 > /sys/class/leds/irled/brightness
@kiciuk @marc0x1 can you give feedback for mido?
Is there no upstream driver for GPIO IR LED like with ir-spi-led
? While I haven't looked into the ir-spi-led
driver I doubt it's getting exposed as a simple LED device, I'm guessing there's some kernel API for IR that then user space uses?
Is there no upstream driver for GPIO IR LED like with
ir-spi-led
? While I haven't looked into their-spi-led
driver I doubt it's getting exposed as a simple LED device, I'm guessing there's some kernel API for IR that then user space uses?
Yeah maybe I found gpio-ir-tx and pwm-ir-tx . I will give them a try
@Kiciuk @marc0x1 can you give feedback for mido? Can you provide, if you have it, the compiled version?
I have tested on mido the driver is initialized and it creates /dev/lirc0. I try to use with ir-ctl but unfortunately it doesn't work for me.
As i see in the downstream source for mido we should use pwm-ir-tx
Downstream node:
pwm_ir {
compatible = "pwm-ir";
pwms = <&pmi8950_pwm 0 0>;
reg-id = "vdd";
vdd-supply = <&pm8953_l8>;
};
As i see in the downstream source for mido we should use pwm-ir-tx
Downstream node:
pwm_ir { compatible = "pwm-ir"; pwms = <&pmi8950_pwm 0 0>; reg-id = "vdd"; vdd-supply = <&pm8953_l8>; };
Thanks for the suggestion. I will submit something for test today I think
@barni2000 @vipaoL
I enabled the pwm generator for pmi8950 and use of pwm-ir-tx,
I can't test it. let me know
Judging from various dts the pwm node should live in pmic@3 node, has a reg = 0xb000 and one channel (chanid=0
). So basically a msm8916-pwm with different .base. Some devices (sdm450) also enable a pm8950_pwm (not pmi), on pmic@1 and reg 0xbc00 (seems equivalent to msm8916-pwm)
Don't forget to enable required kernel modules
@M0Rf30 I am going to check on mido, but i see you changed markw but it uses gpio-ir. The two device has different irled solution.
@barni2000 @vipaoL I enabled the pwm generator for pmi8950 and use of pwm-ir-tx, I can't test it. let me know Judging from various dts the pwm node should live in pmic@3 node, has a reg = 0xb000 and one channel (
chanid=0
). So basically a msm8916-pwm with different .base. Some devices (sdm450) also enable a pm8950_pwm (not pmi), on pmic@1 and reg 0xbc00 (seems equivalent to msm8916-pwm)Don't forget to enable required kernel modules
I have test but unfortunately it is not reacts for anything. The drivers are initialized i have /dev/lirc0 but the led is not working for me.
I have added pmi8950_gpio pinctrl for mido and it is working now.
@M0Rf30 will you send it to upstream?
I think to upstream this and posting a link here
… markw
Need to set:
CONFIG_RC_CORE=m CONFIG_RC_MAP=m CONFIG_LIRC=y CONFIG_LEDS_GPIO=m CONFIG_IR_GPIO_CIR=m CONFIG_IR_GPIO_TX=m CONFIG_IR_PWM_TX=m