* [PATCH 0/3] ARM: dts: sun9i: cubieboard4: Enable misc. peripherals
@ 2015-12-10 13:36 Chen-Yu Tsai
2015-12-10 13:36 ` [PATCH 1/3] ARM: dts: sun9i: cubieboard4: Enable LEDs Chen-Yu Tsai
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Chen-Yu Tsai @ 2015-12-10 13:36 UTC (permalink / raw)
To: linux-arm-kernel
Hi Maxime,
Here are some patches enabling some peripherals on the Cubieboard4.
Patch 1 enables the LEDs.
Patch 2 enables the IR receiver.
Patch 3 enables the RSB controller.
Regards
ChenYu
Chen-Yu Tsai (3):
ARM: dts: sun9i: cubieboard4: Enable LEDs
ARM: dts: sun9i: cubieboard4: Enable consumer IR receiver
ARM: dts: sun9i: cubieboard4: Enable Reduced Serial Bus controller
arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 30 +++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
--
2.6.2
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/3] ARM: dts: sun9i: cubieboard4: Enable LEDs
2015-12-10 13:36 [PATCH 0/3] ARM: dts: sun9i: cubieboard4: Enable misc. peripherals Chen-Yu Tsai
@ 2015-12-10 13:36 ` Chen-Yu Tsai
2015-12-10 13:36 ` [PATCH 2/3] ARM: dts: sun9i: cubieboard4: Enable consumer IR receiver Chen-Yu Tsai
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Chen-Yu Tsai @ 2015-12-10 13:36 UTC (permalink / raw)
To: linux-arm-kernel
The Cubieboard4 has 2 controllable LEDs, 1 red and 1 green.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
This is a resend of an old patch.
---
arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts b/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts
index 6484dcf69873..8791d49bed2d 100644
--- a/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts
+++ b/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts
@@ -62,9 +62,31 @@
stdout-path = "serial0:115200n8";
};
+ leds {
+ compatible = "gpio-leds";
+ pinctrl-names = "default";
+ pinctrl-0 = <&led_pins_cubieboard4>;
+
+ green {
+ label = "cubieboard4:green:usr";
+ gpios = <&pio 7 17 GPIO_ACTIVE_HIGH>; /* PH17 */
+ };
+
+ red {
+ label = "cubieboard4:red:usr";
+ gpios = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */
+ };
+ };
};
&pio {
+ led_pins_cubieboard4: led-pins at 0 {
+ allwinner,pins = "PH6", "PH17";
+ allwinner,function = "gpio_out";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+ };
+
mmc0_cd_pin_cubieboard4: mmc0_cd_pin at 0 {
allwinner,pins = "PH18";
allwinner,function = "gpio_in";
--
2.6.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] ARM: dts: sun9i: cubieboard4: Enable consumer IR receiver
2015-12-10 13:36 [PATCH 0/3] ARM: dts: sun9i: cubieboard4: Enable misc. peripherals Chen-Yu Tsai
2015-12-10 13:36 ` [PATCH 1/3] ARM: dts: sun9i: cubieboard4: Enable LEDs Chen-Yu Tsai
@ 2015-12-10 13:36 ` Chen-Yu Tsai
2015-12-10 13:36 ` [PATCH 3/3] ARM: dts: sun9i: cubieboard4: Enable Reduced Serial Bus controller Chen-Yu Tsai
2015-12-10 17:04 ` [PATCH 0/3] ARM: dts: sun9i: cubieboard4: Enable misc. peripherals Maxime Ripard
3 siblings, 0 replies; 5+ messages in thread
From: Chen-Yu Tsai @ 2015-12-10 13:36 UTC (permalink / raw)
To: linux-arm-kernel
The Cubieboard4 has a consumer IR receiver. Enable it in the DT.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts b/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts
index 8791d49bed2d..8c26b556e82a 100644
--- a/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts
+++ b/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts
@@ -114,6 +114,10 @@
status = "okay";
};
+&r_ir {
+ status = "okay";
+};
+
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pins_a>;
--
2.6.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] ARM: dts: sun9i: cubieboard4: Enable Reduced Serial Bus controller
2015-12-10 13:36 [PATCH 0/3] ARM: dts: sun9i: cubieboard4: Enable misc. peripherals Chen-Yu Tsai
2015-12-10 13:36 ` [PATCH 1/3] ARM: dts: sun9i: cubieboard4: Enable LEDs Chen-Yu Tsai
2015-12-10 13:36 ` [PATCH 2/3] ARM: dts: sun9i: cubieboard4: Enable consumer IR receiver Chen-Yu Tsai
@ 2015-12-10 13:36 ` Chen-Yu Tsai
2015-12-10 17:04 ` [PATCH 0/3] ARM: dts: sun9i: cubieboard4: Enable misc. peripherals Maxime Ripard
3 siblings, 0 replies; 5+ messages in thread
From: Chen-Yu Tsai @ 2015-12-10 13:36 UTC (permalink / raw)
To: linux-arm-kernel
The Reduced Serial Bus (RSB) controller is used to talk to the 3
companion ICs (2 PMICs, 1 RTC/codec IC) on the board.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts b/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts
index 8c26b556e82a..382bd9fc5647 100644
--- a/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts
+++ b/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts
@@ -118,6 +118,10 @@
status = "okay";
};
+&r_rsb {
+ status = "okay";
+};
+
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pins_a>;
--
2.6.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 0/3] ARM: dts: sun9i: cubieboard4: Enable misc. peripherals
2015-12-10 13:36 [PATCH 0/3] ARM: dts: sun9i: cubieboard4: Enable misc. peripherals Chen-Yu Tsai
` (2 preceding siblings ...)
2015-12-10 13:36 ` [PATCH 3/3] ARM: dts: sun9i: cubieboard4: Enable Reduced Serial Bus controller Chen-Yu Tsai
@ 2015-12-10 17:04 ` Maxime Ripard
3 siblings, 0 replies; 5+ messages in thread
From: Maxime Ripard @ 2015-12-10 17:04 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Dec 10, 2015 at 09:36:28PM +0800, Chen-Yu Tsai wrote:
> Hi Maxime,
>
> Here are some patches enabling some peripherals on the Cubieboard4.
>
> Patch 1 enables the LEDs.
>
> Patch 2 enables the IR receiver.
>
> Patch 3 enables the RSB controller.
Applied all three, thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151210/54bd8274/attachment.sig>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-12-10 17:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-10 13:36 [PATCH 0/3] ARM: dts: sun9i: cubieboard4: Enable misc. peripherals Chen-Yu Tsai
2015-12-10 13:36 ` [PATCH 1/3] ARM: dts: sun9i: cubieboard4: Enable LEDs Chen-Yu Tsai
2015-12-10 13:36 ` [PATCH 2/3] ARM: dts: sun9i: cubieboard4: Enable consumer IR receiver Chen-Yu Tsai
2015-12-10 13:36 ` [PATCH 3/3] ARM: dts: sun9i: cubieboard4: Enable Reduced Serial Bus controller Chen-Yu Tsai
2015-12-10 17:04 ` [PATCH 0/3] ARM: dts: sun9i: cubieboard4: Enable misc. peripherals Maxime Ripard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).