From: Vineet Gupta <vineet.gupta1@synopsys.com>
To: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>,
<linux-snps-arc@lists.infradead.org>
Cc: <linux-kernel@vger.kernel.org>,
Alexey Brodkin <alexey.brodkin@synopsys.com>
Subject: Re: [PATCH] ARC: [plat-hsdk] Enable DW APB GPIO support
Date: Tue, 30 Oct 2018 10:25:34 -0700 [thread overview]
Message-ID: <0f3fcfcf-6a3d-1277-cee8-91f27f0a3c06@synopsys.com> (raw)
In-Reply-To: <20181023120919.11627-1-Eugeniy.Paltsev@synopsys.com>
On 10/23/18 5:09 AM, Eugeniy Paltsev wrote:
> Enable GPIO support on HSDK. HSDK SoC includes Synopsys
> DesignWare DW_apb_gpio IP with 24 GPIOs mapped onto port A.
>
> Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
@Alexey, u happy with this ?
-Vineet
> ---
> arch/arc/boot/dts/hsdk.dts | 15 +++++++++++++++
> arch/arc/configs/hsdk_defconfig | 3 +++
> 2 files changed, 18 insertions(+)
>
> diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts
> index ef149f59929a..43f17b51ee89 100644
> --- a/arch/arc/boot/dts/hsdk.dts
> +++ b/arch/arc/boot/dts/hsdk.dts
> @@ -222,6 +222,21 @@
> bus-width = <4>;
> dma-coherent;
> };
> +
> + gpio: gpio@3000 {
> + compatible = "snps,dw-apb-gpio";
> + reg = <0x3000 0x20>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + gpio_port_a: gpio-controller@0 {
> + compatible = "snps,dw-apb-gpio-port";
> + gpio-controller;
> + #gpio-cells = <2>;
> + snps,nr-gpios = <24>;
> + reg = <0>;
> + };
> + };
> };
>
> memory@80000000 {
> diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig
> index 1dec2b4bc5e6..eca10b8baea5 100644
> --- a/arch/arc/configs/hsdk_defconfig
> +++ b/arch/arc/configs/hsdk_defconfig
> @@ -45,6 +45,9 @@ CONFIG_SERIAL_8250_CONSOLE=y
> CONFIG_SERIAL_8250_DW=y
> CONFIG_SERIAL_OF_PLATFORM=y
> # CONFIG_HW_RANDOM is not set
> +CONFIG_GPIOLIB=y
> +CONFIG_GPIO_SYSFS=y
> +CONFIG_GPIO_DWAPB=y
> # CONFIG_HWMON is not set
> CONFIG_DRM=y
> # CONFIG_DRM_FBDEV_EMULATION is not set
>
next prev parent reply other threads:[~2018-10-30 17:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-23 12:09 Eugeniy Paltsev
2018-10-30 17:25 ` Vineet Gupta [this message]
2018-10-31 18:59 ` Alexey Brodkin
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=0f3fcfcf-6a3d-1277-cee8-91f27f0a3c06@synopsys.com \
--to=vineet.gupta1@synopsys.com \
--cc=Eugeniy.Paltsev@synopsys.com \
--cc=alexey.brodkin@synopsys.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-snps-arc@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®