From: Sekhar Nori <nsekhar@ti.com>
To: Adam Ford <aford173@gmail.com>, linux-arm-kernel@lists.infradead.org
Cc: mark.rutland@arm.com, devicetree@vger.kernel.org,
David Lechner <david@lechnology.com>,
khilman@kernel.org, linux@armlinux.org.uk, robh+dt@kernel.org
Subject: Re: [PATCH] ARM: dts: da850-evm: add WP and CD to MMC
Date: Mon, 2 Apr 2018 14:02:20 +0530 [thread overview]
Message-ID: <8dc9db0f-f5e8-42fc-d23c-662ee07714c2@ti.com> (raw)
In-Reply-To: <1522428754-28337-1-git-send-email-aford173@gmail.com>
Hi Adam,
On Friday 30 March 2018 10:22 PM, Adam Ford wrote:
> The legacy mode uses the write protect and card detect but DT
> has not. This patch enables the pinmuxing and detection for
> WP and CD.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
>
> diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts
> index c82368c..1030788 100644
> --- a/arch/arm/boot/dts/da850-evm.dts
> +++ b/arch/arm/boot/dts/da850-evm.dts
> @@ -42,6 +42,12 @@
> 0x04 0x00011000 0x000ff000
> >;
> };
> + mmc0_cd_wp_pins: pinmux_mmc0_cd_wp_pins {
> + pinctrl-single,bits = <
> + /* GP4[0], GP4[1]*/
> + 0x28 0x88000000 0xff000000
> + >;
> + };
A new mux node for GPIO pins should not be needed after David Lechner's
gpio-ranges support patch[1]. I should be applying that soon after
v4.17-rc1 is out and its dependencies merged. Can you please re-spin
this patch then to apply on top of that?
Thanks,
Sekhar
[1] https://patchwork.kernel.org/patch/10229153/
> nand_pins: nand_pins {
> pinctrl-single,bits = <
> /* EMA_WAIT[0], EMA_OE, EMA_WE, EMA_CS[4], EMA_CS[3] */
> @@ -106,7 +112,9 @@
> bus-width = <4>;
> status = "okay";
> pinctrl-names = "default";
> - pinctrl-0 = <&mmc0_pins>;
> + pinctrl-0 = <&mmc0_pins &mmc0_cd_wp_pins>;
> + cd-gpios = <&gpio 64 GPIO_ACTIVE_LOW>;
> + wp-gpios = <&gpio 65 GPIO_ACTIVE_HIGH>;
> };
> spi1: spi@30e000 {
> status = "okay";
> --
> 2.7.4
>
prev parent reply other threads:[~2018-04-02 8:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-30 16:52 [PATCH] ARM: dts: da850-evm: add WP and CD to MMC Adam Ford
2018-04-02 8:32 ` Sekhar Nori [this message]
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=8dc9db0f-f5e8-42fc-d23c-662ee07714c2@ti.com \
--to=nsekhar@ti.com \
--cc=aford173@gmail.com \
--cc=david@lechnology.com \
--cc=devicetree@vger.kernel.org \
--cc=khilman@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux@armlinux.org.uk \
--cc=mark.rutland@arm.com \
--cc=robh+dt@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;
as well as URLs for NNTP newsgroup(s).