Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8897598ybi; Tue, 23 Jul 2019 17:37:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQduJ/dGx2AY4qAvbE5OQ1pTxNv++CoEZHYHm9WESQ6WbehjkOfHQdrqj5UirmX4/xtkD3 X-Received: by 2002:aa7:86c6:: with SMTP id h6mr8571581pfo.51.1563928656828; Tue, 23 Jul 2019 17:37:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563928656; cv=none; d=google.com; s=arc-20160816; b=SACK/5SwbBD+SBJ0cRMZgkv9UaXMUlyaVDCkdqJJknRaD83zC4xrxsIXJ0ePMF//Sy aRf1bO+4uqAeqRiEdDFRO4CSbNFVZZOK4DDJld/SZBvPr79/PPrz0SDICEAyS9yNb3mQ 0moqwB32X3izimhZm54jc1A9xYxpENLp40nJT9+GnRxXheY8mKUD+PFKdPSFgMwO4UUP BmJ/fErwXXdQVBIdzVO3Bb61bat9CZnZdB+O/7QQDLPC4s4UCUrTFhIZgLZh2LT4Kgr5 y1uryf9SzUp6eK4GxTN90UHguuMfcjCpnt/PeuBJj0Z2ZyNyycmgrBlnNCt/WndCdPPw 2uMw== 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=r0ll1Z6QpzqNK+rtVIuA435HWbImszpdQyR5fFCWYfg=; b=P8VA5iY+W1MRTzDrUZDaJNl0yuVQbaWdeYj35Ly1eNddnxnNu0+HN//Lzh8w2RYYTz DqSqhL+sNW6GR/UJQgjN6BZ52EPKKGzlNhqsEUbsgicLmni6Wmo5fgTy1yLrdV512aRv MKoqwliJ6jZnxSqxeV9KbNj2qNY6jP99CXWe5TLtFet1Hbq1XmmPEol9JkPlgfp6F5h8 PWhOUZCqQO7JcYyYrrnfgHQEGAsRxB+tpLgZ7la6gXy1R638lenwL9KpuIEjp7L+z3NB cqvXrnXGURuv9g5ArSOgafuNalvW3TR64Xvdf3FRhHf/M+rlBMTJwdQbkJUterXRTdIb k6JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=iKGNUOra; 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 4si13501866pgo.198.2019.07.23.17.37.20; Tue, 23 Jul 2019 17:37:36 -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=iKGNUOra; 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 S1733282AbfGWPSn (ORCPT + 99 others); Tue, 23 Jul 2019 11:18:43 -0400 Received: from dc8-smtprelay2.synopsys.com ([198.182.47.102]:46546 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728591AbfGWPSl (ORCPT ); Tue, 23 Jul 2019 11:18:41 -0400 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (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 CCD4BC016E; Tue, 23 Jul 2019 15:18:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1563895121; bh=V99jsKPj9ZINSDZP4sTZylKQQLnXIujiCEwzh1g9t8Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iKGNUOrasZCMC9+kZKjpUHHUXke+tPvQieQ55MLYiS6aKqZFB41Q+Tnpgf14UWVqw 9dU7hF0ahnTkY9HtXJrnGZE7WN4fJI20YL8ljYXompnus8RDds9x21X/fV32oGnFw+ oSH8cTt7Evbv/A5nWjxh48VO+9bOufsYEwWOiADqBtWT/VWzT3IZbN4fUGENWVdeI9 xUI3NyB6pKW2NEvhkVo7ia2VF+ES4hKdODspgQ+ctV4iijTmmZtPBEdbGprii2YUXf MURuiMTR+T1PDvCYdLJNuSsSnyLqWEMuA+giYKIpBkAsgdfJSJP2xzD6xw7tmqyT9j NUn7RhH2+UofQ== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id 9B42FA0057; Tue, 23 Jul 2019 15:18:39 +0000 (UTC) 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: [RESEND V2 2/2] reset: Add DesignWare IP support to simple reset Date: Tue, 23 Jul 2019 17:17:28 +0200 Message-Id: <1563895048-30038-3-git-send-email-luis.oliveira@synopsys.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1563895048-30038-1-git-send-email-luis.oliveira@synopsys.com> References: <1563895048-30038-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 2c8c23d..2ee69f2 100644 --- a/drivers/reset/Kconfig +++ b/drivers/reset/Kconfig @@ -117,7 +117,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