forked from radxa-pkg/radxa-overlays
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request radxa-pkg#177 from nascs/rock4_pwm_ir_remotectl
add carMp3 pwm ir remotectl for rock4
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
arch/arm64/boot/dts/rockchip/overlays/rk3399-pwm1-ir-rx.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/interrupt-controller/arm-gic.h> | ||
#include <dt-bindings/input/input.h> | ||
|
||
/ { | ||
metadata { | ||
title = "Enable IR receiver on PWM1"; | ||
compatible = "rockchip,rk3399"; | ||
category = "misc"; | ||
exclusive = "GPIO4_C6", "pwm1"; | ||
description = "Enable IR receiver on PWM1."; | ||
}; | ||
|
||
fragment@0 { | ||
target = <&pwm1>; | ||
|
||
__overlay__ { | ||
compatible = "rockchip,remotectl-pwm"; | ||
remote_pwm_id = <1>; | ||
handle_cpu_id = <1>; | ||
remote_support_psci = <1>; | ||
status = "okay"; | ||
pinctrl-0 = <&pwm1_pin>; | ||
pinctrl-names = "default"; | ||
interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH 0>; | ||
|
||
ir_key1 { | ||
rockchip,usercode = <0xff00>; | ||
rockchip,key_table = | ||
<0xba KEY_CHANNELDOWN>, <0xb9 KEY_CHANNEL>, <0xb8 KEY_CHANNELUP>, | ||
<0xbb KEY_PREVIOUS>, <0xbf KEY_NEXT>, <0xbc KEY_PLAYPAUSE>, | ||
<0xf8 KEY_VOLUMEDOWN>, <0xea KEY_VOLUMEUP>, <0xf6 KEY_EQUAL>, | ||
<0xe9 KEY_0>, <0xe6 KEY_F1>, <0xf2 KEY_F2>, | ||
<0xf3 KEY_1>, <0xe7 KEY_2>, <0xa1 KEY_3>, | ||
<0xf7 KEY_4>, <0xe3 KEY_5>, <0xa5 KEY_6>, | ||
<0xbd KEY_7>, <0xad KEY_8>, <0xb5 KEY_9>; | ||
}; | ||
}; | ||
}; | ||
}; |