Closed EgorLopatkin closed 1 week ago
These two dividers correspond to the following two KPI registers, rather than the clock register. Below is an explanation of the settings for these two dividers
Is there any other method of dividing the HXT clock frequency in addition to the registers described? My crystal clock frequency is 24 MHz, so the row scan time is (1 / 24,000,000) 256 256, which is 2.7 milliseconds. I would like to increase this time in order to increase the de-bouncing sampling cycle.
If your board has LXT on it. You can try changing HXT to LXT. The frequency of LXT is 32.768 kHz. The modification method is as follows:
assigned-clocks = <&clk KPI_MUX>; assigned-clock-parents = <&clk LXT>;
Thanks
Hi. I need help setting up the keyboard frequency divider. I have already using two dividers in the ma35d1.dtsi file:
And trying to set this clock divider: https://github.com/OpenNuvoton/MA35D1_linux-5.10.y/blob/9273b8f48c75cc19933858526390bbd6ab662919/drivers/clk/nuvoton/clk-ma35d1.c#L668 How to do it correctly? I tried using the devmem utility:
# devmem 0x4046023C 32 0x80000000
But according to the response of the keyboard, it feels like it doesn't work.