* [PATCH v2 0/9] sun6i / A31 ir receiver support
@ 2014-11-23 13:38 Hans de Goede
2014-11-23 13:38 ` [PATCH v2 1/9] clk: sunxi: Give sunxi_factors_register a registers parameter Hans de Goede
` (8 more replies)
0 siblings, 9 replies; 15+ messages in thread
From: Hans de Goede @ 2014-11-23 13:38 UTC (permalink / raw)
To: Emilio Lopez, Maxime Ripard, Mike Turquette, Lee Jones, Samuel Ortiz
Cc: Linux Media Mailing List, linux-arm-kernel, devicetree, linux-sunxi
Hi All,
Here is v2 of my sun6i ir receiver support patch-set as with v1, this
touches clk, mfd (for the prcm clks), dts and media/rc code.
Changes in v2:
-"clk: sunxi: Give sunxi_factors_register a registers parameter"
-Updated commit message to mention the removal of __init
-Add error checking to calls of of_iomap
-"rc: sunxi-cir: Add support for an optional reset controller"
-Document resets property in devicetree bindings doc
Regards,
Hans
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v2 1/9] clk: sunxi: Give sunxi_factors_register a registers parameter
2014-11-23 13:38 [PATCH v2 0/9] sun6i / A31 ir receiver support Hans de Goede
@ 2014-11-23 13:38 ` Hans de Goede
2014-11-26 20:40 ` Maxime Ripard
2014-11-23 13:38 ` [PATCH v2 2/9] clk: sunxi: Make sun4i_a10_mod0_data available outside of clk-mod0.c Hans de Goede
` (7 subsequent siblings)
8 siblings, 1 reply; 15+ messages in thread
From: Hans de Goede @ 2014-11-23 13:38 UTC (permalink / raw)
To: Emilio Lopez, Maxime Ripard, Mike Turquette, Lee Jones, Samuel Ortiz
Cc: Linux Media Mailing List, linux-arm-kernel, devicetree,
linux-sunxi, Hans de Goede
Before this commit sunxi_factors_register uses of_iomap(node, 0) to get
the clk registers. The sun6i prcm has factor clocks, for which we want to
use sunxi_factors_register, but of_iomap(node, 0) does not work for the prcm
factor clocks, because the prcm uses the mfd framework, so the registers
are not part of the dt-node, instead they are added to the platform_device,
as platform_device resources.
This commit makes getting the registers the callers duty, so that
sunxi_factors_register can be used with mfd instantiated platform device too.
While at it also add error checking to the of_iomap calls.
This commit also drops the __init function from sunxi_factors_register since
platform driver probe functions are not __init.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
drivers/clk/sunxi/clk-factors.c | 10 ++++------
drivers/clk/sunxi/clk-factors.h | 7 ++++---
drivers/clk/sunxi/clk-mod0.c | 24 ++++++++++++++++++++++--
drivers/clk/sunxi/clk-sun8i-mbus.c | 13 +++++++++++--
drivers/clk/sunxi/clk-sunxi.c | 11 ++++++++++-
5 files changed, 51 insertions(+), 14 deletions(-)
diff --git a/drivers/clk/sunxi/clk-factors.c b/drivers/clk/sunxi/clk-factors.c
index f83ba09..fc4f4b5 100644
--- a/drivers/clk/sunxi/clk-factors.c
+++ b/drivers/clk/sunxi/clk-factors.c
@@ -156,9 +156,10 @@ static const struct clk_ops clk_factors_ops = {
.set_rate = clk_factors_set_rate,
};
-struct clk * __init sunxi_factors_register(struct device_node *node,
- const struct factors_data *data,
- spinlock_t *lock)
+struct clk *sunxi_factors_register(struct device_node *node,
+ const struct factors_data *data,
+ spinlock_t *lock,
+ void __iomem *reg)
{
struct clk *clk;
struct clk_factors *factors;
@@ -168,11 +169,8 @@ struct clk * __init sunxi_factors_register(struct device_node *node,
struct clk_hw *mux_hw = NULL;
const char *clk_name = node->name;
const char *parents[FACTORS_MAX_PARENTS];
- void __iomem *reg;
int i = 0;
- reg = of_iomap(node, 0);
-
/* if we have a mux, we will have >1 parents */
while (i < FACTORS_MAX_PARENTS &&
(parents[i] = of_clk_get_parent_name(node, i)) != NULL)
diff --git a/drivers/clk/sunxi/clk-factors.h b/drivers/clk/sunxi/clk-factors.h
index 9913840..1f5526d 100644
--- a/drivers/clk/sunxi/clk-factors.h
+++ b/drivers/clk/sunxi/clk-factors.h
@@ -37,8 +37,9 @@ struct clk_factors {
spinlock_t *lock;
};
-struct clk * __init sunxi_factors_register(struct device_node *node,
- const struct factors_data *data,
- spinlock_t *lock);
+struct clk *sunxi_factors_register(struct device_node *node,
+ const struct factors_data *data,
+ spinlock_t *lock,
+ void __iomem *reg);
#endif
diff --git a/drivers/clk/sunxi/clk-mod0.c b/drivers/clk/sunxi/clk-mod0.c
index 4a56385..5fb1f7e 100644
--- a/drivers/clk/sunxi/clk-mod0.c
+++ b/drivers/clk/sunxi/clk-mod0.c
@@ -78,7 +78,17 @@ static DEFINE_SPINLOCK(sun4i_a10_mod0_lock);
static void __init sun4i_a10_mod0_setup(struct device_node *node)
{
- sunxi_factors_register(node, &sun4i_a10_mod0_data, &sun4i_a10_mod0_lock);
+ void __iomem *reg;
+
+ reg = of_iomap(node, 0);
+ if (!reg) {
+ pr_err("Could not get registers for mod0-clk: %s\n",
+ node->name);
+ return;
+ }
+
+ sunxi_factors_register(node, &sun4i_a10_mod0_data,
+ &sun4i_a10_mod0_lock, reg);
}
CLK_OF_DECLARE(sun4i_a10_mod0, "allwinner,sun4i-a10-mod0-clk", sun4i_a10_mod0_setup);
@@ -86,7 +96,17 @@ static DEFINE_SPINLOCK(sun5i_a13_mbus_lock);
static void __init sun5i_a13_mbus_setup(struct device_node *node)
{
- struct clk *mbus = sunxi_factors_register(node, &sun4i_a10_mod0_data, &sun5i_a13_mbus_lock);
+ struct clk *mbus;
+ void __iomem *reg;
+
+ reg = of_iomap(node, 0);
+ if (!reg) {
+ pr_err("Could not get registers for a13-mbus-clk\n");
+ return;
+ }
+
+ mbus = sunxi_factors_register(node, &sun4i_a10_mod0_data,
+ &sun5i_a13_mbus_lock, reg);
/* The MBUS clocks needs to be always enabled */
__clk_get(mbus);
diff --git a/drivers/clk/sunxi/clk-sun8i-mbus.c b/drivers/clk/sunxi/clk-sun8i-mbus.c
index 8e49b44..c0629ff 100644
--- a/drivers/clk/sunxi/clk-sun8i-mbus.c
+++ b/drivers/clk/sunxi/clk-sun8i-mbus.c
@@ -68,8 +68,17 @@ static DEFINE_SPINLOCK(sun8i_a23_mbus_lock);
static void __init sun8i_a23_mbus_setup(struct device_node *node)
{
- struct clk *mbus = sunxi_factors_register(node, &sun8i_a23_mbus_data,
- &sun8i_a23_mbus_lock);
+ struct clk *mbus;
+ void __iomem *reg;
+
+ reg = of_iomap(node, 0);
+ if (!reg) {
+ pr_err("Could not get registers for a23-mbus-clk\n");
+ return;
+ }
+
+ mbus = sunxi_factors_register(node, &sun8i_a23_mbus_data,
+ &sun8i_a23_mbus_lock, reg);
/* The MBUS clocks needs to be always enabled */
__clk_get(mbus);
diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c
index b1f66ad..6062a3e 100644
--- a/drivers/clk/sunxi/clk-sunxi.c
+++ b/drivers/clk/sunxi/clk-sunxi.c
@@ -521,7 +521,16 @@ static const struct factors_data sun7i_a20_out_data __initconst = {
static struct clk * __init sunxi_factors_clk_setup(struct device_node *node,
const struct factors_data *data)
{
- return sunxi_factors_register(node, data, &clk_lock);
+ void __iomem *reg;
+
+ reg = of_iomap(node, 0);
+ if (!reg) {
+ pr_err("Could not get registers for factors-clk: %s\n",
+ node->name);
+ return NULL;
+ }
+
+ return sunxi_factors_register(node, data, &clk_lock, reg);
}
--
2.1.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v2 2/9] clk: sunxi: Make sun4i_a10_mod0_data available outside of clk-mod0.c
2014-11-23 13:38 [PATCH v2 0/9] sun6i / A31 ir receiver support Hans de Goede
2014-11-23 13:38 ` [PATCH v2 1/9] clk: sunxi: Give sunxi_factors_register a registers parameter Hans de Goede
@ 2014-11-23 13:38 ` Hans de Goede
2014-11-23 13:38 ` [PATCH v2 3/9] clk: sunxi: Add prcm mod0 clock driver Hans de Goede
` (6 subsequent siblings)
8 siblings, 0 replies; 15+ messages in thread
From: Hans de Goede @ 2014-11-23 13:38 UTC (permalink / raw)
To: Emilio Lopez, Maxime Ripard, Mike Turquette, Lee Jones, Samuel Ortiz
Cc: Linux Media Mailing List, linux-arm-kernel, devicetree,
linux-sunxi, Hans de Goede
The sun6i prcm has mod0 compatible clocks, these need a separate driver
because the prcm uses the mfd framework, but we do want to re-use the
standard mod0 clk handling from clk-mod0.c for this, export
sun4i_a10_mod0_data, so that the prcm mod0 clk driver can use this.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
drivers/clk/sunxi/clk-mod0.c | 2 +-
drivers/clk/sunxi/clk-mod0.h | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)
create mode 100644 drivers/clk/sunxi/clk-mod0.h
diff --git a/drivers/clk/sunxi/clk-mod0.c b/drivers/clk/sunxi/clk-mod0.c
index 5fb1f7e..7c06d42 100644
--- a/drivers/clk/sunxi/clk-mod0.c
+++ b/drivers/clk/sunxi/clk-mod0.c
@@ -67,7 +67,7 @@ static struct clk_factors_config sun4i_a10_mod0_config = {
.pwidth = 2,
};
-static const struct factors_data sun4i_a10_mod0_data __initconst = {
+const struct factors_data sun4i_a10_mod0_data = {
.enable = 31,
.mux = 24,
.table = &sun4i_a10_mod0_config,
diff --git a/drivers/clk/sunxi/clk-mod0.h b/drivers/clk/sunxi/clk-mod0.h
new file mode 100644
index 0000000..49aa9ab
--- /dev/null
+++ b/drivers/clk/sunxi/clk-mod0.h
@@ -0,0 +1,8 @@
+#ifndef __MACH_SUNXI_CLK_MOD0_H
+#define __MACH_SUNXI_CLK_MOD0_H
+
+#include "clk-factors.h"
+
+extern const struct factors_data sun4i_a10_mod0_data;
+
+#endif
--
2.1.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v2 3/9] clk: sunxi: Add prcm mod0 clock driver
2014-11-23 13:38 [PATCH v2 0/9] sun6i / A31 ir receiver support Hans de Goede
2014-11-23 13:38 ` [PATCH v2 1/9] clk: sunxi: Give sunxi_factors_register a registers parameter Hans de Goede
2014-11-23 13:38 ` [PATCH v2 2/9] clk: sunxi: Make sun4i_a10_mod0_data available outside of clk-mod0.c Hans de Goede
@ 2014-11-23 13:38 ` Hans de Goede
2014-11-25 16:57 ` Lee Jones
2014-11-23 13:38 ` [PATCH v2 4/9] rc: sunxi-cir: Add support for an optional reset controller Hans de Goede
` (5 subsequent siblings)
8 siblings, 1 reply; 15+ messages in thread
From: Hans de Goede @ 2014-11-23 13:38 UTC (permalink / raw)
To: Emilio Lopez, Maxime Ripard, Mike Turquette, Lee Jones, Samuel Ortiz
Cc: Linux Media Mailing List, linux-arm-kernel, devicetree,
linux-sunxi, Hans de Goede
Add a driver for mod0 clocks found in the prcm. Currently there is only
one mod0 clocks in the prcm, the ir clock.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
Documentation/devicetree/bindings/clock/sunxi.txt | 1 +
drivers/clk/sunxi/Makefile | 2 +-
drivers/clk/sunxi/clk-sun6i-prcm-mod0.c | 63 +++++++++++++++++++++++
drivers/mfd/sun6i-prcm.c | 14 +++++
4 files changed, 79 insertions(+), 1 deletion(-)
create mode 100644 drivers/clk/sunxi/clk-sun6i-prcm-mod0.c
diff --git a/Documentation/devicetree/bindings/clock/sunxi.txt b/Documentation/devicetree/bindings/clock/sunxi.txt
index ed116df..342c75a 100644
--- a/Documentation/devicetree/bindings/clock/sunxi.txt
+++ b/Documentation/devicetree/bindings/clock/sunxi.txt
@@ -56,6 +56,7 @@ Required properties:
"allwinner,sun4i-a10-usb-clk" - for usb gates + resets on A10 / A20
"allwinner,sun5i-a13-usb-clk" - for usb gates + resets on A13
"allwinner,sun6i-a31-usb-clk" - for usb gates + resets on A31
+ "allwinner,sun6i-a31-ir-clk" - for the ir clock on A31
Required properties for all clocks:
- reg : shall be the control register address for the clock.
diff --git a/drivers/clk/sunxi/Makefile b/drivers/clk/sunxi/Makefile
index 7ddc2b5..daf8b1c 100644
--- a/drivers/clk/sunxi/Makefile
+++ b/drivers/clk/sunxi/Makefile
@@ -10,4 +10,4 @@ obj-y += clk-sun8i-mbus.o
obj-$(CONFIG_MFD_SUN6I_PRCM) += \
clk-sun6i-ar100.o clk-sun6i-apb0.o clk-sun6i-apb0-gates.o \
- clk-sun8i-apb0.o
+ clk-sun8i-apb0.o clk-sun6i-prcm-mod0.o
diff --git a/drivers/clk/sunxi/clk-sun6i-prcm-mod0.c b/drivers/clk/sunxi/clk-sun6i-prcm-mod0.c
new file mode 100644
index 0000000..e80f18e
--- /dev/null
+++ b/drivers/clk/sunxi/clk-sun6i-prcm-mod0.c
@@ -0,0 +1,63 @@
+/*
+ * Allwinner A31 PRCM mod0 clock driver
+ *
+ * Copyright (C) 2014 Hans de Goede <hdegoede@redhat.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#include <linux/clk-provider.h>
+#include <linux/clkdev.h>
+#include <linux/module.h>
+#include <linux/of_address.h>
+#include <linux/platform_device.h>
+
+#include "clk-factors.h"
+#include "clk-mod0.h"
+
+static const struct of_device_id sun6i_a31_prcm_mod0_clk_dt_ids[] = {
+ { .compatible = "allwinner,sun6i-a31-ir-clk" },
+ { /* sentinel */ }
+};
+
+static DEFINE_SPINLOCK(sun6i_prcm_mod0_lock);
+
+static int sun6i_a31_prcm_mod0_clk_probe(struct platform_device *pdev)
+{
+ struct device_node *np = pdev->dev.of_node;
+ struct resource *r;
+ void __iomem *reg;
+
+ if (!np)
+ return -ENODEV;
+
+ r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+ reg = devm_ioremap_resource(&pdev->dev, r);
+ if (IS_ERR(reg))
+ return PTR_ERR(reg);
+
+ sunxi_factors_register(np, &sun4i_a10_mod0_data,
+ &sun6i_prcm_mod0_lock, reg);
+ return 0;
+}
+
+static struct platform_driver sun6i_a31_prcm_mod0_clk_driver = {
+ .driver = {
+ .name = "sun6i-a31-prcm-mod0-clk",
+ .of_match_table = sun6i_a31_prcm_mod0_clk_dt_ids,
+ },
+ .probe = sun6i_a31_prcm_mod0_clk_probe,
+};
+module_platform_driver(sun6i_a31_prcm_mod0_clk_driver);
+
+MODULE_DESCRIPTION("Allwinner A31 PRCM mod0 clock driver");
+MODULE_AUTHOR("Hans de Goede <hdegoede@redhat.com>");
+MODULE_LICENSE("GPL");
diff --git a/drivers/mfd/sun6i-prcm.c b/drivers/mfd/sun6i-prcm.c
index 283ab8d..ff1254f 100644
--- a/drivers/mfd/sun6i-prcm.c
+++ b/drivers/mfd/sun6i-prcm.c
@@ -41,6 +41,14 @@ static const struct resource sun6i_a31_apb0_gates_clk_res[] = {
},
};
+static const struct resource sun6i_a31_ir_clk_res[] = {
+ {
+ .start = 0x54,
+ .end = 0x57,
+ .flags = IORESOURCE_MEM,
+ },
+};
+
static const struct resource sun6i_a31_apb0_rstc_res[] = {
{
.start = 0xb0,
@@ -69,6 +77,12 @@ static const struct mfd_cell sun6i_a31_prcm_subdevs[] = {
.resources = sun6i_a31_apb0_gates_clk_res,
},
{
+ .name = "sun6i-a31-ir-clk",
+ .of_compatible = "allwinner,sun6i-a31-ir-clk",
+ .num_resources = ARRAY_SIZE(sun6i_a31_ir_clk_res),
+ .resources = sun6i_a31_ir_clk_res,
+ },
+ {
.name = "sun6i-a31-apb0-clock-reset",
.of_compatible = "allwinner,sun6i-a31-clock-reset",
.num_resources = ARRAY_SIZE(sun6i_a31_apb0_rstc_res),
--
2.1.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v2 4/9] rc: sunxi-cir: Add support for an optional reset controller
2014-11-23 13:38 [PATCH v2 0/9] sun6i / A31 ir receiver support Hans de Goede
` (2 preceding siblings ...)
2014-11-23 13:38 ` [PATCH v2 3/9] clk: sunxi: Add prcm mod0 clock driver Hans de Goede
@ 2014-11-23 13:38 ` Hans de Goede
2014-11-23 13:38 ` [PATCH v2 5/9] rc: sunxi-cir: Add support for the larger fifo found on sun5i and sun6i Hans de Goede
` (4 subsequent siblings)
8 siblings, 0 replies; 15+ messages in thread
From: Hans de Goede @ 2014-11-23 13:38 UTC (permalink / raw)
To: Emilio Lopez, Maxime Ripard, Mike Turquette, Lee Jones, Samuel Ortiz
Cc: Linux Media Mailing List, linux-arm-kernel, devicetree,
linux-sunxi, Hans de Goede
On sun6i the cir block is attached to the reset controller, add support
for de-asserting the reset if a reset controller is specified in dt.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
.../devicetree/bindings/media/sunxi-ir.txt | 2 ++
drivers/media/rc/sunxi-cir.c | 25 ++++++++++++++++++++--
2 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/media/sunxi-ir.txt b/Documentation/devicetree/bindings/media/sunxi-ir.txt
index 23dd5ad..6b70b9b 100644
--- a/Documentation/devicetree/bindings/media/sunxi-ir.txt
+++ b/Documentation/devicetree/bindings/media/sunxi-ir.txt
@@ -10,6 +10,7 @@ Required properties:
Optional properties:
- linux,rc-map-name : Remote control map name.
+- resets : phandle + reset specifier pair
Example:
@@ -17,6 +18,7 @@ ir0: ir@01c21800 {
compatible = "allwinner,sun4i-a10-ir";
clocks = <&apb0_gates 6>, <&ir0_clk>;
clock-names = "apb", "ir";
+ resets = <&apb0_rst 1>;
interrupts = <0 5 1>;
reg = <0x01C21800 0x40>;
linux,rc-map-name = "rc-rc6-mce";
diff --git a/drivers/media/rc/sunxi-cir.c b/drivers/media/rc/sunxi-cir.c
index bcee8e1..895fb65 100644
--- a/drivers/media/rc/sunxi-cir.c
+++ b/drivers/media/rc/sunxi-cir.c
@@ -23,6 +23,7 @@
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/of_platform.h>
+#include <linux/reset.h>
#include <media/rc-core.h>
#define SUNXI_IR_DEV "sunxi-ir"
@@ -95,6 +96,7 @@ struct sunxi_ir {
int irq;
struct clk *clk;
struct clk *apb_clk;
+ struct reset_control *rst;
const char *map_name;
};
@@ -166,15 +168,29 @@ static int sunxi_ir_probe(struct platform_device *pdev)
return PTR_ERR(ir->clk);
}
+ /* Reset (optional) */
+ ir->rst = devm_reset_control_get_optional(dev, NULL);
+ if (IS_ERR(ir->rst)) {
+ ret = PTR_ERR(ir->rst);
+ if (ret == -EPROBE_DEFER)
+ return ret;
+ ir->rst = NULL;
+ } else {
+ ret = reset_control_deassert(ir->rst);
+ if (ret)
+ return ret;
+ }
+
ret = clk_set_rate(ir->clk, SUNXI_IR_BASE_CLK);
if (ret) {
dev_err(dev, "set ir base clock failed!\n");
- return ret;
+ goto exit_reset_assert;
}
if (clk_prepare_enable(ir->apb_clk)) {
dev_err(dev, "try to enable apb_ir_clk failed\n");
- return -EINVAL;
+ ret = -EINVAL;
+ goto exit_reset_assert;
}
if (clk_prepare_enable(ir->clk)) {
@@ -271,6 +287,9 @@ exit_clkdisable_clk:
clk_disable_unprepare(ir->clk);
exit_clkdisable_apb_clk:
clk_disable_unprepare(ir->apb_clk);
+exit_reset_assert:
+ if (ir->rst)
+ reset_control_assert(ir->rst);
return ret;
}
@@ -282,6 +301,8 @@ static int sunxi_ir_remove(struct platform_device *pdev)
clk_disable_unprepare(ir->clk);
clk_disable_unprepare(ir->apb_clk);
+ if (ir->rst)
+ reset_control_assert(ir->rst);
spin_lock_irqsave(&ir->ir_lock, flags);
/* disable IR IRQ */
--
2.1.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v2 5/9] rc: sunxi-cir: Add support for the larger fifo found on sun5i and sun6i
2014-11-23 13:38 [PATCH v2 0/9] sun6i / A31 ir receiver support Hans de Goede
` (3 preceding siblings ...)
2014-11-23 13:38 ` [PATCH v2 4/9] rc: sunxi-cir: Add support for an optional reset controller Hans de Goede
@ 2014-11-23 13:38 ` Hans de Goede
2014-11-23 13:38 ` [PATCH v2 6/9] ARM: dts: sun6i: Add ir_clk node Hans de Goede
` (3 subsequent siblings)
8 siblings, 0 replies; 15+ messages in thread
From: Hans de Goede @ 2014-11-23 13:38 UTC (permalink / raw)
To: Emilio Lopez, Maxime Ripard, Mike Turquette, Lee Jones, Samuel Ortiz
Cc: Linux Media Mailing List, linux-arm-kernel, devicetree,
linux-sunxi, Hans de Goede
Add support for the larger fifo found on sun5i and sun6i, having a separate
compatible for the ir found on sun5i & sun6i also is useful if we ever want
to add ir transmit support, because the sun5i & sun6i version do not have
transmit support.
Note this commits also adds checking for the end-of-packet interrupt flag
(which was already enabled), as the fifo-data-available interrupt flag only
gets set when the trigger-level is exceeded. So far we've been getting away
with not doing this because of the low trigger-level, but this is something
which we should have done since day one.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
.../devicetree/bindings/media/sunxi-ir.txt | 2 +-
drivers/media/rc/sunxi-cir.c | 21 ++++++++++++---------
2 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/Documentation/devicetree/bindings/media/sunxi-ir.txt b/Documentation/devicetree/bindings/media/sunxi-ir.txt
index 6b70b9b..1811a06 100644
--- a/Documentation/devicetree/bindings/media/sunxi-ir.txt
+++ b/Documentation/devicetree/bindings/media/sunxi-ir.txt
@@ -1,7 +1,7 @@
Device-Tree bindings for SUNXI IR controller found in sunXi SoC family
Required properties:
-- compatible : should be "allwinner,sun4i-a10-ir";
+- compatible : "allwinner,sun4i-a10-ir" or "allwinner,sun5i-a13-ir"
- clocks : list of clock specifiers, corresponding to
entries in clock-names property;
- clock-names : should contain "apb" and "ir" entries;
diff --git a/drivers/media/rc/sunxi-cir.c b/drivers/media/rc/sunxi-cir.c
index 895fb65..559b0e3 100644
--- a/drivers/media/rc/sunxi-cir.c
+++ b/drivers/media/rc/sunxi-cir.c
@@ -56,12 +56,12 @@
#define REG_RXINT_RAI_EN BIT(4)
/* Rx FIFO available byte level */
-#define REG_RXINT_RAL(val) (((val) << 8) & (GENMASK(11, 8)))
+#define REG_RXINT_RAL(val) ((val) << 8)
/* Rx Interrupt Status */
#define SUNXI_IR_RXSTA_REG 0x30
/* RX FIFO Get Available Counter */
-#define REG_RXSTA_GET_AC(val) (((val) >> 8) & (GENMASK(5, 0)))
+#define REG_RXSTA_GET_AC(val) (((val) >> 8) & (ir->fifo_size * 2 - 1))
/* Clear all interrupt status value */
#define REG_RXSTA_CLEARALL 0xff
@@ -72,10 +72,6 @@
/* CIR_REG register idle threshold */
#define REG_CIR_ITHR(val) (((val) << 8) & (GENMASK(15, 8)))
-/* Hardware supported fifo size */
-#define SUNXI_IR_FIFO_SIZE 16
-/* How many messages in FIFO trigger IRQ */
-#define TRIGGER_LEVEL 8
/* Required frequency for IR0 or IR1 clock in CIR mode */
#define SUNXI_IR_BASE_CLK 8000000
/* Frequency after IR internal divider */
@@ -94,6 +90,7 @@ struct sunxi_ir {
struct rc_dev *rc;
void __iomem *base;
int irq;
+ int fifo_size;
struct clk *clk;
struct clk *apb_clk;
struct reset_control *rst;
@@ -115,11 +112,11 @@ static irqreturn_t sunxi_ir_irq(int irqno, void *dev_id)
/* clean all pending statuses */
writel(status | REG_RXSTA_CLEARALL, ir->base + SUNXI_IR_RXSTA_REG);
- if (status & REG_RXINT_RAI_EN) {
+ if (status & (REG_RXINT_RAI_EN | REG_RXINT_RPEI_EN)) {
/* How many messages in fifo */
rc = REG_RXSTA_GET_AC(status);
/* Sanity check */
- rc = rc > SUNXI_IR_FIFO_SIZE ? SUNXI_IR_FIFO_SIZE : rc;
+ rc = rc > ir->fifo_size ? ir->fifo_size : rc;
/* If we have data */
for (cnt = 0; cnt < rc; cnt++) {
/* for each bit in fifo */
@@ -156,6 +153,11 @@ static int sunxi_ir_probe(struct platform_device *pdev)
if (!ir)
return -ENOMEM;
+ if (of_device_is_compatible(dn, "allwinner,sun5i-a13-ir"))
+ ir->fifo_size = 64;
+ else
+ ir->fifo_size = 16;
+
/* Clock */
ir->apb_clk = devm_clk_get(dev, "apb");
if (IS_ERR(ir->apb_clk)) {
@@ -271,7 +273,7 @@ static int sunxi_ir_probe(struct platform_device *pdev)
* level
*/
writel(REG_RXINT_ROI_EN | REG_RXINT_RPEI_EN |
- REG_RXINT_RAI_EN | REG_RXINT_RAL(TRIGGER_LEVEL - 1),
+ REG_RXINT_RAI_EN | REG_RXINT_RAL(ir->fifo_size / 2 - 1),
ir->base + SUNXI_IR_RXINT_REG);
/* Enable IR Module */
@@ -319,6 +321,7 @@ static int sunxi_ir_remove(struct platform_device *pdev)
static const struct of_device_id sunxi_ir_match[] = {
{ .compatible = "allwinner,sun4i-a10-ir", },
+ { .compatible = "allwinner,sun5i-a13-ir", },
{},
};
--
2.1.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v2 6/9] ARM: dts: sun6i: Add ir_clk node
2014-11-23 13:38 [PATCH v2 0/9] sun6i / A31 ir receiver support Hans de Goede
` (4 preceding siblings ...)
2014-11-23 13:38 ` [PATCH v2 5/9] rc: sunxi-cir: Add support for the larger fifo found on sun5i and sun6i Hans de Goede
@ 2014-11-23 13:38 ` Hans de Goede
2014-11-23 13:38 ` [PATCH v2 7/9] ARM: dts: sun6i: Add ir node Hans de Goede
` (2 subsequent siblings)
8 siblings, 0 replies; 15+ messages in thread
From: Hans de Goede @ 2014-11-23 13:38 UTC (permalink / raw)
To: Emilio Lopez, Maxime Ripard, Mike Turquette, Lee Jones, Samuel Ortiz
Cc: Linux Media Mailing List, linux-arm-kernel, devicetree,
linux-sunxi, Hans de Goede
Add an ir_clk sub-node to the prcm node.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
arch/arm/boot/dts/sun6i-a31.dtsi | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi
index a01b215..4aa628b 100644
--- a/arch/arm/boot/dts/sun6i-a31.dtsi
+++ b/arch/arm/boot/dts/sun6i-a31.dtsi
@@ -882,6 +882,13 @@
"apb0_i2c";
};
+ ir_clk: ir_clk {
+ #clock-cells = <0>;
+ compatible = "allwinner,sun6i-a31-ir-clk";
+ clocks = <&osc32k>, <&osc24M>;
+ clock-output-names = "ir";
+ };
+
apb0_rst: apb0_rst {
compatible = "allwinner,sun6i-a31-clock-reset";
#reset-cells = <1>;
--
2.1.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v2 7/9] ARM: dts: sun6i: Add ir node
2014-11-23 13:38 [PATCH v2 0/9] sun6i / A31 ir receiver support Hans de Goede
` (5 preceding siblings ...)
2014-11-23 13:38 ` [PATCH v2 6/9] ARM: dts: sun6i: Add ir_clk node Hans de Goede
@ 2014-11-23 13:38 ` Hans de Goede
2014-11-23 13:38 ` [PATCH v2 8/9] ARM: dts: sun6i: Add pinmux settings for the ir pins Hans de Goede
2014-11-23 13:38 ` [PATCH v2 9/9] ARM: dts: sun6i: Enable ir receiver on the Mele M9 Hans de Goede
8 siblings, 0 replies; 15+ messages in thread
From: Hans de Goede @ 2014-11-23 13:38 UTC (permalink / raw)
To: Emilio Lopez, Maxime Ripard, Mike Turquette, Lee Jones, Samuel Ortiz
Cc: Linux Media Mailing List, linux-arm-kernel, devicetree,
linux-sunxi, Hans de Goede
Add a node for the ir receiver found on the A31.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
arch/arm/boot/dts/sun6i-a31.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi
index 4aa628b..d33e758 100644
--- a/arch/arm/boot/dts/sun6i-a31.dtsi
+++ b/arch/arm/boot/dts/sun6i-a31.dtsi
@@ -900,6 +900,16 @@
reg = <0x01f01c00 0x300>;
};
+ ir@01f02000 {
+ compatible = "allwinner,sun5i-a13-ir";
+ clocks = <&apb0_gates 1>, <&ir_clk>;
+ clock-names = "apb", "ir";
+ resets = <&apb0_rst 1>;
+ interrupts = <0 37 4>;
+ reg = <0x01f02000 0x40>;
+ status = "disabled";
+ };
+
r_pio: pinctrl@01f02c00 {
compatible = "allwinner,sun6i-a31-r-pinctrl";
reg = <0x01f02c00 0x400>;
--
2.1.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v2 8/9] ARM: dts: sun6i: Add pinmux settings for the ir pins
2014-11-23 13:38 [PATCH v2 0/9] sun6i / A31 ir receiver support Hans de Goede
` (6 preceding siblings ...)
2014-11-23 13:38 ` [PATCH v2 7/9] ARM: dts: sun6i: Add ir node Hans de Goede
@ 2014-11-23 13:38 ` Hans de Goede
2014-11-27 9:14 ` Maxime Ripard
2014-11-23 13:38 ` [PATCH v2 9/9] ARM: dts: sun6i: Enable ir receiver on the Mele M9 Hans de Goede
8 siblings, 1 reply; 15+ messages in thread
From: Hans de Goede @ 2014-11-23 13:38 UTC (permalink / raw)
To: Emilio Lopez, Maxime Ripard, Mike Turquette, Lee Jones, Samuel Ortiz
Cc: Linux Media Mailing List, linux-arm-kernel, devicetree,
linux-sunxi, Hans de Goede
Add pinmux settings for the ir receive pin of the A31.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
arch/arm/boot/dts/sun6i-a31.dtsi | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi
index d33e758..90b7537 100644
--- a/arch/arm/boot/dts/sun6i-a31.dtsi
+++ b/arch/arm/boot/dts/sun6i-a31.dtsi
@@ -922,6 +922,13 @@
#interrupt-cells = <2>;
#size-cells = <0>;
#gpio-cells = <3>;
+
+ ir_pins_a: ir@0 {
+ allwinner,pins = "PL4";
+ allwinner,function = "s_ir";
+ allwinner,drive = <0>;
+ allwinner,pull = <0>;
+ };
};
};
};
--
2.1.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v2 9/9] ARM: dts: sun6i: Enable ir receiver on the Mele M9
2014-11-23 13:38 [PATCH v2 0/9] sun6i / A31 ir receiver support Hans de Goede
` (7 preceding siblings ...)
2014-11-23 13:38 ` [PATCH v2 8/9] ARM: dts: sun6i: Add pinmux settings for the ir pins Hans de Goede
@ 2014-11-23 13:38 ` Hans de Goede
8 siblings, 0 replies; 15+ messages in thread
From: Hans de Goede @ 2014-11-23 13:38 UTC (permalink / raw)
To: Emilio Lopez, Maxime Ripard, Mike Turquette, Lee Jones, Samuel Ortiz
Cc: Linux Media Mailing List, linux-arm-kernel, devicetree,
linux-sunxi, Hans de Goede
The Mele M9 has an ir receiver, enable it.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
arch/arm/boot/dts/sun6i-a31-m9.dts | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/sun6i-a31-m9.dts b/arch/arm/boot/dts/sun6i-a31-m9.dts
index 4202c64..94ddf9c 100644
--- a/arch/arm/boot/dts/sun6i-a31-m9.dts
+++ b/arch/arm/boot/dts/sun6i-a31-m9.dts
@@ -83,6 +83,12 @@
reg = <1>;
};
};
+
+ ir@01f02000 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&ir_pins_a>;
+ status = "okay";
+ };
};
leds {
--
2.1.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH v2 3/9] clk: sunxi: Add prcm mod0 clock driver
2014-11-23 13:38 ` [PATCH v2 3/9] clk: sunxi: Add prcm mod0 clock driver Hans de Goede
@ 2014-11-25 16:57 ` Lee Jones
2014-11-26 8:04 ` Hans de Goede
0 siblings, 1 reply; 15+ messages in thread
From: Lee Jones @ 2014-11-25 16:57 UTC (permalink / raw)
To: Hans de Goede
Cc: Emilio Lopez, Maxime Ripard, Mike Turquette, Samuel Ortiz,
Linux Media Mailing List, linux-arm-kernel, devicetree,
linux-sunxi
On Sun, 23 Nov 2014, Hans de Goede wrote:
> Add a driver for mod0 clocks found in the prcm. Currently there is only
> one mod0 clocks in the prcm, the ir clock.
>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
> Documentation/devicetree/bindings/clock/sunxi.txt | 1 +
> drivers/clk/sunxi/Makefile | 2 +-
> drivers/clk/sunxi/clk-sun6i-prcm-mod0.c | 63 +++++++++++++++++++++++
> drivers/mfd/sun6i-prcm.c | 14 +++++
> 4 files changed, 79 insertions(+), 1 deletion(-)
> create mode 100644 drivers/clk/sunxi/clk-sun6i-prcm-mod0.c
[...]
> diff --git a/drivers/mfd/sun6i-prcm.c b/drivers/mfd/sun6i-prcm.c
> index 283ab8d..ff1254f 100644
> --- a/drivers/mfd/sun6i-prcm.c
> +++ b/drivers/mfd/sun6i-prcm.c
> @@ -41,6 +41,14 @@ static const struct resource sun6i_a31_apb0_gates_clk_res[] = {
> },
> };
>
> +static const struct resource sun6i_a31_ir_clk_res[] = {
> + {
> + .start = 0x54,
> + .end = 0x57,
> + .flags = IORESOURCE_MEM,
> + },
> +};
I'm not overly keen on these magic numbers (and yes, I'm well aware
that I SoB'ed the patch which started them off).
It's not a show stopper, although I'd prefer if they were fixed with a
subsequent patch.
Acked-by: Lee Jones <lee.jones@linaro.org>
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v2 3/9] clk: sunxi: Add prcm mod0 clock driver
2014-11-25 16:57 ` Lee Jones
@ 2014-11-26 8:04 ` Hans de Goede
2014-11-27 8:36 ` Lee Jones
0 siblings, 1 reply; 15+ messages in thread
From: Hans de Goede @ 2014-11-26 8:04 UTC (permalink / raw)
To: Lee Jones
Cc: Emilio Lopez, Maxime Ripard, Mike Turquette, Samuel Ortiz,
Linux Media Mailing List, linux-arm-kernel, devicetree,
linux-sunxi
Hi,
On 11/25/2014 05:57 PM, Lee Jones wrote:
> On Sun, 23 Nov 2014, Hans de Goede wrote:
>
>> Add a driver for mod0 clocks found in the prcm. Currently there is only
>> one mod0 clocks in the prcm, the ir clock.
>>
>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>> ---
>> Documentation/devicetree/bindings/clock/sunxi.txt | 1 +
>> drivers/clk/sunxi/Makefile | 2 +-
>> drivers/clk/sunxi/clk-sun6i-prcm-mod0.c | 63 +++++++++++++++++++++++
>> drivers/mfd/sun6i-prcm.c | 14 +++++
>> 4 files changed, 79 insertions(+), 1 deletion(-)
>> create mode 100644 drivers/clk/sunxi/clk-sun6i-prcm-mod0.c
>
> [...]
>
>> diff --git a/drivers/mfd/sun6i-prcm.c b/drivers/mfd/sun6i-prcm.c
>> index 283ab8d..ff1254f 100644
>> --- a/drivers/mfd/sun6i-prcm.c
>> +++ b/drivers/mfd/sun6i-prcm.c
>> @@ -41,6 +41,14 @@ static const struct resource sun6i_a31_apb0_gates_clk_res[] = {
>> },
>> };
>>
>> +static const struct resource sun6i_a31_ir_clk_res[] = {
>> + {
>> + .start = 0x54,
>> + .end = 0x57,
>> + .flags = IORESOURCE_MEM,
>> + },
>> +};
>
> I'm not overly keen on these magic numbers (and yes, I'm well aware
> that I SoB'ed the patch which started them off).
>
> It's not a show stopper, although I'd prefer if they were fixed with a
> subsequent patch.
These are offsets of the relevant registers inside the prcm register block,
if not done this way, then how should they be done ?
Regards,
Hans
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v2 1/9] clk: sunxi: Give sunxi_factors_register a registers parameter
2014-11-23 13:38 ` [PATCH v2 1/9] clk: sunxi: Give sunxi_factors_register a registers parameter Hans de Goede
@ 2014-11-26 20:40 ` Maxime Ripard
0 siblings, 0 replies; 15+ messages in thread
From: Maxime Ripard @ 2014-11-26 20:40 UTC (permalink / raw)
To: Hans de Goede
Cc: Emilio Lopez, Mike Turquette, Lee Jones, Samuel Ortiz,
Linux Media Mailing List, linux-arm-kernel, devicetree,
linux-sunxi
[-- Attachment #1: Type: text/plain, Size: 1048 bytes --]
On Sun, Nov 23, 2014 at 02:38:07PM +0100, Hans de Goede wrote:
> Before this commit sunxi_factors_register uses of_iomap(node, 0) to get
> the clk registers. The sun6i prcm has factor clocks, for which we want to
> use sunxi_factors_register, but of_iomap(node, 0) does not work for the prcm
> factor clocks, because the prcm uses the mfd framework, so the registers
> are not part of the dt-node, instead they are added to the platform_device,
> as platform_device resources.
>
> This commit makes getting the registers the callers duty, so that
> sunxi_factors_register can be used with mfd instantiated platform device too.
>
> While at it also add error checking to the of_iomap calls.
>
> This commit also drops the __init function from sunxi_factors_register since
> platform driver probe functions are not __init.
>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Queued for 3.20, thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v2 3/9] clk: sunxi: Add prcm mod0 clock driver
2014-11-26 8:04 ` Hans de Goede
@ 2014-11-27 8:36 ` Lee Jones
0 siblings, 0 replies; 15+ messages in thread
From: Lee Jones @ 2014-11-27 8:36 UTC (permalink / raw)
To: Hans de Goede
Cc: Emilio Lopez, Maxime Ripard, Mike Turquette, Samuel Ortiz,
Linux Media Mailing List, linux-arm-kernel, devicetree,
linux-sunxi
On Wed, 26 Nov 2014, Hans de Goede wrote:
> Hi,
>
> On 11/25/2014 05:57 PM, Lee Jones wrote:
> >On Sun, 23 Nov 2014, Hans de Goede wrote:
> >
> >>Add a driver for mod0 clocks found in the prcm. Currently there is only
> >>one mod0 clocks in the prcm, the ir clock.
> >>
> >>Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> >>---
> >> Documentation/devicetree/bindings/clock/sunxi.txt | 1 +
> >> drivers/clk/sunxi/Makefile | 2 +-
> >> drivers/clk/sunxi/clk-sun6i-prcm-mod0.c | 63 +++++++++++++++++++++++
> >> drivers/mfd/sun6i-prcm.c | 14 +++++
> >> 4 files changed, 79 insertions(+), 1 deletion(-)
> >> create mode 100644 drivers/clk/sunxi/clk-sun6i-prcm-mod0.c
> >
> >[...]
> >
> >>diff --git a/drivers/mfd/sun6i-prcm.c b/drivers/mfd/sun6i-prcm.c
> >>index 283ab8d..ff1254f 100644
> >>--- a/drivers/mfd/sun6i-prcm.c
> >>+++ b/drivers/mfd/sun6i-prcm.c
> >>@@ -41,6 +41,14 @@ static const struct resource sun6i_a31_apb0_gates_clk_res[] = {
> >> },
> >> };
> >>
> >>+static const struct resource sun6i_a31_ir_clk_res[] = {
> >>+ {
> >>+ .start = 0x54,
> >>+ .end = 0x57,
> >>+ .flags = IORESOURCE_MEM,
> >>+ },
> >>+};
> >
> >I'm not overly keen on these magic numbers (and yes, I'm well aware
> >that I SoB'ed the patch which started them off).
> >
> >It's not a show stopper, although I'd prefer if they were fixed with a
> >subsequent patch.
>
> These are offsets of the relevant registers inside the prcm register block,
> if not done this way, then how should they be done ?
I like these kinds of things to be defined. No implementation changes
are necessary.
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v2 8/9] ARM: dts: sun6i: Add pinmux settings for the ir pins
2014-11-23 13:38 ` [PATCH v2 8/9] ARM: dts: sun6i: Add pinmux settings for the ir pins Hans de Goede
@ 2014-11-27 9:14 ` Maxime Ripard
0 siblings, 0 replies; 15+ messages in thread
From: Maxime Ripard @ 2014-11-27 9:14 UTC (permalink / raw)
To: Hans de Goede
Cc: Emilio Lopez, Mike Turquette, Lee Jones, Samuel Ortiz,
Linux Media Mailing List, linux-arm-kernel, devicetree,
linux-sunxi
[-- Attachment #1: Type: text/plain, Size: 323 bytes --]
On Sun, Nov 23, 2014 at 02:38:14PM +0100, Hans de Goede wrote:
> Add pinmux settings for the ir receive pin of the A31.
>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Applied, thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2014-11-27 9:15 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-23 13:38 [PATCH v2 0/9] sun6i / A31 ir receiver support Hans de Goede
2014-11-23 13:38 ` [PATCH v2 1/9] clk: sunxi: Give sunxi_factors_register a registers parameter Hans de Goede
2014-11-26 20:40 ` Maxime Ripard
2014-11-23 13:38 ` [PATCH v2 2/9] clk: sunxi: Make sun4i_a10_mod0_data available outside of clk-mod0.c Hans de Goede
2014-11-23 13:38 ` [PATCH v2 3/9] clk: sunxi: Add prcm mod0 clock driver Hans de Goede
2014-11-25 16:57 ` Lee Jones
2014-11-26 8:04 ` Hans de Goede
2014-11-27 8:36 ` Lee Jones
2014-11-23 13:38 ` [PATCH v2 4/9] rc: sunxi-cir: Add support for an optional reset controller Hans de Goede
2014-11-23 13:38 ` [PATCH v2 5/9] rc: sunxi-cir: Add support for the larger fifo found on sun5i and sun6i Hans de Goede
2014-11-23 13:38 ` [PATCH v2 6/9] ARM: dts: sun6i: Add ir_clk node Hans de Goede
2014-11-23 13:38 ` [PATCH v2 7/9] ARM: dts: sun6i: Add ir node Hans de Goede
2014-11-23 13:38 ` [PATCH v2 8/9] ARM: dts: sun6i: Add pinmux settings for the ir pins Hans de Goede
2014-11-27 9:14 ` Maxime Ripard
2014-11-23 13:38 ` [PATCH v2 9/9] ARM: dts: sun6i: Enable ir receiver on the Mele M9 Hans de Goede
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).