* [PATCH 0/2] IR remote (input) support for Odroid-C1 and cleanups
@ 2018-05-06 20:57 Martin Blumenstingl
2018-05-06 20:57 ` [PATCH 1/2] ARM: dts: meson8b: odroid-c1: sort nodes alphabetically Martin Blumenstingl
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Martin Blumenstingl @ 2018-05-06 20:57 UTC (permalink / raw)
To: linus-amlogic
While testing my Odroid-C1 I found that the IR remote receiver was still
disabled. While enabling it I saw that the nodes in meson8b-odroidc1.dts
were not sorted alphabetically.
This small series:
- first cleans up the sort order of the nodes in meson8b-odroidc1.dts
- then adds the configuration for GPIOAO_7 so it's routed to the SoCs
"IR receiver" and enables that in meson8b-odroidc1.dts
Martin Blumenstingl (2):
ARM: dts: meson8b: odroid-c1: sort nodes alphabetically
ARM: dts: meson8b: odroid-c1: enable the IR receiver
arch/arm/boot/dts/meson8b-odroidc1.dts | 68 ++++++++++++++------------
arch/arm/boot/dts/meson8b.dtsi | 7 +++
2 files changed, 44 insertions(+), 31 deletions(-)
--
2.17.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] ARM: dts: meson8b: odroid-c1: sort nodes alphabetically
2018-05-06 20:57 [PATCH 0/2] IR remote (input) support for Odroid-C1 and cleanups Martin Blumenstingl
@ 2018-05-06 20:57 ` Martin Blumenstingl
2018-05-06 20:57 ` [PATCH 2/2] ARM: dts: meson8b: odroid-c1: enable the IR receiver Martin Blumenstingl
2018-05-09 22:39 ` [PATCH 0/2] IR remote (input) support for Odroid-C1 and cleanups Kevin Hilman
2 siblings, 0 replies; 4+ messages in thread
From: Martin Blumenstingl @ 2018-05-06 20:57 UTC (permalink / raw)
To: linus-amlogic
This makes it easier to find existing nodes. No functional changes.
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
arch/arm/boot/dts/meson8b-odroidc1.dts | 68 +++++++++++++-------------
1 file changed, 34 insertions(+), 34 deletions(-)
diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts
index 3a5603d95b70..7d8ad468a25b 100644
--- a/arch/arm/boot/dts/meson8b-odroidc1.dts
+++ b/arch/arm/boot/dts/meson8b-odroidc1.dts
@@ -103,10 +103,34 @@
};
};
-&uart_AO {
+ðmac {
status = "okay";
- pinctrl-0 = <&uart_ao_a_pins>;
+
+ snps,reset-gpio = <&gpio GPIOH_4 GPIO_ACTIVE_HIGH>;
+ snps,reset-active-low;
+ snps,reset-delays-us = <0 10000 30000>;
+
+ pinctrl-0 = <ð_rgmii_pins>;
pinctrl-names = "default";
+
+ phy-mode = "rgmii";
+ phy-handle = <ð_phy>;
+ amlogic,tx-delay-ns = <4>;
+
+ mdio {
+ compatible = "snps,dwmac-mdio";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ /* Realtek RTL8211F (0x001cc916) */
+ eth_phy: ethernet-phy at 0 {
+ reg = <0>;
+ eee-broken-1000t;
+ interrupt-parent = <&gpio_intc>;
+ /* GPIOH_3 */
+ interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
+ };
+ };
};
&gpio_ao {
@@ -124,14 +148,6 @@
};
};
-&usb1_phy {
- status = "okay";
-};
-
-&usb1 {
- status = "okay";
-};
-
&sdio {
status = "okay";
@@ -158,32 +174,16 @@
};
};
-ðmac {
+&uart_AO {
status = "okay";
-
- snps,reset-gpio = <&gpio GPIOH_4 GPIO_ACTIVE_HIGH>;
- snps,reset-active-low;
- snps,reset-delays-us = <0 10000 30000>;
-
- pinctrl-0 = <ð_rgmii_pins>;
+ pinctrl-0 = <&uart_ao_a_pins>;
pinctrl-names = "default";
+};
- phy-mode = "rgmii";
- phy-handle = <ð_phy>;
- amlogic,tx-delay-ns = <4>;
-
- mdio {
- compatible = "snps,dwmac-mdio";
- #address-cells = <1>;
- #size-cells = <0>;
+&usb1_phy {
+ status = "okay";
+};
- /* Realtek RTL8211F (0x001cc916) */
- eth_phy: ethernet-phy at 0 {
- reg = <0>;
- eee-broken-1000t;
- interrupt-parent = <&gpio_intc>;
- /* GPIOH_3 */
- interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
- };
- };
+&usb1 {
+ status = "okay";
};
--
2.17.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ARM: dts: meson8b: odroid-c1: enable the IR receiver
2018-05-06 20:57 [PATCH 0/2] IR remote (input) support for Odroid-C1 and cleanups Martin Blumenstingl
2018-05-06 20:57 ` [PATCH 1/2] ARM: dts: meson8b: odroid-c1: sort nodes alphabetically Martin Blumenstingl
@ 2018-05-06 20:57 ` Martin Blumenstingl
2018-05-09 22:39 ` [PATCH 0/2] IR remote (input) support for Odroid-C1 and cleanups Kevin Hilman
2 siblings, 0 replies; 4+ messages in thread
From: Martin Blumenstingl @ 2018-05-06 20:57 UTC (permalink / raw)
To: linus-amlogic
The Odroid-C1 comes with an IR receiver. It is connected to the GPIOAO_7
pin and thus using the SoC's internal IR decoder.
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
arch/arm/boot/dts/meson8b-odroidc1.dts | 6 ++++++
arch/arm/boot/dts/meson8b.dtsi | 7 +++++++
2 files changed, 13 insertions(+)
diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts
index 7d8ad468a25b..ef3177d3da3d 100644
--- a/arch/arm/boot/dts/meson8b-odroidc1.dts
+++ b/arch/arm/boot/dts/meson8b-odroidc1.dts
@@ -148,6 +148,12 @@
};
};
+&ir_receiver {
+ status = "okay";
+ pinctrl-0 = <&ir_recv_pins>;
+ pinctrl-names = "default";
+};
+
&sdio {
status = "okay";
diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi
index 5deff6819f7d..91fc8d784803 100644
--- a/arch/arm/boot/dts/meson8b.dtsi
+++ b/arch/arm/boot/dts/meson8b.dtsi
@@ -148,6 +148,13 @@
function = "uart_ao";
};
};
+
+ ir_recv_pins: remote {
+ mux {
+ groups = "remote_input";
+ function = "remote";
+ };
+ };
};
};
--
2.17.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 0/2] IR remote (input) support for Odroid-C1 and cleanups
2018-05-06 20:57 [PATCH 0/2] IR remote (input) support for Odroid-C1 and cleanups Martin Blumenstingl
2018-05-06 20:57 ` [PATCH 1/2] ARM: dts: meson8b: odroid-c1: sort nodes alphabetically Martin Blumenstingl
2018-05-06 20:57 ` [PATCH 2/2] ARM: dts: meson8b: odroid-c1: enable the IR receiver Martin Blumenstingl
@ 2018-05-09 22:39 ` Kevin Hilman
2 siblings, 0 replies; 4+ messages in thread
From: Kevin Hilman @ 2018-05-09 22:39 UTC (permalink / raw)
To: linus-amlogic
Martin Blumenstingl <martin.blumenstingl@googlemail.com> writes:
> While testing my Odroid-C1 I found that the IR remote receiver was still
> disabled. While enabling it I saw that the nodes in meson8b-odroidc1.dts
> were not sorted alphabetically.
>
> This small series:
> - first cleans up the sort order of the nodes in meson8b-odroidc1.dts
Nice, thanks!
> - then adds the configuration for GPIOAO_7 so it's routed to the SoCs
> "IR receiver" and enables that in meson8b-odroidc1.dts
Applied both to v4.17/dt,
Thanks,
Kevin
>
> Martin Blumenstingl (2):
> ARM: dts: meson8b: odroid-c1: sort nodes alphabetically
> ARM: dts: meson8b: odroid-c1: enable the IR receiver
>
> arch/arm/boot/dts/meson8b-odroidc1.dts | 68 ++++++++++++++------------
> arch/arm/boot/dts/meson8b.dtsi | 7 +++
> 2 files changed, 44 insertions(+), 31 deletions(-)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-05-09 22:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-06 20:57 [PATCH 0/2] IR remote (input) support for Odroid-C1 and cleanups Martin Blumenstingl
2018-05-06 20:57 ` [PATCH 1/2] ARM: dts: meson8b: odroid-c1: sort nodes alphabetically Martin Blumenstingl
2018-05-06 20:57 ` [PATCH 2/2] ARM: dts: meson8b: odroid-c1: enable the IR receiver Martin Blumenstingl
2018-05-09 22:39 ` [PATCH 0/2] IR remote (input) support for Odroid-C1 and cleanups Kevin Hilman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox