Sindbad The relevant code is a single line of code, with adjustable values to change the PWM rate.
That is not the "relevant code", if it absolutely requires an unknown amount of code being present in the kernel, which it does. Repeating the click-bait claim that the echo command that configures the code is the code seems unlikely to convince anybody in a decision-making role to invest time looking into this.
Sindbad Applying the method right now requires root and a custom kernel, but this would not be the case anymore if GrapheneOS would be able to integrate the function as a native software feature.
Correct. And it is possible that a GrapheneOS developer would decide to spend time on that based on this forum thread. It is also possible that would not happen. Something that could increase the likelihood of it happening would be a community contribution, such as an Android developer who isn't a member of the GrapheneOS developer team reading the code, porting it to GrapheneOS, and trying it.
To be clear, I am absolutely not telling anybody what to do. That said, I would advise staying away from the "one line of code" framing, because the people who would need to evaluate and support the actual code will know better.