[RFC PATCH 12/16] pinctrl: exynos: Set pin function to EINT in irq_set_type of wake-up EINT

2012-09-28 Thread Tomasz Figa
Pins used as wake-up interrupts need to be configured as EINTs. This patch adds the required configuration code to exynos_wkup_irq_set_type, to set the pin as EINT when its interrupt trigger type is configured. Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl/pinctrl-exynos.c

[RFC PATCH 14/16] ARM: dts: exynos4210: Remove legacy gpio nodes

2012-09-28 Thread Tomasz Figa
This patch removes the legacy gpio nodes as the gpio driver is going to be replaced with the new pinctrl driver. Signed-off-by: Tomasz Figa t.f...@samsung.com --- arch/arm/boot/dts/exynos4210.dtsi | 229 -- 1 file changed, 229 deletions(-) diff --git a/arch

[RFC PATCH 15/16] ARM: dts: exynos4210: Add platform-specific descriptions for pin controllers

2012-09-28 Thread Tomasz Figa
The patch pinctrl: samsung: Parse pin banks from DT introduced platform-specific data parsing from DT. This patch adds all necessary nodes and properties to exynos4210 device tree sources. Signed-off-by: Tomasz Figa t.f...@samsung.com --- arch/arm/boot/dts/exynos4210-pinctrl-banks.dtsi | 459

[RFC PATCH 16/16] Documentation: Update samsung-pinctrl device tree bindings documentation

2012-09-28 Thread Tomasz Figa
Signed-off-by: Tomasz Figa t.f...@samsung.com --- .../bindings/pinctrl/samsung-pinctrl.txt | 212 ++--- 1 file changed, 187 insertions(+), 25 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt b/Documentation/devicetree/bindings

[PATCH v2 1/4] ARM: EXYNOS: pm_domain: Detect domain state on registration from DT

2012-10-02 Thread Tomasz Figa
Initial state of power domains might vary on different boards and with different bootloaders. This patch adds detection of initial state of power domains when being registered from DT. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com

[PATCH v2 2/4] ARM: EXYNOS: pm_domain: Fix power domain name initialization

2012-10-02 Thread Tomasz Figa
This patch adds initialization of name field in generic power domain struct. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- arch/arm/mach-exynos/pm_domains.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm

[PATCH v2 3/4] ARM: EXYNOS: pm_domain: Bind devices to power domains using DT

2012-10-02 Thread Tomasz Figa
after unbinding a driver from it. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- .../bindings/arm/exynos/power_domain.txt | 13 +++- arch/arm/mach-exynos/pm_domains.c | 82 ++ 2 files changed, 94

[PATCH v2 4/4] ARM: dts: exynos4: Set up power domains

2012-10-02 Thread Tomasz Figa
This patch adds device tree nodes for power domains of Exynos4 SoCs. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- arch/arm/boot/dts/exynos4.dtsi| 30 ++ arch/arm/boot/dts/exynos4210.dtsi | 5 + 2

[PATCH] input: touchscreen: mms114: Add device tree bindings

2012-10-02 Thread Tomasz Figa
This patch adds device tree bindings for mms114 touchscreen. Signed-off-by: Tomasz Figa t.f...@samsung.com --- .../bindings/input/touchscreen/mms114.txt | 34 ++ drivers/input/touchscreen/mms114.c | 52 +- 2 files changed, 84 insertions

Re: [PATCH 2/2] ARM: Exynos4: Register clocks via common clock framework

2012-10-03 Thread Tomasz Figa
, hsmmc), + GATECLK(exynos4-sdhci.2, hsmmc2, aclk_133, 0, + EXYNOS4_CLKGATE_IP_FSYS, 7, hsmmc), + GATECLK(exynos4-sdhci.3, hsmmc3, aclk_133, 0, + EXYNOS4_CLKGATE_IP_FSYS, 8, hsmmc), [snip] +}; Best regards, -- Tomasz Figa Samsung Poland RD Center

Re: [PATCH] input: keyboard: gpio-keys: Try to parse IRQ from device tree

2012-10-05 Thread Tomasz Figa
Hi Dmitry, On Thursday 04 of October 2012 23:23:15 Dmitry Torokhov wrote: Hi Tomasz, On Wed, Oct 03, 2012 at 01:20:00PM +0200, Tomasz Figa wrote: On modern platforms using device tree and non-legacy IRQ domains there is usually no way to perform direct translation between GPIO and IRQ

Re: [PATCH 2/2] ARM: Exynos4: Register clocks via common clock framework

2012-10-08 Thread Tomasz Figa
On Monday 08 of October 2012 12:04:18 Thomas Abraham wrote: Hi Tomasz, On 3 October 2012 19:40, Tomasz Figa t.f...@samsung.com wrote: Hi Chander, Thomas, I can see one more problem here. Based on the fact that sdhci-s3c driver receives only the endpoint gate clock (hsmmc

Re: [PATCH v2 2/5] clk: exynos4: register clocks using common clock framework

2012-10-08 Thread Tomasz Figa
, just like with div_fimc{0,1,2,3}? Best regards, -- Tomasz Figa Samsung Poland RD Center -- 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 00/16] pinctrl: samsung: Usability and extensibiltiy improvements

2012-10-08 Thread Tomasz Figa
they are handled (direct or multiplexed/chained). See particular patches for more detailed descriptions and the last patch for updated device tree bindings. Tomasz Figa (16): ARM: dts: exynos4210: Replace legacy GPIO bank nodes with pinctrl bank nodes pinctrl: exynos: Parse wakeup-eint

[PATCH 01/16] ARM: dts: exynos4210: Replace legacy GPIO bank nodes with pinctrl bank nodes

2012-10-08 Thread Tomasz Figa
Seuqential patches from this series introduce SoC-specific data parsing from device tree. This patch removes legacy GPIO bank nodes from exynos4210.dtsi and replaces them with nodes and properties required for these patches. Signed-off-by: Tomasz Figa t.f...@samsung.com --- arch/arm/boot/dts

[PATCH 02/16] pinctrl: exynos: Parse wakeup-eint parameters from DT

2012-10-08 Thread Tomasz Figa
This patch converts the pinctrl-exynos driver to parse wakeup interrupt count and register offsets from device tree. It reduces the amount of static platform-specific data and facilitates adding further SoC variants to pinctrl-samsung driver. Signed-off-by: Tomasz Figa t.f...@samsung.com

[PATCH 04/16] pinctrl: samsung: Parse pin banks from DT

2012-10-08 Thread Tomasz Figa
the static data structures and facilitate adding of further SoC variants to the pinctrl-samsung driver. Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl/pinctrl-exynos.c | 5 ++ drivers/pinctrl/pinctrl-samsung.c | 169 +- drivers/pinctrl/pinctrl

[PATCH 06/16] pinctrl: samsung: Parse bank-specific eint offset from DT

2012-10-08 Thread Tomasz Figa
the offsets from bank index. Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl/pinctrl-exynos.c | 5 ++--- drivers/pinctrl/pinctrl-samsung.c | 5 + drivers/pinctrl/pinctrl-samsung.h | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/pinctrl-exynos.c b

[PATCH 07/16] pinctrl: samsung: Hold OF node of pin bank in bank struct

2012-10-08 Thread Tomasz Figa
The node pointer will be used in extensions added by patches that will follow. Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl/pinctrl-samsung.c | 1 + drivers/pinctrl/pinctrl-samsung.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/drivers/pinctrl/pinctrl-samsung.c b

[PATCH 08/16] pinctrl: samsung: Hold pointer to driver data in bank struct

2012-10-08 Thread Tomasz Figa
The pointer will be used by further extensions added to the driver. Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl/pinctrl-samsung.c | 20 +++- drivers/pinctrl/pinctrl-samsung.h | 2 ++ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/drivers

[PATCH 03/16] pinctrl: samsung: Detect and handle unsupported configuration types

2012-10-08 Thread Tomasz Figa
This patch modifies the pinctrl-samsung driver to detect when width of a bit field is set to zero (which means that such configuraton type is not supported) and return an error instead of trying to modify an inexistent register. Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl

[PATCH 09/16] pinctrl: exynos: Use one IRQ domain per pin bank

2012-10-08 Thread Tomasz Figa
be now specified per banks. Example: device { /* ... */ interrupt-parent = gpa1; interrupts = 3 0; /* ... */ }; Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl/pinctrl-exynos.c | 117

[PATCH 10/16] pinctrl: samsung: Do not pass gpio_chip to pin_to_reg_bank

2012-10-08 Thread Tomasz Figa
The pointer to gpio_chip passed to pin_to_reg_bank utility function is used only to retrieve a pointer to samsung_pinctrl_drv_data structure. This patch modifies the function and its users to pass a pointer to samsung_pinctrl_drv_data directly. Signed-off-by: Tomasz Figa t.f...@samsung.com

[PATCH 11/16] pinctrl: samsung: Use one GPIO chip per pin bank

2012-10-08 Thread Tomasz Figa
: device { /* ... */ gpios = gpk0 4 0; /* ... */ }; Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl/pinctrl-samsung.c | 119 -- drivers/pinctrl/pinctrl-samsung.h | 12 ++-- 2 files

[PATCH 12/16] pinctrl: samsung: Use per-bank IRQ domain for wake-up interrupts

2012-10-08 Thread Tomasz Figa
of interrupts is not hardcoded in the driver anymore - bank and pin of each wake-up interrupt can be easily identified, to allow operations, such as setting the pin to EINT function, from irq_set_type() callback Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl/pinctrl

[PATCH 13/16] pinctrl: exynos: Set pin function to EINT in irq_set_type of wake-up EINT

2012-10-08 Thread Tomasz Figa
Pins used as wake-up interrupts need to be configured as EINTs. This patch adds the required configuration code to exynos_wkup_irq_set_type, to set the pin as EINT when its interrupt trigger type is configured. Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl/pinctrl-exynos.c

[PATCH 14/16] pinctrl: samsung: Parse offsets of particular registers from DT

2012-10-08 Thread Tomasz Figa
The order and availability of pin control registers vary with SoC. This patch modifies the driver to parse register offsets from device tree as a part of bank type definition. Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl/pinctrl-exynos.c | 12 ++--- drivers/pinctrl/pinctrl

[PATCH 15/16] pinctrl: samsung: Add GPIO to IRQ translation

2012-10-08 Thread Tomasz Figa
Some drivers require a way to translate GPIO pins to their IRQ numbers. This patch adds the .to_irq() gpiolib callback to pinctrl-samsung driver, which creates (if not present yet) and returns an IRQ mapping for given GPIO pin. Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl

[PATCH 16/16] Documentation: Update samsung-pinctrl device tree bindings documentation

2012-10-08 Thread Tomasz Figa
Signed-off-by: Tomasz Figa t.f...@samsung.com --- .../bindings/pinctrl/samsung-pinctrl.txt | 212 ++--- 1 file changed, 187 insertions(+), 25 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt b/Documentation/devicetree/bindings

[PATCH 0/4] ARM: EXYNOS: Kconfig cleanup

2012-10-08 Thread Tomasz Figa
detailed descriptions. Tomasz Figa (4): ARM: EXYNOS: Kconfig: Rename CPU_EXYNOS4210 to SOC_EXYNOS4210 ARM: EXYNOS: Kconfig: Sort out dependencies between options ARM: EXYNOS: Kconfig: Group EXYNOS{4212,4412} into EXYNOS4X12 ARM: EXYNOS: Kconfig: Remove dependencies on particular SoCs from DT

[PATCH 1/4] ARM: EXYNOS: Kconfig: Rename CPU_EXYNOS4210 to SOC_EXYNOS4210

2012-10-08 Thread Tomasz Figa
This patch renames CONFIG_CPU_EXYNOS4210 to CONFIG_SOC_EXYNOS4210 to match the convention used by rest of Exynos SoCs and correctly represent the reality (Exynos4210 is a SoC, not a CPU). Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com

[PATCH 2/4] ARM: EXYNOS: Kconfig: Sort out dependencies between options

2012-10-08 Thread Tomasz Figa
ARCH_EXYNOS{4,5} is only selected when there is a SOC_EXYNOS_{4,5}.* enabled, which requires it. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- arch/arm/mach-exynos/Kconfig | 15 ++- drivers/devfreq/Kconfig | 2 +- drivers/mmc

[PATCH 3/4] ARM: EXYNOS: Kconfig: Group EXYNOS{4212,4412} into EXYNOS4X12

2012-10-08 Thread Tomasz Figa
and also allows to simplify conditional compilation in several places. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- arch/arm/mach-exynos/Kconfig | 15 +-- arch/arm/mach-exynos/Makefile | 2 +- arch/arm/mach-exynos/common.h | 2

[PATCH 4/4] ARM: EXYNOS: Kconfig: Remove dependencies on particular SoCs from DT machines

2012-10-08 Thread Tomasz Figa
MACH_EXYNOS{4,5}_DT are used for whole SoC lines, so they should depend on ARCH_EXYNOS{4,5} rather than on particular SoCs. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- arch/arm/mach-exynos/Kconfig | 2 -- 1 file changed, 2 deletions

[PATCH] ARM: dts: exynos4: Enable serial controllers on Origen and SMDKV310

2012-10-08 Thread Tomasz Figa
This patch adds status override of serial nodes to enable used serial ports on Origen and SMDKV310 board. Signed-off-by: Tomasz Figa t.f...@samsung.com --- arch/arm/boot/dts/exynos4210-origen.dts | 16 arch/arm/boot/dts/exynos4210-smdkv310.dts | 16 2 files

Re: [PATCH] ARM: dts: exynos4: Enable serial controllers on Origen and SMDKV310

2012-10-08 Thread Tomasz Figa
Hi Kgene, On Monday 08 of October 2012 15:12:48 Tomasz Figa wrote: This patch adds status override of serial nodes to enable used serial ports on Origen and SMDKV310 board. Signed-off-by: Tomasz Figa t.f...@samsung.com --- arch/arm/boot/dts/exynos4210-origen.dts | 16

[PATCH] ARM: dts: exynos4210-trats: Split memory into 4 sections

2012-10-09 Thread Tomasz Figa
to fix the boot problem. Signed-off-by: Tomasz Figa t.f...@samsung.com --- arch/arm/boot/dts/exynos4210-trats.dts | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/exynos4210-trats.dts b/arch/arm/boot/dts/exynos4210-trats.dts index 73567b8..a21511c 100644

Re: [PATCH 01/16] ARM: dts: exynos4210: Replace legacy GPIO bank nodes with pinctrl bank nodes

2012-10-10 Thread Tomasz Figa
On Wednesday 10 of October 2012 09:26:51 Linus Walleij wrote: On Mon, Oct 8, 2012 at 10:39 AM, Tomasz Figa t.f...@samsung.com wrote: Seuqential patches from this series introduce SoC-specific data parsing from device tree. This patch removes legacy GPIO bank nodes from exynos4210.dtsi

Re: [PATCH 02/16] pinctrl: exynos: Parse wakeup-eint parameters from DT

2012-10-10 Thread Tomasz Figa
On Wednesday 10 of October 2012 09:18:51 Linus Walleij wrote: On Mon, Oct 8, 2012 at 10:39 AM, Tomasz Figa t.f...@samsung.com wrote: This patch converts the pinctrl-exynos driver to parse wakeup interrupt count and register offsets from device tree. It reduces the amount of static platform

Re: [PATCH 03/16] pinctrl: samsung: Detect and handle unsupported configuration types

2012-10-10 Thread Tomasz Figa
On Wednesday 10 of October 2012 09:37:42 Linus Walleij wrote: On Mon, Oct 8, 2012 at 10:39 AM, Tomasz Figa t.f...@samsung.com wrote: This patch modifies the pinctrl-samsung driver to detect when width of a bit field is set to zero (which means that such configuraton type

Re: [PATCH 04/16] pinctrl: samsung: Parse pin banks from DT

2012-10-10 Thread Tomasz Figa
On Wednesday 10 of October 2012 09:34:05 Linus Walleij wrote: On Mon, Oct 8, 2012 at 10:39 AM, Tomasz Figa t.f...@samsung.com wrote: Currently SoC-specific properties such as list of pin banks, register offsets and bitfield sizes are being taken from static data structures residing

Re: [PATCH 09/16] pinctrl: exynos: Use one IRQ domain per pin bank

2012-10-10 Thread Tomasz Figa
On Wednesday 10 of October 2012 09:40:16 Linus Walleij wrote: On Mon, Oct 8, 2012 at 10:39 AM, Tomasz Figa t.f...@samsung.com wrote: Instead of registering one IRQ domain for all pin banks of a pin controller, this patch implements registration of per-bank domains. At a cost of a little

Re: [PATCH 11/16] pinctrl: samsung: Use one GPIO chip per pin bank

2012-10-10 Thread Tomasz Figa
On Wednesday 10 of October 2012 09:43:25 Linus Walleij wrote: On Mon, Oct 8, 2012 at 10:39 AM, Tomasz Figa t.f...@samsung.com wrote: This patch modifies the pinctrl-samsung driver to register one GPIO chip per pin bank, instead of a single chip for all pin banks of the controller

Re: [PATCH 10/16] pinctrl: samsung: Do not pass gpio_chip to pin_to_reg_bank

2012-10-10 Thread Tomasz Figa
On Wednesday 10 of October 2012 09:42:10 Linus Walleij wrote: On Mon, Oct 8, 2012 at 10:39 AM, Tomasz Figa t.f...@samsung.com wrote: The pointer to gpio_chip passed to pin_to_reg_bank utility function is used only to retrieve a pointer to samsung_pinctrl_drv_data structure. This patch

Re: [PATCH 00/16] pinctrl: samsung: Usability and extensibiltiy improvements

2012-10-10 Thread Tomasz Figa
On Wednesday 10 of October 2012 09:46:28 Linus Walleij wrote: On Mon, Oct 8, 2012 at 10:39 AM, Tomasz Figa t.f...@samsung.com wrote: This patch series is a work on improving usability and extensibiltiy of the pinctrl-samsung driver. It consists of three main parts: - moving SoC-specific

Re: [PATCH 00/16] pinctrl: samsung: Usability and extensibiltiy improvements

2012-10-10 Thread Tomasz Figa
On Wednesday 10 of October 2012 09:46:28 Linus Walleij wrote: On Mon, Oct 8, 2012 at 10:39 AM, Tomasz Figa t.f...@samsung.com wrote: This patch series is a work on improving usability and extensibiltiy of the pinctrl-samsung driver. It consists of three main parts: - moving SoC-specific

Re: [PATCH 01/16] ARM: dts: exynos4210: Replace legacy GPIO bank nodes with pinctrl bank nodes

2012-10-10 Thread Tomasz Figa
Dnia środa, 10 października 2012 11:12:53 Tony Lindgren pisze: * Stephen Warren swar...@wwwdotorg.org [121010 09:36]: On 10/10/2012 01:26 AM, Linus Walleij wrote: On Mon, Oct 8, 2012 at 10:39 AM, Tomasz Figa t.f...@samsung.com wrote: Seuqential patches from this series introduce SoC

[PATCH v2 00/15] pinctrl: samsung: Usability and extensibiltiy improvements

2012-10-11 Thread Tomasz Figa
of configuration register offsets (thus limiting scope of the driver to Exynos SoCs; will be added in further patches) Tomasz Figa (15): pinctrl: samsung: Detect and handle unsupported configuration types pinctrl: samsung: Do not pass gpio_chip to pin_to_reg_bank pinctrl: samsung: Assing pin

[PATCH 01/15] pinctrl: samsung: Detect and handle unsupported configuration types

2012-10-11 Thread Tomasz Figa
This patch modifies the pinctrl-samsung driver to detect when width of a bit field is set to zero (which means that such configuraton type is not supported) and return an error instead of trying to modify an inexistent register. Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl

[PATCH 02/15] pinctrl: samsung: Do not pass gpio_chip to pin_to_reg_bank

2012-10-11 Thread Tomasz Figa
The pointer to gpio_chip passed to pin_to_reg_bank utility function is used only to retrieve a pointer to samsung_pinctrl_drv_data structure. This patch modifies the function and its users to pass a pointer to samsung_pinctrl_drv_data directly. Signed-off-by: Tomasz Figa t.f...@samsung.com

[PATCH 03/15] pinctrl: samsung: Assing pin numbers dynamically

2012-10-11 Thread Tomasz Figa
This patch modifies the pinctrl-samsung driver to assign numbers to pins dynamically instead of static enumerations. Thanks to this change the amount of code requried to support a SoC can be greatly reduced and the code made more readable. Signed-off-by: Tomasz Figa t.f...@samsung.com

[PATCH 05/15] pinctrl: samsung: Distinguish between pin group and bank nodes

2012-10-11 Thread Tomasz Figa
bank GPIO and interrupt specifiers. Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl/pinctrl-samsung.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-samsung.c b/drivers/pinctrl/pinctrl-samsung.c index f219bb6..94e1378 100644

[PATCH 07/15] pinctrl: samsung: Match pin banks with their device nodes

2012-10-11 Thread Tomasz Figa
This patch is a preparation for converting the pinctrl-samsung driver to one GPIO chip and IRQ domain per bank. It binds banks defined by internal driver data with bank nodes in device tree. Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl/pinctrl-samsung.c | 13

[PATCH 08/15] pinctrl: samsung: Hold pointer to driver data in bank struct

2012-10-11 Thread Tomasz Figa
This patch is a preparation for converting the pinctrl-samsung driver to one GPIO chip and IRQ domain per bank. It allows one having only a pointer to particular bank struct to access driver data struct. Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl/pinctrl-samsung.c | 18

[PATCH 09/15] pinctrl: samsung: Include bank-specific eint offset in bank struct

2012-10-11 Thread Tomasz Figa
from bank index. Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl/pinctrl-exynos.c | 55 +++ drivers/pinctrl/pinctrl-exynos.h | 3 ++- drivers/pinctrl/pinctrl-samsung.h | 1 + 3 files changed, 30 insertions(+), 29 deletions(-) diff --git

[PATCH 10/15] pinctrl: exynos: Use one IRQ domain per pin bank

2012-10-11 Thread Tomasz Figa
be now specified per banks. Example: device { /* ... */ interrupt-parent = gpa1; interrupts = 3 0; /* ... */ }; Signed-off-by: Tomasz Figa t.f...@samsung.com --- arch/arm/boot/dts/exynos4210.dtsi | 4 -- drivers

[PATCH 11/15] pinctrl: samsung: Use one GPIO chip per pin bank

2012-10-11 Thread Tomasz Figa
: device { /* ... */ gpios = gpk0 4 0; /* ... */ }; Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl/pinctrl-samsung.c | 117 -- drivers/pinctrl/pinctrl-samsung.h | 11 ++-- 2 files

[PATCH 12/15] pinctrl: samsung: Use per-bank IRQ domain for wake-up interrupts

2012-10-11 Thread Tomasz Figa
of interrupts is not hardcoded in the code anymore, but defined in SoC-specific structure - bank and pin of each wake-up interrupt can be easily identified, to allow operations, such as setting the pin to EINT function, from irq_set_type() callback Signed-off-by: Tomasz Figa t.f

[PATCH 13/15] pinctrl: exynos: Set pin function to EINT in irq_set_type of wake-up EINT

2012-10-11 Thread Tomasz Figa
Pins used as wake-up interrupts need to be configured as EINTs. This patch adds the required configuration code to exynos_wkup_irq_set_type, to set the pin as EINT when its interrupt trigger type is configured. Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl/pinctrl-exynos.c

[PATCH 14/15] pinctrl: samsung: Add GPIO to IRQ translation

2012-10-11 Thread Tomasz Figa
Some drivers require a way to translate GPIO pins to their IRQ numbers. This patch adds the .to_irq() gpiolib callback to pinctrl-samsung driver, which creates (if not present yet) and returns an IRQ mapping for given GPIO pin. Signed-off-by: Tomasz Figa t.f...@samsung.com --- drivers/pinctrl

[PATCH 15/15] Documentation: Update samsung-pinctrl device tree bindings documentation

2012-10-11 Thread Tomasz Figa
Signed-off-by: Tomasz Figa t.f...@samsung.com --- .../bindings/pinctrl/samsung-pinctrl.txt | 118 - 1 file changed, 93 insertions(+), 25 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt b/Documentation/devicetree/bindings

Re: [PATCH 5/6] ARM: EXYNOS: Add support for Exynos secure firmware

2012-10-11 Thread Tomasz Figa
Hi Olof, On Wednesday 10 of October 2012 09:00:27 Olof Johansson wrote: Hi, On Mon, Sep 24, 2012 at 04:28:32PM +0200, Tomasz Figa wrote: Some Exynos-based boards contain secure firmware and must use firmware operations to set up some hardware. This patch adds firmware operations

Re: [PATCH v2 0/6] ARM: EXYNOS: Add secure firmware support

2012-10-11 Thread Tomasz Figa
with other Samsung code. OK. Best regards, -- Tomasz Figa Samsung Poland RD Center -- 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] ARM: EXYNOS: exynos4-dt: Set .smp field of machine descriptor

2012-10-12 Thread Tomasz Figa
This patch adds missing initializer of .smp field of machine descriptor of Exynos 4 DT machine. Signed-off-by: Tomasz Figa t.f...@samsung.com --- arch/arm/mach-exynos/mach-exynos4-dt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-exynos/mach-exynos4-dt.c b/arch/arm/mach

Re: [PATCH V5 1/2] video: exynos_dp: Add device tree support to DP driver

2012-10-12 Thread Tomasz Figa
)) + dp_video_config-interlaced = 1; of_property_read_bool() could also be used here. Wouldn't it make the property mandatory? I would just use of_find_property here, instead of of_get_property. Best regards, Tomasz Figa -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH v1 1/6] dts: exynos: add device tree support for exynos5 hdmi

2012-10-12 Thread Tomasz Figa
? Best regards, Tomasz Figa -- 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 v1 2/6] dts: exynos: add device tree support for exynos5 mixer

2012-10-12 Thread Tomasz Figa
94 0; + version = 16.0.33.0; + vp-support = 0; +}; mixer@1445 Also, what is this version property? How is it used in the driver? Best regards, Tomasz Figa -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body

Re: [PATCH v1 6/6] arm: exynos: removing exynos-drm device registration from non-dt platforms

2012-10-12 Thread Tomasz Figa
list. In which patch is exynos drm registration being moved to exynos drm driver? Best regards, Tomasz Figa -- 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

Re: [PATCH V5 1/2] video: exynos_dp: Add device tree support to DP driver

2012-10-12 Thread Tomasz Figa
On Saturday 13 of October 2012 00:14:39 Sylwester Nawrocki wrote: On 10/12/2012 11:54 PM, Tomasz Figa wrote: + if (of_get_property(dp_node, interlaced, NULL)) + dp_video_config-interlaced = 1; of_property_read_bool() could also be used here. Wouldn't it make the property

Re: [PATCH 3/6] DRIVERS: ATA: SATA PHY utility framework

2012-10-12 Thread Tomasz Figa
) +{ + unsigned long flag; + struct sata_phy *x; Same here. Best regards, Tomasz Figa -- 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 6/6] ARM: EXYNOS5: SATA PHY controller driver

2012-10-12 Thread Tomasz Figa
of closing bracket. Best regards, Tomasz Figa -- 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 v1 1/6] dts: exynos: add device tree support for exynos5 hdmi

2012-10-13 Thread Tomasz Figa
On Saturday 13 of October 2012 08:15:46 Rahul Sharma wrote: Hi Tomasz, On Sat, Oct 13, 2012 at 3:34 AM, Tomasz Figa tomasz.f...@gmail.com wrote: Hi Rahul, On Friday 12 of October 2012 00:27:42 Rahul Sharma wrote: This patch adds support for device tree based discovery for exynos5

Re: [PATCH v1 6/6] arm: exynos: removing exynos-drm device registration from non-dt platforms

2012-10-13 Thread Tomasz Figa
On Saturday 13 of October 2012 08:19:30 Rahul Sharma wrote: Hi Tomasz, On Sat, Oct 13, 2012 at 3:42 AM, Tomasz Figa tomasz.f...@gmail.com wrote: Hi Rahul, On Friday 12 of October 2012 00:27:47 Rahul Sharma wrote: As exynos-drm is a software device, its registration is moved

Re: [PATCH v2 1/6] dts: exynos: add device tree support for exynos5 hdmi

2012-10-13 Thread Tomasz Figa
of the closing bracket looks incorrect. Rest of the patch looks fine. Best regards, Tomasz Figa -- 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 3/6] dts: exynos: add device tree support for exynos5 hdmiphy

2012-10-13 Thread Tomasz Figa
; + reg = 0x38; + }; + }; + Rest of the patch looks fine. Best regards, Tomasz Figa -- 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

Re: [PATCH v2 6/6] arm: exynos: removing exynos-drm device registration from non-dt platforms

2012-10-13 Thread Tomasz Figa
/mach-exynos/dev-drm.c Hmm, shouldn't this patch belong to the series adding registration in the driver? (http://comments.gmane.org/gmane.comp.video.dri.devel/75121) It doesn't look to be directly related to adding dt support for exynos5 hdmi. Best regards, Tomasz Figa -- To unsubscribe from

Re: [PATCH] ARM: EXYNOS: exynos4-dt: Set .smp field of machine descriptor

2012-10-21 Thread Tomasz Figa
On Friday 12 of October 2012 11:49:38 Tomasz Figa wrote: This patch adds missing initializer of .smp field of machine descriptor of Exynos 4 DT machine. Signed-off-by: Tomasz Figa t.f...@samsung.com --- arch/arm/mach-exynos/mach-exynos4-dt.c | 1 + 1 file changed, 1 insertion(+) diff

Re: [PATCH] ARM: dts: exynos4: Enable serial controllers on Origen and SMDKV310

2012-10-21 Thread Tomasz Figa
Hi Kgene, On Monday 15 of October 2012 23:23:22 Kukjin Kim wrote: Tomasz Figa wrote: Hi Kgene, On Monday 08 of October 2012 15:12:48 Tomasz Figa wrote: This patch adds status override of serial nodes to enable used serial ports on Origen and SMDKV310 board. Signed-off

Re: [PATCH] ARM: dts: exynos4: Enable serial controllers on Origen and SMDKV310

2012-10-23 Thread Tomasz Figa
On Tuesday 23 of October 2012 21:03:01 Kukjin Kim wrote: Tomasz Figa wrote: However I think this should be considered a fix, because without it serial console on Origen and SMDKV310 will be broken. Well, I couldn't find any broken due to miss this for v3.7. I think, there is no usage

Re: [PATCH v2] ARM: EXYNOS: Add support for secondary CPU bring-up on Exynos4412

2012-10-23 Thread Tomasz Figa
Hi Kgene, On Tuesday 23 of October 2012 20:57:33 Kukjin Kim wrote: Tomasz Figa wrote: Exynos4412 uses different information register for each core. This patch adjusts the bring-up code to take that into account. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin

Re: [PATCH 1/4] ARM: EXYNOS: Kconfig: Rename CPU_EXYNOS4210 to SOC_EXYNOS4210

2012-10-23 Thread Tomasz Figa
Hi Kgene, Thanks for your comments. On Tuesday 23 of October 2012 21:24:54 Kukjin Kim wrote: Tomasz Figa wrote: This patch renames CONFIG_CPU_EXYNOS4210 to CONFIG_SOC_EXYNOS4210 to match the convention used by rest of Exynos SoCs and correctly represent the reality (Exynos4210 is a SoC

Re: [PATCH 2/4] ARM: EXYNOS: Kconfig: Sort out dependencies between options

2012-10-23 Thread Tomasz Figa
On Tuesday 23 of October 2012 21:35:32 Kukjin Kim wrote: Tomasz Figa wrote: This patch modifies the dependencies between Exynos-related Kconfig options to represent the real dependencies between code units more closely. Originally it was possible to enable ARCH_EXYNOS{4,5} without any

Re: [PATCH 3/4] ARM: EXYNOS: Kconfig: Group EXYNOS{4212,4412} into EXYNOS4X12

2012-10-23 Thread Tomasz Figa
On Tuesday 23 of October 2012 21:42:04 Kukjin Kim wrote: Tomasz Figa wrote: This patch adds CONFIG_EXYNOS4X12, which is automatically selected whenever there is at least one SoC from Exynos4x12 line enabled. All the shared dependencies of EXYNOS{4212,4412} are moved to this new option

Re: [PATCH 4/4] ARM: EXYNOS: Kconfig: Remove dependencies on particular SoCs from DT machines

2012-10-23 Thread Tomasz Figa
On Tuesday 23 of October 2012 22:27:41 Kukjin Kim wrote: Tomasz Figa wrote: MACH_EXYNOS{4,5}_DT are used for whole SoC lines, so they should depend on ARCH_EXYNOS{4,5} rather than on particular SoCs. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park

[PATCH] ARM: dts: exynos4: Add support for Exynos4x12 SoCs

2012-10-24 Thread Tomasz Figa
This patch adds device tree sources for Exynos4x12 SoC series (currently Exynos4212 and Exynos4412) and enables mach-exynos4-dt to support these SoCs. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- arch/arm/boot/dts/exynos4212.dtsi

[PATCH 0/4] pinctrl: samsung: Add support for Exynos4x12 SoCs

2012-10-24 Thread Tomasz Figa
to pinctrl-samsung driver. Fourth patch adds device nodes for pin controllers available on Exynos4x12 SoCs to Exynos4x12 device tree sources. This series depends on: - [PATCH] ARM: dts: exynos4: Add support for Exynos4x12 SoCs Tomasz Figa (4): ARM: EXYNOS: Skip wakeup-int setup if pinctrl

[PATCH 1/4] ARM: EXYNOS: Skip wakeup-int setup if pinctrl driver is used on Exynos4x12

2012-10-24 Thread Tomasz Figa
This patch modifies the old wakeup interrupt initialization code to detect pinctrl driver by using for_each_matching_node instead of for_each_compatible_node and adds match table for both Exynos4210 and Exynos4x12. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park

[PATCH 2/4] gpio: samsung: Skip registration if pinctrl driver is present on Exynos4x12

2012-10-24 Thread Tomasz Figa
This patch modifies the Samsung GPIO driver to check for pinctrl driver presence earlier and use generic matching instead of a single compatible value. This allows us to fix warning about unrecognized SoC in case of Exynos4x12, which is not supported by this driver. Signed-off-by: Tomasz Figa

[PATCH 3/4] pinctrl: samsung: Add support for Exynos4x12

2012-10-24 Thread Tomasz Figa
This patch extends the driver with any necessary SoC-specific definitions to support Exynos4x12 SoCs. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- .../bindings/pinctrl/samsung-pinctrl.txt | 1 + drivers/pinctrl/pinctrl

[PATCH 4/4] ARM: dts: exynos4x12: Add nodes for pin controllers

2012-10-24 Thread Tomasz Figa
This patch adds nodes for pin controllers available on Exynos4x12 SoCs supported by pinctrl-samsung driver. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- arch/arm/boot/dts/exynos4x12-pinctrl.dtsi | 965

[PATCH v3 0/6] ARM: EXYNOS: Add secure firmware support

2012-10-25 Thread Tomasz Figa
/gmane.linux.kernel.samsung-soc/12583/focus=12820 ) - Changed return types of all operations to int - Defined all operations to return 0 on success, -ENOSYS when not implemented or appropriate error code on error Tomasz Figa (6): ARM: Add interface for registering and calling firmware-specific

[PATCH v3 2/6] ARM: EXYNOS: Add support for secure monitor calls

2012-10-25 Thread Tomasz Figa
Some boards use secure monitor calls to communicate with secure firmware. This patch adds exynos_smc function which uses smc assembly instruction to do secure monitor calls. Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Signed-off-by: Tomasz Figa t.f...@samsung.com --- arch/arm/mach

[PATCH v3 3/6] ARM: EXYNOS: Add IO mapping for non-secure SYSRAM.

2012-10-25 Thread Tomasz Figa
On TrustZone-enabled boards the non-secure SYSRAM is used for secondary CPU bring-up, so add a mapping for it. Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Signed-off-by: Tomasz Figa t.f...@samsung.com --- arch/arm/mach-exynos/common.c| 35

[PATCH v3 4/6] ARM: EXYNOS: Add support for Exynos secure firmware

2012-10-25 Thread Tomasz Figa
; reg = 0x0203F000 0x1000; }; /* ... */ }; Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Signed-off-by: Tomasz Figa t.f...@samsung.com --- .../devicetree/bindings/arm/samsung-boards.txt | 10 arch/arm/mach-exynos/Makefile

[PATCH v3 5/6] ARM: EXYNOS: Add support for secondary CPU bring-up on Exynos4412

2012-10-25 Thread Tomasz Figa
Exynos4412 uses different information register for each core. This patch adjusts the bring-up code to take that into account. Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Signed-off-by: Tomasz Figa t.f...@samsung.com --- arch/arm/mach-exynos/platsmp.c | 30

[PATCH v3 6/6] ARM: EXYNOS: Add secure firmware support to secondary CPU bring-up

2012-10-25 Thread Tomasz Figa
Boards using secure firmware must use different CPU boot registers and call secure firmware to boot the CPU. Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Signed-off-by: Tomasz Figa t.f...@samsung.com --- arch/arm/mach-exynos/platsmp.c | 7 +++ 1 file changed, 7 insertions(+) diff

Re: [PATCH] S3C24XX: add clockevent/clocksource support

2012-10-25 Thread Tomasz Figa
is more into Linux time keeping should comment on this. - Much of the code is duplicated from s5p-time, maybe s5p-time could be made a generic samsung-time instead? It could be also used for S3C64xx. CC'ing Heiko and Sylwester, as they might find this patch interesting. Best regards, Tomasz Figa

Re: [PATCH 1/7] ARM: EXYNOS: add support for EXYNOS5440 SoC

2012-10-26 Thread Tomasz Figa
= { .init = exynos4_timer_init, }; + +static void __init exynos5_timer_init(void) +{ + if (of_machine_is_compatible(samsung,exynos5440)) + arch_timer_of_register(); +} Also again this of_machine_is_compatible(). Best regards, Tomasz Figa -- To unsubscribe from

Re: [PATCH 0/4] DMA: PL330 fixes

2012-10-29 Thread Tomasz Figa
(-) For all four patches: Reviewed-by: Tomasz Figa t.f...@samsung.com Best regards, -- Tomasz Figa Samsung Poland RD Center SW Solution Development, Linux Platform -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org

Re: [PATCH 3/4] pinctrl: samsung: Add support for Exynos4x12

2012-10-29 Thread Tomasz Figa
Hi Linus, Kyungmin, On Monday 29 of October 2012 09:30:26 Kyungmin Park wrote: On 10/29/12, Linus Walleij linus.wall...@linaro.org wrote: On Wed, Oct 24, 2012 at 4:37 PM, Tomasz Figa t.f...@samsung.com wrote: This patch extends the driver with any necessary SoC-specific definitions

<    1   2   3   4   5   6   7   8   9   10   >