diff mbox

[2/2] ARM: dts: sun8i: Enable ir receiver on orangepi pc

Message ID 1456268597-13692-3-git-send-email-hdegoede@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Hans de Goede Feb. 23, 2016, 11:03 p.m. UTC
Enable the ir receiver found on the orangepi pc board.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Krzysztof Adamski Feb. 24, 2016, 12:16 p.m. UTC | #1
On Wed, Feb 24, 2016 at 12:03:17AM +0100, Hans de Goede wrote:
>Enable the ir receiver found on the orangepi pc board.
>
>Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>---
> arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 6 ++++++
> 1 file changed, 6 insertions(+)
>
>diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts

I don't think this file is avaiable in mainline. Wouldn't it be better 
to use patch against existing orangepi-plus dts file?

Otherwise I tested this patch and it works fine on my Orangepi PC (some 
data is splitted out when reading /dev/input/event0).

Best regards,
Krzysztof Adamski
Hans de Goede Feb. 24, 2016, 1:26 p.m. UTC | #2
Hi,

On 24-02-16 13:16, Krzysztof Adamski wrote:
> On Wed, Feb 24, 2016 at 12:03:17AM +0100, Hans de Goede wrote:
>> Enable the ir receiver found on the orangepi pc board.
>>
>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>> ---
>> arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 6 ++++++
>> 1 file changed, 6 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
>
> I don't think this file is avaiable in mainline. Wouldn't it be better to use patch against existing orangepi-plus dts file?
>
> Otherwise I tested this patch and it works fine on my Orangepi PC (some data is splitted out when reading /dev/input/event0).

Ah yes, that is my bad, I've been waiting with upstreaming an orangepi-pc dts until all the
usb bits are upstream as my dts has usb host support enabled, I should probably split
out the usb-host support and upstream the rest already.

Regards,

Hans
diff mbox

Patch

diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
index 4b25dcc..dc73b2a 100644
--- a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
+++ b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
@@ -72,6 +72,12 @@ 
 	status = "okay";
 };
 
+&ir {
+	pinctrl-names = "default";
+	pinctrl-0 = <&ir_pins_a>;
+	status = "okay";
+};
+
 &mmc0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>;