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
The 32.768 kHz clock inside the A80 SoC is fed from an external source,
typically the AC100 RTC module.
Make the osc32k placeholder a fixed-factor clock so board dts files can
specify its source.
Signed-off-by: Chen-Yu Tsai <redacted>
---
Changes since v5:
- Added "clk-div" and "clk-mult" fixed-factor-clock properties to osc32k
placeholder.
Changes since v4: none
Changes since v3: none
Changes since v2: none
Changes since v1: none
---
arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 5 +++++
arch/arm/boot/dts/sun9i-a80-optimus.dts | 5 +++++
arch/arm/boot/dts/sun9i-a80.dtsi | 11 +++++------
3 files changed, 15 insertions(+), 6 deletions(-)
@@ -103,6 +103,11 @@allwinner,drive=<SUN4I_PINCTRL_40_MA>;};+&osc32k{+/* osc32k input is from AC100 */+clocks=<&ac100_rtc0>;+};+&pio{led_pins_cubieboard4:led-pinsat0{allwinner,pins="PH6","PH17";
@@ -152,6 +152,11 @@status="okay";};+&osc32k{+/* osc32k input is from AC100 */+clocks=<&ac100_rtc0>;+};+&pio{led_pins_optimus:led-pinsat0{allwinner,pins="PH0","PH1";
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 <redacted>
---
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(+)
On 19/08/2016 at 15:42:23 +0800, Chen-Yu Tsai wrote :
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 <redacted>
---
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(+)
Applied, thanks.
--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com