Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4801372ybi; Tue, 28 May 2019 02:45:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjRsS5kxunRlMIgRXT/ND50BTqEr6PqSHXSot3lwlJCiZm6q5I6u38fR1OAWmq3sYEyoBa X-Received: by 2002:a17:90a:1951:: with SMTP id 17mr4525931pjh.79.1559036741100; Tue, 28 May 2019 02:45:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559036741; cv=none; d=google.com; s=arc-20160816; b=vXD1odx5o/0ArNRB+wGqUDKBvDUanbHYnN+o9LokqwiNkfzpUPQQDYiZUVZGlR47/0 s3ge+/QWtqq17qbaUVD8x5PRP3EQv2vB6Y4VVAMcRcxnD+EQry+yEIxib5lA+x1hB977 dwH5fuWeUn+pW72Fx3HEeIKX6YDxUusCIkYck7Ni/TYK/y8F+XgsfY5aslogOlNWqmPg HExVEkX/kc9Wb7QkMrpQ/VWZ6hkf+tUfitLgQutSJZBBMGyAUd/9xnlutfpLCjv82Wl1 JGCSRm2bemu20vyyLjY8dPHPFUKho8qDsT7EUPS5jNZBMQ2mq6I16CoKU/S54UP2Ubtf qqyg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=6BJtqY8MgfXASc7AiW0twHDvtmLKR0qVo0cixY9B4m0=; b=FOOSiW3bkjmqYf6qOXVpP+n87uQ38Lfab0ml8HhhDbgWxMvlrhQK45CFRwIXeUDxx1 tv1PmA8iWBLpzFYgj5MX+i/BwgH3opCVQnrXyFXNo2+C1ERH7U7d174An8QX1E0HGnvu 7p6X5LVEl7y+y6oooeqnQUcOFQRkpCXVKWMAieMVkqibbKDgZGVORMEuCVy5xAfLwndz q/ry/EVq7/eEX51kIEa9euHRGno3ofHCbwjakBuUIL64ER4DpiqutjcL0tu7c9yV+95d fTMgomzxGY42pg+gr4YLW3QA9hflDuIJ+h60q8voG+m9H0cG+SDh79z1skxUoAqYPkbU nWAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=JqvTk2uS; 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 b95si17698174plb.401.2019.05.28.02.45.25; Tue, 28 May 2019 02:45:41 -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=JqvTk2uS; 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 S1726400AbfE1JlQ (ORCPT + 99 others); Tue, 28 May 2019 05:41:16 -0400 Received: from smtprelay-out1.synopsys.com ([198.182.47.102]:39838 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726203AbfE1JlQ (ORCPT ); Tue, 28 May 2019 05:41:16 -0400 Received: from mailhost.synopsys.com (dc2-mailhost2.synopsys.com [10.12.135.162]) (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 D5D61C1DBA; Tue, 28 May 2019 09:41:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1559036484; bh=D731wz21YeITb5xPmWrEYvvhxG+m4OVL0X26qnGuol4=; h=From:To:Cc:Subject:Date:From; b=JqvTk2uSNMc3IlMREczO8QhAGmcQmdtNdaKnvNnTaT/Q7jAgKoqgC/vf4M5XjCIaX J5WHi0/I4pYBP8d9tjEoYDPIiwtepRVy4ZMG5hkRMZbJ5SZ05doYoSCvGGjIR9Sua5 3G8iNWZsZaUU1eDN/0sN8MUdnlsA9EUZgOw9M8xHqHArJ13HWQaAWd7k/PYkog51Mi fOKXj8Yae7hfys5Rem0wnXmNSAcvVYPF6B+/JGYJOwZwgV1F0I1QT0n+PLKafxq2BL 5DFTjMNk9nCpAWJvxVD/4K70CxCgENW793Y3LOQejVHfAeZGcr75fulqNkZSapq548 vmQkdFGK6CXkg== Received: from paltsev-e7480.internal.synopsys.com (unknown [10.121.8.58]) by mailhost.synopsys.com (Postfix) with ESMTP id CDF31A0093; Tue, 28 May 2019 09:41:11 +0000 (UTC) From: Eugeniy Paltsev To: linux-snps-arc@lists.infradead.org, Vineet Gupta Cc: linux-kernel@vger.kernel.org, Alexey Brodkin , Eugeniy Paltsev Subject: [PATCH] ARC: [plat-hsdk]: enable creg-gpio controller Date: Tue, 28 May 2019 12:40:52 +0300 Message-Id: <20190528094052.2393-1-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.21.0 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 SOC has CREG GPIO controller which can be used to control SPI chip select lines. Enable it in preparation of enabling SPI peripherals. Signed-off-by: Eugeniy Paltsev --- arch/arc/boot/dts/hsdk.dts | 8 ++++++++ arch/arc/configs/hsdk_defconfig | 1 + 2 files changed, 9 insertions(+) diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts index 7425bb0f2d1b..83e163e51b34 100644 --- a/arch/arc/boot/dts/hsdk.dts +++ b/arch/arc/boot/dts/hsdk.dts @@ -237,6 +237,14 @@ 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>; diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig index 0e5fd29ed238..0c4411f50948 100644 --- a/arch/arc/configs/hsdk_defconfig +++ b/arch/arc/configs/hsdk_defconfig @@ -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 -- 2.21.0