Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5239087yba; Wed, 8 May 2019 09:57:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+KDzrysAQVgJUc095LQtHSE1eq94WQ1oWU2xTo9kp4xlasFLK2ECftpd1TUBqR4RCgvgF X-Received: by 2002:a17:902:b092:: with SMTP id p18mr31584430plr.323.1557334641813; Wed, 08 May 2019 09:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557334641; cv=none; d=google.com; s=arc-20160816; b=jDP1EyDyjB8RFg9VB1a8WfrpDngnrY1JmEFf+oyLP6dTXQBqFfuyR5FcEviqM5eK/V sUkyy4dHHX4NylrRfdvY4afFq3pPKlEfi+/IraarnOhJ/IWq3pr8VyAEHuNJh9Lyc4NU KMZMyqSrBBrP+RtYujWR4F5dhakMPCs9k2jgHDl4oJY5RCg/7U08xbyZYk6YgZdFu2tT 23yrsHMxQ3mNNktLh5diFSElXNkAHR3H8+szsUL2/K7Ao8RY6q0+F7BjXF5rU7nTZH5Q mXxEr6uASzFomHz3aBP+vfX36Iz9pkLOOH1H7k4Bw3EWWsaqUdB6aQt55pY3nFyb+uhu JeQQ== 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=rryjEKnmXLSanss7IlocYKHWgRAPzviP483T/WAfnlk=; b=dzwZ4XUQnGV5gzYp+q9rFG7M84tIWla+zKV1nckdj4WMm9ECWJCQuUDgyqYiBvlWUZ EvRhIEX9eW2h0RbR28U4BGw6hUmS15riP/CGKRlYstXbMt8QwTuLikJAKIADr0hPcX3p MOCGIi8MuSxwPwcujg8OE+z2pkGuozB7X9yqLkgiztwzBFNV7QEOXTf5M3uAHkadZPXR wPG0mPilp+VzfkLcqwJNJSV81+PhMZ5/c5VtJcPt54HbQO6i9tVVPXWq1N3jTSSldPW8 M8RwWSeMJ+okVBmDCsmLHx7hqXBCvKXL0i32vjRfzID/UnUQY9uGmj0mGNxjSq89uvIh 1tww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k5zj7OpV; 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 x201si11717408pgx.381.2019.05.08.09.57.05; Wed, 08 May 2019 09:57:21 -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=k5zj7OpV; 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 S1728911AbfEHQyD (ORCPT + 99 others); Wed, 8 May 2019 12:54:03 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:39435 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728808AbfEHQxk (ORCPT ); Wed, 8 May 2019 12:53:40 -0400 Received: by mail-pg1-f193.google.com with SMTP id w22so9078377pgi.6 for ; Wed, 08 May 2019 09:53:40 -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=rryjEKnmXLSanss7IlocYKHWgRAPzviP483T/WAfnlk=; b=k5zj7OpVLHB6FkCHu5bgHvJmVAY2Fm5kbUxukWoHkbWSg7+NSTxwpn13m1tjSxlP2v WG0ewAXGS7GpfSwn3v5qlPMTCNpjytjEs9V2XtoBrLXxnUe7dELh0yhX6SpM2JOfY1tN O2NQ0JwnFAXxm22Z49KOLosW4T2IXbAsFu+swmsySIXs79e4vSCwAC73TdytrKUkczhF /2O4eSPaTNs40AfsWNfa50HjQrPrsVqrx3U9azCKmchBd6aV1FCr0KgzeHNpRHiWgzht QzVIb52x9ReAp+ro1VYtthU9hZs4pYtoBKvVN5pCwIlvZKRO51MIhD6C2Zc0aW2CZjrO eYtg== 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=rryjEKnmXLSanss7IlocYKHWgRAPzviP483T/WAfnlk=; b=uUMwcrkqhBFrHwFhzJb1pXVCxBRnxij909v2UHReGPqF766rxKWgyBGORfq9q5NfRl 6TCZ3FcSwDbgj5cArvaV8hBPc+i3cM3l1XJVG5BH/S3eVxvE5LDYrLSo1LXUF5iymEK1 Uhtsd/R/yd7n13zvUclev+OpgZJN/jD0+XnyqCjAbsN8Of27p4rL7qxSqm46zUUvgieJ 1K79UYYMYU7AHajlp6rXDEoob6SY/08lMw/1VaFEADHJGXFwKIxhCZnN2jfBdPxR5JQa GMrcFY0sJ1jtF684PUqu0duPPSnobV9KUuGguuXkemPpaeC0oNVTYxMzAg1X/nEVjFZn ulvA== X-Gm-Message-State: APjAAAWqE85TC+AM39WNJNUivKDERnNveJNhoWutonD5Hyq/RfQgJ9cF a04o6q+oUvaqYQJG/zroLz/r X-Received: by 2002:a63:a449:: with SMTP id c9mr2726591pgp.149.1557334419602; Wed, 08 May 2019 09:53:39 -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.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2019 09:53:38 -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 2/4] arm64: dts: bitmain: Add reset controller support for BM1880 SoC Date: Wed, 8 May 2019 22:23:17 +0530 Message-Id: <20190508165319.19822-3-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. This SoC has two reset controllers, each controlling reset lines of different peripherals. This commit also adds reset support to UART peripherals. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Philipp Zabel --- arch/arm64/boot/dts/bitmain/bm1880.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/bitmain/bm1880.dtsi b/arch/arm64/boot/dts/bitmain/bm1880.dtsi index fdfdc65d29ef..37ecb760a2d2 100644 --- a/arch/arm64/boot/dts/bitmain/bm1880.dtsi +++ b/arch/arm64/boot/dts/bitmain/bm1880.dtsi @@ -5,6 +5,7 @@ */ #include +#include / { compatible = "bitmain,bm1880"; @@ -92,6 +93,18 @@ compatible = "bitmain,bm1880-pinctrl"; reg = <0x50 0x4B0>; }; + + clk_rst: reset-controller@800 { + compatible = "bitmain,bm1880-reset"; + reg = <0x800 0x8>; + #reset-cells = <1>; + }; + + rst: reset-controller@C00 { + compatible = "bitmain,bm1880-reset"; + reg = <0xC00 0x8>; + #reset-cells = <1>; + }; }; uart0: serial@58018000 { @@ -100,6 +113,7 @@ interrupts = ; reg-shift = <2>; reg-io-width = <4>; + resets = <&rst BM1880_RST_UART0_1_CLK>; status = "disabled"; }; @@ -109,6 +123,7 @@ interrupts = ; reg-shift = <2>; reg-io-width = <4>; + resets = <&rst BM1880_RST_UART0_1_ACLK>; status = "disabled"; }; @@ -118,6 +133,7 @@ interrupts = ; reg-shift = <2>; reg-io-width = <4>; + resets = <&rst BM1880_RST_UART2_3_CLK>; status = "disabled"; }; @@ -127,6 +143,7 @@ interrupts = ; reg-shift = <2>; reg-io-width = <4>; + resets = <&rst BM1880_RST_UART2_3_ACLK>; status = "disabled"; }; }; -- 2.17.1