From patchwork Fri May 10 18:45:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 163935 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp2743185ilr; Fri, 10 May 2019 11:46:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQeA7LNerYZtRxpkuzySquStmjdjOmjNMflHQB3Gd/DIshrv5UNztOxSgyydIuwM/ksOfs X-Received: by 2002:a63:2b96:: with SMTP id r144mr920406pgr.314.1557513963879; Fri, 10 May 2019 11:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557513963; cv=none; d=google.com; s=arc-20160816; b=G40u6YvGUO+9KA7Gis+/IjaIEte8nSDkYWHUr2PVzaB8xPeTGk+aFyzzP1yIVcXKRB K/B6KDF5+k56+E2KV2HKFO2vdhXKPiMPJ2c3ks5+EBJlEu0Tq//0ydNyXKG2Xm5np/Ii Fz2CrNcDtv8C4v5dpnFFso/TygaZDQrCMwWC7W1unkCUaADRndOYcKGpQ/n8GvnO/Xhi 5gej4zroY8BEWKok14oEAKwo9RKg4Ntex1EnTz23wDVI7c3kpA8gTAljVQug2Qcujoqy RCaPRBpUTQrjl+0apUiW+Vbv8+AGcjzM1b+rx6ES+hq8iQkseEqw2FIifzFv/NTa0xL1 JOrQ== 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=uzfaQP4GQG+KhX7GeGsW8DrhCnNgZY8UdLFsNIw6s3Ct+YAcbbJAiX0GHp4c6eYHPq OSuJBCkShcdTbwobO794Vt28VEv/QfFEG4gJVpfYUVuEBv1f6yVOsLYHnUGOFSnfbXFh RSeJuppwgQ/aw+DYXsODoJbQ5UwwRqOASk2zAcsLkVDK7392oHu4pxVDk464kp0dGDAn e67F2riE92pJU6ZJBdQO3vqc2rwG8ZXulpPpMJAy6fdKKRlarisWdbC3lVLtHhNz9Suf E0JWq5LP0H+yk8nGMswWcbG5oG99fN8Nfs18926UkNEcl8crefGbrsSxqaymt+272YC3 NJ+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p2Pip4Ll; 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 59si8572664plp.62.2019.05.10.11.46.03; Fri, 10 May 2019 11:46: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=p2Pip4Ll; 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 S1728069AbfEJSqC (ORCPT + 30 others); Fri, 10 May 2019 14:46:02 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:35569 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727908AbfEJSqC (ORCPT ); Fri, 10 May 2019 14:46:02 -0400 Received: by mail-pl1-f196.google.com with SMTP id g5so3230903plt.2 for ; Fri, 10 May 2019 11:46:01 -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=p2Pip4Ll9DSrmW0FfFYLYWffhVHDVwjr16LGT6u1ugr+3DzDArCr7Dx/6bhjjxfVoI KrK14jqo0hVo5aIzZ2qP+uyYKG3fOu9Gkx9eSnB8J4d8JOVzDlyHN5kz2Nt4EJIOUcY3 BxRdAO2iUVAprShO5MqiPm/mr/tscFe5kJ24dQ7JwVRdgWz2QaJszP337BuCuV0d0pHq 0zjeRkpt+VhW/IvdNuTDS1aKC3B/ymdq0wMEhTA7rsFpAJfOvPpm0qpHiH60+SPuUh+H 4z9NqpXEtqC27/xBNeairhhcWaaMl7Ak5FUGU8VlgnskRY4sYBsFI4z23STp1ywRPAvT ItMA== 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=e27yYDcO8f4S1fVdRs1Xa3F3MJHO1TlWsXQ//nsOK68tW6uW26lc/lbAMOoQgyBXYa 5diNlLrE3ZwuouAH2MKCgqY4noMLVFulif8Pas5pY5kolye9VqnXmMbNyQsjQPnGRuBg 1fpwvZHL2sAsWpSapKvYYy3wD1eaGqTC6s8Q/Q2g95FtlLkvfxI482gn7mBqqSxcTRPj eRa7TvlQ/o0Q+/bF7lvJcXN+3Jngdtyg6GjuJzNxImxzkmiTdM/8c3Yr9g/GRGePtBwz asHLdbk7yTgX2rkeWzywcqq3ldnMwIQLfaRUrkkG0RX4nNb2Q1mxaMXrK59J/MUZW8Q+ G+nw== X-Gm-Message-State: APjAAAVfxjHdVjr9KSCKFf430gLSf0iiguf7hIRKs68DHXhKbgT2zTk4 GF7Rwt+koCvtljH/OGYi8dSb X-Received: by 2002:a17:902:7d83:: with SMTP id a3mr15613197plm.305.1557513961387; Fri, 10 May 2019 11:46:01 -0700 (PDT) Received: from localhost.localdomain ([2405:204:73c1:9991:95b6:5055:2390:bf9b]) by smtp.gmail.com with ESMTPSA id g188sm8652049pfc.151.2019.05.10.11.45.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 May 2019 11:46:00 -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, alec.lin@bitmain.com, Manivannan Sadhasivam Subject: [PATCH v3 3/4] reset: Add reset controller support for BM1880 SoC Date: Sat, 11 May 2019 00:15:24 +0530 Message-Id: <20190510184525.13568-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190510184525.13568-1-manivannan.sadhasivam@linaro.org> References: <20190510184525.13568-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(-) -- 2.17.1 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 */ }, };