moby: fix the lradc threshold so that volume-down actually triggers

This commit is contained in:
2024-09-27 11:48:12 +00:00
parent faa5742ca3
commit ef9016c1de
2 changed files with 19 additions and 0 deletions

View File

@@ -37,6 +37,10 @@ in
name = "rk3399-pinephone-pro";
dtsFile = ./rk3399-pinephone-pro-battery.dtso;
}
{
name = "rk3399-pinephone-pro";
dtsFile = ./rk3399-pinephone-pro-lradc-fix.dtso;
}
];
# this seems to not actually be necessary (unless maybe my *overlay* #include's stuff)

View File

@@ -0,0 +1,15 @@
// pinephone-pro uses an ADC for the volume button controls.
// mainline pinephone-pro dts file declares the threshold for vol-down as 0.6V,
// which is too high and causes most vol-down presses to be misread as vol-up presses.
// u-boot and megi both change this to 0.4 V.
/dts-v1/;
/plugin/;
/ {
compatible = "pine64,pinephone-pro";
};
&{/adc-keys/button-down} {
press-threshold-microvolt = <400000>;
};