Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5236679yba; Wed, 8 May 2019 09:55:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3mYHL94Kzv4KB5nrwKQmUvroEGPOit4yMq216LaMJHsBwwVNn/e+Hbr3Yy4yK6PQos65o X-Received: by 2002:a62:160b:: with SMTP id 11mr50115996pfw.88.1557334503988; Wed, 08 May 2019 09:55:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557334503; cv=none; d=google.com; s=arc-20160816; b=Pwg+PByEP9MoUiJ1Nsq2P6PEmEPsdbbeH9fCk8MjOwGdHbRAgByp30L6IEEGrTBouU n2oOT7oW74OoUnlO6E7yKeM7L9eYNvTV2jThK6Ze/xPzVR6wuCejTaYTNrj7+xKlAtuz gzISuxiCjvDjeO5Yb5CqgDtQVT8fmBPCwwZTWKbZYYFp5DebueSKJzN7otYlzI7KGVNu K4HAdgjdSIVOBCfyYahaH6VBZ9dv24F3A+Y9kHt1yl6x9TpQnOpKy10HbKsuHjmtJBdR O3jLSL39eBPi/KgQY2Z0UMANQkfkJhh1H5fcVYUvgNXlPoZz+kFDUwFWUE96JN8CzoE0 qNWg== 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=vGDKTNjsKzMe4GW+UPOj5iNxo8t2mh5Da0jHvYPytGE=; b=Q2iQ/u0DU4UsaRDmrc1IVl+pGDDwE3eZX+2KYYpfdGrMMsGxmPLyqeLXynRK84uGyf SlqFWaq+rGAH4VuCSzTLdlZL4ns29OKBwqpy1SD/SPz3cXZ7FzaLiu1ZrPPOkfcSnVGY r0YR+gnxvDxT6DKXR7ahkQDMM2Zu7IXi0VArokfk6Ihv3W7uL0C9C3mpbhMN0OxLxgCm xSbKjMnLQAF3AlUu27NuklwPLRO1jIjhVWWN12+CrKjxFdsxR1QunXD8izG+LaQ0wOkD gHY3f74e4m9q2JGKjtQju85phpxWjKLCLPpr9H8f56tvEf8WlRxE3tc+lKVVOoZRmd4P FImw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BjEeDxFd; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n5si22492375plk.419.2019.05.08.09.54.48; Wed, 08 May 2019 09:55:03 -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=@linaro.org header.s=google header.b=BjEeDxFd; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728873AbfEHQxq (ORCPT + 99 others); Wed, 8 May 2019 12:53:46 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:37822 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728044AbfEHQxo (ORCPT ); Wed, 8 May 2019 12:53:44 -0400 Received: by mail-pg1-f193.google.com with SMTP id e6so10390863pgc.4 for ; Wed, 08 May 2019 09:53:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vGDKTNjsKzMe4GW+UPOj5iNxo8t2mh5Da0jHvYPytGE=; b=BjEeDxFdWZy8nozBsaPtww861WrWrBCsZoAi/U5uipNG4Uo2q1GEvIRpqNcnicgJCx v5ym3NhEtlfi63pFiS7ztgrkJh1Qa5QhuPWm4FzhRjpGEDu3mHQ4+OWXDnWWcbi88234 w0WY32M6Gpu7Ah33E64tivC1Vx3Wij1aJrpzksSD0/ZgoXEFbgZp4byZTv0FHfFsO03e QgVNZsTsJE5gP16LoNi3om57cDm75rYsh+AuZihwdnBAzNXk6wNYH6RhvIqP+2Y8+yR1 KrkPx/iUJ5iU+JHpxyOzvxLhGDJ+ssnIWhMYKYug5lVqMW1UB/URj6O3ZtHCd6Fe6/Mg DLdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vGDKTNjsKzMe4GW+UPOj5iNxo8t2mh5Da0jHvYPytGE=; b=e8nhW4jmsv6UodRvENzSfB01YlmHOptyfBZ9wlIacMSSTL26twZXUYVPHQ4ICF3RZ6 VWFBaHLdPbiJs5bUAshtyRpA3yIkR+qZS3FmW258lAeS/wteIfbpAas6UeLlnWiaJB+O hhT4J3QGZKWI5AQApmfveP9dsPrqRGPxHO0F9FHneteJS2Ca54ixZ10w8/iB5K2EhoBa z7WelUssh4veYS8libbtTIH/suqYfD0bkZKMuDIGfs2mfvoPp+04ggisdbm+913pl4Tf jGZRWkWGmaVPhJAEBZpC6onjhLI6t3knPgZCUv071fwkrtbkuZ3ta+/6WRmZM0A4uqgN pKZA== X-Gm-Message-State: APjAAAUDyIbaeeGd2iVqR5qWqqjzIaRj5aSsaV0CXZoDzHsVgYEO4Yl6 fzyrSR2HBhF4mlWOWK4ch7w1 X-Received: by 2002:a63:5516:: with SMTP id j22mr45483383pgb.370.1557334423962; Wed, 08 May 2019 09:53:43 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6000:7ab1:cd79:1ccc:df38:79c0]) by smtp.gmail.com with ESMTPSA id m2sm25180676pfi.24.2019.05.08.09.53.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2019 09:53:43 -0700 (PDT) From: Manivannan Sadhasivam To: p.zabel@pengutronix.de, robh+dt@kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, haitao.suo@bitmain.com, darren.tsao@bitmain.com, Manivannan Sadhasivam Subject: [PATCH v2 3/4] reset: Add reset controller support for BM1880 SoC Date: Wed, 8 May 2019 22:23:18 +0530 Message-Id: <20190508165319.19822-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190508165319.19822-1-manivannan.sadhasivam@linaro.org> References: <20190508165319.19822-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add reset controller support for Bitmain BM1880 SoC reusing the reset-simple driver. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Philipp Zabel --- drivers/reset/Kconfig | 3 ++- drivers/reset/reset-simple.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index 2c8c23db92fb..b25e8d139f0d 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 || ARCH_BITMAIN help This enables a simple reset controller driver for reset lines that that can be asserted and deasserted by toggling bits in a contiguous, @@ -129,6 +129,7 @@ config RESET_SIMPLE - RCC reset controller in STM32 MCUs - Allwinner SoCs - ZTE's zx2967 family + - Bitmain BM1880 SoC config RESET_STM32MP157 bool "STM32MP157 Reset Driver" if COMPILE_TEST diff --git a/drivers/reset/reset-simple.c b/drivers/reset/reset-simple.c index 77fbba3100c8..5e8c86470e6b 100644 --- a/drivers/reset/reset-simple.c +++ b/drivers/reset/reset-simple.c @@ -129,6 +129,8 @@ 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 = "bitmain,bm1880-reset", + .data = &reset_simple_active_low }, { /* sentinel */ }, }; -- 2.17.1