Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARC: [plat-hsdk]: enable DW SPI controller

HSDK SoC has DW SPI controller. Enable it in preparation of
enabling on-board 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>

authored by

Eugeniy Paltsev and committed by
Vineet Gupta
aab128d0 fd5de272

+17
+14
arch/arc/boot/dts/hsdk.dts
··· 8 8 */ 9 9 /dts-v1/; 10 10 11 + #include <dt-bindings/gpio/gpio.h> 11 12 #include <dt-bindings/reset/snps,hsdk-reset.h> 12 13 13 14 / { ··· 251 250 interrupts = <12>; 252 251 bus-width = <4>; 253 252 dma-coherent; 253 + }; 254 + 255 + spi0: spi@20000 { 256 + compatible = "snps,dw-apb-ssi"; 257 + reg = <0x20000 0x100>; 258 + #address-cells = <1>; 259 + #size-cells = <0>; 260 + interrupts = <16>; 261 + num-cs = <2>; 262 + reg-io-width = <4>; 263 + clocks = <&input_clk>; 264 + cs-gpios = <&creg_gpio 0 GPIO_ACTIVE_LOW>, 265 + <&creg_gpio 1 GPIO_ACTIVE_LOW>; 254 266 }; 255 267 256 268 creg_gpio: gpio@14b0 {
+3
arch/arc/configs/hsdk_defconfig
··· 46 46 CONFIG_SERIAL_8250_DW=y 47 47 CONFIG_SERIAL_OF_PLATFORM=y 48 48 # CONFIG_HW_RANDOM is not set 49 + CONFIG_SPI=y 50 + CONFIG_SPI_DESIGNWARE=y 51 + CONFIG_SPI_DW_MMIO=y 49 52 CONFIG_GPIOLIB=y 50 53 CONFIG_GPIO_SYSFS=y 51 54 CONFIG_GPIO_DWAPB=y