ARM: dts: sun9i: cubieboard4: Enable misc. peripherals
Subsystems (2)
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
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
@@ -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
PATCH 2/3 ARM: dts: sun9i: cubieboard4: Enable consumer IR receiver
In reply to Chen-Yu TsaiThe 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
@@ -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
PATCH 3/3 ARM: dts: sun9i: cubieboard4: Enable Reduced Serial Bus controller
In reply to Chen-Yu TsaiThe 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
@@ -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
Maxime Ripard
Appliedcover ARM: dts: sun9i: cubieboard4: Enable misc. peripherals
In reply to Chen-Yu TsaiQuoted 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>