Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8453410ybi; Thu, 6 Jun 2019 12:34:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/VKr/FaaLFlgbwdcKDBoBxw+xROPZ+vRdA80MFpDLoWi0QLsBqK11CV+GenDWAIoILU4l X-Received: by 2002:a17:902:2d:: with SMTP id 42mr51971318pla.34.1559849681613; Thu, 06 Jun 2019 12:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559849681; cv=none; d=google.com; s=arc-20160816; b=E4HVX7A04yBthg3HPkZT1zkcMU1Tl1xQ0n4jffD7jXgef8XUB5LJkKpynKJH/9mW2M o+smhBG6qWz4ty9op3ckU3HbcqWW4hrerIUarRF6bocOFzI+XhF9j34fqiIeCQxoY7Y6 FZrdR2QnaTUKJOUctlGRqFaS+e3yLIrQUKOfOvH1PjGJZFi62bCrWLV3zdkiWnMMksbV HtXDyVTPFlJgtzw9ZA54zSr/6iX3lD7oOKnX1LJksZhJD6p45011L+lu0oUKPeP2JhNP Z5LFrdPD/u8HV/ts+QW+gQEiNUzpwM7xJy3zIadnIbTvQJE/p1qFjyypMca+UGhidoWx NsTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=A49ECUFL25qgG5L0iZtco8OknuzbPoWZVAZI+ceStME=; b=Snzpnlzk6O97k5Pd5/jCmj4RMQlHYRX0/kem3RobIBU9d6I0c1C0ru/JstCUv/Ukcm SbhxmF1T9LV54hUot5PmsjqoAAh2faEzVjze3hEa5qUhnOgof6JOxGSNNXImlEFzACVg YsTHsusE1Al5DuniRa16I3tbXfbKQM5p0LP5sdBZRj5N8NVQSTU8yy/ZuuZ+HdXmRQNm 1j0wOYZ+gX3Hi1PYXhxqro9gMZ4PD3ijqKbNGKb6DotWLF9WySGby922azOyYhldZwOk YXsMbZfoUnvSzZYD3AkMLkPLEb/u5+JqC9EaMMtf5+whj07kLjRFfgufU3Yk3ltSyPiB 2rGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=WwN1QI01; 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 f193si2854204pgc.144.2019.06.06.12.34.24; Thu, 06 Jun 2019 12:34: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=WwN1QI01; 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 S1729441AbfFFPhJ (ORCPT + 99 others); Thu, 6 Jun 2019 11:37:09 -0400 Received: from smtprelay-out1.synopsys.com ([198.182.47.102]:41252 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728871AbfFFPhH (ORCPT ); Thu, 6 Jun 2019 11:37:07 -0400 Received: from mailhost.synopsys.com (unknown [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 4CA32C0B7D; Thu, 6 Jun 2019 15:37:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1559835438; bh=7GB4v+Viwpyg1QsfezOTpg30VWWaMej3TpuKytixbUs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WwN1QI01kdmP7Sp0ohR1901FTOp+cG240dugDp+qyx0m2cBfggEJYp5BONvjakE1c cZIrDxHKri8t0ms8/IMk+L9AfYGs6Afj/wk1gKeKgaH15bXpWKaYzncxyQsLh2bdCu WCJk5NllIxOvc75sJjAo3kpcNR/32lUGOScr8K0Ikf7SS5Waogk3fw41oLXJJvpVkv /lAM3s31PvJb51UXNYbD1b2HfVYjtPpGHI3X6QzTobD7hH5SUZmAN0xkjJJNU7ehXv Pui0lgxVQl0XY5HGr0qrAnfZ/pWKA/f7nOFZzMNlrOKnF2uzMXik83DJjuC9RMiFJG 9yVTdDjqGqc+g== Received: from de02.synopsys.com (de02.internal.synopsys.com [10.225.17.21]) by mailhost.synopsys.com (Postfix) with ESMTP id 2C25BA022E; Thu, 6 Jun 2019 15:37:06 +0000 (UTC) Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by de02.synopsys.com (Postfix) with ESMTP id 1803F3F1FF; Thu, 6 Jun 2019 17:37:06 +0200 (CEST) From: Luis Oliveira To: p.zabel@pengutronix.de, robh+dt@kernel.org, mark.rutland@arm.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Joao.Pinto@synopsys.com, Gustavo Pimentel , Luis Oliveira Subject: [PATCH V2 1/2] reset: Add DesignWare IP support to simple reset Date: Thu, 6 Jun 2019 17:36:27 +0200 Message-Id: <1559835388-2578-2-git-send-email-luis.oliveira@synopsys.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1559835388-2578-1-git-send-email-luis.oliveira@synopsys.com> References: <1559835388-2578-1-git-send-email-luis.oliveira@synopsys.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gustavo Pimentel The reset-simple driver can be now used on DesignWare IPs by default by selecting the following compatible strings: - snps,dw-high-reset for active high resets inputs - snps,dw-low-reset for active low resets inputs Signed-off-by: Gustavo Pimentel Signed-off-by: Luis Oliveira --- Changelog - no changes drivers/reset/Kconfig | 2 +- drivers/reset/reset-simple.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index d506d32..ac85fd2 100644 --- a/drivers/reset/Kconfig +++ b/drivers/reset/Kconfig @@ -118,7 +118,7 @@ config RESET_QCOM_PDC config RESET_SIMPLE bool "Simple Reset Controller Driver" if COMPILE_TEST - default ARCH_STM32 || ARCH_STRATIX10 || ARCH_SUNXI || ARCH_ZX || ARCH_ASPEED + default ARCH_STM32 || ARCH_STRATIX10 || ARCH_SUNXI || ARCH_ZX || ARCH_ASPEED || ARC help This enables a simple reset controller driver for reset lines that that can be asserted and deasserted by toggling bits in a contiguous, diff --git a/drivers/reset/reset-simple.c b/drivers/reset/reset-simple.c index 77fbba3..79e73be 100644 --- a/drivers/reset/reset-simple.c +++ b/drivers/reset/reset-simple.c @@ -129,6 +129,9 @@ static const struct of_device_id reset_simple_dt_ids[] = { .data = &reset_simple_active_low }, { .compatible = "aspeed,ast2400-lpc-reset" }, { .compatible = "aspeed,ast2500-lpc-reset" }, + { .compatible = "snps,dw-high-reset" }, + { .compatible = "snps,dw-low-reset", + .data = &reset_simple_active_low }, { /* sentinel */ }, }; -- 2.7.4