Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1732607ybg; Sat, 19 Oct 2019 01:18:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrqcfVVG7BtpIpXBhYZnxjgOkcnQU7XD3CkJLsJIdwAazUzdRnFci7Weu7IkOoLIUSjj7L X-Received: by 2002:a05:6402:21c7:: with SMTP id bi7mr14043305edb.205.1571473113787; Sat, 19 Oct 2019 01:18:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571473113; cv=none; d=google.com; s=arc-20160816; b=yynNkBS3W+X/Uyp8E/uCHJ5HNMtL6DFjPJuEd024G0P8SzMYbKrOu2hPxn8PG8DGuh KnHrXBIT1T7hi+bormGNXASn1KNXaKErQqNSshqhM2ZHnVEDPWIL3k/BOXZ6zNT/6NUm KcryVlVvGrB9lj6sDSxzkA+xZe7WDiF3EKV4wpXVBYbxAztM7TzxCaOz5Sh96RaQ9Dj+ hHBdB6hIKJDqNZLPUDpfGydQPZxcXz2IPSJlC7aI9atCI3bakTVjoJIpEecMR8B+eb16 F4W54mJiJ64XTfqnEPdigrnfItSL4mIdrUO73mUKGobFDFs+um7LCFd7r4BaJ7XhagXo kvVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1k1E4rvLBEY5XLAUTc+NBjynxJvrwTdlObYBg36sxIo=; b=OARLEtlnYsKJWsrWs2920osCBa9/MAxP6k0HffBenhhlN6Nac9lTewVXoqmH46+HDX 3pUfD/+z4hvqmF79HuaD2ut11rT2WZu4UQ39GWFNXjBSUAM0NtK+5hBLLjgJj1N+TIud YQSjyFxQOjaXP1cQMoeutFW7HcyUOSP3LqjNORJJl3ZbJkLxFLdEsEGLVdkPDCLWQ/4a XudR7KPYj1dYbJ7+5UwwjnQoGthXauEYB5jYFn8+c15ZYT0VWhxSLDde8fe54lZn63lh DlKwyB02mRMVhW+BRqqN3w8NUcrQDTQjfDbgWYj2tZh767lp+VUhnzktt1+OC+X5Pr0R yJgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=Ze1abby5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l22si4738164ejr.149.2019.10.19.01.18.10; Sat, 19 Oct 2019 01:18:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=Ze1abby5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409940AbfJRLLd (ORCPT + 99 others); Fri, 18 Oct 2019 07:11:33 -0400 Received: from dc8-smtprelay2.synopsys.com ([198.182.47.102]:58114 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2409922AbfJRLLc (ORCPT ); Fri, 18 Oct 2019 07:11:32 -0400 Received: from mailhost.synopsys.com (mdc-mailhost2.synopsys.com [10.225.0.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 71A4CC0488; Fri, 18 Oct 2019 11:11:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1571397092; bh=HJga7B0ouM1COkEsJgMK2mlF5wYeXphpoMGtMGta1RQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ze1abby512NWxvUqRr6h+4NwB+YQyfrZpiGDyBUm+7vNoM/qQg3Tnf8Ch488M8u82 rPWMyRMHnS0sl9NEWv1tEMJ2dJ+w2Kz83bKqg2zcMmzvuVHb10wqIz2kOi/FlOefzn FlfUDPlFirXImYNcG/s5R54NKx1vkg0dgPY+vODUdzlNnnDL46dDw8hpio/OfS6acm 2iqW1LBD4UVrPXX6pFZAf8n85YygkBHLQN3rS2z7c5pKh0NVs8vZpW4RRoxaBWGGP7 e6bOB9VWknheqoMIU2YBwAnU39+9L6x9008DWbwZSR4+A+Hln5Ig7U8YhcQlZf6351 fuD7h1O9e5CeA== Received: from paltsev-e7480.internal.synopsys.com (paltsev-e7480.internal.synopsys.com [10.121.3.73]) by mailhost.synopsys.com (Postfix) with ESMTP id AAB22A0065; Fri, 18 Oct 2019 11:11:30 +0000 (UTC) From: Eugeniy Paltsev To: linux-snps-arc@lists.infradead.org, Vineet Gupta Cc: linux-kernel@vger.kernel.org, Alexey Brodkin , Rob Herring , devicetree@vger.kernel.org, Eugeniy Paltsev Subject: [PATCH 2/2] ARC: [plat-hsdk]: Enable on-boardi SPI ADC IC Date: Fri, 18 Oct 2019 14:11:26 +0300 Message-Id: <20191018111126.5246-3-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191018111126.5246-1-Eugeniy.Paltsev@synopsys.com> References: <20191018111126.5246-1-Eugeniy.Paltsev@synopsys.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HSDK board has adc108s102 SPI ADC IC installed, enable it. Signed-off-by: Eugeniy Paltsev --- arch/arc/boot/dts/hsdk.dts | 15 +++++++++++++++ arch/arc/configs/hsdk_defconfig | 4 ++++ 2 files changed, 19 insertions(+) diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts index 9bea5daadd23..9acbeba832c0 100644 --- a/arch/arc/boot/dts/hsdk.dts +++ b/arch/arc/boot/dts/hsdk.dts @@ -65,6 +65,14 @@ clock-frequency = <33333333>; }; + reg_5v0: regulator-5v0 { + compatible = "regulator-fixed"; + + regulator-name = "5v0-supply"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; + cpu_intc: cpu-interrupt-controller { compatible = "snps,archs-intc"; interrupt-controller; @@ -272,6 +280,13 @@ #size-cells = <1>; spi-max-frequency = <4000000>; }; + + adc@1 { + compatible = "ti,adc108s102"; + reg = <1>; + vref-supply = <®_5v0>; + spi-max-frequency = <1000000>; + }; }; creg_gpio: gpio@14b0 { diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig index 22fc70396a3b..0974226fab55 100644 --- a/arch/arc/configs/hsdk_defconfig +++ b/arch/arc/configs/hsdk_defconfig @@ -57,6 +57,8 @@ CONFIG_GPIO_SYSFS=y CONFIG_GPIO_DWAPB=y CONFIG_GPIO_SNPS_CREG=y # CONFIG_HWMON is not set +CONFIG_REGULATOR=y +CONFIG_REGULATOR_FIXED_VOLTAGE=y CONFIG_DRM=y # CONFIG_DRM_FBDEV_EMULATION is not set CONFIG_DRM_UDL=y @@ -74,6 +76,8 @@ CONFIG_MMC_SDHCI_PLTFM=y CONFIG_MMC_DW=y CONFIG_DMADEVICES=y CONFIG_DW_AXI_DMAC=y +CONFIG_IIO=y +CONFIG_TI_ADC108S102=y CONFIG_EXT3_FS=y CONFIG_VFAT_FS=y CONFIG_TMPFS=y -- 2.21.0