build/patch/kernel/sunxi-dev/general-add-H6-IR-RX.patch
2019-05-14 17:59:57 -04:00

33 lines
848 B
Diff

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
index dc785da..2fb6fe9 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
@@ -768,6 +768,11 @@
pins = "PL0", "PL1";
function = "s_i2c";
};
+
+ r_ir_rx_pins: r-ir-rx {
+ pins = "PL9";
+ function = "s_cir_rx";
+ };
};
r_i2c: i2c@7081400 {
@@ -794,6 +794,16 @@
resets = <&r_ccu RST_R_APB2_UART>;
status = "disabled";
};
+
+ ir: ir@7040000 {
+ compatible = "allwinner,sun5i-a13-ir";
+ clocks = <&r_ccu CLK_R_APB1_IR>, <&r_ccu CLK_IR>;
+ clock-names = "apb", "ir";
+ resets = <&r_ccu RST_R_APB1_IR>;
+ interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
+ reg = <0x07040000 0x400>;
+ status = "disabled";
+ };
};
thermal-zones {