diff options
author | Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> | 2018-10-23 08:09:19 -0400 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2018-11-12 13:38:27 -0500 |
commit | 4592f11e47a2b28562d6cfe165d5ea7495ff4dca (patch) | |
tree | 1561b4ca6b5006ff613cca715b5f011bef23092c | |
parent | afba5d157fe1f2e64bc3df46fe83841657ec8fdd (diff) |
ARC: [plat-hsdk] Enable DW APB GPIO support
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>
Acked-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
-rw-r--r-- | arch/arc/boot/dts/hsdk.dts | 15 | ||||
-rw-r--r-- | arch/arc/configs/hsdk_defconfig | 3 |
2 files changed, 18 insertions, 0 deletions
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 @@ | |||
222 | bus-width = <4>; | 222 | bus-width = <4>; |
223 | dma-coherent; | 223 | dma-coherent; |
224 | }; | 224 | }; |
225 | |||
226 | gpio: gpio@3000 { | ||
227 | compatible = "snps,dw-apb-gpio"; | ||
228 | reg = <0x3000 0x20>; | ||
229 | #address-cells = <1>; | ||
230 | #size-cells = <0>; | ||
231 | |||
232 | gpio_port_a: gpio-controller@0 { | ||
233 | compatible = "snps,dw-apb-gpio-port"; | ||
234 | gpio-controller; | ||
235 | #gpio-cells = <2>; | ||
236 | snps,nr-gpios = <24>; | ||
237 | reg = <0>; | ||
238 | }; | ||
239 | }; | ||
225 | }; | 240 | }; |
226 | 241 | ||
227 | memory@80000000 { | 242 | 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 | |||
45 | CONFIG_SERIAL_8250_DW=y | 45 | CONFIG_SERIAL_8250_DW=y |
46 | CONFIG_SERIAL_OF_PLATFORM=y | 46 | CONFIG_SERIAL_OF_PLATFORM=y |
47 | # CONFIG_HW_RANDOM is not set | 47 | # CONFIG_HW_RANDOM is not set |
48 | CONFIG_GPIOLIB=y | ||
49 | CONFIG_GPIO_SYSFS=y | ||
50 | CONFIG_GPIO_DWAPB=y | ||
48 | # CONFIG_HWMON is not set | 51 | # CONFIG_HWMON is not set |
49 | CONFIG_DRM=y | 52 | CONFIG_DRM=y |
50 | # CONFIG_DRM_FBDEV_EMULATION is not set | 53 | # CONFIG_DRM_FBDEV_EMULATION is not set |