From: Bjorn Andersson <bjorn.andersson@linaro.org>
To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Andy Gross <andy.gross@linaro.org>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-soc@vger.kernel.org
Subject: Re: [PATCH 03/12] ARM: dts: apq8064: add gsbi7 i2c support
Date: Tue, 29 Mar 2016 07:34:15 -0700 [thread overview]
Message-ID: <20160329143415.GH8929@tuxbot> (raw)
In-Reply-To: <1458762436-9446-1-git-send-email-srinivas.kandagatla@linaro.org>
On Wed 23 Mar 12:47 PDT 2016, Srinivas Kandagatla wrote:
> This patch adds support to gsbi7 i2c which is used in some of the new
> boards.
>
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> ---
> arch/arm/boot/dts/qcom-apq8064-pins.dtsi | 25 +++++++++++++++++++++++++
> arch/arm/boot/dts/qcom-apq8064.dtsi | 13 +++++++++++++
> 2 files changed, 38 insertions(+)
>
> diff --git a/arch/arm/boot/dts/qcom-apq8064-pins.dtsi b/arch/arm/boot/dts/qcom-apq8064-pins.dtsi
> index 8bb5e5f..4102a98 100644
> --- a/arch/arm/boot/dts/qcom-apq8064-pins.dtsi
> +++ b/arch/arm/boot/dts/qcom-apq8064-pins.dtsi
> @@ -219,4 +219,29 @@
> function = "gsbi7";
> };
> };
> +
> + i2c7_pins: i2c7 {
> + mux {
> + pins = "gpio84", "gpio85";
> + function = "gsbi7";
> + };
> +
> + pinconf {
> + pins = "gpio84", "gpio85";
> + drive-strength = <16>;
> + bias-disable;
> + };
> + };
> +
> + i2c7_pins_sleep: i2c7_pins_sleep {
> + mux {
> + pins = "gpio84", "gpio85";
> + function = "gpio";
> + };
> + pinconf {
> + pins = "gpio84", "gpio85";
> + drive-strength = <2>;
> + bias-disable = <0>;
> + };
> + };
I've been going back and forth about having default pinconfig settings
in the platform dtsi and having devices to override these later.
I do find it cleaner to push this down to the board, as they should
always be verified and tweaked by a hw guy for the specific board.
For some cases this isn't really the case, based on hard design
requirements, but for i2c it is.
> };
> diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi
> index 81b4290..f064f59 100644
> --- a/arch/arm/boot/dts/qcom-apq8064.dtsi
> +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi
> @@ -417,6 +417,19 @@
> clock-names = "core", "iface";
> status = "disabled";
> };
> +
> + gsbi7_i2c: i2c@16680000 {
We normally don't need to reference the i2c adaptors, so please drop
this label.
> + compatible = "qcom,i2c-qup-v1.1.1";
> + pinctrl-0 = <&i2c7_pins>;
> + pinctrl-1 = <&i2c7_pins_sleep>;
> + pinctrl-names = "default", "sleep";
> + reg = <0x16680000 0x1000>;
> + interrupts = <GIC_SPI 159 IRQ_TYPE_NONE>;
> + clocks = <&gcc GSBI7_QUP_CLK>,
> + <&gcc GSBI7_H_CLK>;
> + clock-names = "core", "iface";
> + status = "disabled";
> + };
Regards,
Bjorn
next prev parent reply other threads:[~2016-03-29 14:34 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-23 19:46 [PATCH 00/12] ARM: dts: Add dragonboard-600c support Srinivas Kandagatla
2016-03-23 19:47 ` [PATCH 01/12] ARM: dts: apq8064: fix the pinctrls for i2c and spi Srinivas Kandagatla
[not found] ` <1458762421-9339-1-git-send-email-srinivas.kandagatla-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-03-29 14:28 ` Bjorn Andersson
2016-03-29 15:02 ` Srinivas Kandagatla
2016-03-29 16:10 ` Bjorn Andersson
2016-03-23 19:47 ` [PATCH 02/12] ARM: dts: apq8064: add support to gsbi1 uart Srinivas Kandagatla
[not found] ` <1458762429-9397-1-git-send-email-srinivas.kandagatla-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-03-29 14:29 ` Bjorn Andersson
2016-03-23 19:47 ` [PATCH 03/12] ARM: dts: apq8064: add gsbi7 i2c support Srinivas Kandagatla
2016-03-29 14:34 ` Bjorn Andersson [this message]
2016-03-23 19:47 ` [PATCH 05/12] ARM: dts: dragonboard-600c: add pmic regulator supplies Srinivas Kandagatla
2016-03-29 14:37 ` Bjorn Andersson
2016-03-29 15:02 ` Srinivas Kandagatla
2016-03-23 19:47 ` [PATCH 06/12] ARM: dts: dragonboard-600c: Add eMMC and SD card support Srinivas Kandagatla
2016-03-29 14:38 ` Bjorn Andersson
2016-03-29 15:02 ` Srinivas Kandagatla
2016-03-23 19:47 ` [PATCH 07/12] ARM: dts: dragonboard-600c: add usb support Srinivas Kandagatla
2016-03-29 14:39 ` Bjorn Andersson
2016-03-23 19:47 ` [PATCH 08/12] ARM: dts: dragonboard-600c: add pcie support Srinivas Kandagatla
2016-03-29 14:39 ` Bjorn Andersson
2016-03-23 19:47 ` [PATCH 09/12] ARM: dts: dragonboard-600c: add on board sata support Srinivas Kandagatla
2016-03-29 14:40 ` Bjorn Andersson
2016-03-23 19:48 ` [PATCH 10/12] ARM: dts: dragonboard-600c: Add on board leds support Srinivas Kandagatla
2016-03-24 16:51 ` Nicolas Dechesne
2016-03-29 13:30 ` Srinivas Kandagatla
2016-03-27 5:50 ` Bjorn Andersson
2016-03-29 14:20 ` Srinivas Kandagatla
2016-03-29 14:51 ` Bjorn Andersson
2016-03-29 18:32 ` Nicolas Dechesne
[not found] ` <CAP71WjwPQn8OuCy+8iuQpDrUW2baQ0qzaviLEDixVzTmUP_BTw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-03-29 21:10 ` Bjorn Andersson
2016-03-30 12:54 ` Rob Herring
2016-03-23 19:48 ` [PATCH 11/12] ARM: dts: dragonboard-600c: add i2c support Srinivas Kandagatla
2016-03-29 14:44 ` Bjorn Andersson
2016-03-29 15:02 ` Srinivas Kandagatla
2016-03-23 19:48 ` [PATCH 12/12] ARM: dts: dragonboard-600c: add spi support Srinivas Kandagatla
[not found] ` <1458762366-9233-1-git-send-email-srinivas.kandagatla-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-03-23 19:47 ` [PATCH 04/12] ARM: dts: dragonboard-600c: add board support with serial Srinivas Kandagatla
2016-03-23 20:07 ` Stephen Boyd
2016-03-23 20:30 ` Srinivas Kandagatla
[not found] ` <56F2FCD0.1000708-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-03-24 1:04 ` Bjorn Andersson
[not found] ` <CAOCOHw7TyzDf4jvAMChOFFEgsL4Z1+CcESLOuckT=Q7W9hQvCw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-03-24 1:48 ` Stephen Boyd
2016-03-24 12:49 ` Arnd Bergmann
2016-03-24 20:50 ` Nicolas Dechesne
2016-03-29 19:00 ` Stephen Boyd
2016-03-29 14:21 ` Bjorn Andersson
2016-03-29 14:54 ` [PATCH 00/12] ARM: dts: Add dragonboard-600c support Bjorn Andersson
2016-03-29 15:02 ` Srinivas Kandagatla
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=20160329143415.GH8929@tuxbot \
--to=bjorn.andersson@linaro.org \
--cc=andy.gross@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-soc@vger.kernel.org \
--cc=srinivas.kandagatla@linaro.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;
as well as URLs for NNTP newsgroup(s).