Skip to contentSkip to conversation

ARM: dts: sun9i: cubieboard4: Enable misc. peripherals

PATCH New Chen-Yu Tsai 2 participants 5 messages Dec 10, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover ARM: dts: sun9i: cubieboard4: Enable misc. peripherals

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(+)
Signature · 1 line
2.6.2
#1 lore raw

PATCH 1/3 ARM: dts: sun9i: cubieboard4: Enable LEDs

The Cubieboard4 has 2 controllable LEDs, 1 red and 1 green.

---

This is a resend of an old patch.

---
 arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
arch/arm/boot/dts/sun9i-a80-cubieboard4.dts +22 -0
index 6484dcf69873..8791d49bed2d 100644
@@ -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";
Signature · 1 line
2.6.2
#2 lore raw

PATCH 2/3 ARM: dts: sun9i: cubieboard4: Enable consumer IR receiver

In reply to Chen-Yu Tsai

The Cubieboard4 has a consumer IR receiver. Enable it in the DT.

---
 arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/sun9i-a80-cubieboard4.dts +4 -0
index 8791d49bed2d..8c26b556e82a 100644
@@ -114,6 +114,10 @@
 	status = "okay";
 };
 
+&r_ir {
+	status = "okay";
+};
+
 &uart0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart0_pins_a>;
Signature · 1 line
2.6.2
#3 lore raw

PATCH 3/3 ARM: dts: sun9i: cubieboard4: Enable Reduced Serial Bus controller

In reply to Chen-Yu Tsai

The Reduced Serial Bus (RSB) controller is used to talk to the 3 companion ICs (2 PMICs, 1 RTC/codec IC) on the board.

---
 arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/sun9i-a80-cubieboard4.dts +4 -0
index 8c26b556e82a..382bd9fc5647 100644
@@ -118,6 +118,10 @@
 	status = "okay";
 };
 
+&r_rsb {
+	status = "okay";
+};
+
 &uart0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart0_pins_a>;
Signature · 1 line
2.6.2
#4 lore raw

cover ARM: dts: sun9i: cubieboard4: Enable misc. peripherals

In reply to Chen-Yu Tsai
Quoted 9 lines · Chen-Yu Tsai

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

Signature · 10 lines
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>