mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-21 11:12:08 +07:00
ARM: dts: rockchip: add adc button for Firefly
The only adc button connected to adc input is recovery button. Signed-off-by: Randy Li <ayaka@soulik.info> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
This commit is contained in:
parent
08e779e599
commit
23c0c210a1
@ -48,6 +48,19 @@ / {
|
||||
model = "Firefly-RK3288-reload";
|
||||
compatible = "firefly,firefly-rk3288-reload", "rockchip,rk3288";
|
||||
|
||||
adc-keys {
|
||||
compatible = "adc-keys";
|
||||
io-channels = <&saradc 1>;
|
||||
io-channel-names = "buttons";
|
||||
keyup-threshold-microvolt = <1800000>;
|
||||
|
||||
button-recovery {
|
||||
label = "Recovery";
|
||||
linux,code = <KEY_VENDOR>;
|
||||
press-threshold-microvolt = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
@ -246,6 +259,10 @@ &i2s {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&saradc {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&sdmmc {
|
||||
bus-width = <4>;
|
||||
cap-mmc-highspeed;
|
||||
|
@ -49,6 +49,19 @@ memory@0 {
|
||||
reg = <0 0x80000000>;
|
||||
};
|
||||
|
||||
adc-keys {
|
||||
compatible = "adc-keys";
|
||||
io-channels = <&saradc 1>;
|
||||
io-channel-names = "buttons";
|
||||
keyup-threshold-microvolt = <1800000>;
|
||||
|
||||
button-recovery {
|
||||
label = "Recovery";
|
||||
linux,code = <KEY_VENDOR>;
|
||||
press-threshold-microvolt = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
dovdd_1v8: dovdd-1v8-regulator {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "dovdd_1v8";
|
||||
|
Loading…
Reference in New Issue
Block a user