From mboxrd@z Thu Jan 1 00:00:00 1970 From: pankaj.dubey@samsung.com (Pankaj Dubey) Date: Mon, 07 Nov 2016 15:39:30 +0530 Subject: [PATCH 0/6] Add support for MAX8997 Clock Driver Message-ID: <1478513376-14307-1-git-send-email-pankaj.dubey@samsung.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org During recent test on Exynos4210 based Origen board, I observed RTC1 probe is failing giving following error message: [ 2.195817] s3c-rtc 10070000.rtc: failed to find rtc source clock [ 2.200475] s3c-rtc: probe of 10070000.rtc failed with error -2 [ 2.206597] i2c /dev entries driver This is mainly because S3C-RTC expects two clocks "rtc" and "rtc_src". In case of Origen board this second clock is supplied by MAX8997 clock oscillator. This patch series modified MAX8997 MFD driver for supporting regmap, and adds max8997-clk driver. Also it documentation where-ever required and extends RTC node in exynos4210-origen.dts for supporting both clocks. After this patch series, RTC is getting probed properly on Origen board. This patch series is tested for SMP boot on Origen board. Pankaj Dubey (6): mfd: max8997: Initialize max8997 register map dt-bindings: clk: max8997: Add DT binding documentation clk: Add driver for Maxim-8997 PMIC clocks ARM: dts: Add clock provider specific properties to max8997 node mfd: max8997: Add max8997-clk name in mfd_cell ARM: dts: Extend the S3C RTC node with rtc_src clock .../devicetree/bindings/clock/maxim,max8997.txt | 44 +++++++++++++ .../bindings/regulator/max8997-regulator.txt | 3 + arch/arm/boot/dts/exynos4210-origen.dts | 6 +- arch/arm/boot/dts/exynos4210-trats.dts | 3 +- drivers/clk/Kconfig | 10 +++ drivers/clk/Makefile | 1 + drivers/clk/clk-max8997.c | 76 ++++++++++++++++++++++ drivers/mfd/max8997.c | 15 +++++ include/dt-bindings/clock/maxim,max8997.h | 23 +++++++ include/linux/mfd/max8997-private.h | 3 + 10 files changed, 182 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/maxim,max8997.txt create mode 100644 drivers/clk/clk-max8997.c create mode 100644 include/dt-bindings/clock/maxim,max8997.h -- 2.7.4