Thread (6 messages) 6 messages, 3 authors, 2020-03-23

Re: [PATCH v7 1/3] MIPS: DTS: CI20: add DT node for IR sensor

From: Paul Cercueil <paul@crapouillou.net>
Date: 2020-03-06 22:09:45
Also in: linux-mips, lkml

Hi Nikolaus,


Le ven., mars 6, 2020 at 22:06, H. Nikolaus Schaller 
[off-list ref] a écrit :
From: Alex Smith <redacted>

The infrared sensor on the CI20 board is connected to a GPIO and can
be operated by using the gpio-ir-recv driver. Add a DT node for the
sensor to allow that driver to be used.

Signed-off-by: Alex Smith <redacted>
Signed-off-by: H. Nikolaus Schaller <redacted>
Reviewed-by: Paul Cercueil <paul@crapouillou.net>

Cheers,
-Paul
quoted hunk ↗ jump to hunk
---
 arch/mips/boot/dts/ingenic/ci20.dts | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/arch/mips/boot/dts/ingenic/ci20.dts 
b/arch/mips/boot/dts/ingenic/ci20.dts
index c340f947baa0..fc4e64200c3d 100644
--- a/arch/mips/boot/dts/ingenic/ci20.dts
+++ b/arch/mips/boot/dts/ingenic/ci20.dts
@@ -62,6 +62,11 @@
 		enable-active-high;
 	};

+	ir: ir {
+		compatible = "gpio-ir-receiver";
+		gpios = <&gpe 3 GPIO_ACTIVE_LOW>;
+	};
+
 	wlan0_power: fixedregulator@1 {
 		compatible = "regulator-fixed";
 		regulator-name = "wlan0_power";
--
2.23.0
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help