]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARC: [plat-hsdk]: enable creg-gpio controller
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Tue, 28 May 2019 09:40:52 +0000 (12:40 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Tue, 28 May 2019 17:06:42 +0000 (10:06 -0700)
HSDK SOC has CREG GPIO controller which can be used to control
SPI chip select lines.
Enable it in preparation of enabling SPI peripherals.

Acked-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/boot/dts/hsdk.dts
arch/arc/configs/hsdk_defconfig

index 6219b372e9c174598ed6636493777bdf8fe598ba..10fb512956aa82ba23b98d602ca79f66208e03dc 100644 (file)
@@ -241,6 +241,14 @@ mmc@a000 {
                        dma-coherent;
                };
 
+               creg_gpio: gpio@14b0 {
+                       compatible = "snps,creg-gpio-hsdk";
+                       reg = <0x14b0 0x4>;
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       ngpios = <2>;
+               };
+
                gpio: gpio@3000 {
                        compatible = "snps,dw-apb-gpio";
                        reg = <0x3000 0x20>;
index 0e5fd29ed238b5a4dc715a364bde2d9ee88edb58..0c4411f50948320bef1b91fb8ceddfc47938c94d 100644 (file)
@@ -49,6 +49,7 @@ CONFIG_SERIAL_OF_PLATFORM=y
 CONFIG_GPIOLIB=y
 CONFIG_GPIO_SYSFS=y
 CONFIG_GPIO_DWAPB=y
+CONFIG_GPIO_SNPS_CREG=y
 # CONFIG_HWMON is not set
 CONFIG_DRM=y
 # CONFIG_DRM_FBDEV_EMULATION is not set