All of lore.kernel.org
 help / color / mirror / Atom feed
From: syin@broadcom.com (Sherman Yin)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 2/4] pinctrl: Add pinctrl binding for Broadcom Capri SoCs
Date: Tue, 7 Jan 2014 12:45:54 -0800	[thread overview]
Message-ID: <52CC6782.4060309@broadcom.com> (raw)
In-Reply-To: <CACRpkdaAq15wKD900SqN1sQFLBATiuA3vNoua+KJGHU+gdCgqg@mail.gmail.com>

On 14-01-07 09:15 AM, Linus Walleij wrote:
> On Sat, Dec 21, 2013 at 3:13 AM, Sherman Yin <syin@broadcom.com> wrote:
>> +Optional Properties (for standard pins):
>> +
>> +- function:                    String. Specifies the pin mux selection. Values
>> +                               must be one of: "alt1", "alt2", "alt3", "alt4"
>> +- input-schmitt-enable:                No arguments. Enable schmitt-trigger mode.
>> +- input-schmitt-disable:       No arguments. Disable schmitt-trigger mode.
>> +- bias-pull-up:                        No arguments. Pull up on pin.
>> +- bias-pull-down:              No arguments. Pull down on pin.
>> +- bias-disable:                        No arguments. Disable pin bias.
>> +- slew-rate:                   Integer. Meaning depends on configured pin mux:
>> +                               *_SCL or *_SDA:
>> +                                       0: Standard(100kbps)& Fast(400kbps) mode
>> +                                       1: Highspeed (3.4Mbps) mode
>> +                               IC_DM or IC_DP:
>> +                                       0: normal slew rate
>> +                                       1: fast slew rate
>> +                               Otherwise:
>> +                                       0: fast slew rate
>> +                                       1: normal slew rate
>> +- input-enable:                        No arguements. Enable input (does not affect
>> +                               output.)
>> +- input-disable:               No arguements. Disable input (does not affect
>> +                               output.)
>> +- drive-strength:              Integer. Drive strength in mA.  Valid values are
>> +                               2, 4, 6, 8, 10, 12, 14, 16 mA.
>
> Also patch
> Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
> Since you're adding generic properties.

Please note that I removed from this patchset the patch that you've 
merged to your for-next branch already:

https://git.kernel.org/cgit/linux/kernel/git/linusw/linux-pinctrl.git/commit/?h=for-next&id=8ba3f4d00078e7a49c60c0bd6298f29402c3a0a0

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 the description of slew-rate arguments there because this is 
capri-specific.  I'm not quite sure what else to add.


>> +Optional Properties (for I2C pins):
>> +
>> +- function:                    String. Specifies the pin mux selection. Values
>> +                               must be one of: "alt1", "alt2", "alt3", "alt4"
>> +- bias-pull-up:                        Integer. Pull up strength in Ohm. There are 3
>> +                               pull-up resisitors (1.2k, 1.8k, 2.7k) available
>> +                               in parallel for I2C pins, so the valid values
>> +                               are: 568, 720, 831, 1080, 1200, 1800, 2700 Ohm.
>
> Also patch
> Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt

That doc already says bias-pull-up is specified in Ohm, and the specific 
values are chip-specific, so I don't think they should be mentioned there.

>> +- bias-disable:                        No arguments. Disable pin bias.
>> +- slew-rate:                   Integer. Meaning depends on configured pin mux:
>> +                               *_SCL or *_SDA:
>> +                                       0: Standard(100kbps)& Fast(400kbps) mode
>> +                                       1: Highspeed (3.4Mbps) mode
>> +                               IC_DM or IC_DP:
>> +                                       0: normal slew rate
>> +                                       1: fast slew rate
>> +                               Otherwise:
>> +                                       0: fast slew rate
>> +                                       1: normal slew rate
>
> Hm that does not seem generic though, so let's not add this to the
> generic bindings.
>
>> +- input-enable:                        No arguements. Enable input (does not affect
>> +                               output.)
>> +- input-disable:               No arguements. Disable input (does not affect
>> +                               output.)
>> +
>> +Optional Properties (for HDMI pins):
>> +
>> +- function:                    String. Specifies the pin mux selection. Values
>> +                               must be one of: "alt1", "alt2", "alt3", "alt4"
>> +- slew-rate:                   Integer. Controls slew rate.
>> +                                       0: Standard(100kbps)& Fast(400kbps) mode
>> +                                       1: Highspeed (3.4Mbps) mode
>
> Hmmmm slew rate is not specifiec in "bps" but rather in
> something like volts per second. But maybe it's best to keep
> this value driver-specific.

Right, I think the slew-rates values are capri specific.

Thanks for the review.

Regards,
Sherman

WARNING: multiple messages have this Message-ID (diff)
From: Sherman Yin <syin@broadcom.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: "Mark Brown" <broonie@kernel.org>,
	"Rob Herring" <rob.herring@calxeda.com>,
	"Heiko Stübner" <heiko@sntech.de>,
	"Pawel Moll" <pawel.moll@arm.com>,
	"Mark Rutland" <mark.rutland@arm.com>,
	"Stephen Warren" <swarren@wwwdotorg.org>,
	"Ian Campbell" <ijc+devicetree@hellion.org.uk>,
	"Rob Landley" <rob@landley.net>,
	"Christian Daudt" <bcm@fixthebug.org>,
	"Russell King" <linux@arm.linux.org.uk>,
	"Grant Likely" <grant.likely@linaro.org>,
	"Matt Porter" <matt.porter@linaro.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	bcm-kernel-feedback-list <bcm-kernel-feedback-list@broadcom.com>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v4 2/4] pinctrl: Add pinctrl binding for Broadcom Capri SoCs
Date: Tue, 7 Jan 2014 12:45:54 -0800	[thread overview]
Message-ID: <52CC6782.4060309@broadcom.com> (raw)
In-Reply-To: <CACRpkdaAq15wKD900SqN1sQFLBATiuA3vNoua+KJGHU+gdCgqg@mail.gmail.com>

On 14-01-07 09:15 AM, Linus Walleij wrote:
> On Sat, Dec 21, 2013 at 3:13 AM, Sherman Yin <syin@broadcom.com> wrote:
>> +Optional Properties (for standard pins):
>> +
>> +- function:                    String. Specifies the pin mux selection. Values
>> +                               must be one of: "alt1", "alt2", "alt3", "alt4"
>> +- input-schmitt-enable:                No arguments. Enable schmitt-trigger mode.
>> +- input-schmitt-disable:       No arguments. Disable schmitt-trigger mode.
>> +- bias-pull-up:                        No arguments. Pull up on pin.
>> +- bias-pull-down:              No arguments. Pull down on pin.
>> +- bias-disable:                        No arguments. Disable pin bias.
>> +- slew-rate:                   Integer. Meaning depends on configured pin mux:
>> +                               *_SCL or *_SDA:
>> +                                       0: Standard(100kbps)& Fast(400kbps) mode
>> +                                       1: Highspeed (3.4Mbps) mode
>> +                               IC_DM or IC_DP:
>> +                                       0: normal slew rate
>> +                                       1: fast slew rate
>> +                               Otherwise:
>> +                                       0: fast slew rate
>> +                                       1: normal slew rate
>> +- input-enable:                        No arguements. Enable input (does not affect
>> +                               output.)
>> +- input-disable:               No arguements. Disable input (does not affect
>> +                               output.)
>> +- drive-strength:              Integer. Drive strength in mA.  Valid values are
>> +                               2, 4, 6, 8, 10, 12, 14, 16 mA.
>
> Also patch
> Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
> Since you're adding generic properties.

Please note that I removed from this patchset the patch that you've 
merged to your for-next branch already:

https://git.kernel.org/cgit/linux/kernel/git/linusw/linux-pinctrl.git/commit/?h=for-next&id=8ba3f4d00078e7a49c60c0bd6298f29402c3a0a0

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 the description of slew-rate arguments there because this is 
capri-specific.  I'm not quite sure what else to add.


>> +Optional Properties (for I2C pins):
>> +
>> +- function:                    String. Specifies the pin mux selection. Values
>> +                               must be one of: "alt1", "alt2", "alt3", "alt4"
>> +- bias-pull-up:                        Integer. Pull up strength in Ohm. There are 3
>> +                               pull-up resisitors (1.2k, 1.8k, 2.7k) available
>> +                               in parallel for I2C pins, so the valid values
>> +                               are: 568, 720, 831, 1080, 1200, 1800, 2700 Ohm.
>
> Also patch
> Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt

That doc already says bias-pull-up is specified in Ohm, and the specific 
values are chip-specific, so I don't think they should be mentioned there.

>> +- bias-disable:                        No arguments. Disable pin bias.
>> +- slew-rate:                   Integer. Meaning depends on configured pin mux:
>> +                               *_SCL or *_SDA:
>> +                                       0: Standard(100kbps)& Fast(400kbps) mode
>> +                                       1: Highspeed (3.4Mbps) mode
>> +                               IC_DM or IC_DP:
>> +                                       0: normal slew rate
>> +                                       1: fast slew rate
>> +                               Otherwise:
>> +                                       0: fast slew rate
>> +                                       1: normal slew rate
>
> Hm that does not seem generic though, so let's not add this to the
> generic bindings.
>
>> +- input-enable:                        No arguements. Enable input (does not affect
>> +                               output.)
>> +- input-disable:               No arguements. Disable input (does not affect
>> +                               output.)
>> +
>> +Optional Properties (for HDMI pins):
>> +
>> +- function:                    String. Specifies the pin mux selection. Values
>> +                               must be one of: "alt1", "alt2", "alt3", "alt4"
>> +- slew-rate:                   Integer. Controls slew rate.
>> +                                       0: Standard(100kbps)& Fast(400kbps) mode
>> +                                       1: Highspeed (3.4Mbps) mode
>
> Hmmmm slew rate is not specifiec in "bps" but rather in
> something like volts per second. But maybe it's best to keep
> this value driver-specific.

Right, I think the slew-rates values are capri specific.

Thanks for the review.

Regards,
Sherman

  reply	other threads:[~2014-01-07 20:45 UTC|newest]

Thread overview: 196+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-04  0:23 [PATCH 0/4] Add Broadcom Capri pinctrl driver Sherman Yin
2013-10-04  0:23 ` Sherman Yin
2013-10-04  0:23 ` Sherman Yin
2013-10-04  0:23 ` [PATCH 1/4] pinctrl: Add void * to pinctrl_pin_desc Sherman Yin
2013-10-04  0:23   ` Sherman Yin
2013-10-09  8:55   ` Linus Walleij
2013-10-09  8:55     ` Linus Walleij
2013-10-09  8:55     ` Linus Walleij
2013-10-09 22:57     ` Sherman Yin
2013-10-09 22:57       ` Sherman Yin
2013-10-04  0:23 ` [PATCH 2/4] pinctrl: Add pinctrl binding for Broadcom Capri SoCs Sherman Yin
2013-10-04  0:23   ` Sherman Yin
2013-10-04  0:23   ` Sherman Yin
2013-10-04 12:51   ` Matt Porter
2013-10-04 12:51     ` Matt Porter
2013-10-09  8:53   ` Linus Walleij
2013-10-09  8:53     ` Linus Walleij
2013-10-09  8:53     ` Linus Walleij
2013-10-10 17:57     ` Sherman Yin
2013-10-10 17:57       ` Sherman Yin
2013-10-04  0:23 ` [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver Sherman Yin
2013-10-04  0:23   ` Sherman Yin
2013-10-04  0:23   ` Sherman Yin
2013-10-09  9:10   ` Linus Walleij
2013-10-09  9:10     ` Linus Walleij
2013-10-10 23:48     ` Sherman Yin
2013-10-10 23:48       ` Sherman Yin
2013-10-11  8:14       ` Linus Walleij
2013-10-11  8:14         ` Linus Walleij
2013-10-11  8:14         ` Linus Walleij
2013-10-11 18:25         ` Sherman Yin
2013-10-11 18:25           ` Sherman Yin
2013-10-22 23:29           ` Sherman Yin
2013-10-22 23:29             ` Sherman Yin
2013-10-25 22:48             ` Sherman Yin
2013-10-25 22:48               ` Sherman Yin
2013-11-04 12:24               ` Linus Walleij
2013-11-04 12:24                 ` Linus Walleij
2013-11-04 23:26                 ` Heiko Stübner
2013-11-04 23:26                   ` Heiko Stübner
2013-11-05  0:04                   ` Stephen Warren
2013-11-05  0:04                     ` Stephen Warren
2013-11-06  2:02                     ` Sherman Yin
2013-11-06  2:02                       ` Sherman Yin
2013-11-06  9:40                       ` Linus Walleij
2013-11-06  9:40                         ` Linus Walleij
2013-11-08  0:29                         ` Sherman Yin
2013-11-08  0:29                           ` Sherman Yin
2013-11-11 10:01                           ` Linus Walleij
2013-11-11 10:01                             ` Linus Walleij
2013-11-13 23:43                             ` Sherman Yin
2013-11-13 23:43                               ` Sherman Yin
2013-11-13 23:43                               ` Sherman Yin
2013-11-19 20:39                               ` Linus Walleij
2013-11-19 20:39                                 ` Linus Walleij
2013-11-06 17:00                       ` Stephen Warren
2013-11-06 17:00                         ` Stephen Warren
2013-11-06 17:00                         ` Stephen Warren
2013-11-07 22:01                         ` Sherman Yin
2013-11-07 22:01                           ` Sherman Yin
2013-11-06  9:29                     ` Linus Walleij
2013-11-06  9:29                       ` Linus Walleij
2013-10-17  6:03   ` Christian Daudt
2013-10-17  6:03     ` Christian Daudt
2013-10-17 14:54     ` Stephen Warren
2013-10-17 14:54       ` Stephen Warren
2013-10-17 15:31       ` Christian Daudt
2013-10-17 15:31         ` Christian Daudt
2013-12-11  0:05         ` Sherman Yin
2013-12-11  0:05           ` Sherman Yin
2013-12-12 20:43           ` Linus Walleij
2013-12-12 20:43             ` Linus Walleij
2013-10-04  0:23 ` [PATCH 4/4] pinctrl: Enable pinctrl for Broadcom Capri SoCs Sherman Yin
2013-10-04  0:23   ` Sherman Yin
2013-10-09  9:11   ` Linus Walleij
2013-10-09  9:11     ` Linus Walleij
2013-10-07 19:28 ` [PATCH v2 0/4] Add Broadcom Capri pinctrl driver Sherman Yin
2013-10-07 19:28   ` Sherman Yin
2013-10-07 19:28   ` [PATCH v2 1/4] pinctrl: Add void * to pinctrl_pin_desc Sherman Yin
2013-10-07 19:28     ` Sherman Yin
2013-10-07 19:28   ` [PATCH v2 2/4] pinctrl: Add pinctrl binding for Broadcom Capri SoCs Sherman Yin
2013-10-07 19:28     ` Sherman Yin
2013-10-07 19:28   ` [PATCH v2 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver Sherman Yin
2013-10-07 19:28     ` Sherman Yin
2013-10-07 19:28   ` [PATCH v2 4/4] pinctrl: Enable pinctrl for Broadcom Capri SoCs Sherman Yin
2013-10-07 19:28     ` Sherman Yin
2013-12-11 18:37   ` [PATCH v3 0/6] Add Broadcom Capri pinctrl driver Sherman Yin
2013-12-11 18:37     ` Sherman Yin
2013-12-11 18:37     ` Sherman Yin
2013-12-11 18:37     ` [PATCH v3 1/6] pinctrl: Add void * to pinctrl_pin_desc Sherman Yin
2013-12-11 18:37       ` Sherman Yin
2013-12-11 18:37       ` Sherman Yin
2013-12-11 18:37     ` [PATCH v3 2/6] pinctrl: Adds slew-rate, input-enable/disable Sherman Yin
2013-12-11 18:37       ` Sherman Yin
2013-12-11 18:37       ` Sherman Yin
2013-12-12 20:41       ` Linus Walleij
2013-12-12 20:41         ` Linus Walleij
2013-12-16  9:55       ` Linus Walleij
2013-12-16  9:55         ` Linus Walleij
2013-12-11 18:37     ` [PATCH v3 3/6] pinctrl: Make PINCTRL selectable by defconfig/menuconfig Sherman Yin
2013-12-11 18:37       ` Sherman Yin
2013-12-11 18:37       ` Sherman Yin
2013-12-12 20:39       ` Linus Walleij
2013-12-12 20:39         ` Linus Walleij
2013-12-12 21:35         ` Christian Daudt
2013-12-12 21:35           ` Christian Daudt
2013-12-16 10:01           ` Linus Walleij
2013-12-16 10:01             ` Linus Walleij
2013-12-17  0:18             ` Bjorn Andersson
2013-12-17  0:18               ` Bjorn Andersson
2013-12-17  0:18               ` Bjorn Andersson
2013-12-20  9:37               ` Linus Walleij
2013-12-20  9:37                 ` Linus Walleij
2013-12-20 20:58                 ` Arnd Bergmann
2013-12-20 20:58                   ` Arnd Bergmann
2013-12-20 20:58                   ` Arnd Bergmann
2013-12-21  2:15                   ` Sherman Yin
2013-12-21  2:15                     ` Sherman Yin
2013-12-11 18:37     ` [PATCH v3 4/6] pinctrl: Add pinctrl binding for Broadcom Capri SoCs Sherman Yin
2013-12-11 18:37       ` Sherman Yin
2013-12-11 18:37       ` Sherman Yin
2013-12-12 20:37       ` Linus Walleij
2013-12-12 20:37         ` Linus Walleij
2013-12-14  1:16         ` Sherman Yin
2013-12-14  1:16           ` Sherman Yin
2013-12-14  1:16           ` Sherman Yin
2013-12-16 13:17           ` Linus Walleij
2013-12-16 13:17             ` Linus Walleij
2013-12-18  2:02             ` Sherman Yin
2013-12-18  2:02               ` Sherman Yin
2013-12-18  2:02               ` Sherman Yin
2013-12-11 18:37     ` [PATCH v3 5/6] ARM: pinctrl: Add Broadcom Capri pinctrl driver Sherman Yin
2013-12-11 18:37       ` Sherman Yin
2013-12-11 18:37       ` Sherman Yin
2013-12-12 20:54       ` Linus Walleij
2013-12-12 20:54         ` Linus Walleij
2013-12-13 10:22         ` Mark Brown
2013-12-13 10:22           ` Mark Brown
2013-12-19  0:12           ` Sherman Yin
2013-12-19  0:12             ` Sherman Yin
2013-12-18 23:56         ` Sherman Yin
2013-12-18 23:56           ` Sherman Yin
2013-12-21  2:31           ` Sherman Yin
2013-12-21  2:31             ` Sherman Yin
2013-12-11 18:37     ` [PATCH v3 6/6] pinctrl: Enable pinctrl for Broadcom Capri SoCs Sherman Yin
2013-12-11 18:37       ` Sherman Yin
2013-12-11 18:37       ` Sherman Yin
2013-12-21  2:13     ` [PATCH v4 0/6] Add Broadcom Capri pinctrl driver Sherman Yin
2013-12-21  2:13       ` Sherman Yin
2013-12-21  2:13       ` Sherman Yin
2013-12-21  2:13       ` [PATCH v4 1/4] pinctrl: Add void * to pinctrl_pin_desc Sherman Yin
2013-12-21  2:13         ` Sherman Yin
2013-12-21  2:13         ` Sherman Yin
2014-01-16 13:26         ` Linus Walleij
2014-01-16 13:26           ` Linus Walleij
2013-12-21  2:13       ` [PATCH v4 2/4] pinctrl: Add pinctrl binding for Broadcom Capri SoCs Sherman Yin
2013-12-21  2:13         ` Sherman Yin
2013-12-21  2:13         ` Sherman Yin
2014-01-07 17:15         ` Linus Walleij
2014-01-07 17:15           ` Linus Walleij
2014-01-07 20:45           ` Sherman Yin [this message]
2014-01-07 20:45             ` Sherman Yin
2014-01-14 10:16             ` Linus Walleij
2014-01-14 10:16               ` Linus Walleij
2014-01-14 19:00               ` Sherman Yin
2014-01-14 19:00                 ` Sherman Yin
2014-01-15  9:40                 ` Linus Walleij
2014-01-15  9:40                   ` Linus Walleij
2014-01-15 16:39                   ` Mark Rutland
2014-01-15 16:39                     ` Mark Rutland
2014-01-16 13:24         ` Linus Walleij
2014-01-16 13:24           ` Linus Walleij
2014-01-16 13:24           ` Linus Walleij
2013-12-21  2:13       ` [PATCH v4 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver Sherman Yin
2013-12-21  2:13         ` Sherman Yin
2013-12-21  2:13         ` Sherman Yin
2014-01-16 13:19         ` Linus Walleij
2014-01-16 13:19           ` Linus Walleij
2014-01-17 19:59           ` Sherman Yin
2014-01-17 19:59             ` Sherman Yin
2014-01-18  2:56             ` Matt Porter
2014-01-18  2:56               ` Matt Porter
2014-01-18  2:56               ` Matt Porter
2014-01-20  8:16               ` Linus Walleij
2014-01-20  8:16                 ` Linus Walleij
2014-01-20 19:14                 ` Sherman Yin
2014-01-20 19:14                   ` Sherman Yin
2014-01-21 12:35                   ` Linus Walleij
2014-01-21 12:35                     ` Linus Walleij
2014-01-21 13:49                 ` Matt Porter
2014-01-21 13:49                   ` Matt Porter
2013-12-21  2:13       ` [PATCH v4 4/4] pinctrl: Enable pinctrl for Broadcom Capri SoCs Sherman Yin
2013-12-21  2:13         ` Sherman Yin
2013-12-21  2:13         ` Sherman Yin
2014-01-16 13:28         ` Linus Walleij
2014-01-16 13:28           ` Linus Walleij

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52CC6782.4060309@broadcom.com \
    --to=syin@broadcom.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.