moby: fix the lradc threshold so that volume-down actually triggers
This commit is contained in:
@@ -37,6 +37,10 @@ in
|
|||||||
name = "rk3399-pinephone-pro";
|
name = "rk3399-pinephone-pro";
|
||||||
dtsFile = ./rk3399-pinephone-pro-battery.dtso;
|
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)
|
# this seems to not actually be necessary (unless maybe my *overlay* #include's stuff)
|
||||||
|
@@ -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>;
|
||||||
|
};
|
Reference in New Issue
Block a user