Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5377609yba; Mon, 13 May 2019 09:49:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqys0iRrZJ++EIj1VoasAIXBu+myjKn//XXHhe9XRkpbzTiAAY4+EsTOCGz/ETFf2K3rFhca X-Received: by 2002:a63:f44b:: with SMTP id p11mr31024170pgk.225.1557766172314; Mon, 13 May 2019 09:49:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557766172; cv=none; d=google.com; s=arc-20160816; b=ueZJqdLXQ9iAa+GRhc2PVkTPk3gb6Vx7R7cBNM7onE52uFVvcUPUIPRc22jWQGojFe ydXCeFEaZPTi1rJ1y939YwiEmK/NumGipC91eucAecdhuDGjRb3biVV4iP1yAqSFLpKj z4bv/ctkdr4kve3+8qZuOe8SbvALp68I8/HkKKPwlHyPul/5HWeR+Zi9N6TbcUqUzo3Y mj0efcxAHJx1cvMD8CfWnjBwjfgxfHZcPF9t7pobZFIkCkE4jnVncfaL+NuNuyP36MlM rvZcswUKFYxXJ4ZFoSUy0UhibCIcA1WlGgJQH9wAXjIOER0iYFBR7G/bpYPiVzyBX3SZ 5+9A== 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:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=IWTIiCCqIgaJeQ5uZXcaYk458dIbE/WYNssWld1Tmf4=; b=k55ww1amWzxGnKAP7NqGP4SeKng69x7wYhzOMUa5/l+gMOgHefv74S5DBW9KgqwvuY pySZdsS/sccBKgvMOg1P5FYn0j0qZsj84sKjxm658wgroYVpXpGESFKR7a/2KWP/rmcq +pMESLy5xeAnqKiFIz4nc6XGYez23z1PRkQx5nNt63hjYeToatcfISD5X42z7b+AG44J +DSKJXEdEq2Dl858asnN6fujpgtXmzzC7c1rW6XQfgmeWD7sSuR4x5xEYugu1jxhHZR7 p5iW2rsIPW/EJyTGBNn2uKKmxuxve/0wTF94nWAx+o61XlnY3QIIBBgDSAx7hynT8Qs8 ex4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=GGrI9Wv4; 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 k186si21138169pfc.189.2019.05.13.09.49.16; Mon, 13 May 2019 09:49:32 -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=GGrI9Wv4; 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 S1731405AbfEMPle (ORCPT + 99 others); Mon, 13 May 2019 11:41:34 -0400 Received: from smtprelay-out1.synopsys.com ([198.182.47.102]:41274 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728459AbfEMPle (ORCPT ); Mon, 13 May 2019 11:41:34 -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 3EA40C01E9; Mon, 13 May 2019 15:41:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1557762098; bh=OxOanAp/g8NXx8Bi7pDKdees/WbGwt+8vXduKshOfkA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=GGrI9Wv41G31vKgTVTJlhHO2WUNcWeKrV79YAoUNGB2XgvcTJ5h7ryOEorUGgW+oe bZgFK2v1j1wVAKz2033RAeJuvzonqofZvPjsNGLYJvS+EQRNVqIvN9Ha+WMOf4u3TX T7VyiWhJmUoTo/ci98rHOqz4Wc9go55Oo2UXDYjP0FRMRl16qhF2J2vtq6sYgPhaf7 XAoc8E95hFSEzJXCoACqqlUjNwJ6Z+//E1HYSGvbjN0HmMisJAbRVD5PPd/0mjjqQK w4hIij79v0YbeeO8abfJC1AhyBCdl38apoV9zl373uQRWBgnZWGsF5YfTOqfvhR11v HnGzVwE3n3B0g== Received: from de02.synopsys.com (de02.internal.synopsys.com [10.225.17.21]) by mailhost.synopsys.com (Postfix) with ESMTP id BB723A009F; Mon, 13 May 2019 15:41:32 +0000 (UTC) Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by de02.synopsys.com (Postfix) with ESMTP id E50DA3F922; Mon, 13 May 2019 17:41:31 +0200 (CEST) From: Gustavo Pimentel 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 1/2] reset: Add DesignWare IP support to simple reset Date: Mon, 13 May 2019 17:41:27 +0200 Message-Id: <1928cabd16a83f1dfdbadc17f302339f00e93ef8.1557759340.git.gustavo.pimentel@synopsys.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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