From patchwork Tue Feb 20 01:43:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 875365 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zlk1H2hGBz9s0b for ; Tue, 20 Feb 2018 12:44:03 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mhM3E6rm"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3zlk1G62sJzDsF3 for ; Tue, 20 Feb 2018 12:44:02 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mhM3E6rm"; dkim-atps=neutral X-Original-To: linux-aspeed@lists.ozlabs.org Delivered-To: linux-aspeed@lists.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400e:c05::243; helo=mail-pg0-x243.google.com; envelope-from=joel.stan@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mhM3E6rm"; dkim-atps=neutral Received: from mail-pg0-x243.google.com (mail-pg0-x243.google.com [IPv6:2607:f8b0:400e:c05::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3zlk1D1s9zzDrdy for ; Tue, 20 Feb 2018 12:44:00 +1100 (AEDT) Received: by mail-pg0-x243.google.com with SMTP id j9so6551953pgv.3 for ; Mon, 19 Feb 2018 17:44:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=SxY9XQ/4xcayrPVDvkefg7vHwtUEPzOWo6/07uOqU/0=; b=mhM3E6rmHBK+OIlcKtuTfdLYWt5ahTYtP/hSrZXGiethPoEyj2kYfCXYdVdhc0d5wF NZqzJqOrJtC9rGJQle228ZfggWb7Nke4I4TZR8PHktyG4Xej4/QvzaU5U2w9oARUdxpc baKaeLw6V9w6P7n5duLq1ie80uFtQmGX/yQTir4lf1ZSXjsjpW/bKef+4HXxB062gn6g lIJGsp+LFFwa2rA3ZBHOqxyztWxP3fb9fH3SnAR2ufqR+3rrb93+OD2dU0RCh0UChkUq zKWwzXyLZ0q8rsq05dkyhbnYjfzwow1pPXW5K2TTTWV38JwJe2frzG3Vb6G6CJo23gIs aNHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=SxY9XQ/4xcayrPVDvkefg7vHwtUEPzOWo6/07uOqU/0=; b=eRyM742iEev5w8uLkZTFoyjGYLpzNT1xPblUuXwKIZZkap4SpasKdHUIHQXzQRZyYl q4jug9C7yVUDu98IdDzZIhQlKjSzO4+Lt1t/GG6uJWkNfBTTob7kw2OpHmb0+C0Am8OF x+Mfj5voci43YMYr3d+NcWSvMGL5Lh7BP+fuL3Dzv0sOsBjqLXEO6s3VikzGPb/tsGBV amKBjfZhtWY1Qp6urcMVIy98z5xM4FgYapKUmhx7wBAjlq24Z+B0DxHczxNwf+HYT7Pa ehShkiLKoflHcNlU8aT1+PqqG7GnUePztLDIlq6oOrLBY2QTqhDBiKEygOzBS3CjDArB xrjA== X-Gm-Message-State: APf1xPCjNfOkZSijpRJtK/wAn3hUFB5cEF+DT1vGcylFmLO1NyxZUnFv O77eFR/UuUX35q+15rD7pWI= X-Google-Smtp-Source: AH8x227d5YFRaGyJRRJIRGK9u8xqz+vHcc9QWNO+EkxYvu095YUnjjqLsZX0kENk488ir4tpJKqoRA== X-Received: by 10.98.220.207 with SMTP id c76mr15773199pfl.159.1519091038323; Mon, 19 Feb 2018 17:43:58 -0800 (PST) Received: from aurora.jms.id.au ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id n25sm59008120pfk.152.2018.02.19.17.43.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Feb 2018 17:43:57 -0800 (PST) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Tue, 20 Feb 2018 12:13:50 +1030 From: Joel Stanley To: Rob Herring , Mark Rutland , Philipp Zabel , Andrew Jeffery Subject: [PATCH v2 2/3] reset: simple: Enable for ASPEED systems Date: Tue, 20 Feb 2018 12:13:29 +1030 Message-Id: <20180220014330.23425-3-joel@jms.id.au> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180220014330.23425-1-joel@jms.id.au> References: <20180220014330.23425-1-joel@jms.id.au> X-BeenThere: linux-aspeed@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux ASPEED SoC development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Lee Jones , linux-kernel@vger.kernel.org, linux-aspeed@lists.ozlabs.org Errors-To: linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Linux-aspeed" ASPEED BMC SoCs have a reset controller in the LPC IP that can be controlled using this driver to release the UARTs from reset. No special configuration is required, so only the compatible string is added. Signed-off-by: Joel Stanley --- drivers/reset/Kconfig | 10 +++++++--- drivers/reset/reset-simple.c | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index 7fc77696bb1e..18f152d251d7 100644 --- a/drivers/reset/Kconfig +++ b/drivers/reset/Kconfig @@ -83,14 +83,18 @@ config RESET_PISTACHIO config RESET_SIMPLE bool "Simple Reset Controller Driver" if COMPILE_TEST - default ARCH_SOCFPGA || ARCH_STM32 || ARCH_STRATIX10 || ARCH_SUNXI || ARCH_ZX + default ARCH_SOCFPGA || ARCH_STM32 || ARCH_STRATIX10 || ARCH_SUNXI || ARCH_ZX || ARCH_ASPEED help This enables a simple reset controller driver for reset lines that that can be asserted and deasserted by toggling bits in a contiguous, exclusive register space. - Currently this driver supports Altera SoCFPGAs, the RCC reset - controller in STM32 MCUs, Allwinner SoCs, and ZTE's zx2967 family. + Currently this driver supports: + - Altera SoCFPGAs + - ASPEED BMC SoCs + - RCC reset controller in STM32 MCUs + - Allwinner SoCs + - ZTE's zx2967 family config RESET_SUNXI bool "Allwinner SoCs Reset Driver" if COMPILE_TEST && !ARCH_SUNXI diff --git a/drivers/reset/reset-simple.c b/drivers/reset/reset-simple.c index 2d4f362ef025..f7ce8910a392 100644 --- a/drivers/reset/reset-simple.c +++ b/drivers/reset/reset-simple.c @@ -125,6 +125,8 @@ static const struct of_device_id reset_simple_dt_ids[] = { .data = &reset_simple_active_low }, { .compatible = "zte,zx296718-reset", .data = &reset_simple_active_low }, + { .compatible = "aspeed,ast2400-lpc-reset" }, + { .compatible = "aspeed,ast2500-lpc-reset" }, { /* sentinel */ }, };