From: hanumant <hanumant@codeaurora.org>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] pinctrl: msm: Add support for MSM TLMM pinmux
Date: Tue, 25 Jun 2013 10:41:25 -0700 [thread overview]
Message-ID: <51C9D645.6030609@codeaurora.org> (raw)
In-Reply-To: <CACRpkdbcscJYRgTQv_4SdR3i3PJwWfYQu=OonABz3xyLO+3Ubg@mail.gmail.com>
On 06/24/2013 05:18 AM, Linus Walleij wrote:
>> +
>> + - qcom,gp-pull: Pull up/down configuration.
>> + - qcom,gp-drv: Drive strength configuration.
>> + - qcom,gp-dir: Pull up/down configuration in power down mode.
>
> Rebase this to use the generic pin config mappings and parsing
> code that can be found in the "devel" branch of the pinctrl tree.
>
>> + The following pin configurations are properties are supported by SDC pins
>> + - qcom,sdc1-clk-pull: Pull up/down configuration SDC1 clock pin.
>> + - qcom,sdc1-clk-drv: Drive strength configuration for SDC1 clock pin.
>> + - qcom,sdc1-cmd-pull: Pull up/down configuration for SDC1 command pin.
>> + - qcom,sdc1-cmd-drv: Drive strength configuration for SDC1 command pin.
>> + - qcom,sdc1-data-pull: Pull up/down configuration for SDC1 data pin.
>> + - qcom,sdc1-data-drv: Drive strength configuration for SDC1 data pin.
>> + - qcom,sdc2-clk-pull: Pull up/down configuration SDC2 clock pin.
>> + - qcom,sdc2-clk-drv: Drive strength configuration for SDC2 clock pin.
>> + - qcom,sdc2-cmd-pull: Pull up/down configuration for SDC2 command pin.
>> + - qcom,sdc2-cmd-drv: Drive strength configuration for SDC2 command pin.
>> + - qcom,sdc2-data-pull: Pull up/down configuration for SDC2 data pin.
>> + - qcom,sdc2-data-drv: Drive strength configuration for SDC2 data pin.
>
> I don't understand why each sdc thing needs its own definition
> for everything. Please use the generic pin config bindings, call the
> generic parser function and then reject if someone tries to config
> something that is not supported.
>
The register semantics of SDC1 clk, command, and data lines, pull up and
drive strength attributes differ from SDC2 clk, command and data lines.
In general the TLMM v3 has more pin types then just the general/multi
purpose(gp) and SDC pin types above.
There are some pin types on the TLMM, whose config attributes do not
fall under the cattegories supported by generic pin config.
These attributes in some cases happen to be protocol specific.
Hence I would prefer to go with a custom config pack and unpack
implementation rather then the generic one.
>
>> +Example 4: Set up the default pin state for spi controller.
>> +
>> + static inline int msm_spi_request_pins{struct msm_spi *dd)
>> + {
>> + /* ... */
>> + dd->pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
>> + }
>
> Nowadays the device core will do this, so this is not any good
> advice. (See commit ab78029ecc347debbd737f06688d788bd9d60c1d)
I will modify this.
>
> I will look closer at this when it uses generic pinconf and
> generic pinconf DT bindings, let's target v3.12.
>
> Yours,
> Linus Walleij
>
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora
Forum, hosted by The Linux Foundation
--
next prev parent reply other threads:[~2013-06-25 17:41 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-21 21:52 [PATCH] pinctrl: msm: Add support for MSM TLMM pinmux Hanumant Singh
2013-06-24 12:18 ` Linus Walleij
2013-06-25 17:41 ` hanumant [this message]
2013-06-27 8:26 ` Linus Walleij
2013-06-27 15:17 ` hanumant
-- strict thread matches above, loose matches on Subject: below --
2013-07-24 21:41 Hanumant Singh
2013-07-29 16:37 ` Linus Walleij
2013-07-29 17:32 ` Stephen Warren
2013-07-30 21:10 ` hanumant
2013-07-30 21:22 ` Stephen Warren
2013-07-31 0:01 ` Hanumant Singh
2013-07-31 0:08 ` Stephen Warren
2013-07-31 0:13 ` Hanumant Singh
2013-07-31 3:59 ` Stephen Warren
2013-07-31 19:46 ` Hanumant Singh
2013-07-31 21:06 ` Stephen Warren
2013-08-01 0:17 ` Hanumant Singh
2013-08-06 23:45 ` Hanumant Singh
2013-08-07 16:00 ` Stephen Warren
2013-08-14 19:16 ` Linus Walleij
2013-07-29 23:39 ` Bjorn Andersson
2013-08-07 18:07 ` Hanumant Singh
2013-08-14 19:29 ` Linus Walleij
2013-08-15 17:44 ` Hanumant Singh
2013-08-15 20:47 ` Linus Walleij
2013-08-15 21:28 ` Hanumant Singh
2013-08-28 8:32 ` Linus Walleij
2013-08-15 21:50 ` Josh Cartwright
2013-08-15 21:58 ` Hanumant Singh
2013-08-15 23:10 ` Josh Cartwright
2013-08-15 23:14 ` Hanumant Singh
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=51C9D645.6030609@codeaurora.org \
--to=hanumant@codeaurora.org \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox