[PATCH 2/6] arm64: dts: exynos: Add USB Device dt node for Exynos5433

2015-04-02 Thread Chanwoo Choi
From: Jaewon Kim jaewon02@samsung.com This patch adds USB DRD(Dual Role Device) and PHY device tree node to use USB Device. Cc: Kukjin Kim kg...@kernel.org Signed-off-by: Jaewon Kim jaewon02@samsung.com Signed-off-by: Chanwoo Choi cw00.c...@samsung.com Acked-by: Inki Dae

Re: [PATCH 10/10] drm/exynos: atomic dpms support

2015-04-02 Thread Joonyoung Shim
Hi, On 03/31/2015 04:11 AM, Gustavo Padovan wrote: From: Gustavo Padovan gustavo.pado...@collabora.co.uk Run dpms operations through the atomic intefaces. This basically removes the .dpms() callback from econders and crtcs and use .disable() and .enable() to turn the crtc on and off.

[PATCH 1/2] ARM: EXYNOS: Get current parent clock for power domain on/off

2015-04-02 Thread Krzysztof Kozlowski
Using a fixed (by DTS) parent for clocks when turning on the power domain may introduce issues in other drivers. For example when such driver changes the parent during runtime and expects that he is the only place of such change. Do not rely entirely on DTS providing the fixed parent for such

[PATCH 2/2] ARM: dts: Use last parent for clocks during power domain on/off

2015-04-02 Thread Krzysztof Kozlowski
Replace fixed parent with last parent (obtained with clk_get_parent()) of clocks for devices in mfc and disp power domains. This should improve behavior if such clocks were reparented by the drivers and new parents are different than those specified in DTS. Signed-off-by: Krzysztof Kozlowski

[PATCH 5/6] arm64: dts: exynos: Add UART3 dt node for Exynos5433 SoC

2015-04-02 Thread Chanwoo Choi
From: Beomho Seo beomho@samsung.com This patch adds the UART3 devicetree node for Exynos5433 SoC. The UART3 device is included in AUD_DOMAIN. Cc: Kukjin Kim kg...@kernel.org Signed-off-by: Beomho Seo beomho@samsung.com Signed-off-by: Chanwoo Choi cw00.c...@samsung.com Acked-by: Inki Dae

[PATCH 0/6] arm64: dts: exynos: Add USB/PWM/UART3/reboot dt node for Exynos5433 SoC

2015-04-02 Thread Chanwoo Choi
This patch-set add the following devicetree to support USB/PWM/UART3/reboot. - USB 3.0 DRD (Dual Role Device) and host - PWM (Pulse Width Modulation) - UART3 - System reboot Depend on: This patch-set have the dependnecy on following patch[1] to support USB 3.0 Host and DRD (Dual Role Device) for

[PATCH 4/6] arm64: dts: exynos: Add PWM dt node and pinctrl for Exynos5433 SoC

2015-04-02 Thread Chanwoo Choi
From: Jaewon Kim jaewon02@samsung.com This patch adds PWM(Pulsle Width Modulation) device tree node to support for PWM Timer on Exynos5433 SoC. Cc: Kukjin Kim kg...@kernel.org Signed-off-by: Jaewon Kim jaewon02@samsung.com Signed-off-by: Chanwoo Choi cw00.c...@samsung.com Acked-by: Inki

[PATCH 6/6] arm64: dts: exynos: add reboot node for exynos5433

2015-04-02 Thread Chanwoo Choi
From: Joonyoung Shim jy0922.s...@samsung.com This patch adds the reboot node which uses the syscon-reboot driver. Cc: Kukjin Kim kg...@kernel.org Signed-off-by: Joonyoung Shim jy0922.s...@samsung.com Signed-off-by: Chanwoo Choi cw00.c...@samsung.co Acked-by: Inki Dae inki@samsung.com ---

[PATCH 1/6] arm64: dts: exynos: Add EHCI and OHCI dt node for Exynos5433

2015-04-02 Thread Chanwoo Choi
From: Jaewon Kim jaewon02@samsung.com This patch adds EHCI and OHCI device tree node to usb USB2.0 Host and HSCI(High Speed Inter-Chip) function. Cc: Kukjin Kim kg...@kernel.org Signed-off-by: Jaewon Kim jaewon02@samsung.com Signed-off-by: Chanwoo Choi cw00.c...@samsung.com Acked-by:

Re: [PATCH 09/10] drm/exynos: remove exported functions from exynos_drm_plane

2015-04-02 Thread Joonyoung Shim
Hi, On 03/28/2015 12:58 AM, Gustavo Padovan wrote: From: Gustavo Padovan gustavo.pado...@collabora.co.uk Now that no one is using the functions exported by exynos_drm_plane due to the atomic conversion we can make remove some of the them or make them static. Signed-off-by: Gustavo

[PATCH 3/6] arm64: dts: exynos: Add USB3.0 Host dt node for Exynos5433

2015-04-02 Thread Chanwoo Choi
From: Jaewon Kim jaewon02@samsung.com This patch adds PHY and USB3.0 Host device tree node using DWC3 chip and set USB3.0 Host related clock parent for Exynos5433. Cc: Kukjin Kim kg...@kernel.org Signed-off-by: Jaewon Kim jaewon02@samsung.com Signed-off-by: Chanwoo Choi

[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

Re: [PATCH] rtc: rtc-s3c: Fix failed first read of RTC time

2015-04-02 Thread Chanwoo Choi
On 04/02/2015 08:00 PM, Krzysztof Kozlowski wrote: Initialize the device time (if it is wrong) before registering RTC device to fix following error message during rtc-s3c probe: [2.215414] rtc (null): read_time: fail to read [2.216322] s3c-rtc 1007.rtc: rtc core: registered s3c

[PATCH v2 6/6] clk: samsung: exynos5433: Add CLK_SET_RATE_PARENT to support DVFS for big.LITTLE core

2015-04-02 Thread Chanwoo Choi
This patch adds CLK_SET_RATE_PARENT flag to support DVFS of Cortex-{A53|A57} core (big.LITTLE core) because 'sclk_{apollo|atlas}' leaf clock is used to change the CPU frequency of Cortex-{A53|A57} core in arm_big_little.c driver. - 'apollo' word means the LITTLE core (Cortex-A53 core) in

Re: [PATCH v7 1/9] arm64: dts: exynos: Add dts files for 64-bit Exynos5433 SoC

2015-04-02 Thread Chanwoo Choi
On 04/03/2015 02:35 AM, Mark Rutland wrote: On Tue, Mar 31, 2015 at 12:56:38AM +0100, Chanwoo Choi wrote: Hi Mark, On 03/31/2015 01:09 AM, Mark Rutland wrote: Hi, On Wed, Mar 18, 2015 at 12:17:28AM +, Chanwoo Choi wrote: This patch adds new Exynos5433 dtsi to support 64-bit Exynos5433

[PATCH v2 2/6] clk: samsung: exynos5433: Fix wrong offset of PCLK_MSCL_SECURE_SMMU_JPEG

2015-04-02 Thread Chanwoo Choi
From: Jonghwa Lee jonghwa3@samsung.com This patch fixes the wrong offoset of PCLK_MSCL_SECURE_SMMU_JPEG in CMU_MSCL domain. Cc: Sylwester Nawrocki s.nawro...@samsung.com Cc: Tomasz Figa tomasz.f...@gmail.com Signed-off-by: Jonghwa Lee jonghwa3@samsung.com Signed-off-by: Chanwoo Choi

[PATCH v2 3/6] clk: samsung: exynos5433: Fix CLK_PCLK_MONOTONIC_CNT's register correctly

2015-04-02 Thread Chanwoo Choi
From: Jonghwa Lee jonghwa3@samsung.com CLK_PCLK_MONOTONIC_CNT's register is now assigned with wrong one. Its correct register is ENABLE_PCLK_MIF_SECURE_MONOTONIC_CNT. Signed-off-by: Jonghwa Lee jonghwa3@samsung.com Signed-off-by: Chanwoo Choi cw00.c...@samsung.com ---

[PATCH v2 4/6] clk: samsung: exynos5433: Fix wrong parent clock of sclk_apollo clock

2015-04-02 Thread Chanwoo Choi
This patch fixes the wrong parent clock of sclk_apollo clock from 'div_apollo_pll' to 'div_apollo2'. Cc: Sylwester Nawrocki s.nawro...@samsung.com Cc: Tomasz Figa tomasz.f...@gmail.com Signed-off-by: Chanwoo Choi cw00.c...@samsung.com --- drivers/clk/samsung/clk-exynos5433.c | 2 +- 1 file

[PATCH v2 5/6] clk: samsung: exynos5433: Fix wrong PMS value of exynos5433_pll_rates

2015-04-02 Thread Chanwoo Choi
This patch fixes the wrong PMS value of exynos5433_pll_rates table for {ATLAS|APOLLO|MEM0|MEM1|BUS|MFC|MPHY|G3D|DISP|ISP|_PLL. - before : rate=72000 (mdiv=360, pdiv=6, sdiv=1) - after : rate=7 (mdiv=175, pdiv=3, sdiv=1) Cc: Sylwester Nawrocki s.nawro...@samsung.com Cc: Tomasz Figa

[PATCH v2 1/6] clk: samsung: Use CONFIG_ARCH_EXYNOS instead of CONFIG_ARCH_EXYNOS5433

2015-04-02 Thread Chanwoo Choi
This patch removes the CONFIG_ARCH_EXYNOS5433 and then use only the CONFIG_ARCH_EXYNOS for ARM-64bit Exynos5433 SoC. Cc: Sylwester Nawrocki s.nawro...@samsung.com Cc: Tomasz Figa tomasz.f...@gmail.com Cc: Arnd Bergmann a...@arndb.de Signed-off-by: Chanwoo Choi cw00.c...@samsung.com ---

[PATCH v2 0/6] clk: samsung: Fix bug of Exynos5433 clocks

2015-04-02 Thread Chanwoo Choi
This patchset remove the CONFIG_ARCH_EXYNOS5433 insteadf use the CONFIG_ARCH_EXYNOS because Arnd Bergmann gave me a comment[1] that don't add specific CONFIG_ARCH_EXYNOS5433 for ARM-64bit SoC. And this patchset fix following bugs: - Fix wrong offset of PCLK_MSCL_SECURE_SMMU_JPEG in CMU_MSCL. -

Re: [PATCH] rtc: rtc-s3c: Remove one superfluous rtc_valid_tm() check

2015-04-02 Thread Chanwoo Choi
On 04/02/2015 11:31 PM, Krzysztof Kozlowski wrote: The s3c_rtc_gettime() returns already result of rtc_valid_tm() on obtained time so get rid of another call to rtc_valid_tm(). Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- drivers/rtc/rtc-s3c.c | 4 +--- 1 file changed, 1

Re: [RFC PATCH v3 2/2] clk: exynos5420: Make sure MDMA0 clock is enabled during suspend

2015-04-02 Thread Abhilash Kesavan
Hi, On Thu, Apr 2, 2015 at 4:01 AM, Javier Martinez Canillas javier.marti...@collabora.co.uk wrote: Hello Sylwester, On 04/01/2015 07:31 PM, Sylwester Nawrocki wrote: On 01/04/15 13:44, Javier Martinez Canillas wrote: On 04/01/2015 01:03 PM, Sylwester Nawrocki wrote: It's not clear what

Re: [PATCH 2/2] ARM: dts: Use last parent for clocks during power domain on/off

2015-04-02 Thread Javier Martinez Canillas
Hello Krzysztof, On 04/02/2015 10:06 AM, Krzysztof Kozlowski wrote: Replace fixed parent with last parent (obtained with clk_get_parent()) of clocks for devices in mfc and disp power domains. This should improve behavior if such clocks were reparented by the drivers and new parents are

Re: [PATCH 1/2] ARM: EXYNOS: Get current parent clock for power domain on/off

2015-04-02 Thread Javier Martinez Canillas
Hello Krzysztof, On 04/02/2015 10:06 AM, Krzysztof Kozlowski wrote: Using a fixed (by DTS) parent for clocks when turning on the power domain may introduce issues in other drivers. For example when such driver changes the parent during runtime and expects that he is the only place of such

[PATCH 2/2] ARM: dts: Enable S3C RTC on Trats2, Odroid-U3 and Arndale Octa

2015-04-02 Thread Krzysztof Kozlowski
Extend the S3C RTC node with rtc_src clock so it could be operational. The rtc_src clock is provided by MAX77686 (Trats2 and Odroid-U3) or S2MPS11 (Arndale Octa). Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- Patch depends on new file dt-bindings/clock/samsung,s2mps11.h from:

[PATCH 1/2] ARM: dts: Use define for s3c-rtc clock id

2015-04-02 Thread Krzysztof Kozlowski
Use a define instead of raw number as a ID for rtc_src clock. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- Patch depends on new file dt-bindings/clock/samsung,s2mps11.h from: 1. ARM: dts: Add bindings for 32kHz clocks from s2mps11

[PATCH] rtc: rtc-s3c: Fix failed first read of RTC time

2015-04-02 Thread Krzysztof Kozlowski
Initialize the device time (if it is wrong) before registering RTC device to fix following error message during rtc-s3c probe: [2.215414] rtc (null): read_time: fail to read [2.216322] s3c-rtc 1007.rtc: rtc core: registered s3c as rtc1 Signed-off-by: Krzysztof Kozlowski

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

Re: [PATCH 2/2] ARM: dts: Enable S3C RTC on Trats2, Odroid-U3 and Arndale Octa

2015-04-02 Thread Javier Martinez Canillas
Hello Krzysztof, On 04/02/2015 01:03 PM, Krzysztof Kozlowski wrote: Extend the S3C RTC node with rtc_src clock so it could be operational. The rtc_src clock is provided by MAX77686 (Trats2 and Odroid-U3) or S2MPS11 (Arndale Octa). Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com

Re: [PATCH] ARM: dts: Use define for s3c-rtc clock id

2015-04-02 Thread Krzysztof Kozlowski
2015-03-31 8:55 GMT+02:00 Kukjin Kim kg...@kernel.org: Javier Martinez Canillas wrote: On Tue, Mar 31, 2015 at 6:05 AM, Chanwoo Choi cw00.c...@samsung.com wrote: Hi, On 03/31/2015 12:21 AM, Krzysztof Kozlowski wrote: Use a define instead of raw number as a ID for rtc_src clock.

Re: [PATCH 1/2] ARM: EXYNOS: Get current parent clock for power domain on/off

2015-04-02 Thread Krzysztof Kozlowski
2015-04-02 14:29 GMT+02:00 Javier Martinez Canillas javier.marti...@collabora.co.uk: Hello Krzysztof, On 04/02/2015 10:06 AM, Krzysztof Kozlowski wrote: Using a fixed (by DTS) parent for clocks when turning on the power domain may introduce issues in other drivers. For example when such

Re: [PATCH 1/2] ARM: dts: Use define for s3c-rtc clock id

2015-04-02 Thread Javier Martinez Canillas
Hello Krzysztof, On 04/02/2015 01:03 PM, Krzysztof Kozlowski wrote: Use a define instead of raw number as a ID for rtc_src clock. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Reviewed-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Best regards, Javier -- To

Re: [PATCH 10/10] drm/exynos: atomic dpms support

2015-04-02 Thread Gustavo Padovan
Hi Joonyoung, 2015-04-02 Joonyoung Shim jy0922.s...@samsung.com: Hi, On 03/31/2015 04:11 AM, Gustavo Padovan wrote: From: Gustavo Padovan gustavo.pado...@collabora.co.uk Run dpms operations through the atomic intefaces. This basically removes the .dpms() callback from econders and

[PATCH -v2 09/10] drm/exynos: remove exported functions from exynos_drm_plane

2015-04-02 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk Now that no one is using the functions exported by exynos_drm_plane due to the atomic conversion we can make remove some of the them or make them static. v2: remove unused exynos_drm_crtc Signed-off-by: Gustavo Padovan

[PATCH -v2 08/10] drm/exynos: atomic phase 3: convert page flips

2015-04-02 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk PageFlips now use the atomic helper to work through the atomic modesetting API. Async page flips are not supported yet. Signed-off-by: Gustavo Padovan gustavo.pado...@collabora.co.uk --- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 63

[PATCH -v2 05/10] drm/exynos: atomic phase 2: keep track of framebuffer pointer

2015-04-02 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk Use drm_atomic_set_fb_for_plane() in the legacy page_flip path to keep track of the framebuffer pointer and reference. Signed-off-by: Gustavo Padovan gustavo.pado...@collabora.co.uk --- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 3 +++ 1

[PATCH -v2 03/10] drm/exynos: atomic phase 1: add .mode_set_nofb() callback

2015-04-02 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk The new atomic infrastructure needs the .mode_set_nofb() callback to update CRTC timings before setting any plane. Signed-off-by: Gustavo Padovan gustavo.pado...@collabora.co.uk --- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 60

[PATCH -v2 01/10] drm/exynos: atomic phase 1: use drm_plane_helper_update()

2015-04-02 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk Rip out the check from exynos_update_plane() and create exynos_check_plane() for the check phase enabling use to use the atomic helpers to call our check and update phases when updating planes. Update all users of exynos_update_plane()

[PATCH -v2 06/10] drm/exynos: atomic phase 3: atomic updates of planes

2015-04-02 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk Now that phase 1 and 2 are complete we can switch the update/disable_plane callbacks to their atomic version. Signed-off-by: Gustavo Padovan gustavo.pado...@collabora.co.uk --- drivers/gpu/drm/exynos/exynos_drm_fb.c| 3 +++

[PATCH -v2 07/10] drm/exynos: atomic phase 3: use atomic .set_config helper

2015-04-02 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk Now that phase 1 and 2 are complete switch .set_config helper to use the atomic one. Signed-off-by: Gustavo Padovan gustavo.pado...@collabora.co.uk --- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH -v2 04/10] drm/exynos: atomic phase 2: wire up state reset(), duplicate() and destroy()

2015-04-02 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk Set CRTC, planes and connectors to use the default implementations from the atomic helper library. The helpers will work to keep track of state for each DRM object. Signed-off-by: Gustavo Padovan gustavo.pado...@collabora.co.uk ---

[PATCH -v2 02/10] drm/exynos: atomic phase 1: use drm_plane_helper_disable()

2015-04-02 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk The atomic helper to disable planes also uses the optional .atomic_disable() helper. The unique operation it does is calling .win_disable() exynos_drm_fb_get_buf_cnt() needs a fb check too to avoid a null pointer. Signed-off-by: Gustavo

[PATCH -v2 00/10] drm/exynos: Add atomic modesetting support

2015-04-02 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk Hi, Here goes the full support for atomic modesetting on exynos. I've split the patches in the various phases of atomic support. These patches sits on top of the clean up patches I've sent yesterday to this mailing list[1]. v2: fixes

[PATCH] rtc: rtc-s3c: Remove one superfluous rtc_valid_tm() check

2015-04-02 Thread Krzysztof Kozlowski
The s3c_rtc_gettime() returns already result of rtc_valid_tm() on obtained time so get rid of another call to rtc_valid_tm(). Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- drivers/rtc/rtc-s3c.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH 1/2] mfd: sec: Fix RTC alarm interrupt number on S2MPS11

2015-04-02 Thread Krzysztof Kozlowski
The RTC on S2MPS11 is the same as S2MPS14. However interrupt numbers of RTC alarms 0 and 1 were inversed between these two devices. So when rtc-s5m driver requested S2MPS14_IRQ_RTCA0 interrupt, it matched to S2MPS11_IRQ_RTCA1, not RTCA0. Fix this by using consistent RTC alarm interrupt numbers

[PATCH 0/2] Arndale Octa: Fix S2MPS11 RTC alarm IRQ

2015-04-02 Thread Krzysztof Kozlowski
Hi, After long struggle this finally fixes the S2MPS11 RTC alarm IRQ on Arndale Octa board. It can easily be tested with: rtcwake -d rtc0 -m on -s 5 -v The patches are independent. Best regards, Krzysztof Krzysztof Kozlowski (2): mfd: sec: Fix RTC alarm interrupt number on S2MPS11 ARM:

[PATCH 2/2] ARM: dts: Fix pinctrl settings for S2MPS11 RTC alarm IRQ on Arndale Octa

2015-04-02 Thread Krzysztof Kozlowski
On Arndale Octa the S2MPS11 RTC alarm interrupt was not handled at all because of wrong configuration of interrupt and gpx3-2. 1. Interrupt is signaled by falling edge. 2. This GPIO line is hard-wired on the board to PVDD_APIO_1V8 through a resistor so pull-up/down must be disabled.

Re: [PATCH v7 1/9] arm64: dts: exynos: Add dts files for 64-bit Exynos5433 SoC

2015-04-02 Thread Mark Rutland
On Tue, Mar 31, 2015 at 12:56:38AM +0100, Chanwoo Choi wrote: Hi Mark, On 03/31/2015 01:09 AM, Mark Rutland wrote: Hi, On Wed, Mar 18, 2015 at 12:17:28AM +, Chanwoo Choi wrote: This patch adds new Exynos5433 dtsi to support 64-bit Exynos5433 SoC based on Octal core CPUs (quad