Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1466228 > unrolled thread
| Started by | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| First post | 2016-08-19 10:40 +0200 |
| Last post | 2016-08-22 20:50 +0200 |
| Articles | 5 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH v6 0/4] ARM: dts: sun9i: Enable X-Powers AC100 RTC Chen-Yu Tsai <wens@csie.org> - 2016-08-19 10:40 +0200
[PATCH v6 1/4] rtc: ac100: support clock-output-names in device tree binding Chen-Yu Tsai <wens@csie.org> - 2016-08-19 10:50 +0200
[PATCH v6 3/4] ARM: dts: sun9i: cubieboard4: Add device node for AC100 Chen-Yu Tsai <wens@csie.org> - 2016-08-19 10:50 +0200
[PATCH v6 2/4] ARM: dts: sun9i: a80-optimus: Add device node for AC100 Chen-Yu Tsai <wens@csie.org> - 2016-08-19 10:50 +0200
Re: [PATCH v6 0/4] ARM: dts: sun9i: Enable X-Powers AC100 RTC Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-08-22 20:50 +0200
| From | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| Date | 2016-08-19 10:40 +0200 |
| Subject | [PATCH v6 0/4] ARM: dts: sun9i: Enable X-Powers AC100 RTC |
| Message-ID | <s7Nvj-3hy-15@gated-at.bofh.it> |
Hi everyone,
This was "mfd: ac100: Add support for X-Powers AC100 audio codec / RTC
combo IC". The driver bits have all been merged.
Changes since v5:
- Driver bits merged and dropped from series.
- Added fix to rtc-ac100 clock register code to honor the
"clock-output-names" DT property.
- Added "clk-div" and "clk-mult" to osc32k placeholder clock node
Changes since v4:
- Style changes to DT bindings.
- Added commit message to DT bindings commit.
Changes since v3:
- bulk write support for regmaps without raw formatting patch merged
and thus dropped from series.
- sun9i device node re-ordering patches merged and thus dropped from
series.
- Fixed device node name and added labels to device tree binding example.
- Moved 4M_adda clock to codec side, and added clock bindings to codec
node.
- Rename RTC clock output related prefixes from clk32k to clkout.
- Rename default clock output names to cko{1,2,3}-rtc.
- Move struct tm to/from RTC conversion offsets inline with reg[]
assignments
- Drop separate mutex and use rtc->ops_lock in interrupt handler.
- Use platform_get_irq instead of of_get_irq.
- Add struct of_device_id and .of_match_table to RTC driver.
Changes since v2:
- Fix ac100_codec interrupt line in DT binding example.
- Fix copy-paste errors in RTC set_alarm. Alarm now works.
- Drop file name from MFD driver.
- Add / update copyright notices.
- Change license of RTC driver to GPL v2, matching MFD driver.
- Fix MFD driver MODULE_LICENSE to match license declaration in header.
Changes since v1:
- Complete register definitions and regmap regions.
Patch 1 adds a fix to rtc-ac100 clock register code to honor the
"clock-output-names" DT property.
Patch 2 adds the AC100 device nodes to the A80 Optimus board dts.
Patch 3 adds the AC100 device nodes to the Cubieboard4 board dts.
Patch 4 changes the fixed osc_32k clk to a fixed factor clk,
representing the 32k clk input pin on the SoC, and also hooks up the
ac100 rtc clk output to this clk in the board dts files.
Regards
ChenYu
Chen-Yu Tsai (4):
rtc: ac100: support clock-output-names in device tree binding
ARM: dts: sun9i: a80-optimus: Add device node for AC100
ARM: dts: sun9i: cubieboard4: Add device node for AC100
ARM: dts: sun9i: Switch to the AC100 RTC clock outputs for osc32k
arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 29 +++++++++++++++++++++++++++++
arch/arm/boot/dts/sun9i-a80-optimus.dts | 29 +++++++++++++++++++++++++++++
arch/arm/boot/dts/sun9i-a80.dtsi | 11 +++++------
drivers/rtc/rtc-ac100.c | 2 ++
4 files changed, 65 insertions(+), 6 deletions(-)
--
2.9.3
[toc] | [next] | [standalone]
| From | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| Date | 2016-08-19 10:50 +0200 |
| Subject | [PATCH v6 1/4] rtc: ac100: support clock-output-names in device tree binding |
| Message-ID | <s7NF0-3kM-3@gated-at.bofh.it> |
| In reply to | #1466228 |
The ac100 device tree binding specifies the usage of clock-output-names
to specify the names of its 3 clock outputs. This is needed for orphan
clock resolution, when the ac100 is probed much later than any clocks
that consume any of its outputs. This wasn't supported by the driver.
Add support for this.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
Changes since v5:
- New patch, based on mfd-rtc immutable branch given in
http://www.spinics.net/lists/devicetree/msg137991.html
---
drivers/rtc/rtc-ac100.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/rtc/rtc-ac100.c b/drivers/rtc/rtc-ac100.c
index 70b4fd0f6122..2d0bb02a25d9 100644
--- a/drivers/rtc/rtc-ac100.c
+++ b/drivers/rtc/rtc-ac100.c
@@ -327,6 +327,8 @@ static int ac100_rtc_register_clks(struct ac100_rtc_dev *chip)
.flags = 0,
};
+ of_property_read_string_index(np, "clock-output-names",
+ i, &init.name);
clk->regmap = chip->regmap;
clk->offset = AC100_CLKOUT_CTRL1 + i;
clk->hw.init = &init;
--
2.9.3
[toc] | [prev] | [next] | [standalone]
| From | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| Date | 2016-08-19 10:50 +0200 |
| Subject | [PATCH v6 3/4] ARM: dts: sun9i: cubieboard4: Add device node for AC100 |
| Message-ID | <s7NF0-3kM-5@gated-at.bofh.it> |
| In reply to | #1466228 |
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
Changes since v5: none
Changes since v4: none
Changes since v3:
- Moved 4M ADDA clk to codec side
Changes since v2: none
Changes since v1: none
---
arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts b/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts
index 1526b41c70f1..cf2f4b72a841 100644
--- a/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts
+++ b/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts
@@ -250,6 +250,30 @@
};
};
};
+
+ ac100: codec@e89 {
+ compatible = "x-powers,ac100";
+ reg = <0xe89>;
+
+ ac100_codec: codec {
+ compatible = "x-powers,ac100-codec";
+ interrupt-parent = <&r_pio>;
+ interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */
+ #clock-cells = <0>;
+ clock-output-names = "4M_adda";
+ };
+
+ ac100_rtc: rtc {
+ compatible = "x-powers,ac100-rtc";
+ interrupt-parent = <&nmi_intc>;
+ interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
+ clocks = <&ac100_codec>;
+ #clock-cells = <1>;
+ clock-output-names = "cko1_rtc",
+ "cko2_rtc",
+ "cko3_rtc";
+ };
+ };
};
#include "axp809.dtsi"
--
2.9.3
[toc] | [prev] | [next] | [standalone]
| From | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| Date | 2016-08-19 10:50 +0200 |
| Subject | [PATCH v6 2/4] ARM: dts: sun9i: a80-optimus: Add device node for AC100 |
| Message-ID | <s7NF0-3kM-7@gated-at.bofh.it> |
| In reply to | #1466228 |
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
Changes since v5: none
Changes since v4: none
Changes since v3:
- Moved 4M ADDA clk to codec side
Changes since v2: none
Changes since v1: none
---
arch/arm/boot/dts/sun9i-a80-optimus.dts | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/arm/boot/dts/sun9i-a80-optimus.dts b/arch/arm/boot/dts/sun9i-a80-optimus.dts
index 7fd22e888602..e35c06c162a7 100644
--- a/arch/arm/boot/dts/sun9i-a80-optimus.dts
+++ b/arch/arm/boot/dts/sun9i-a80-optimus.dts
@@ -322,6 +322,30 @@
};
};
};
+
+ ac100: codec@e89 {
+ compatible = "x-powers,ac100";
+ reg = <0xe89>;
+
+ ac100_codec: codec {
+ compatible = "x-powers,ac100-codec";
+ interrupt-parent = <&r_pio>;
+ interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */
+ #clock-cells = <0>;
+ clock-output-names = "4M_adda";
+ };
+
+ ac100_rtc: rtc {
+ compatible = "x-powers,ac100-rtc";
+ interrupt-parent = <&nmi_intc>;
+ interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
+ clocks = <&ac100_codec>;
+ #clock-cells = <1>;
+ clock-output-names = "cko1_rtc",
+ "cko2_rtc",
+ "cko3_rtc";
+ };
+ };
};
#include "axp809.dtsi"
--
2.9.3
[toc] | [prev] | [next] | [standalone]
| From | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| Date | 2016-08-22 20:50 +0200 |
| Message-ID | <s92si-1v9-59@gated-at.bofh.it> |
| In reply to | #1466228 |
[Multipart message — attachments visible in raw view] — view raw
Hi, On Fri, Aug 19, 2016 at 03:42:22PM +0800, Chen-Yu Tsai wrote: > Hi everyone, > > This was "mfd: ac100: Add support for X-Powers AC100 audio codec / RTC > combo IC". The driver bits have all been merged. Applied the DT patches. Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web