#
✕ nick:blazra[m]
#asahi-dev · 2022-10-07 18:08
blazra[m]looks like there is a mistake in the T600x fpwm address in the dtsi file
#asahi-dev · 2022-10-06 21:12
blazra[m]Maybe a typo while refactoring or something? I don't know, but it didn't work for me at first because of the bit.
#asahi-dev · 2022-10-06 21:06
blazra[m]This works for me on 14" MBP
#asahi-dev · 2022-10-06 21:05
blazra[m]j`ey: ChaosPrincess: Here it is: https://gist.github.com/blazra/95700324d86c5159f128877cc684f668
#asahi-dev · 2022-10-06 16:37
blazra[m]I think you had bit(1) as enable and for me it's bit(0). But maybe I am wrong...
#asahi-dev · 2022-10-06 16:36
blazra[m]I have the 14" MBP. Is there a chance it is different?
#asahi-dev · 2022-10-06 16:34
blazra[m]<j`ey> "blazra: seems like ChaosPrincess..." <- I have done some little changes like filling in the pwm_get_state() function, adding the bit defines and I think you had the enable bit wrong? I can share it later when I will get to my PC. However, sure, let ChaosPrincess have it - I haven't got much time recently. Sorry.
#asahi-dev · 2022-09-17 21:07
blazra[m]j`ey: thank you
#asahi-dev · 2022-09-17 20:59
blazra[m]I have updated my gist: https://gist.github.com/blazra/87ea502b3563727b97408dd2ce457f4a
#asahi-dev · 2022-09-17 20:59
blazra[m]You can clear the status bits by writing ones to them.
#asahi-dev · 2022-09-17 20:59
blazra[m]Then, bit(0) in the status register gets set at the end of the OFF period and bit(1) at the end of the ON period.
#asahi-dev · 2022-09-17 20:58
blazra[m]The control register bit(2) that I previously thought enabled "single-shot" mode is more like a "single-pulse" mode where bit(10) selects if you want positive or negative pulse.
#asahi-dev · 2022-09-17 20:58
blazra[m]Also, the difference between bit(0) and bit(14) is that bit(14) is just output enable - bit(0) is probably a global enable.
#asahi-dev · 2022-09-17 20:58
blazra[m]j`ey: Regarding the keyboard backlight PWM: I have found out some more details.
#asahi-dev · 2022-09-13 14:52
blazra[m]<DmitrySharshakov[m]> "But K/W (or °C/W) most likely..." <- I don't know the context, but K/W is thermal resistance. It means how large is a difference of temperature between two regions in space when there is specific heat flow (power) between the two regions.
#asahi-dev · 2022-09-06 07:50
blazra[m]taky zdravím :D
#asahi-dev · 2022-09-06 07:41
blazra[m]povik: I don't know what that means exactly. However, bit(10) works only in single-shot mode - it didn't do anything in continuous. But maybe it needs reload using bit(5)? I don't know. I can try again after work.
#asahi-dev · 2022-09-06 00:27
blazra[m]Although I am not sure if any of this is actually useful for a driver which controls keyboard backlight.
#asahi-dev · 2022-09-06 00:26
blazra[m]My notes: https://gist.github.com/blazra/87ea502b3563727b97408dd2ce457f4a
#asahi-dev · 2022-09-06 00:26
blazra[m]Maybe we can add these to the list of bits we "know" what they do :D
#asahi-dev · 2022-09-06 00:26
blazra[m]j`ey: I have played a bit with the PWM control register bits (for the keyboard backlight) and I think that bit2 is stopping the counter and then you can start just one PWM period using bit9 (like a single-shot mode).
#asahi-dev · 2022-07-11 19:27
blazra[m]it does just work! just updated and rebooted and it works (14" m1pro with BT headphones), thanks!