Re: [PATCH v4 1/8] ARM: dts: Exynos542x/5800: add cluster regulator supply properties

2015-12-08 Thread Markus Reichl
Hi,

tested the patch successfully on Odroid-XU4.

Thanks
--
Markus

Am 07.12.2015 um 19:18 schrieb Bartlomiej Zolnierkiewicz:
> Add cluster regulator supply properties as a preparation to
> adding generic cpufreq-dt driver support for Exynos542x and
> Exynos5800 based boards.
> 
> Cc: Kukjin Kim <kgene@samsung.com>
> Cc: Doug Anderson <diand...@chromium.org>
> Cc: Javier Martinez Canillas <javier.marti...@collabora.co.uk>
> Cc: Andreas Faerber <afaer...@suse.de>
> Cc: Sachin Kamat <sachin.ka...@linaro.org>
> Cc: Thomas Abraham <thomas...@samsung.com>
> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnier...@samsung.com>
> ---
>  arch/arm/boot/dts/exynos5420-arndale-octa.dts   | 8 
>  arch/arm/boot/dts/exynos5420-peach-pit.dts  | 8 
>  arch/arm/boot/dts/exynos5420-smdk5420.dts   | 8 
>  arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts | 8 
>  arch/arm/boot/dts/exynos5422-odroidxu3.dts  | 8 
>  arch/arm/boot/dts/exynos5422-odroidxu4.dts  | 8 
>  arch/arm/boot/dts/exynos5800-peach-pi.dts   | 8 
>  7 files changed, 56 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/exynos5420-arndale-octa.dts 
> b/arch/arm/boot/dts/exynos5420-arndale-octa.dts
> index 4ecef69..4229641 100644
> --- a/arch/arm/boot/dts/exynos5420-arndale-octa.dts
> +++ b/arch/arm/boot/dts/exynos5420-arndale-octa.dts
> @@ -52,6 +52,14 @@
>   };
>  };
>  
> + {
> + cpu-supply = <_reg>;
> +};
> +
> + {
> + cpu-supply = <_reg>;
> +};
> +
>  _dwc3_1 {
>   dr_mode = "host";
>  };
> diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts 
> b/arch/arm/boot/dts/exynos5420-peach-pit.dts
> index 35cfb07..30f146b 100644
> --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts
> +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts
> @@ -676,6 +676,14 @@
>   };
>  };
>  
> + {
> + cpu-supply = <_reg>;
> +};
> +
> + {
> + cpu-supply = <_reg>;
> +};
> +
>  _2 {
>   status = "okay";
>   samsung,i2c-sda-delay = <100>;
> diff --git a/arch/arm/boot/dts/exynos5420-smdk5420.dts 
> b/arch/arm/boot/dts/exynos5420-smdk5420.dts
> index ac35aef..fdfe4e6 100644
> --- a/arch/arm/boot/dts/exynos5420-smdk5420.dts
> +++ b/arch/arm/boot/dts/exynos5420-smdk5420.dts
> @@ -423,3 +423,11 @@
>  _phy1 {
>   vbus-supply = <_vbus_reg>;
>  };
> +
> + {
> + cpu-supply = <_reg>;
> +};
> +
> + {
> + cpu-supply = <_reg>;
> +};
> diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts 
> b/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts
> index 2ae1cf4..0bfd981 100644
> --- a/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts
> +++ b/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts
> @@ -54,6 +54,14 @@
>   };
>  };
>  
> + {
> + cpu-supply = <_reg>;
> +};
> +
> + {
> + cpu-supply = <_reg>;
> +};
> +
>   {
>   /*
>* PWM 0 -- fan
> diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts 
> b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
> index 432406d..b19561c 100644
> --- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts
> +++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
> @@ -53,6 +53,14 @@
>   };
>  };
>  
> + {
> + cpu-supply = <_reg>;
> +};
> +
> + {
> + cpu-supply = <_reg>;
> +};
> +
>  _0 {
>   status = "okay";
>  
> diff --git a/arch/arm/boot/dts/exynos5422-odroidxu4.dts 
> b/arch/arm/boot/dts/exynos5422-odroidxu4.dts
> index 2faf886..bdc7106 100644
> --- a/arch/arm/boot/dts/exynos5422-odroidxu4.dts
> +++ b/arch/arm/boot/dts/exynos5422-odroidxu4.dts
> @@ -32,6 +32,14 @@
>   };
>  };
>  
> + {
> + cpu-supply = <_reg>;
> +};
> +
> + {
> + cpu-supply = <_reg>;
> +};
> +
>   {
>   /*
>* PWM 0 -- fan
> diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts 
> b/arch/arm/boot/dts/exynos5800-peach-pi.dts
> index 7b018e4..03ff1ceb 100644
> --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts
> +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts
> @@ -638,6 +638,14 @@
>   };
>  };
>  
> + {
> + cpu-supply = <_reg>;
> +};
> +
> + {
> + cpu-supply = <_reg>;
> +};
> +
>  _2 {
>   status = "okay";
>   samsung,i2c-sda-delay = <100>;
> 


-- 
Markus Reichl
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v3 0/10] cpufreq: add generic cpufreq driver support for Exynos542x/5800 platforms

2015-12-07 Thread Markus Reichl
Hi,

I have tested this patch set on Odroid-XU4 and get:

[2.140821] cpu cpu0: Looking up cpu-cluster.1-supply from device tree
[2.142780] cpu cpu0: bL_cpufreq_init: CPU 0 initialized
[2.146858] cpufreq: ondemand governor failed, too long transition latency 
of HW, fallback to performance governor
[2.161574] cpu cpu4: Looking up cpu-cluster.0-supply from device tree
[2.163277] cpu cpu4: bL_cpufreq_init: CPU 4 initialized
[2.167263] cpufreq: ondemand governor failed, too long transition latency 
of HW, fallback to performance governor
[2.180092] arm_big_little: bL_cpufreq_register: Registered platform driver: 
dt-bl

cpufreq stays in performance mode and does not change down from highest 
frequency.

Had the same behaviour with Ben Gamari's patch.

Thanks,
--
Markus


Am 04.12.2015 um 18:30 schrieb Bartlomiej Zolnierkiewicz:
> Hi,
> 
> This patch series adds generic arm_big_little_dt cpufreq driver
> support for Exynos542x/5800 (using the new CPU clock type which
> allows it).  It also:
> - enhances arm_big_little[_dt] driver with CPU cluster regulator
>   support
> - adds CPU clock configuration data and CPU operating points
>   setup for Exynos542x/5800
> - adds CPU cluster regulator supplies for Exynos542x/5800 boards
> 
> This patch series has been tested on Exynos5422 based ODROID-XU3
> Lite board.
> 
> Please note that this is not a final version of the patchset.
> I just wanted to push out current work-in-progress patches that
> integrate changes from Anand, Ben and me.
> 
> TODO:
> - porting the Exynos542x/5800 support over cpufreq-dt
> 
> Depends on:
> - next-20151124 branch of linux-next kernel tree
> 
> Changes since v2:
> - ported over next-20151124 branch
> - integrated missing CLK_RECALC_NEW_RATES flags fix to patch #3
>   (from Anand Moon)
> - added regulator supply properties for ODROID-XU3 Lite and
>   ODROID-XU4 in patch #2
> - ported CPU OPPs to operating-points-v2 (from Ben Gamari)
> - added "ARM: dts: Exynos5422: fix OPP tables" patch (from Ben
>   Gamari)
> - added "cpufreq: arm-big-little: accept operating-points-v2
>   nodes" patch (from Ben Gamari)
> - renamed OPP nodes as opp@
> 
> Changes since v1:
> - added CPU cluster regulator supply properties to
>   exynos5420-arndale-octa.dts, exynos5420-peach-pit.dts,
>   exynos5420-smdk5420.dts and exynos5800-peach-pi.dts
> 
> Changes over Thomas' original v12 code:
> - split Exynos5420 and Exynos5800 support
> - moved E5420_[EGL,KFC]_DIV0() macros to clk-exynos5420.c
> - disabled cpufreq if big.LITTLE switcher support is enabled
> - enhanced arm_big_little[_dt] driver with CPU cluster regulator
>   support
> - fixed CPU clock configuration data for Exynos5800
> - fixed CPU operating points setup for Exynos5800
> - added CPU cluster regulator supplies for ODROID-XU3 board
> 
> Best regards,
> --
> Bartlomiej Zolnierkiewicz
> Samsung R Institute Poland
> Samsung Electronics
> 
> 
> Bartlomiej Zolnierkiewicz (4):
>   cpufreq: arm_big_little: add cluster regulator support
>   ARM: dts: Exynos5420/5800: add cluster regulator supply properties
>   clk: samsung: exynos5800: fix cpu clock configuration data
>   ARM: dts: Exynos5800: fix CPU OPP
> 
> Ben Gamari (2):
>   ARM: dts: Exynos5422: fix OPP tables
>   cpufreq: arm-big-little: accept operating-points-v2 nodes
> 
> Thomas Abraham (4):
>   clk: samsung: exynos5420: add cpu clock configuration data and
> instantiate cpu clock
>   ARM: dts: Exynos5420: add CPU OPP and regulator supply property
>   ARM: Exynos: use generic cpufreq driver for Exynos5420
>   ARM: Exynos: use generic cpufreq driver for Exynos5800
> 
>  .../bindings/cpufreq/arm_big_little_dt.txt |   4 +
>  arch/arm/boot/dts/exynos5420-arndale-octa.dts  |   8 +
>  arch/arm/boot/dts/exynos5420-peach-pit.dts |   8 +
>  arch/arm/boot/dts/exynos5420-smdk5420.dts  |   8 +
>  arch/arm/boot/dts/exynos5420.dtsi  | 122 ++
>  arch/arm/boot/dts/exynos5422-cpus.dtsi |  10 ++
>  arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts|   8 +
>  arch/arm/boot/dts/exynos5422-odroidxu3.dts |   8 +
>  arch/arm/boot/dts/exynos5422-odroidxu4.dts |   8 +
>  arch/arm/boot/dts/exynos5800-peach-pi.dts  |   8 +
>  arch/arm/boot/dts/exynos5800.dtsi  | 165 +++
>  arch/arm/mach-exynos/exynos.c  |   8 +
>  drivers/clk/samsung/clk-exynos5420.c   |  88 ++-
>  drivers/cpufreq/arm_big_little.c   | 175 
> +
>  drivers/cpufreq/arm_big_little_dt.c|  12 +-
>  include/dt-bindings/clock/exynos5420.h |   2 +
>  16 files changed, 608 insertions(+), 34 deletions(-)
> 


--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2 0/6] Switch to generic syscon regmap based drivers

2015-10-21 Thread Markus Reichl
Am 21.10.2015 um 12:16 schrieb Javier Martinez Canillas:
> Hello Alim,
> 
> On 10/21/2015 08:09 AM, Alim Akhtar wrote:
> 
> [snip]
> 
>>>>>>
>>>>>> Hi Alim,
>>>>>>
>>>>>> I have installed your patch set above with git am on top of
>>>>>> 4.3.0-rc6-00108-gce1fad2 torvalds/linux of today
>>>>>> with make exynos_defconfig on Odroid U3.
>>>>>>
>>>>> which exynos soc Odroid U3 uses?
>>>>>
>>>> OK, I can see its uses exynos4412 and exynos4412-odroidu3.dts does
>>>> include exynos4.dtsi,
>>>> so these should have worked.
>>>>
>>>>>> "halt -p" worked (power 0.0W).
>>>>>> "reboot" got stuck at 0.5W.
>>>>>>
>>>>> reboot stuck mean system does not reboot any more?
>>>
>>> It freezes when going for reboot.
>>> Have to power off/on to boot again.
>>>
>>> Btw I use an mmc, not an sd-card.
>>> No other HW connected, just LAN-cable.
>>> Bootloader is u-boot v2015.10.
>>> o
>> Have checked on 4.3.0-rc6-6-gd03c139e7e77, still works on peach boards.
>> Sorry I don't have Odroid U3 with me, may be Javier or Krzysztof might help 
>> here to check whats wrong. To me its looks more of a board specific issue 
>> for now.
>>
> 
> Krzysztof has an Odroid XU3 lite and I have an Odroid XU4, both uses an
> Exynos5422 so we can't check what's wrong with Odroid U3 (Exynos4412).
> 
> Having said that I think I know what is the issue here. Markus said that
> he is using an eMMC instead of an uSD (which is what I used and my guess
> is that Krzysztof did too).
> 
> Now, there is a subtle difference between the old PMU restart handler
> and the syscon-reboot one, and that is the restart handler priorities:
> 
> notifierpriority
> 
> pmu_restart_notify  128
> mmc_pwrseq_emmc_reset_nb129
> syscon_restart_handle   192
> 
> So, without Alim's patches, first the eMMC reset handler will be called
> and then the PMU restart handler but after his series, the syscon reset
> handler has a higher priority so the eMMC reset will never be called.
> 
> But the problem is that the eMMC card has to be properly reset on system
> restart to allow the SoC iROM to be able to read the bootloader from the
> eMMC since the iROM doesn't have restart logic and the card shouldn't be
> left in an unknown state.
> 
> So the problem here is not that the system is not being reset (that I
> think that works) but that on reboot, the system is not able to boot
> again since the ROM is not able to read the second stage bootloader.
> 
> Markus, 
> 
> Can you please test following patch [0] on top of Alim's series? If that
> works then it should either be part of Alim's series or the patches will
> have to wait until that patch lands into mainline. I don't have an eMMC
> to test it in XU4 but I'm pretty confident that it will solve the issue.

Hi Javier,

your patch fixes the issue, reboot works now on U3.

Tested-by: Markus Reichl <m.rei...@fivetechno.de>

Thanks,
--
Markus


> 
> Best regards,
> 


--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 0/7] Switch to generic syscon regmap based drivers

2015-10-20 Thread Markus Reichl
Am 19.10.2015 um 08:03 schrieb Alim Akhtar:
> Alim Akhtar (7):
>   arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs
>   arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4
>   arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5
>   arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC
>   ARM: exynos_defconfig: Normalize exynos defconfig
>   ARM: exynos_defconfig: Enable generic syscon-{reboot, poweroff}
> drivers
>   ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
> 
>  arch/arm/boot/dts/exynos3250.dtsi |   14 
>  arch/arm/boot/dts/exynos4.dtsi|   14 
>  arch/arm/boot/dts/exynos5.dtsi|   14 
>  arch/arm/boot/dts/exynos5410.dtsi |   14 
>  arch/arm/configs/exynos_defconfig |   11 +-
>  arch/arm/mach-exynos/pmu.c|   43 
> -
>  6 files changed, 61 insertions(+), 49 deletions(-)
> 
Hi,

I have tested this patch on my Odroid U3 and U3+ using 4.3.0-rc6 from
Tobias' repo at https://github.com/tobiasjakobi/linux-odroid/tree/odroid-4.3.y

and his debug config:
https://raw.githubusercontent.com/tobiasjakobi/odroid-environment/master/sourcecode/system/vanilla-4.3-debug.conf

halt -p works (power goes down to 0W)

reboot does not work, stuck at 0.5W, right after
"systemd-shutdown[1]: rebooting".

reboot did work with 4.3.0-rc3 from above repo (without Alim's patch).

Thanks,
-- 
Markus Reichl
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2 0/6] Switch to generic syscon regmap based drivers

2015-10-20 Thread Markus Reichl
Am Dienstag, 20. Oktober 2015, 21:22:05 schrieb Alim Akhtar:
> On Tue, Oct 20, 2015 at 9:17 PM, Alim Akhtar <alim.akh...@gmail.com> wrote:
> > Hi Markus,
> >
> > On Tue, Oct 20, 2015 at 8:29 PM, Markus Reichl <m.rei...@fivetechno.de> 
> > wrote:
> >> Am 20.10.2015 um 11:24 schrieb Alim Akhtar:
> >>> Now we have a nice way to reboot/poweroff system using a generic
> >>> syscon regmap based drivers, this series moves exynos SoCs to
> >>> make use of the same.
> >>>
> >>> Changes since v1:
> >>> * Added a comment about the register information
> >>> * Droped defconfig changes as disscussed
> >>> * Collected various Reviewed-by, Tested-by and Acked-by tags
> >>> * Added SYSCON-{RESET, POWEROFF} to select from Kconfig
> >>>
> >>> Alim Akhtar (6):
> >>>   arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs
> >>>   arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4
> >>>   arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5
> >>>   arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC
> >>>   ARM: exynos: select POWER_RESET_SYSCON and
> >>> POWER_RESET_SYSCON_POWEROFF
> >>>   ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
> >>>
> >>>  arch/arm/boot/dts/exynos3250.dtsi |   14 
> >>>  arch/arm/boot/dts/exynos4.dtsi|   14 
> >>>  arch/arm/boot/dts/exynos5.dtsi|   14 
> >>>  arch/arm/boot/dts/exynos5410.dtsi |   14 
> >>>  arch/arm/mach-exynos/Kconfig  |3 +++
> >>>  arch/arm/mach-exynos/pmu.c|   43 
> >>> -
> >>>  6 files changed, 59 insertions(+), 43 deletions(-)
> >>>
> >>
> >> Hi Alim,
> >>
> >> I have installed your patch set above with git am on top of
> >> 4.3.0-rc6-00108-gce1fad2 torvalds/linux of today
> >> with make exynos_defconfig on Odroid U3.
> >>
> > which exynos soc Odroid U3 uses?
> >
> OK, I can see its uses exynos4412 and exynos4412-odroidu3.dts does
> include exynos4.dtsi,
> so these should have worked.
> 
> >> "halt -p" worked (power 0.0W).
> >> "reboot" got stuck at 0.5W.
> >>
> > reboot stuck mean system does not reboot any more?

It freezes when going for reboot.
Have to power off/on to boot again.

Btw I use an mmc, not an sd-card.
No other HW connected, just LAN-cable.
Bootloader is u-boot v2015.10.

> > As far as I can see there in __no__ functional changes that my patch 
> > introduce.
> > So ideally it should have work. My patches are based on the top on
> > vanilla v4.3-rc5.
> > (25cb62b Linux 4.3-rc5), can you check at this commit?

Will try tomorrow.

> >
> > Will check with the commit mentioned by you tomorrow.
> >
> >>
> >> Without your patch set reboot worked.
> >>
> >>
> >> Thanks,
> >> --
> >> Markus Reichl
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe 
> >> linux-samsung-soc" in
> >> the body of a message to majord...@vger.kernel.org
> >> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >
> >
> >
> > --
> > Regards,
> > Alim
> 
> 
> 
> 
Thanks,
--
Markus
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2 0/6] Switch to generic syscon regmap based drivers

2015-10-20 Thread Markus Reichl
Am 20.10.2015 um 11:24 schrieb Alim Akhtar:
> Now we have a nice way to reboot/poweroff system using a generic
> syscon regmap based drivers, this series moves exynos SoCs to
> make use of the same.
> 
> Changes since v1:
> * Added a comment about the register information
> * Droped defconfig changes as disscussed
> * Collected various Reviewed-by, Tested-by and Acked-by tags
> * Added SYSCON-{RESET, POWEROFF} to select from Kconfig
> 
> Alim Akhtar (6):
>   arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs
>   arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4
>   arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5
>   arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC
>   ARM: exynos: select POWER_RESET_SYSCON and
> POWER_RESET_SYSCON_POWEROFF
>   ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
> 
>  arch/arm/boot/dts/exynos3250.dtsi |   14 
>  arch/arm/boot/dts/exynos4.dtsi|   14 
>  arch/arm/boot/dts/exynos5.dtsi|   14 
>  arch/arm/boot/dts/exynos5410.dtsi |   14 
>  arch/arm/mach-exynos/Kconfig  |3 +++
>  arch/arm/mach-exynos/pmu.c|   43 
> -
>  6 files changed, 59 insertions(+), 43 deletions(-)
> 

Hi Alim,

I have installed your patch set above with git am on top of 
4.3.0-rc6-00108-gce1fad2 torvalds/linux of today 
with make exynos_defconfig on Odroid U3.

"halt -p" worked (power 0.0W).
"reboot" got stuck at 0.5W.


Without your patch set reboot worked.  


Thanks,
-- 
Markus Reichl
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCHv6 2/4] ARM: dts: exynos5422-odroidxu3: Enable TMU at Exynos5422 base

2015-06-15 Thread Markus Reichl
Hi Anand, Krzysztof

Am 15.06.2015 um 04:23 schrieb Anand Moon:
 hi Krzysztof
 
 On 15 June 2015 at 05:41, Krzysztof Kozlowski k.kozlow...@samsung.com wrote:
 On 14.06.2015 19:24, Anand Moon wrote:
 This changes enables TMU IP block on the Exynos5422 Odroid-XU3
 device.

 Signed-off-by: Anand Moon linux.am...@gmail.com
 Tested-by: Markus Reichl m.rei...@fivetechno.de

 This does not look right.
 You put this Tested-by since beginning of this patchset (v1) but first
 it was LDO10. Then you proposed LDO18 and now you use LDO7 from my
 suggestion. Which of this was tested by Markus because I cannot find his
 emails with it on LKML?
 
 Markus Reichl tested the earlier version with LDO10.

This is right.

 Commit logs got carry forward by mistake.
 
 -Anand Moon
 

 Krzysztof

 Acked-by: Lukasz Majewski l.majew...@samsung.com
 ---
 Changes rebase on 
 git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung branch 
 for-next
 Changes from v5: Use LDO7 regulator instead of LD010.

 The output of LDO18 goes to VDD_EMMC_1V8. This is not regulator for TMU.

 I think the schematics are missing some of details but it can be deducted 
 that:
 1. TEMP SE is supplied by VDD18_TS power domain. It consists of 5
 pairs of pins (XTSTEST_OUT[0-4], XTSEXT_RES[0-4]).
 2. The VDD18_TS01, VDD18_TS23 and VDD18_TS4 are wired to the LDO7 of
 S2MPS11 PMIC.
 3. I confirmed with the Exynos5422 datasheet that these
 VDD18_TS{01,23,4} supply the XTSTEST pins (OUT and RES).

 So the LDO7 it is... but before using it there is a caveat. The LDO7
 is also connected to VDD of MIPI, HDMI and few more. So when you use
 this regulator in TMU it may be turned off by TMU driver (e.g. during
 unbind). In such case these other blocks also should be tested and
 checked whether they take this regulator and enable it.
 ---
  arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 25 
 ++
  1 file changed, 25 insertions(+)

 
 


-- 
Markus Reichl
--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[RESEND] [PATCH 1/1] ARM: dts: Add LEDs on odroid XU3 board

2015-04-13 Thread Markus Reichl
This patch adds the RGB-LED on XU3 as 3 gpio-leds.
It is derived from hardkernel's 3.10 tree.

Tested-by: Anand Moon linux.am...@gmail.com
Signed-off-by: Markus Reichl m.rei...@fivetechno.de
---
 arch/arm/boot/dts/exynos5422-odroidxu3.dts | 24 
 1 file changed, 24 insertions(+)

diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts 
b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
index a519c86..0a32302 100644
--- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts
+++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
@@ -278,6 +278,30 @@
rtc@101E {
status = okay;
};
+
+   leds {
+   compatible = gpio-leds;
+   heartbeat {
+   label = blue:heartbeart;
+   gpios = gpb2 2 0;
+   default-state = off;
+   linux,default-trigger = heartbeat;
+   };
+
+   eMMC {
+   label = green:eMMC;
+   gpios = gpb2 1 0;
+   default-state = off;
+   linux,default-trigger = mmc0;
+   };
+
+   microSD {
+   label = red:microSD;
+   gpios = gpx2 3 0;
+   default-state = off;
+   linux,default-trigger = mmc1;
+   };
+   };
 };
 
 hdmi {
-- 
1.9.1

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 1/1] ARM: dts: Add HS400 support for exynos5422-odroidxu3

2015-04-07 Thread Markus Reichl
Hi,

the base patch in [0] has been applied now.

My patch was meanwhile

Tested-by: Anand Moon linux.am...@gmail.com


Am 31.03.2015 um 14:27 schrieb Markus Reichl:
 Am 30.03.2015 um 17:51 schrieb Markus Reichl:
 HS400 timing values are added for exynos5422-odroidxu3 board.
 ---
 This patch is analog to [0].
 This patch needs [0] for the pin-ctrl definition of sd0_rclk.

 [0]: 
 https://www.mail-archive.com/linux-samsung-soc%40vger.kernel.org/msg42902.html

 Signed-off-by: Markus Reichl m.rei...@fivetechno.de
 ---
  arch/arm/boot/dts/exynos5422-odroidxu3.dts | 7 ++-
  1 file changed, 6 insertions(+), 1 deletion(-)

 diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts 
 b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
 index a519c86..0408ec0 100644
 --- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts
 +++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
 @@ -298,15 +298,20 @@
  
  mmc_0 {
  status = okay;
 +num-slots = 1;
  broken-cd;
  card-detect-delay = 200;
  samsung,dw-mshc-ciu-div = 3;
  samsung,dw-mshc-sdr-timing = 0 4;
  samsung,dw-mshc-ddr-timing = 0 2;
 +samsung,dw-mshc-hs400-timing = 0 2;
 +samsung,read-strobe-delay = 90;
  pinctrl-names = default;
 -pinctrl-0 = sd0_clk sd0_cmd sd0_bus4 sd0_bus8;
 +pinctrl-0 = sd0_clk sd0_cmd sd0_bus1 sd0_bus4 sd0_bus8 sd0_rclk;
  bus-width = 8;
  cap-mmc-highspeed;
 +mmc-hs200-1_8v;
 +mmc-hs400-1_8v;
  };
  
  mmc_2 {

 
 hdparm -t /dev/mmcblk0
 
 without this patch:
 /dev/mmcblk0:
  Timing buffered disk reads: 230 MB in  3.01 seconds =  76.30 MB/sec
 
 with this patch:
 /dev/mmcblk0:
  Timing buffered disk reads: 588 MB in  3.00 seconds = 195.92 MB/sec
 
 cat /sys/kernel/debug/mmc0/ios
 
 without patch:
 clock:  5200 Hz
 vdd:7 (1.65 - 1.95 V)
 bus mode:   2 (push-pull)
 chip select:0 (don't care)
 power mode: 2 (on)
 bus width:  3 (8 bits)
 timing spec:8 (mmc DDR52)
 signal voltage: 0 (1.80 V)
 
 with patch:
 clock:  2 Hz
 vdd:7 (1.65 - 1.95 V)
 bus mode:   2 (push-pull)
 chip select:0 (don't care)
 power mode: 2 (on)
 bus width:  3 (8 bits)
 timing spec:10 (mmc HS400)
 signal voltage: 0 (1.80 V)
 
 Best Regards
 


-- 
Markus Reichl



signature.asc
Description: OpenPGP digital signature


[PATCH 1/1] ARM: dts: Add LEDs on odroid XU3 board.

2015-04-02 Thread Markus Reichl
This patch adds the RGB-LED on XU3 as 3 gpio-leds.
It is derived from hardkernel's 3.10 tree.

Signed-off-by: Markus Reichl m.rei...@fivetechno.de
---
 arch/arm/boot/dts/exynos5422-odroidxu3.dts | 24 
 1 file changed, 24 insertions(+)

diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts 
b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
index a519c86..0a32302 100644
--- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts
+++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
@@ -278,6 +278,30 @@
rtc@101E {
status = okay;
};
+
+   leds {
+   compatible = gpio-leds;
+   heartbeat {
+   label = blue:heartbeart;
+   gpios = gpb2 2 0;
+   default-state = off;
+   linux,default-trigger = heartbeat;
+   };
+
+   eMMC {
+   label = green:eMMC;
+   gpios = gpb2 1 0;
+   default-state = off;
+   linux,default-trigger = mmc0;
+   };
+
+   microSD {
+   label = red:microSD;
+   gpios = gpx2 3 0;
+   default-state = off;
+   linux,default-trigger = mmc1;
+   };
+   };
 };
 
 hdmi {
-- 
1.9.1

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Exynos5422 odroidxu3 pwm-fan control using thermal sensors

2015-04-02 Thread Markus Reichl
Am Freitag, 27. März 2015, 03:09:09 schrieb Anand Moon:
 This work depeds upon work done by Lukasz Majewski l.majew...@samsung.com
  and Sjoerd Simons sjoerd.sim...@collabora.co.uk regarding the pwm-fan.
 
 -Anand Moon
 --
 To unsubscribe from this list: send the line unsubscribe linux-samsung-soc 
 in
 the body of a message to majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html
 

MarkusTested-by:  Markus Reichl m.rei...@fivetechno.de

Best Regards,
---
Markus Reichl
--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH V4 2/2] ARM: dts: exynos5422-odroidxu3: add 'rtc_src' clock to rtc node

2015-03-31 Thread Markus Reichl
The Exynos5422 SoC has a s3c6410 RTC where the source clock
is now a mandatory property.

This patch fixes probe failure of s3c-rtc on Odroid-XU3 boards.
It is based on v4.0-rc2.

---
Changes since v3:
1. Readded slipped #include statement.
Sorry for the mess.
Changes since v2:
1. Dropped unused phandle.
Changes since v1:
1. Dropped Documentation.
2. Split into 2 parts.

Signed-off-by: Markus Reichl m.rei...@fivetechno.de
---
 arch/arm/boot/dts/exynos5422-odroidxu3.dts | 11 +++
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts 
b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
index a519c86..d086398 100644
--- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts
+++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
@@ -11,6 +11,7 @@
 */
 
 /dts-v1/;
+#include dt-bindings/clock/samsung,s2mps11.h
 #include exynos5800.dtsi
 
 / {
@@ -274,10 +275,6 @@
reg = 0x50;
};
};
-
-   rtc@101E {
-   status = okay;
-   };
 };
 
 hdmi {
@@ -369,3 +366,9 @@
shunt-resistor = 1;
};
 };
+
+rtc {
+   status = okay;
+   clocks = clock CLK_RTC, s2mps11_osc S2MPS11_CLK_AP;
+   clock-names = rtc, rtc_src;
+};
-- 
1.9.1

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH V4 2/2] ARM: dts: exynos5422-odroidxu3: add 'rtc_src' clock to rtc node

2015-03-31 Thread Markus Reichl
Am 31.03.2015 um 14:00 schrieb Javier Martinez Canillas:
 Hello Markus,
 
 On 03/31/2015 01:48 PM, Markus Reichl wrote:
 The Exynos5422 SoC has a s3c6410 RTC where the source clock
 is now a mandatory property.

 This patch fixes probe failure of s3c-rtc on Odroid-XU3 boards.
 It is based on v4.0-rc2.

 ---
 Changes since v3:
 1. Readded slipped #include statement.
 Sorry for the mess.
 Changes since v2:
 1. Dropped unused phandle.
 Changes since v1:
 1. Dropped Documentation.
 2. Split into 2 parts.

 Signed-off-by: Markus Reichl m.rei...@fivetechno.de

 
 When you re-spin your patches with small changes, you should keep all
 the {Reviewed,Tested,Acked}-by tags collected on previous versions so
 the maintainer picking the patches knows who already reviewed the code.
 
 Best regards,
 Javier
 
 
Ok, will copy it in next time.

Thanks,
-- 
Markus Reichl



signature.asc
Description: OpenPGP digital signature


Re: [PATCH 1/1] ARM: dts: Add HS400 support for exynos5422-odroidxu3

2015-03-31 Thread Markus Reichl
Am 30.03.2015 um 17:51 schrieb Markus Reichl:
 HS400 timing values are added for exynos5422-odroidxu3 board.
 ---
 This patch is analog to [0].
 This patch needs [0] for the pin-ctrl definition of sd0_rclk.
 
 [0]: 
 https://www.mail-archive.com/linux-samsung-soc%40vger.kernel.org/msg42902.html
 
 Signed-off-by: Markus Reichl m.rei...@fivetechno.de
 ---
  arch/arm/boot/dts/exynos5422-odroidxu3.dts | 7 ++-
  1 file changed, 6 insertions(+), 1 deletion(-)
 
 diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts 
 b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
 index a519c86..0408ec0 100644
 --- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts
 +++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
 @@ -298,15 +298,20 @@
  
  mmc_0 {
   status = okay;
 + num-slots = 1;
   broken-cd;
   card-detect-delay = 200;
   samsung,dw-mshc-ciu-div = 3;
   samsung,dw-mshc-sdr-timing = 0 4;
   samsung,dw-mshc-ddr-timing = 0 2;
 + samsung,dw-mshc-hs400-timing = 0 2;
 + samsung,read-strobe-delay = 90;
   pinctrl-names = default;
 - pinctrl-0 = sd0_clk sd0_cmd sd0_bus4 sd0_bus8;
 + pinctrl-0 = sd0_clk sd0_cmd sd0_bus1 sd0_bus4 sd0_bus8 sd0_rclk;
   bus-width = 8;
   cap-mmc-highspeed;
 + mmc-hs200-1_8v;
 + mmc-hs400-1_8v;
  };
  
  mmc_2 {
 

hdparm -t /dev/mmcblk0

without this patch:
/dev/mmcblk0:
 Timing buffered disk reads: 230 MB in  3.01 seconds =  76.30 MB/sec

with this patch:
/dev/mmcblk0:
 Timing buffered disk reads: 588 MB in  3.00 seconds = 195.92 MB/sec

cat /sys/kernel/debug/mmc0/ios

without patch:
clock:  5200 Hz
vdd:7 (1.65 - 1.95 V)
bus mode:   2 (push-pull)
chip select:0 (don't care)
power mode: 2 (on)
bus width:  3 (8 bits)
timing spec:8 (mmc DDR52)
signal voltage: 0 (1.80 V)

with patch:
clock:  2 Hz
vdd:7 (1.65 - 1.95 V)
bus mode:   2 (push-pull)
chip select:0 (don't care)
power mode: 2 (on)
bus width:  3 (8 bits)
timing spec:10 (mmc HS400)
signal voltage: 0 (1.80 V)

Best Regards
-- 
Markus Reichl



signature.asc
Description: OpenPGP digital signature


[PATCH V4 1/2] ARM: dts: Add bindings for 32kHz clocks from s2mps11

2015-03-31 Thread Markus Reichl
This creates include/dt-bindings/clock/samsung,s2mps11.h with the three
32kHz clock outputs from the s2mps11 mfd.

Signed-off-by: Markus Reichl m.rei...@fivetechno.de
Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com
---
Changes since v3:
   None
Changes since v2:
   None
Changes since v1:
1. Dropped Documentation.
2. Split into 2 parts.
---
 include/dt-bindings/clock/samsung,s2mps11.h | 23 +++
 1 file changed, 23 insertions(+)
 create mode 100644 include/dt-bindings/clock/samsung,s2mps11.h

diff --git a/include/dt-bindings/clock/samsung,s2mps11.h 
b/include/dt-bindings/clock/samsung,s2mps11.h
new file mode 100644
index 000..b903d7d
--- /dev/null
+++ b/include/dt-bindings/clock/samsung,s2mps11.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2015 Markus Reichl
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * Device Tree binding constants clocks for the Samsung S2MPS11 PMIC.
+ */
+
+#ifndef _DT_BINDINGS_CLOCK_SAMSUNG_S2MPS11_CLOCK_H
+#define _DT_BINDINGS_CLOCK_SAMSUNG_S2MPS11_CLOCK_H
+
+/* Fixed rate clocks. */
+
+#define S2MPS11_CLK_AP 0
+#define S2MPS11_CLK_CP 1
+#define S2MPS11_CLK_BT 2
+
+/* Total number of clocks. */
+#define S2MPS11_CLKS_NUM   (S2MPS11_CLK_BT + 1)
+
+#endif /* _DT_BINDINGS_CLOCK_SAMSUNG_S2MPS11_CLOCK_H */
-- 
1.9.1

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH V2 1/2] ARM: dts: Add bindings for 32kHz clocks from s2mps11

2015-03-30 Thread Markus Reichl
This creates include/dt-bindings/clock/samsung,s2mps11.h with the three
32kHz clock outputs from the s2mps11 mfd.

Signed-off-by: Markus Reichl m.rei...@fivetechno.de
---
Changes since v1:
1. Dropped Documentation.
2. Split into 2 parts.
---
 include/dt-bindings/clock/samsung,s2mps11.h | 23 +++
 1 file changed, 23 insertions(+)
 create mode 100644 include/dt-bindings/clock/samsung,s2mps11.h

diff --git a/include/dt-bindings/clock/samsung,s2mps11.h 
b/include/dt-bindings/clock/samsung,s2mps11.h
new file mode 100644
index 000..b903d7d
--- /dev/null
+++ b/include/dt-bindings/clock/samsung,s2mps11.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2015 Markus Reichl
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * Device Tree binding constants clocks for the Samsung S2MPS11 PMIC.
+ */
+
+#ifndef _DT_BINDINGS_CLOCK_SAMSUNG_S2MPS11_CLOCK_H
+#define _DT_BINDINGS_CLOCK_SAMSUNG_S2MPS11_CLOCK_H
+
+/* Fixed rate clocks. */
+
+#define S2MPS11_CLK_AP 0
+#define S2MPS11_CLK_CP 1
+#define S2MPS11_CLK_BT 2
+
+/* Total number of clocks. */
+#define S2MPS11_CLKS_NUM   (S2MPS11_CLK_BT + 1)
+
+#endif /* _DT_BINDINGS_CLOCK_SAMSUNG_S2MPS11_CLOCK_H */
-- 
1.9.1

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH V2 2/2] ARM: dts: exynos5422-odroidxu3: add 'rtc_src' clock to rtc node

2015-03-30 Thread Markus Reichl
The Exynos5422 SoC has a s3c6410 RTC where the source clock
is now a mandatory property.

This patch fixes probe failure of s3c-rtc on Odroid-XU3 boards.
It is based in v4.0-rc2.

Tested-by: Anand Moon linux.am...@gmail.com
Signed-off-by: Markus Reichl m.rei...@fivetechno.de
---
Changes since v1:
1. Dropped Documentation.
2. Split into 2 parts.
---

 arch/arm/boot/dts/exynos5422-odroidxu3.dts | 13 -
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts 
b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
index a519c86..ac663ec 100644
--- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts
+++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
@@ -11,6 +11,7 @@
 */
 
 /dts-v1/;
+#include dt-bindings/clock/samsung,s2mps11.h
 #include exynos5800.dtsi
 
 / {
@@ -44,7 +45,7 @@
hsi2c_4: i2c@12CA {
status = okay;
 
-   s2mps11_pmic@66 {
+   s2mps11: s2mps11_pmic@66 {
compatible = samsung,s2mps11-pmic;
reg = 0x66;
s2mps11,buck2-ramp-delay = 12;
@@ -274,10 +275,6 @@
reg = 0x50;
};
};
-
-   rtc@101E {
-   status = okay;
-   };
 };
 
 hdmi {
@@ -369,3 +366,9 @@
shunt-resistor = 1;
};
 };
+
+rtc {
+   status = okay;
+   clocks = clock CLK_RTC, s2mps11_osc S2MPS11_CLK_AP;
+   clock-names = rtc, rtc_src;
+};
-- 
1.9.1

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 1/1] ARM: dts: exynos5422-odroidxu3: add 'rtc_src' clock to rtc node

2015-03-30 Thread Markus Reichl
The Exynos5422 SoC has a s3c6410 RTC where the source clock
is now a mandatory property.

This patch fixes probe failure of s3c-rtc on Odroid-XU3 boards.
It is based in v4.0-rc2.

Signed-off-by: Markus Reichl m.rei...@fivetechno.de
Tested-by: Anand Moon linux.am...@gmail.com
---
 .../devicetree/bindings/clock/samsung,s2mps11.txt  | 67 ++
 arch/arm/boot/dts/exynos5422-odroidxu3.dts | 12 ++--
 include/dt-bindings/clock/samsung,s2mps11.h| 23 
 3 files changed, 98 insertions(+), 4 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/clock/samsung,s2mps11.txt
 create mode 100644 include/dt-bindings/clock/samsung,s2mps11.h

diff --git a/Documentation/devicetree/bindings/clock/samsung,s2mps11.txt 
b/Documentation/devicetree/bindings/clock/samsung,s2mps11.txt
new file mode 100644
index 000..46c61ce
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/samsung,s2mps11.txt
@@ -0,0 +1,67 @@
+Binding for Samsung S2MPS11 32k clock generator block
+
+This is a part of device tree bindings of S2MPS11 multi-function device.
+More information can be found in bindings/mfd/s2mps11.txt file.
+
+The S2MPS11 contains three 32.768khz clock outputs that can be controlled
+(gated/ungated) over I2C.
+
+Following properties should be present in main device node of the MFD chip.
+
+Required properties:
+- #clock-cells: From common clock binding; shall be set to 1.
+
+Optional properties:
+- clock-output-names: From common clock binding.
+
+Each clock is assigned an identifier and client nodes can use this identifier
+to specify the clock which they consume. Following indices are allowed:
+ - 0: 32khz_ap clock,
+ - 1: 32khz_cp clock.
+ - 2: 32khz_bt clock
+
+Clocks are defined as preprocessor macros in 
dt-bindings/clock/samsung,s2mps11.h
+header and can be used in device tree sources.
+
+Example: Node of the MFD chip
+
+   s2mps11: s2mps11@66 {
+   compatible = samsung,s2mps11;
+   interrupt-parent = wakeup_eint;
+   interrupts = 26 0;
+   reg = 0x66;
+   #clock-cells = 1;
+
+   /* ... */
+   };
+
+Example: Clock consumer node
+
+   foo@0 {
+   compatible = bar,foo;
+   /* ... */
+   clock-names = my-clock;
+   clocks = s2mps11 S2MPS11_CLK_32K_AP;
+   };
+
+Presently (19.3.2015) the above said is not correct yet.
+Until s2mps11 mfd driver is updated you still need to specify like that:
+
+   s2mps11: s2mps11@66 {
+   compatible = samsung,s2mps11-pmic;
+   reg = 0x66;
+   s2mps11_osc: clocks {
+   #clock-cells = 1;
+   clock-output-names = s2mps11_ap,
+   s2mps11_cp, s2mps11_bt;
+};
+   /* ... */
+   }
+
+   foo@0 {
+   compatible = bar,foo;
+   /* ... */
+   clock-names = my-clock;
+   clocks = s2mps11_osc S2MPS11_CLK_AP;
+
+};
diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts 
b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
index a519c86..7f1bb31 100644
--- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts
+++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
@@ -11,6 +11,7 @@
 */
 
 /dts-v1/;
+#include dt-bindings/clock/samsung,s2mps11.h
 #include exynos5800.dtsi
 
 / {
@@ -44,7 +45,7 @@
hsi2c_4: i2c@12CA {
status = okay;
 
-   s2mps11_pmic@66 {
+   s2mps11: s2mps11_pmic@66 {
compatible = samsung,s2mps11-pmic;
reg = 0x66;
s2mps11,buck2-ramp-delay = 12;
@@ -275,9 +276,6 @@
};
};
 
-   rtc@101E {
-   status = okay;
-   };
 };
 
 hdmi {
@@ -369,3 +367,9 @@
shunt-resistor = 1;
};
 };
+
+rtc {
+   status = okay;
+   clocks = clock CLK_RTC, s2mps11_osc S2MPS11_CLK_AP;
+   clock-names = rtc, rtc_src;
+};
diff --git a/include/dt-bindings/clock/samsung,s2mps11.h 
b/include/dt-bindings/clock/samsung,s2mps11.h
new file mode 100644
index 000..b903d7d
--- /dev/null
+++ b/include/dt-bindings/clock/samsung,s2mps11.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2015 Markus Reichl
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * Device Tree binding constants clocks for the Samsung S2MPS11 PMIC.
+ */
+
+#ifndef _DT_BINDINGS_CLOCK_SAMSUNG_S2MPS11_CLOCK_H
+#define _DT_BINDINGS_CLOCK_SAMSUNG_S2MPS11_CLOCK_H
+
+/* Fixed rate clocks. */
+
+#define S2MPS11_CLK_AP 0
+#define S2MPS11_CLK_CP 1
+#define S2MPS11_CLK_BT 2
+
+/* Total number of clocks. */
+#define S2MPS11_CLKS_NUM   (S2MPS11_CLK_BT + 1)
+
+#endif /* _DT_BINDINGS_CLOCK_SAMSUNG_S2MPS11_CLOCK_H

[PATCH V3 1/2] ARM: dts: Add bindings for 32kHz clocks from s2mps11

2015-03-30 Thread Markus Reichl
This creates include/dt-bindings/clock/samsung,s2mps11.h with the three
32kHz clock outputs from the s2mps11 mfd.

Signed-off-by: Markus Reichl m.rei...@fivetechno.de
Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com
---
Changes since v2:
   None
Changes since v1:
1. Dropped Documentation.
2. Split into 2 parts.
---
 include/dt-bindings/clock/samsung,s2mps11.h | 23 +++
 1 file changed, 23 insertions(+)
 create mode 100644 include/dt-bindings/clock/samsung,s2mps11.h

diff --git a/include/dt-bindings/clock/samsung,s2mps11.h 
b/include/dt-bindings/clock/samsung,s2mps11.h
new file mode 100644
index 000..b903d7d
--- /dev/null
+++ b/include/dt-bindings/clock/samsung,s2mps11.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2015 Markus Reichl
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * Device Tree binding constants clocks for the Samsung S2MPS11 PMIC.
+ */
+
+#ifndef _DT_BINDINGS_CLOCK_SAMSUNG_S2MPS11_CLOCK_H
+#define _DT_BINDINGS_CLOCK_SAMSUNG_S2MPS11_CLOCK_H
+
+/* Fixed rate clocks. */
+
+#define S2MPS11_CLK_AP 0
+#define S2MPS11_CLK_CP 1
+#define S2MPS11_CLK_BT 2
+
+/* Total number of clocks. */
+#define S2MPS11_CLKS_NUM   (S2MPS11_CLK_BT + 1)
+
+#endif /* _DT_BINDINGS_CLOCK_SAMSUNG_S2MPS11_CLOCK_H */
-- 
1.9.1

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH V3 2/2] ARM: dts: exynos5422-odroidxu3: add 'rtc_src' clock to rtc node

2015-03-30 Thread Markus Reichl
The Exynos5422 SoC has a s3c6410 RTC where the source clock
is now a mandatory property.

This patch fixes probe failure of s3c-rtc on Odroid-XU3 boards.
It is based in v4.0-rc2.

Signed-off-by: Markus Reichl m.rei...@fivetechno.de
---
Changes since v2:
1. Dropped unused phandle.
Changes since v1:
1. Dropped Documentation.
2. Split into 2 parts.
---
 arch/arm/boot/dts/exynos5422-odroidxu3.dts | 10 ++
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts 
b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
index 0408ec0..4a7ca15 100644
--- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts
+++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
@@ -274,10 +274,6 @@
reg = 0x50;
};
};
-
-   rtc@101E {
-   status = okay;
-   };
 };
 
 hdmi {
@@ -374,3 +370,9 @@
shunt-resistor = 1;
};
 };
+
+rtc {
+   status = okay;
+   clocks = clock CLK_RTC, s2mps11_osc S2MPS11_CLK_AP;
+   clock-names = rtc, rtc_src;
+};
-- 
1.9.1

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 1/1] ARM: dts: Add HS400 support for exynos5422-odroidxu3

2015-03-30 Thread Markus Reichl
HS400 timing values are added for exynos5422-odroidxu3 board.
---
This patch is analog to [0].
This patch needs [0] for the pin-ctrl definition of sd0_rclk.

[0]: 
https://www.mail-archive.com/linux-samsung-soc%40vger.kernel.org/msg42902.html

Signed-off-by: Markus Reichl m.rei...@fivetechno.de
---
 arch/arm/boot/dts/exynos5422-odroidxu3.dts | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts 
b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
index a519c86..0408ec0 100644
--- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts
+++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
@@ -298,15 +298,20 @@
 
 mmc_0 {
status = okay;
+   num-slots = 1;
broken-cd;
card-detect-delay = 200;
samsung,dw-mshc-ciu-div = 3;
samsung,dw-mshc-sdr-timing = 0 4;
samsung,dw-mshc-ddr-timing = 0 2;
+   samsung,dw-mshc-hs400-timing = 0 2;
+   samsung,read-strobe-delay = 90;
pinctrl-names = default;
-   pinctrl-0 = sd0_clk sd0_cmd sd0_bus4 sd0_bus8;
+   pinctrl-0 = sd0_clk sd0_cmd sd0_bus1 sd0_bus4 sd0_bus8 sd0_rclk;
bus-width = 8;
cap-mmc-highspeed;
+   mmc-hs200-1_8v;
+   mmc-hs400-1_8v;
 };
 
 mmc_2 {
-- 
1.9.1

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html