From aa9cbec536f755d74353cb7a4d0db91ac217f9c5 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 2 Jun 2019 22:14:13 +0200 Subject: [PATCH] added gpio-ir-tx for IR board from RM Mini 3 --- device-tree/gpio-ir-tx.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 device-tree/gpio-ir-tx.dts diff --git a/device-tree/gpio-ir-tx.dts b/device-tree/gpio-ir-tx.dts new file mode 100644 index 0000000..1ae82bf --- /dev/null +++ b/device-tree/gpio-ir-tx.dts @@ -0,0 +1,24 @@ +/* + * add gpio-ir-tx to enable ir send on sunxi + * for RM Mini 3 IR board connected to pins + */ + +/dts-v1/; +/plugin/; + +/ { + compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun50i-a64", "allwinner,sun50i-h5"; + + /* Documentation/devicetree/bindings/leds/irled/gpio-ir-tx.txt */ + fragment@0 { + target-path = "/"; + + __overlay__ { + irled@0 { + compatible = "gpio-ir-tx"; + gpios = <&pio 1 10 0>; /* PB10 GPIO_ACTIVE_HIGH */ + }; + + }; + }; +}; -- 2.20.1