Re: [PATCH 1/1] pinctrl: bcm281xx: Staticize bcm281xx_pinctrl_probe

2014-06-23 Thread Sherman Yin
Hi Sachin, Looks good, thanks. How did you come across the need for this change? Regards, Sherman On 14-06-23 04:38 AM, Sachin Kamat wrote: bcm281xx_pinctrl_probe is local to this file. Make it static. Signed-off-by: Sachin Kamat --- drivers/pinctrl/pinctrl-bcm281xx.c |2 +- 1 file

Re: [PATCH 1/1] pinctrl: bcm281xx: Staticize bcm281xx_pinctrl_probe

2014-06-23 Thread Sherman Yin
Hi Sachin, Looks good, thanks. How did you come across the need for this change? Regards, Sherman On 14-06-23 04:38 AM, Sachin Kamat wrote: bcm281xx_pinctrl_probe is local to this file. Make it static. Signed-off-by: Sachin Kamat sachin.ka...@samsung.com ---

[PATCH v3 3/3] pinctrl: fix typo in bindings documentation

2014-04-02 Thread Sherman Yin
Fixed the missing comma in DT node example. Signed-off-by: Sherman Yin --- .../bindings/pinctrl/brcm,bcm11351-pinctrl.txt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/brcm,bcm11351-pinctrl.txt b/Documentation/devicetree

[PATCH v3 2/3] Update bcm_defconfig with new pinctrl CONFIG

2014-04-02 Thread Sherman Yin
To be consistent with other Broadcom drivers, the Broadcom Capri pinctrl driver and its related CONFIG option are renamed to bcm281xx. This commit updates the defconfig that enables the pinctrl driver. Signed-off-by: Sherman Yin Reviewed-by: Matt Porter Acked-by: Linus Walleij --- arch/arm

[PATCH v3 0/3] pinctrl: Rename Broadcom Capri pinctrl driver

2014-04-02 Thread Sherman Yin
gs/arm/bcm/bcm11351.txt This driver supports pinctrl on BCM11130, BCM11140, BCM11351, BCM28145 and BCM28155 SoCs. Signed-off-by: Sherman Yin Reviewed-by: Matt Porter Acked-by: Linus Walleij --- v3: removed the device tree/compatible string portion of changes which were already accepted i

[PATCH v3 0/3] pinctrl: Rename Broadcom Capri pinctrl driver

2014-04-02 Thread Sherman Yin
/bcm11351.txt This driver supports pinctrl on BCM11130, BCM11140, BCM11351, BCM28145 and BCM28155 SoCs. Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Matt Porter mpor...@linaro.org Acked-by: Linus Walleij linus.wall...@linaro.org --- v3: removed the device tree/compatible string portion

[PATCH v3 3/3] pinctrl: fix typo in bindings documentation

2014-04-02 Thread Sherman Yin
Fixed the missing comma in DT node example. Signed-off-by: Sherman Yin s...@broadcom.com --- .../bindings/pinctrl/brcm,bcm11351-pinctrl.txt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/brcm,bcm11351-pinctrl.txt b

[PATCH v3 2/3] Update bcm_defconfig with new pinctrl CONFIG

2014-04-02 Thread Sherman Yin
To be consistent with other Broadcom drivers, the Broadcom Capri pinctrl driver and its related CONFIG option are renamed to bcm281xx. This commit updates the defconfig that enables the pinctrl driver. Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Matt Porter mpor...@linaro.org Acked

Re: [PATCH] pinctrl: capri: Make capri_pinctrl_probe static

2014-02-04 Thread Sherman Yin
On 14-02-04 12:49 AM, Axel Lin wrote: Signed-off-by: Axel Lin --- drivers/pinctrl/pinctrl-capri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-capri.c b/drivers/pinctrl/pinctrl-capri.c index 4669c53..b4aa8e3 100644 ---

Re: [PATCH] pinctrl: capri: Make capri_pinctrl_probe static

2014-02-04 Thread Sherman Yin
On 14-02-04 12:49 AM, Axel Lin wrote: Signed-off-by: Axel Lin axel@ingics.com --- drivers/pinctrl/pinctrl-capri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-capri.c b/drivers/pinctrl/pinctrl-capri.c index 4669c53..b4aa8e3 100644 ---

[PATCH v2 0/4] pinctrl: Rename Broadcom Capri pinctrl driver

2014-01-23 Thread Sherman Yin
gs/arm/bcm/bcm11351.txt This driver supports pinctrl on BCM11130, BCM11140, BCM11351, BCM28145 and BCM28155 SoCs. Signed-off-by: Sherman Yin Reviewed-by: Matt Porter Acked-by: Linus Walleij --- v2: split single patch into 4 patches Sherman Yin (4): pinctrl: Rename Broadcom Capri pinctrl binding

[PATCH v2 3/4] Update bcm_defconfig with new pinctrl CONFIG

2014-01-23 Thread Sherman Yin
To be consistent with other Broadcom drivers, the Broadcom Capri pinctrl driver and its related CONFIG option are renamed to bcm281xx. This commit updates the defconfig that enables the pinctrl driver. Signed-off-by: Sherman Yin Reviewed-by: Matt Porter Acked-by: Linus Walleij --- arch/arm

[PATCH v2 4/4] Update dtsi with new pinctrl compatible string

2014-01-23 Thread Sherman Yin
This commit updates bcm11351.dtsi with the new compatible string for the same driver. Signed-off-by: Sherman Yin Reviewed-by: Matt Porter Acked-by: Linus Walleij --- arch/arm/boot/dts/bcm11351.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts

[PATCH v2 1/4] pinctrl: Rename Broadcom Capri pinctrl binding

2014-01-23 Thread Sherman Yin
The compatible string of the Broadcom Capri pinctrl driver is renamed to "brcm,bcm11351-pinctrl" to match the machine binding here: Documentation/devicetree/bindings/arm/bcm/bcm11351.txt Signed-off-by: Sherman Yin Reviewed-by: Matt Porter Acked-by: Linus Walleij --- ...capri-p

[PATCH v2 1/4] pinctrl: Rename Broadcom Capri pinctrl binding

2014-01-23 Thread Sherman Yin
The compatible string of the Broadcom Capri pinctrl driver is renamed to brcm,bcm11351-pinctrl to match the machine binding here: Documentation/devicetree/bindings/arm/bcm/bcm11351.txt Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Matt Porter mpor...@linaro.org Acked-by: Linus Walleij

[PATCH v2 4/4] Update dtsi with new pinctrl compatible string

2014-01-23 Thread Sherman Yin
This commit updates bcm11351.dtsi with the new compatible string for the same driver. Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Matt Porter mpor...@linaro.org Acked-by: Linus Walleij linus.wall...@linaro.org --- arch/arm/boot/dts/bcm11351.dtsi |2 +- 1 file changed, 1

[PATCH v2 3/4] Update bcm_defconfig with new pinctrl CONFIG

2014-01-23 Thread Sherman Yin
To be consistent with other Broadcom drivers, the Broadcom Capri pinctrl driver and its related CONFIG option are renamed to bcm281xx. This commit updates the defconfig that enables the pinctrl driver. Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Matt Porter mpor...@linaro.org Acked

[PATCH v2 0/4] pinctrl: Rename Broadcom Capri pinctrl driver

2014-01-23 Thread Sherman Yin
/bcm11351.txt This driver supports pinctrl on BCM11130, BCM11140, BCM11351, BCM28145 and BCM28155 SoCs. Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Matt Porter mpor...@linaro.org Acked-by: Linus Walleij linus.wall...@linaro.org --- v2: split single patch into 4 patches Sherman Yin (4

Re: [PATCH v4 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2014-01-20 Thread Sherman Yin
On 14-01-20 12:16 AM, Linus Walleij wrote: On Sat, Jan 18, 2014 at 3:56 AM, Matt Porter wrote: I wonder if Linus would accept a rename at this point (too late for 3.14 presumably, but for 3.15) of s/capri/bcm281xx throughout, bcm11351 for the compatible string, as we have for the machine

Re: [PATCH v4 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2014-01-20 Thread Sherman Yin
On 14-01-20 12:16 AM, Linus Walleij wrote: On Sat, Jan 18, 2014 at 3:56 AM, Matt Porter mpor...@linaro.org wrote: I wonder if Linus would accept a rename at this point (too late for 3.14 presumably, but for 3.15) of s/capri/bcm281xx throughout, bcm11351 for the compatible string, as we have

Re: [PATCH v4 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2014-01-17 Thread Sherman Yin
On 14-01-16 05:19 AM, Linus Walleij wrote: On Sat, Dec 21, 2013 at 3:13 AM, Sherman Yin wrote: '> Adds pinctrl driver for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin Reviewed-by: Christian Daudt Reviewed-by: Matt Porter --- v4: - PINCTRL selected in Kconfig, PINCTRL_CA

Re: [PATCH] pinctrl: capri: add dependency on OF

2014-01-17 Thread Sherman Yin
On 14-01-16 02:45 PM, Linus Walleij wrote: As this driver is using pinconf_generic_dt_node_to_map_pin() it needs to depend on OF so as not to cause build problems on archs that do not support OF. Cc: Sherman Yin Signed-off-by: Linus Walleij --- drivers/pinctrl/Kconfig | 1 + 1 file changed

Re: [PATCH] pinctrl: capri: add dependency on OF

2014-01-17 Thread Sherman Yin
On 14-01-16 02:45 PM, Linus Walleij wrote: As this driver is using pinconf_generic_dt_node_to_map_pin() it needs to depend on OF so as not to cause build problems on archs that do not support OF. Cc: Sherman Yin s...@broadcom.com Signed-off-by: Linus Walleij linus.wall...@linaro.org

Re: [PATCH v4 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2014-01-17 Thread Sherman Yin
On 14-01-16 05:19 AM, Linus Walleij wrote: On Sat, Dec 21, 2013 at 3:13 AM, Sherman Yin s...@broadcom.com wrote: ' Adds pinctrl driver for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Christian Daudt b...@fixthebug.org Reviewed-by: Matt Porter

Re: [PATCH v4 2/4] pinctrl: Add pinctrl binding for Broadcom Capri SoCs

2014-01-14 Thread Sherman Yin
On 14-01-14 02:16 AM, Linus Walleij wrote: On Tue, Jan 7, 2014 at 9:45 PM, Sherman Yin wrote: On 14-01-07 09:15 AM, Linus Walleij wrote: Is that what you wanted to see in pinctrl-bindings.txt, or is there something else you want to see added to that txt file? I didn't want to add

Re: [PATCH v4 2/4] pinctrl: Add pinctrl binding for Broadcom Capri SoCs

2014-01-14 Thread Sherman Yin
On 14-01-14 02:16 AM, Linus Walleij wrote: On Tue, Jan 7, 2014 at 9:45 PM, Sherman Yin s...@broadcom.com wrote: On 14-01-07 09:15 AM, Linus Walleij wrote: Is that what you wanted to see in pinctrl-bindings.txt, or is there something else you want to see added to that txt file? I didn't want

Re: [PATCH v4 2/4] pinctrl: Add pinctrl binding for Broadcom Capri SoCs

2014-01-07 Thread Sherman Yin
On 14-01-07 09:15 AM, Linus Walleij wrote: On Sat, Dec 21, 2013 at 3:13 AM, Sherman Yin wrote: +Optional Properties (for standard pins): + +- function:String. Specifies the pin mux selection. Values + must be one of: "alt1", &qu

Re: [PATCH v4 2/4] pinctrl: Add pinctrl binding for Broadcom Capri SoCs

2014-01-07 Thread Sherman Yin
On 14-01-07 09:15 AM, Linus Walleij wrote: On Sat, Dec 21, 2013 at 3:13 AM, Sherman Yin s...@broadcom.com wrote: +Optional Properties (for standard pins): + +- function:String. Specifies the pin mux selection. Values + must be one of: alt1, alt2

Re: [PATCH v3 5/6] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-12-20 Thread Sherman Yin
On 13-12-18 03:56 PM, Sherman Yin wrote: On 13-12-12 12:54 PM, Linus Walleij wrote: +/* + * Write to the register using the value and mask if current value is different + */ +static void capri_reg_write(struct pinctrl_dev *pctldev, + void __iomem *reg

[PATCH v4 2/4] pinctrl: Add pinctrl binding for Broadcom Capri SoCs

2013-12-20 Thread Sherman Yin
Adds pinctrl driver devicetree binding for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin Reviewed-by: Christian Daudt Reviewed-by: Matt Porter --- v4: Changed valid values for "bias-pull-up" property for I2C pins. Expanded pin configuration node example. v3: Use g

Re: [PATCH v3 3/6] pinctrl: Make PINCTRL selectable by defconfig/menuconfig

2013-12-20 Thread Sherman Yin
On 13-12-20 12:58 PM, Arnd Bergmann wrote: On Friday 20 December 2013, Linus Walleij wrote: On Tue, Dec 17, 2013 at 1:18 AM, Bjorn Andersson wrote: No matter how we build the individual pinctrl drivers we will always need the pinctrl framework in a multi-soc zImage; so I can't see that we

[PATCH v4 0/6] Add Broadcom Capri pinctrl driver

2013-12-20 Thread Sherman Yin
changes: - moved config selection from Kconfig to defconfig - added slew-rate, input enable, input disable properties for generic pinconfig - added a description for PINCTRL config v2: Use hyphens instead of underscore in DT property names. Sherman Yin (6): pinctrl: Add void

[PATCH v4 1/4] pinctrl: Add void * to pinctrl_pin_desc

2013-12-20 Thread Sherman Yin
drv_data is added to the pinctrl_pin_desc for drivers to define additional driver-specific per-pin data. Signed-off-by: Sherman Yin Reviewed-by: Christian Daudt Reviewed-by: Matt Porter --- v4: no change v3: no change v2: no change --- include/linux/pinctrl/pinctrl.h |2 ++ 1 file changed

[PATCH v4 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-12-20 Thread Sherman Yin
Adds pinctrl driver for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin Reviewed-by: Christian Daudt Reviewed-by: Matt Porter --- v4: - PINCTRL selected in Kconfig, PINCTRL_CAPRI selected in bcm_defconfig - make use of regmap - change CAPRI_PIN_UPDATE from macro to inline

[PATCH v4 4/4] pinctrl: Enable pinctrl for Broadcom Capri SoCs

2013-12-20 Thread Sherman Yin
Enable pinctrl for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin Reviewed-by: Christian Daudt Reviewed-by: Matt Porter --- v4: no change v3: No change. v2: Use hyphens instead of underscore in DT property names. --- arch/arm/boot/dts/bcm11351.dtsi |4 1 file changed, 4

[PATCH v4 4/4] pinctrl: Enable pinctrl for Broadcom Capri SoCs

2013-12-20 Thread Sherman Yin
Enable pinctrl for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Christian Daudt b...@fixthebug.org Reviewed-by: Matt Porter matt.por...@linaro.org --- v4: no change v3: No change. v2: Use hyphens instead of underscore in DT property names. --- arch

[PATCH v4 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-12-20 Thread Sherman Yin
Adds pinctrl driver for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Christian Daudt b...@fixthebug.org Reviewed-by: Matt Porter matt.por...@linaro.org --- v4: - PINCTRL selected in Kconfig, PINCTRL_CAPRI selected in bcm_defconfig - make use

[PATCH v4 1/4] pinctrl: Add void * to pinctrl_pin_desc

2013-12-20 Thread Sherman Yin
drv_data is added to the pinctrl_pin_desc for drivers to define additional driver-specific per-pin data. Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Christian Daudt b...@fixthebug.org Reviewed-by: Matt Porter matt.por...@linaro.org --- v4: no change v3: no change v2: no change

Re: [PATCH v3 3/6] pinctrl: Make PINCTRL selectable by defconfig/menuconfig

2013-12-20 Thread Sherman Yin
On 13-12-20 12:58 PM, Arnd Bergmann wrote: On Friday 20 December 2013, Linus Walleij wrote: On Tue, Dec 17, 2013 at 1:18 AM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: No matter how we build the individual pinctrl drivers we will always need the pinctrl framework in a multi-soc

[PATCH v4 0/6] Add Broadcom Capri pinctrl driver

2013-12-20 Thread Sherman Yin
changes: - moved config selection from Kconfig to defconfig - added slew-rate, input enable, input disable properties for generic pinconfig - added a description for PINCTRL config v2: Use hyphens instead of underscore in DT property names. Sherman Yin (6): pinctrl: Add void

[PATCH v4 2/4] pinctrl: Add pinctrl binding for Broadcom Capri SoCs

2013-12-20 Thread Sherman Yin
Adds pinctrl driver devicetree binding for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Christian Daudt b...@fixthebug.org Reviewed-by: Matt Porter matt.por...@linaro.org --- v4: Changed valid values for bias-pull-up property for I2C pins. Expanded

Re: [PATCH v3 5/6] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-12-20 Thread Sherman Yin
On 13-12-18 03:56 PM, Sherman Yin wrote: On 13-12-12 12:54 PM, Linus Walleij wrote: +/* + * Write to the register using the value and mask if current value is different + */ +static void capri_reg_write(struct pinctrl_dev *pctldev, + void __iomem *reg

Re: [PATCH v3 5/6] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-12-18 Thread Sherman Yin
On 13-12-13 02:22 AM, Mark Brown wrote: On Thu, Dec 12, 2013 at 09:54:50PM +0100, Linus Walleij wrote: This is a reimplementation of regmap for MMIO. See drivers/base/regmap/regmap-mmio.c Notice how regmap_update_bits() is used throughout the kernel. If you want to do this, use regmap. Or

Re: [PATCH v3 5/6] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-12-18 Thread Sherman Yin
On 13-12-12 12:54 PM, Linus Walleij wrote: +#define CAPRI_PIN_SHIFT(type, param) \ + (CAPRI_ ## type ## _PIN_REG_ ## param ## _SHIFT) + +#define CAPRI_PIN_MASK(type, param) \ + (CAPRI_ ## type ## _PIN_REG_ ## param ## _MASK) + +/* Macro to update reg with new pin config param */

Re: [PATCH v3 5/6] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-12-18 Thread Sherman Yin
On 13-12-12 12:54 PM, Linus Walleij wrote: +#define CAPRI_PIN_SHIFT(type, param) \ + (CAPRI_ ## type ## _PIN_REG_ ## param ## _SHIFT) + +#define CAPRI_PIN_MASK(type, param) \ + (CAPRI_ ## type ## _PIN_REG_ ## param ## _MASK) + +/* Macro to update reg with new pin config param */

Re: [PATCH v3 5/6] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-12-18 Thread Sherman Yin
On 13-12-13 02:22 AM, Mark Brown wrote: On Thu, Dec 12, 2013 at 09:54:50PM +0100, Linus Walleij wrote: This is a reimplementation of regmap for MMIO. See drivers/base/regmap/regmap-mmio.c Notice how regmap_update_bits() is used throughout the kernel. If you want to do this, use regmap. Or

Re: [PATCH v3 4/6] pinctrl: Add pinctrl binding for Broadcom Capri SoCs

2013-12-17 Thread Sherman Yin
On 13-12-16 05:17 AM, Linus Walleij wrote: On Sat, Dec 14, 2013 at 2:16 AM, Sherman Yin wrote: +- bias-pull-up:Integer. Pull up strength in Ohm: + 1: 1.2 kOhm + 2: 1.8 kOhm

Re: [PATCH v3 4/6] pinctrl: Add pinctrl binding for Broadcom Capri SoCs

2013-12-17 Thread Sherman Yin
On 13-12-16 05:17 AM, Linus Walleij wrote: On Sat, Dec 14, 2013 at 2:16 AM, Sherman Yin s...@broadcom.com wrote: +- bias-pull-up:Integer. Pull up strength in Ohm: + 1: 1.2 kOhm + 2: 1.8 kOhm

Re: [PATCH v3 4/6] pinctrl: Add pinctrl binding for Broadcom Capri SoCs

2013-12-13 Thread Sherman Yin
On 13-12-12 12:37 PM, Linus Walleij wrote: On Wed, Dec 11, 2013 at 7:37 PM, Sherman Yin wrote: Adds pinctrl driver devicetree binding for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin Reviewed-by: Christian Daudt Reviewed-by: Matt Porter --- v3: Use generic pin config

Re: [PATCH v3 4/6] pinctrl: Add pinctrl binding for Broadcom Capri SoCs

2013-12-13 Thread Sherman Yin
On 13-12-12 12:37 PM, Linus Walleij wrote: On Wed, Dec 11, 2013 at 7:37 PM, Sherman Yin s...@broadcom.com wrote: Adds pinctrl driver devicetree binding for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Christian Daudt b...@fixthebug.org Reviewed

[PATCH v3 5/6] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-12-11 Thread Sherman Yin
Adds pinctrl driver for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin Reviewed-by: Christian Daudt Reviewed-by: Matt Porter --- v3: Re-work driver to be based on generic pin config. Moved config selection from Kconfig to bcm_defconfig. v2: Use hyphens instead of underscore

[PATCH v3 2/6] pinctrl: Adds slew-rate, input-enable/disable

2013-12-11 Thread Sherman Yin
This commit adds slew-rate and input-enable/disable support for pinconf -generic. Signed-off-by: Sherman Yin --- v3: added to patchset .../bindings/pinctrl/pinctrl-bindings.txt |3 +++ drivers/pinctrl/pinconf-generic.c |4 include/linux/pinctrl/pinconf

[PATCH v3 6/6] pinctrl: Enable pinctrl for Broadcom Capri SoCs

2013-12-11 Thread Sherman Yin
Enable pinctrl for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin Reviewed-by: Christian Daudt Reviewed-by: Matt Porter --- v3: no change v2: no change --- arch/arm/boot/dts/bcm11351.dtsi |4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/bcm11351.dtsi b

[PATCH v3 0/6] Add Broadcom Capri pinctrl driver

2013-12-11 Thread Sherman Yin
hyphens instead of underscore in DT property names. Sherman Yin (6): pinctrl: Add void * to pinctrl_pin_desc pinctrl: Adds slew-rate, input-enable/disable pinctrl: Make PINCTRL selectable by defconfig/menuconfig pinctrl: Add pinctrl binding for Broadcom Capri SoCs ARM: pinctrl: Add Broadcom

[PATCH v3 4/6] pinctrl: Add pinctrl binding for Broadcom Capri SoCs

2013-12-11 Thread Sherman Yin
Adds pinctrl driver devicetree binding for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin Reviewed-by: Christian Daudt Reviewed-by: Matt Porter --- v3: Use generic pin config properties instead of brcm-specific ones. Clarified pin types (standard, i2c, hdmi). v2: Use hyphens

[PATCH v3 3/6] pinctrl: Make PINCTRL selectable by defconfig/menuconfig

2013-12-11 Thread Sherman Yin
Adds a string to the PINCTRL config option so that 1) CONFIG_PINCTRL=y would not be erased by make config, and 2) PINCTRL option would show up in menuconfig. Signed-off-by: Sherman Yin --- v3: added to patchset drivers/pinctrl/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v3 1/6] pinctrl: Add void * to pinctrl_pin_desc

2013-12-11 Thread Sherman Yin
drv_data is added to the pinctrl_pin_desc for drivers to define additional driver-specific per-pin data. Signed-off-by: Sherman Yin Reviewed-by: Christian Daudt Reviewed-by: Matt Porter --- v3: no change v2: no change --- include/linux/pinctrl/pinctrl.h |2 ++ 1 file changed, 2 insertions

[PATCH v3 1/6] pinctrl: Add void * to pinctrl_pin_desc

2013-12-11 Thread Sherman Yin
drv_data is added to the pinctrl_pin_desc for drivers to define additional driver-specific per-pin data. Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Christian Daudt b...@fixthebug.org Reviewed-by: Matt Porter matt.por...@linaro.org --- v3: no change v2: no change --- include/linux

[PATCH v3 4/6] pinctrl: Add pinctrl binding for Broadcom Capri SoCs

2013-12-11 Thread Sherman Yin
Adds pinctrl driver devicetree binding for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Christian Daudt b...@fixthebug.org Reviewed-by: Matt Porter matt.por...@linaro.org --- v3: Use generic pin config properties instead of brcm-specific ones

[PATCH v3 3/6] pinctrl: Make PINCTRL selectable by defconfig/menuconfig

2013-12-11 Thread Sherman Yin
Adds a string to the PINCTRL config option so that 1) CONFIG_PINCTRL=y would not be erased by make config, and 2) PINCTRL option would show up in menuconfig. Signed-off-by: Sherman Yin s...@broadcom.com --- v3: added to patchset drivers/pinctrl/Kconfig |2 +- 1 file changed, 1 insertion

[PATCH v3 0/6] Add Broadcom Capri pinctrl driver

2013-12-11 Thread Sherman Yin
hyphens instead of underscore in DT property names. Sherman Yin (6): pinctrl: Add void * to pinctrl_pin_desc pinctrl: Adds slew-rate, input-enable/disable pinctrl: Make PINCTRL selectable by defconfig/menuconfig pinctrl: Add pinctrl binding for Broadcom Capri SoCs ARM: pinctrl: Add Broadcom

[PATCH v3 6/6] pinctrl: Enable pinctrl for Broadcom Capri SoCs

2013-12-11 Thread Sherman Yin
Enable pinctrl for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Christian Daudt b...@fixthebug.org Reviewed-by: Matt Porter matt.por...@linaro.org --- v3: no change v2: no change --- arch/arm/boot/dts/bcm11351.dtsi |4 1 file changed, 4

[PATCH v3 2/6] pinctrl: Adds slew-rate, input-enable/disable

2013-12-11 Thread Sherman Yin
This commit adds slew-rate and input-enable/disable support for pinconf -generic. Signed-off-by: Sherman Yin s...@broadcom.com --- v3: added to patchset .../bindings/pinctrl/pinctrl-bindings.txt |3 +++ drivers/pinctrl/pinconf-generic.c |4 include/linux

[PATCH v3 5/6] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-12-11 Thread Sherman Yin
Adds pinctrl driver for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Christian Daudt b...@fixthebug.org Reviewed-by: Matt Porter matt.por...@linaro.org --- v3: Re-work driver to be based on generic pin config. Moved config selection from Kconfig

Re: [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-12-10 Thread Sherman Yin
On 13-10-17 08:31 AM, Christian Daudt wrote: On Thu, Oct 17, 2013 at 7:54 AM, Stephen Warren wrote: On 10/17/2013 12:03 AM, Christian Daudt wrote: On Thu, Oct 3, 2013 at 5:23 PM, Sherman Yin wrote: Adds pinctrl driver for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin Reviewed

Re: [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-12-10 Thread Sherman Yin
On 13-10-17 08:31 AM, Christian Daudt wrote: On Thu, Oct 17, 2013 at 7:54 AM, Stephen Warren swar...@wwwdotorg.org wrote: On 10/17/2013 12:03 AM, Christian Daudt wrote: On Thu, Oct 3, 2013 at 5:23 PM, Sherman Yin s...@broadcom.com wrote: Adds pinctrl driver for Broadcom Capri (BCM281xx) SoCs

timer: catching new timers in migrated tvec_base

2013-12-06 Thread Sherman Yin
Hi all, I'm looking for feedback regarding explicitly invalidating the list_heads in tvec_base.tv1 .. tv5 after a migration, for example by doing a list_del(head) at the end of migrate_timer_list(). This is not meant to fix any bugs, but to help catch attempts to add timers to the migrated

timer: catching new timers in migrated tvec_base

2013-12-06 Thread Sherman Yin
Hi all, I'm looking for feedback regarding explicitly invalidating the list_heads in tvec_base.tv1 .. tv5 after a migration, for example by doing a list_del(head) at the end of migrate_timer_list(). This is not meant to fix any bugs, but to help catch attempts to add timers to the migrated

Re: [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-11-13 Thread Sherman Yin
On 13-11-11 02:01 AM, Linus Walleij wrote: I would imagine that the platform-specific device tree bindings would need to clearly explain what the valid values are, as they should. But this is not a platform-specific binding. These are the generic pin configuration bindings we're talking about.

Re: [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-11-13 Thread Sherman Yin
On 13-11-11 02:01 AM, Linus Walleij wrote: I would imagine that the platform-specific device tree bindings would need to clearly explain what the valid values are, as they should. But this is not a platform-specific binding. These are the generic pin configuration bindings we're talking about.

Re: [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-11-07 Thread Sherman Yin
On 13-11-06 01:40 AM, Linus Walleij wrote: On Wed, Nov 6, 2013 at 3:02 AM, Sherman Yin wrote: When Linus asked me to try using generic pinconf instead, I ran into problems with this feature due to how the generic pinconf properties are defined differently than my properties - perhaps

Re: [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-11-07 Thread Sherman Yin
On 13-11-06 09:00 AM, Stephen Warren wrote: You probably don't want to reference the individual xxx1/2/3 nodes in the client pinctrl properties, but instead wrap them in a higher-level node that represents the whole pinctrl state. Then, the client pinctrl properties can reference just that

Re: [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-11-07 Thread Sherman Yin
On 13-11-06 09:00 AM, Stephen Warren wrote: You probably don't want to reference the individual xxx1/2/3 nodes in the client pinctrl properties, but instead wrap them in a higher-level node that represents the whole pinctrl state. Then, the client pinctrl properties can reference just that

Re: [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-11-07 Thread Sherman Yin
On 13-11-06 01:40 AM, Linus Walleij wrote: On Wed, Nov 6, 2013 at 3:02 AM, Sherman Yin s...@broadcom.com wrote: When Linus asked me to try using generic pinconf instead, I ran into problems with this feature due to how the generic pinconf properties are defined differently than my properties

Re: [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-11-05 Thread Sherman Yin
On 13-11-04 04:04 PM, Stephen Warren wrote: On 11/04/2013 04:26 PM, Heiko Stübner wrote: I remember we had a discussion about how things like bias-disable explicitly shouldn't have a value, when they are represented in the list-format: pcfg_pull_none: pcfg_pull_none {

Re: [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-11-05 Thread Sherman Yin
On 13-11-04 04:04 PM, Stephen Warren wrote: On 11/04/2013 04:26 PM, Heiko Stübner wrote: I remember we had a discussion about how things like bias-disable explicitly shouldn't have a value, when they are represented in the list-format: pcfg_pull_none: pcfg_pull_none {

RE: [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-10-25 Thread Sherman Yin
>As well as all this stuff... OK. Will see if I can find something suitable for "input disable" and "mode" >>> >>>Let's discuss this. What exactly does "input disable" and "mode" >>>mean, in electrical terms? >>> >>>When you come down to what actually happens it may turn out

RE: [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-10-25 Thread Sherman Yin
As well as all this stuff... OK. Will see if I can find something suitable for input disable and mode Let's discuss this. What exactly does input disable and mode mean, in electrical terms? When you come down to what actually happens it may turn out that input disable is PIN_CONFIG_OUTPUT,

RE: [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-10-22 Thread Sherman Yin
> +static const struct capri_cfg_param capri_pinconf_params[] = { > + {"brcm,hysteresis", CAPRI_PINCONF_PARAM_HYST}, > + {"brcm,pull", CAPRI_PINCONF_PARAM_PULL}, > + {"brcm,slew", CAPRI_PINCONF_PARAM_SLEW}, > + {"brcm,input_dis",

RE: [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-10-22 Thread Sherman Yin
+static const struct capri_cfg_param capri_pinconf_params[] = { + {brcm,hysteresis, CAPRI_PINCONF_PARAM_HYST}, + {brcm,pull, CAPRI_PINCONF_PARAM_PULL}, + {brcm,slew, CAPRI_PINCONF_PARAM_SLEW}, + {brcm,input_dis,

RE: [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-10-11 Thread Sherman Yin
+static const struct capri_cfg_param capri_pinconf_params[] = { + {"brcm,hysteresis", CAPRI_PINCONF_PARAM_HYST}, + {"brcm,pull", CAPRI_PINCONF_PARAM_PULL}, + {"brcm,slew", CAPRI_PINCONF_PARAM_SLEW}, + {"brcm,input_dis",

RE: [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-10-11 Thread Sherman Yin
+static const struct capri_cfg_param capri_pinconf_params[] = { + {brcm,hysteresis, CAPRI_PINCONF_PARAM_HYST}, + {brcm,pull, CAPRI_PINCONF_PARAM_PULL}, + {brcm,slew, CAPRI_PINCONF_PARAM_SLEW}, + {brcm,input_dis,

RE: [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-10-10 Thread Sherman Yin
>> +config PINCTRL_CAPRI >> + bool "Broadcom Capri pinctrl driver" >> + select PINMUX >> + select PINCONF >> + help >> + Say Y here to support Broadcom Capri pinctrl driver, which is used >> for >> + the BCM281xx SoC family, including BCM11130, BCM11140,

RE: [PATCH 2/4] pinctrl: Add pinctrl binding for Broadcom Capri SoCs

2013-10-10 Thread Sherman Yin
>This should *all* be using generic pin config. > >For the devicetree side of this, read: >Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt > >Your driver should also be selecting GENERIC_PINCONF in >drivers/pinctrl/Kconfig so you use the generic pinconf >library. > >Read

RE: [PATCH 2/4] pinctrl: Add pinctrl binding for Broadcom Capri SoCs

2013-10-10 Thread Sherman Yin
This should *all* be using generic pin config. For the devicetree side of this, read: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt Your driver should also be selecting GENERIC_PINCONF in drivers/pinctrl/Kconfig so you use the generic pinconf library. Read

RE: [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-10-10 Thread Sherman Yin
+config PINCTRL_CAPRI + bool Broadcom Capri pinctrl driver + select PINMUX + select PINCONF + help + Say Y here to support Broadcom Capri pinctrl driver, which is used for + the BCM281xx SoC family, including BCM11130, BCM11140, BCM11351, +

RE: [PATCH 1/4] pinctrl: Add void * to pinctrl_pin_desc

2013-10-09 Thread Sherman Yin
>> --- >> Change-Id: I78b2c44b93d88b04897fd0af80ffce213e338d6b > >Why are you giving me this funky Gerrit stuff along with the patch? >It's not like I have any use for it, and anything below the three >dashes will be deleted when applying. > >The patch is OK but won't be applied until some driver

RE: [PATCH 1/4] pinctrl: Add void * to pinctrl_pin_desc

2013-10-09 Thread Sherman Yin
--- Change-Id: I78b2c44b93d88b04897fd0af80ffce213e338d6b Why are you giving me this funky Gerrit stuff along with the patch? It's not like I have any use for it, and anything below the three dashes will be deleted when applying. The patch is OK but won't be applied until some driver is using

[PATCH v2 0/4] Add Broadcom Capri pinctrl driver

2013-10-07 Thread Sherman Yin
instead of underscore in DT property names. Sherman Yin (4): pinctrl: Add void * to pinctrl_pin_desc pinctrl: Add pinctrl binding for Broadcom Capri SoCs ARM: pinctrl: Add Broadcom Capri pinctrl driver pinctrl: Enable pinctrl for Broadcom Capri SoCs .../bindings/pinctrl/brcm,capri

[PATCH v2 4/4] pinctrl: Enable pinctrl for Broadcom Capri SoCs

2013-10-07 Thread Sherman Yin
Enable pinctrl for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin Reviewed-by: Christian Daudt Reviewed-by: Matt Porter --- v2: Use hyphens instead of underscore in DT property names. --- arch/arm/boot/dts/bcm11351.dtsi |4 1 file changed, 4 insertions(+) diff --git

[PATCH v2 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-10-07 Thread Sherman Yin
Adds pinctrl driver for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin Reviewed-by: Christian Daudt Reviewed-by: Matt Porter --- v2: Use hyphens instead of underscore in DT property names. --- arch/arm/mach-bcm/Kconfig |2 + drivers/pinctrl/Kconfig | 10

[PATCH v2 2/4] pinctrl: Add pinctrl binding for Broadcom Capri SoCs

2013-10-07 Thread Sherman Yin
Adds pinctrl driver devicetree binding for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin Reviewed-by: Christian Daudt Reviewed-by: Matt Porter --- v2: Use hyphens instead of underscore in DT property names. --- .../bindings/pinctrl/brcm,capri-pinctrl.txt| 419

[PATCH v2 1/4] pinctrl: Add void * to pinctrl_pin_desc

2013-10-07 Thread Sherman Yin
drv_data is added to the pinctrl_pin_desc for drivers to define additional driver-specific per-pin data. Signed-off-by: Sherman Yin Reviewed-by: Christian Daudt Reviewed-by: Matt Porter --- Change-Id: I78b2c44b93d88b04897fd0af80ffce213e338d6b v2: Use hyphens instead of underscore in DT

[PATCH v2 1/4] pinctrl: Add void * to pinctrl_pin_desc

2013-10-07 Thread Sherman Yin
drv_data is added to the pinctrl_pin_desc for drivers to define additional driver-specific per-pin data. Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Christian Daudt b...@fixthebug.org Reviewed-by: Matt Porter matt.por...@linaro.org --- Change-Id

[PATCH v2 2/4] pinctrl: Add pinctrl binding for Broadcom Capri SoCs

2013-10-07 Thread Sherman Yin
Adds pinctrl driver devicetree binding for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Christian Daudt b...@fixthebug.org Reviewed-by: Matt Porter matt.por...@linaro.org --- v2: Use hyphens instead of underscore in DT property names. --- .../bindings

[PATCH v2 4/4] pinctrl: Enable pinctrl for Broadcom Capri SoCs

2013-10-07 Thread Sherman Yin
Enable pinctrl for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Christian Daudt b...@fixthebug.org Reviewed-by: Matt Porter matt.por...@linaro.org --- v2: Use hyphens instead of underscore in DT property names. --- arch/arm/boot/dts/bcm11351.dtsi

[PATCH v2 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-10-07 Thread Sherman Yin
Adds pinctrl driver for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin s...@broadcom.com Reviewed-by: Christian Daudt b...@fixthebug.org Reviewed-by: Matt Porter matt.por...@linaro.org --- v2: Use hyphens instead of underscore in DT property names. --- arch/arm/mach-bcm/Kconfig

[PATCH v2 0/4] Add Broadcom Capri pinctrl driver

2013-10-07 Thread Sherman Yin
instead of underscore in DT property names. Sherman Yin (4): pinctrl: Add void * to pinctrl_pin_desc pinctrl: Add pinctrl binding for Broadcom Capri SoCs ARM: pinctrl: Add Broadcom Capri pinctrl driver pinctrl: Enable pinctrl for Broadcom Capri SoCs .../bindings/pinctrl/brcm,capri

[PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver

2013-10-03 Thread Sherman Yin
Adds pinctrl driver for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin Reviewed-by: Christian Daudt Reviewed-by: Matt Porter --- arch/arm/mach-bcm/Kconfig |2 + drivers/pinctrl/Kconfig | 10 + drivers/pinctrl/Makefile|1 + drivers/pinctrl/pinctrl

[PATCH 0/4] Add Broadcom Capri pinctrl driver

2013-10-03 Thread Sherman Yin
The following patches adds a pinctrl driver for Broadcom Capri (BCM281xx) SoCs. The first patch, adding the void * to pinctrl_pin_desc, has been previously discussed with LinusW. See this thread: http://lists.infradead.org/pipermail/linux-arm-kernel/2013-April/165880.html Sherman Yin (4

  1   2   >