* [PATCH 0/3] ARM: dts: sun9i: cubieboard4: Enable misc. peripherals
@ 2015-12-10 13:36 Chen-Yu Tsai
[not found] ` <1449754591-3999-1-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Chen-Yu Tsai @ 2015-12-10 13:36 UTC (permalink / raw)
To: Maxime Ripard
Cc: Chen-Yu Tsai, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
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
[not found] ` <1449754591-3999-1-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
@ 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: Maxime Ripard
Cc: Chen-Yu Tsai, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
The Cubieboard4 has 2 controllable LEDs, 1 red and 1 green.
Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.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@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@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
[not found] ` <1449754591-3999-1-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
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: Maxime Ripard
Cc: Chen-Yu Tsai, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
The Cubieboard4 has a consumer IR receiver. Enable it in the DT.
Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.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
[not found] ` <1449754591-3999-1-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
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: Maxime Ripard
Cc: Chen-Yu Tsai, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
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-jdAy2FN1RRM@public.gmane.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
* Re: [PATCH 0/3] ARM: dts: sun9i: cubieboard4: Enable misc. peripherals
[not found] ` <1449754591-3999-1-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
` (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: Chen-Yu Tsai
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 400 bytes --]
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
^ 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
[not found] ` <1449754591-3999-1-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
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).