ARM: sun9i: R_PIO, IR receiver and RSB support
Subsystems (4)
cover ARM: sun9i: R_PIO, IR receiver and RSB support
Hi everyone,
This series adds support for various peripherals in the "special/RTC" block of the Allwinner A80 SoC that use the PRCM clocks and reset controls. The majority of this series are DTS patches, enabling peripherals using existing drivers. The only driver patch is for the R_PIO pin controller.
This series is based on my earlier sun9i PRCM series. The pinctrl patch has no dependencies though. All patches target sun9i-a80:
Patch 1 adds a driver for the R_PIO "special CPU" block pin controller. This was done by Maxime over a year ago, when the A80 was first available.
Patch 2 adds the R_PIO pinctrl device node.
Patch 3 enables LED3 on the A80 Optimus board. This is driven by a GPIO from R_PIO.
Patch 4 adds a consumer IR receiver device node, which is compatible with earlier Allwinner SoCs, and its associated pinmux.
Patch 5 enables the consumer IR receiver on the A80 Optimus.
Patch 6 adds a device node for the RSB controller. This controller is compatible with the one found on the A23/A33.
Patch 7 enables the RSB controller on the A80 Optimus.
Still to come are A80-related PMIC drivers and DTS patches.
Regards
ChenYu
Chen-Yu Tsai (6):
ARM: dts: sun9i: Add A80 R_PIO pin controller device node
ARM: dts: sun9i: optimus: Enable LED3
ARM: dts: sun9i: Add consumer IR receiver device node and pinmux
settings
ARM: dts: sun9i: optimus: Enable consumer IR receiver
ARM: dts: sun9i: Add Reduced Serial Bus controller device node to A80
dtsi
ARM: dts: sun9i: optimus: Enable Reduced Serial Bus controller
Maxime Ripard (1):
pinctrl: sunxi: Add A80 special pin controller
.../bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 2 + arch/arm/boot/dts/sun9i-a80-optimus.dts | 24 ++- arch/arm/boot/dts/sun9i-a80.dtsi | 54 ++++++ drivers/pinctrl/sunxi/Kconfig | 5 + drivers/pinctrl/sunxi/Makefile | 1 + drivers/pinctrl/sunxi/pinctrl-sun9i-a80-r.c | 181 +++++++++++++++++++++ 6 files changed, 265 insertions(+), 2 deletions(-) create mode 100644 drivers/pinctrl/sunxi/pinctrl-sun9i-a80-r.c
Signature · 1 line
2.6.2
PATCH 1/7 pinctrl: sunxi: Add A80 special pin controller
From: Maxime Ripard <[email protected]>
Like the previous designs, the A80 has a special pin controller for the critical pins, like the PMIC bus.
Add a driver for this controller.
[wens: Add A80 compatible strings to bindings doc; fix pin function
names based on v1.3 datasheet; constify of_device_id table]
--- .../bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 2 + drivers/pinctrl/sunxi/Kconfig | 5 + drivers/pinctrl/sunxi/Makefile | 1 + drivers/pinctrl/sunxi/pinctrl-sun9i-a80-r.c | 181 +++++++++++++++++++++ 4 files changed, 189 insertions(+) create mode 100644 drivers/pinctrl/sunxi/pinctrl-sun9i-a80-r.c
Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt +2 -0
@@ -18,6 +18,8 @@ Required properties: "allwinner,sun8i-a23-r-pinctrl" "allwinner,sun8i-a33-pinctrl" "allwinner,sun8i-a83t-pinctrl" + "allwinner,sun9i-a80-pinctrl" + "allwinner,sun9i-a80-r-pinctrl" - reg: Should contain the register physical address and length for the pin controller.
drivers/pinctrl/sunxi/Kconfig +5 -0
@@ -55,4 +55,9 @@ config PINCTRL_SUN9I_A80 def_bool MACH_SUN9I select PINCTRL_SUNXI_COMMON +config PINCTRL_SUN9I_A80_R + def_bool MACH_SUN9I + depends on RESET_CONTROLLER + select PINCTRL_SUNXI_COMMON + endif
drivers/pinctrl/sunxi/Makefile +1 -0
@@ -14,3 +14,4 @@ obj-$(CONFIG_PINCTRL_SUN8I_A23_R) += pinctrl-sun8i-a23-r.o obj-$(CONFIG_PINCTRL_SUN8I_A33) += pinctrl-sun8i-a33.o obj-$(CONFIG_PINCTRL_SUN8I_A83T) += pinctrl-sun8i-a83t.o obj-$(CONFIG_PINCTRL_SUN9I_A80) += pinctrl-sun9i-a80.o +obj-$(CONFIG_PINCTRL_SUN9I_A80_R) += pinctrl-sun9i-a80-r.o
drivers/pinctrl/sunxi/pinctrl-sun9i-a80-r.c new file +181 -0
181 lines not on this page · raw message
Signature · 1 line
2.6.2
Re: [PATCH 1/7] pinctrl: sunxi: Add A80 special pin controller
Quoted 5 lines · Chen-Yu Tsai
From: Maxime Ripard <[email protected]>
Like the previous designs, the A80 has a special pin controller for the critical pins, like the PMIC bus.
Quoted 8 lines
Add a driver for this controller.
Signed-off-by Maxime Ripard <[email protected]>[wens: Add A80 compatible strings to bindings doc; fix pin function
names based on v1.3 datasheet; constifyof_device_idtable]Signed-off-by Chen-Yu Tsai <[email protected]>--- .../bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 2 +
For the binding:
Quoted 232 lines
drivers/pinctrl/sunxi/Kconfig | 5 + drivers/pinctrl/sunxi/Makefile | 1 + drivers/pinctrl/sunxi/pinctrl-sun9i-a80-r.c | 181 +++++++++++++++++++++ 4 files changed, 189 insertions(+) create mode 100644 drivers/pinctrl/sunxi/pinctrl-sun9i-a80-r.cDocumentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt +2
-0@@ -18,6 +18,8 @@ Required properties: "allwinner,sun8i-a23-r-pinctrl" "allwinner,sun8i-a33-pinctrl" "allwinner,sun8i-a83t-pinctrl" + "allwinner,sun9i-a80-pinctrl" + "allwinner,sun9i-a80-r-pinctrl" - reg: Should contain the register physical address and length for the pin controller.drivers/pinctrl/sunxi/Kconfig +5
-0@@ -55,4 +55,9 @@ config PINCTRL_SUN9I_A80 def_bool MACH_SUN9I select PINCTRL_SUNXI_COMMON +config PINCTRL_SUN9I_A80_R + def_bool MACH_SUN9I + depends on RESET_CONTROLLER + select PINCTRL_SUNXI_COMMON + endifdrivers/pinctrl/sunxi/Makefile +1
-0@@ -14,3 +14,4 @@ obj-$(CONFIG_PINCTRL_SUN8I_A23_R) += pinctrl-sun8i-a23-r.o obj-$(CONFIG_PINCTRL_SUN8I_A33) += pinctrl-sun8i-a33.o obj-$(CONFIG_PINCTRL_SUN8I_A83T) += pinctrl-sun8i-a83t.o obj-$(CONFIG_PINCTRL_SUN9I_A80) += pinctrl-sun9i-a80.o +obj-$(CONFIG_PINCTRL_SUN9I_A80_R) += pinctrl-sun9i-a80-r.odrivers/pinctrl/sunxi/pinctrl-sun9i-a80-r.c new file +181
-0@@ -0,0 +1,181 @@ +/* +* Allwinner A80 SoCs special pins pinctrl driver. +* +* Copyright (C) 2014 Maxime Ripard +* Maxime Ripard <[email protected]> +* +* This file is licensed under the terms of the GNU General Public +* License version 2. This program is licensed "as is" without any +* warranty of any kind, whether express or implied. +*/ + +#include <linux/module.h> +#include <linux/platform_device.h> +#include <linux/of.h> +#include <linux/of_device.h> +#include <linux/pinctrl/pinctrl.h> +#include <linux/reset.h> + +#include "pinctrl-sunxi.h" + +static const struct sunxi_desc_pin sun9i_a80_r_pins[] = { +SUNXI_PIN (SUNXI_PINCTRL_PIN (L ,0 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x3 ,"s_uart" ),/* TX */ +SUNXI_FUNCTION_IRQ_BANK (0x6 ,0 ,0 )),/* PL_EINT0 */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (L ,1 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x3 ,"s_uart" ),/* RX */ +SUNXI_FUNCTION_IRQ_BANK (0x6 ,0 ,1 )),/* PL_EINT1 */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (L ,2 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x3 ,"s_jtag" ),/* TMS */ +SUNXI_FUNCTION_IRQ_BANK (0x6 ,0 ,2 )),/* PL_EINT2 */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (L ,3 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x3 ,"s_jtag" ),/* TCK */ +SUNXI_FUNCTION_IRQ_BANK (0x6 ,0 ,3 )),/* PL_EINT3 */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (L ,4 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x3 ,"s_jtag" ),/* TDO */ +SUNXI_FUNCTION_IRQ_BANK (0x6 ,0 ,4 )),/* PL_EINT4 */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (L ,5 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x3 ,"s_jtag" ),/* TDI */ +SUNXI_FUNCTION_IRQ_BANK (0x6 ,0 ,5 )),/* PL_EINT5 */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (L ,6 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x3 ,"s_cir_rx" ), +SUNXI_FUNCTION_IRQ_BANK (0x6 ,0 ,6 )),/* PL_EINT6 */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (L ,7 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x3 ,"1wire" ), +SUNXI_FUNCTION_IRQ_BANK (0x6 ,0 ,7 )),/* PL_EINT7 */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (L ,8 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x2 ,"s_ps2" ),/* SCK1 */ +SUNXI_FUNCTION_IRQ_BANK (0x6 ,0 ,8 )),/* PL_EINT8 */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (L ,9 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x2 ,"s_ps2" ),/* SDA1 */ +SUNXI_FUNCTION_IRQ_BANK (0x6 ,0 ,9 )),/* PL_EINT9 */ + +/* Hole */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (M ,0 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION_IRQ_BANK (0x6 ,1 ,0 )),/* PM_EINT0 */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (M ,1 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION_IRQ_BANK (0x6 ,1 ,1 )),/* PM_EINT1 */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (M ,2 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION_IRQ_BANK (0x6 ,1 ,2 )),/* PM_EINT2 */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (M ,3 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION_IRQ_BANK (0x6 ,1 ,3 )),/* PM_EINT3 */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (M ,4 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x3 ,"s_i2s1" ),/* LRCKR */ +SUNXI_FUNCTION_IRQ_BANK (0x6 ,1 ,4 )),/* PM_EINT4 */ + +/* Hole */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (M ,8 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x3 ,"s_i2c1" ),/* SCK */ +SUNXI_FUNCTION_IRQ_BANK (0x6 ,1 ,8 )),/* PM_EINT8 */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (M ,9 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x3 ,"s_i2c1" ),/* SDA */ +SUNXI_FUNCTION_IRQ_BANK (0x6 ,1 ,9 )),/* PM_EINT9 */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (M ,10 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x2 ,"s_i2s0" ),/* MCLK */ +SUNXI_FUNCTION (0x3 ,"s_i2s1" )),/* MCLK */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (M ,11 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x2 ,"s_i2s0" ),/* BCLK */ +SUNXI_FUNCTION (0x3 ,"s_i2s1" )),/* BCLK */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (M ,12 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x2 ,"s_i2s0" ),/* LRCK */ +SUNXI_FUNCTION (0x3 ,"s_i2s1" )),/* LRCK */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (M ,13 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x2 ,"s_i2s0" ),/* DIN */ +SUNXI_FUNCTION (0x3 ,"s_i2s1" )),/* DIN */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (M ,14 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x2 ,"s_i2s0" ),/* DOUT */ +SUNXI_FUNCTION (0x3 ,"s_i2s1" )),/* DOUT */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (M ,15 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION_IRQ_BANK (0x6 ,1 ,15 )),/* PM_EINT15 */ + +/* Hole */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (N ,0 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x2 ,"s_i2c0" ),/* SCK */ +SUNXI_FUNCTION (0x3 ,"s_rsb" )),/* SCK */ +SUNXI_PIN (SUNXI_PINCTRL_PIN (N ,1 ), +SUNXI_FUNCTION (0x0 ,"gpio_in" ), +SUNXI_FUNCTION (0x1 ,"gpio_out" ), +SUNXI_FUNCTION (0x2 ,"s_i2c0" ),/* SDA */ +SUNXI_FUNCTION (0x3 ,"s_rsb" )),/* SDA */ +}; + +static const struct sunxi_pinctrl_desc sun9i_a80_r_pinctrl_data = { + .pins = sun9i_a80_r_pins, + .npins =ARRAY_SIZE (sun9i_a80_r_pins), + .pin_base =PL_BASE , + .irq_banks =2 , +}; + +static int sun9i_a80_r_pinctrl_probe (struct platform_device *pdev) +{ +return sunxi_pinctrl_init (pdev, + &sun9i_a80_r_pinctrl_data); +} + +static const struct of_device_id sun9i_a80_r_pinctrl_match[] = { + { .compatible ="allwinner,sun9i-a80-r-pinctrl" , }, + {} +}; +MODULE_DEVICE_TABLE (of, sun9i_a80_r_pinctrl_match); + +static struct platform_driver sun9i_a80_r_pinctrl_driver = { + .probe = sun9i_a80_r_pinctrl_probe, + .driver = { + .name ="sun9i-a80-r-pinctrl" , + .owner =THIS_MODULE , + .of_match_table = sun9i_a80_r_pinctrl_match, + }, +}; +module_platform_driver (sun9i_a80_r_pinctrl_driver); + +MODULE_AUTHOR ("Maxime Ripard <[email protected]" ); +MODULE_DESCRIPTION ("Allwinner A80 R_PIO pinctrl driver" ); +MODULE_LICENSE ("GPL" );Signature · 1 line
2.6.2
PATCH 2/7 ARM: dts: sun9i: Add A80 R_PIO pin controller device node
In reply to Chen-Yu TsaiThe A80 has a secondary pin controller. Add a device node for it.
--- arch/arm/boot/dts/sun9i-a80.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm/boot/dts/sun9i-a80.dtsi +14 -0
@@ -868,5 +868,19 @@ resets = <&apbs_rst 4>; status = "disabled"; }; + + r_pio: pinctrl at 08002c00 { + compatible = "allwinner,sun9i-a80-r-pinctrl"; + reg = <0x08002c00 0x400>; + interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&apbs_gates 0>; + resets = <&apbs_rst 0>; + gpio-controller; + interrupt-controller; + #address-cells = <1>; + #size-cells = <0>; + #gpio-cells = <3>; + }; }; };
Signature · 1 line
2.6.2
Maxime Ripard
AppliedRe: [PATCH 2/7] ARM: dts: sun9i: Add A80 R_PIO pin controller device node
Quoted 3 lines · Chen-Yu Tsai
The A80 has a secondary pin controller. Add a device node for it.
Signed-off-by Chen-Yu Tsai <[email protected]>
Applied, 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/20151201/3e0a196a/attachment.sig>
PATCH 3/7 ARM: dts: sun9i: optimus: Enable LED3
In reply to Chen-Yu TsaiLED3 is connected to pin PM15 on R_PIO.
--- arch/arm/boot/dts/sun9i-a80-optimus.dts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-)
arch/arm/boot/dts/sun9i-a80-optimus.dts +14 -2
@@ -65,7 +65,7 @@ leds { compatible = "gpio-leds"; pinctrl-names = "default"; - pinctrl-0 = <&led_pins_optimus>; + pinctrl-0 = <&led_pins_optimus>, <&led_r_pins_optimus>; /* The LED names match those found on the board */
@@ -74,7 +74,10 @@ gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; }; - /* led3 is on PM15, in R_PIO */ + led3 { + label = "optimus:led3:usr"; + gpios = <&r_pio 1 15 GPIO_ACTIVE_HIGH>; /* PM15 */ + }; led4 { label = "optimus:led4:usr";
@@ -180,6 +183,15 @@ status = "okay"; }; +&r_pio { + led_r_pins_optimus: led-pins at 1 { + allwinner,pins = "PM15"; + allwinner,function = "gpio_out"; + allwinner,drive = <SUN4I_PINCTRL_10_MA>; + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; + }; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>;
Signature · 1 line
2.6.2
Maxime Ripard
AppliedRe: [PATCH 3/7] ARM: dts: sun9i: optimus: Enable LED3
Quoted 3 lines · Chen-Yu Tsai
LED3 is connected to pin PM15 on
R_PIO.Signed-off-by Chen-Yu Tsai <[email protected]>
Applied, 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/20151201/c7d85b10/attachment.sig>
PATCH 4/7 ARM: dts: sun9i: Add consumer IR receiver device node and pinmux settings
In reply to Chen-Yu TsaiThe Allwinner A80 SoC has a consumer IR receiver, which is the same as older SoCs.
--- arch/arm/boot/dts/sun9i-a80.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
arch/arm/boot/dts/sun9i-a80.dtsi +19 -0
@@ -858,6 +858,18 @@ #reset-cells = <1>; }; + r_ir: ir at 08002000 { + compatible = "allwinner,sun5i-a13-ir"; + interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&r_ir_pins>; + clocks = <&apbs_gates 1>, <&r_ir_clk>; + clock-names = "apb", "ir"; + resets = <&apbs_rst 1>; + reg = <0x08002000 0x40>; + status = "disabled"; + }; + r_uart: serial at 08002800 { compatible = "snps,dw-apb-uart"; reg = <0x08002800 0x400>;
@@ -881,6 +893,13 @@ #address-cells = <1>; #size-cells = <0>; #gpio-cells = <3>; + + r_ir_pins: r_ir { + allwinner,pins = "PL6"; + allwinner,function = "s_cir_rx"; + allwinner,drive = <SUN4I_PINCTRL_10_MA>; + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; + }; }; }; };
Signature · 1 line
2.6.2
Maxime Ripard
AppliedRe: [PATCH 4/7] ARM: dts: sun9i: Add consumer IR receiver device node and pinmux settings
Quoted 4 lines · Chen-Yu Tsai
The Allwinner A80 SoC has a consumer IR receiver, which is the same as older SoCs.
Signed-off-by Chen-Yu Tsai <[email protected]>
Applied, 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/20151201/4abf4aba/attachment-0001.sig>
PATCH 5/7 ARM: dts: sun9i: optimus: Enable consumer IR receiver
In reply to Chen-Yu TsaiThe A80 Optimus board has a consumer IR receiver. Enable it in the DT.
--- arch/arm/boot/dts/sun9i-a80-optimus.dts | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/boot/dts/sun9i-a80-optimus.dts +4 -0
@@ -183,6 +183,10 @@ status = "okay"; }; +&r_ir { + status = "okay"; +}; + &r_pio { led_r_pins_optimus: led-pins at 1 { allwinner,pins = "PM15";
Signature · 1 line
2.6.2
Maxime Ripard
AppliedRe: [PATCH 5/7] ARM: dts: sun9i: optimus: Enable consumer IR receiver
Quoted 3 lines · Chen-Yu Tsai
The A80 Optimus board has a consumer IR receiver. Enable it in the DT.
Signed-off-by Chen-Yu Tsai <[email protected]>
Applied, 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/20151201/33a814b3/attachment.sig>
PATCH 6/7 ARM: dts: sun9i: Add Reduced Serial Bus controller device node to A80 dtsi
In reply to Chen-Yu TsaiThis patch adds a device node for the Reduced Serial Bus (RSB) controller and the defacto pinmux setting to the A80 dtsi.
Since there is only one possible pinmux setting for RSB, just set it in the dtsi.
--- arch/arm/boot/dts/sun9i-a80.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
arch/arm/boot/dts/sun9i-a80.dtsi +21 -0
@@ -900,6 +900,27 @@ allwinner,drive = <SUN4I_PINCTRL_10_MA>; allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; }; + + r_rsb_pins: r_rsb { + allwinner,pins = "PN0", "PN1"; + allwinner,function = "s_rsb"; + allwinner,drive = <SUN4I_PINCTRL_20_MA>; + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; + }; + }; + + r_rsb: i2c at 08003400 { + compatible = "allwinner,sun8i-a23-rsb"; + reg = <0x08003400 0x400>; + interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&apbs_gates 3>; + clock-frequency = <3000000>; + resets = <&apbs_rst 3>; + pinctrl-names = "default"; + pinctrl-0 = <&r_rsb_pins>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; }; }; };
Signature · 1 line
2.6.2
Maxime Ripard
AppliedRe: [PATCH 6/7] ARM: dts: sun9i: Add Reduced Serial Bus controller device node to A80 dtsi
Quoted 7 lines · Chen-Yu Tsai
This patch adds a device node for the Reduced Serial Bus (RSB) controller and the defacto pinmux setting to the A80 dtsi.
Since there is only one possible pinmux setting for RSB, just set it in the dtsi.
Signed-off-by Chen-Yu Tsai <[email protected]>
Applied, 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/20151201/cd08a5a7/attachment.sig>
PATCH 7/7 ARM: dts: sun9i: optimus: Enable Reduced Serial Bus controller
In reply to Chen-Yu Tsai--- arch/arm/boot/dts/sun9i-a80-optimus.dts | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/boot/dts/sun9i-a80-optimus.dts +4 -0
@@ -196,6 +196,10 @@ }; }; +&r_rsb { + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>;
Signature · 1 line
2.6.2
Maxime Ripard
AppliedRe: [PATCH 7/7] ARM: dts: sun9i: optimus: Enable Reduced Serial Bus controller
Quoted 2 lines · Chen-Yu Tsai
Signed-off-by Chen-Yu Tsai <[email protected]>---
Applied, 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/20151201/64a709b6/attachment.sig>