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

ARC: [plat-hsdk]: Enable on-boardi SPI ADC IC

HSDK board has adc108s102 SPI ADC IC installed, enable it.

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
ab563bf5 8ca8fa7f

+19
+15
arch/arc/boot/dts/hsdk.dts
··· 65 65 clock-frequency = <33333333>; 66 66 }; 67 67 68 + reg_5v0: regulator-5v0 { 69 + compatible = "regulator-fixed"; 70 + 71 + regulator-name = "5v0-supply"; 72 + regulator-min-microvolt = <5000000>; 73 + regulator-max-microvolt = <5000000>; 74 + }; 75 + 68 76 cpu_intc: cpu-interrupt-controller { 69 77 compatible = "snps,archs-intc"; 70 78 interrupt-controller; ··· 279 271 #address-cells = <1>; 280 272 #size-cells = <1>; 281 273 spi-max-frequency = <4000000>; 274 + }; 275 + 276 + adc@1 { 277 + compatible = "ti,adc108s102"; 278 + reg = <1>; 279 + vref-supply = <&reg_5v0>; 280 + spi-max-frequency = <1000000>; 282 281 }; 283 282 }; 284 283
+4
arch/arc/configs/hsdk_defconfig
··· 57 57 CONFIG_GPIO_DWAPB=y 58 58 CONFIG_GPIO_SNPS_CREG=y 59 59 # CONFIG_HWMON is not set 60 + CONFIG_REGULATOR=y 61 + CONFIG_REGULATOR_FIXED_VOLTAGE=y 60 62 CONFIG_DRM=y 61 63 # CONFIG_DRM_FBDEV_EMULATION is not set 62 64 CONFIG_DRM_UDL=y ··· 76 74 CONFIG_MMC_DW=y 77 75 CONFIG_DMADEVICES=y 78 76 CONFIG_DW_AXI_DMAC=y 77 + CONFIG_IIO=y 78 + CONFIG_TI_ADC108S102=y 79 79 CONFIG_EXT3_FS=y 80 80 CONFIG_VFAT_FS=y 81 81 CONFIG_TMPFS=y