Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp255545pxb; Wed, 6 Oct 2021 04:27:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeV257zQKpvqaztWGExV2BBqjJl+T68DgXfvY6PHRr7UPb+/bUuhM/2PEu5RicUFl275gD X-Received: by 2002:a17:90a:2902:: with SMTP id g2mr10326414pjd.161.1633519645142; Wed, 06 Oct 2021 04:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633519645; cv=none; d=google.com; s=arc-20160816; b=dFPewt5rGuuMOLpQNxgYDrfiIMh+9RMgUhjSc4bz428awBzM+wjVIasYe3zJaF7sI6 lH/gEtzlntv18N0LD02QFZ0jZ5+9Fi/OzbB2uW33llTXtFH300iKhV6gyvNFbFBliIHZ vhdI/Z8DYMUrkpXO/nh0/Tb6u3VhC0XAm8IkI08YTr8l6uSqaST0xvEtFHfBJKZ9J6He m2iZoGRPeQid+yAD4hoTNe1vUwa+QxohD6nIkfk8XCqCh5NC+RejEgWg1cjHbpk4NwGN nQWrYLgjSwk0wdkoV0QY7JTaa6OZwsvbHlbhTBD+ptUlfpDgdCwoojo0DebKTt+IldFZ CqDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ffRV1lgCZH4SUcwisTjt7KS+V4NY1XyWgQczanLiSKI=; b=xfrT4RBPBq3d1Ya/DRm6aRJkJdzlOueQ+cDn4DAHugmPuySdKOea12epR6TWVNZKqK 0sIKOjtFj7vX90pbajT/UMvB28Uyp+zuMuY4X/Rc3PNbBtElD7/wEmQsl2JdeuKb7OZ3 v5cpoKNOt3Fcm+YJ3zN/+/XkRSEk2eSwL06DqKgtauZQ2iwV7oP0BnvBpAZg5MrYZa6I TlRtsDw7GWaedEp4pk+9pC9fNSqvaU03hFgKvx8eZhtEz2dZfT2MSqu6wDSjd+swFiEJ 7AwJVI4VqLdnL0qMgFmUiILF7fv5h1b09WKPxtIfEYR6HzvfxSzZNjDHnOgVRJXfzDP3 zJXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="AmO/WdSr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i1si11870603plt.97.2021.10.06.04.27.12; Wed, 06 Oct 2021 04:27:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="AmO/WdSr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238610AbhJFLZ0 (ORCPT + 99 others); Wed, 6 Oct 2021 07:25:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238387AbhJFLZF (ORCPT ); Wed, 6 Oct 2021 07:25:05 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DC94C06174E; Wed, 6 Oct 2021 04:23:13 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id o20so7760971wro.3; Wed, 06 Oct 2021 04:23:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ffRV1lgCZH4SUcwisTjt7KS+V4NY1XyWgQczanLiSKI=; b=AmO/WdSrVVzmz3eIuRFZdU6tZOPf6qAcPLEIznqiulf/Dc+r9+9GMsBc4J97s54N0B 2vnRSQtGx8ul5J7YfgVz53mFmMcbkdfQIM3wn/rtJ60nBjgTFOsQ7arVAe/Dk8QmHB/4 ox6ToBZIBm2pTvIR3uBxM1+mVhOb9W1dHS56XHwOaT3i0Y/ln2PEY+fA3iB41tsLctXA 7zkm+dU0GMBgssQLHXyYfT9nP7WortWEUuFPlsT+6JhzKS+gnnaQSym818qCMMqobTdK bR0NTjywDvjtNMLN0/OtkKmobwikgYGXEdgDEJpbK4FRE2QE5hLE2D1++WFZJoVyzvG8 YeSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ffRV1lgCZH4SUcwisTjt7KS+V4NY1XyWgQczanLiSKI=; b=aERg8/pDMamwYqMsCDJZA+jaTzLk3JXtJqxyTf9qM14qCsqDM/pcqq/pVPSwFlgl0N zKPrNy5PSsXAvPPkSzPKReKSuvxQtj1Pim0Tc/GMeYSjZpR1esy1BQOkHjMOWVCBSITa 0QE3uQKhBLvw4sH25bwRDYxtEcDluWmEuWgP7813e2AIASD/gH9nzD3hFezDVDmVE436 ntCy5FFPpDumuXEZEY8iKDqzxUIUBL78mjaY0iUG0B34kbN2GMY0T1hDT57s7dU/RPlA PCQK24iCRl2k8+JQqo9dg4t/HZaYH+TmVrgKEMJiaISUQHOVCdEjrNO2u/xpG4ub3Dm2 WGGA== X-Gm-Message-State: AOAM532EnbAgyfZww5pB9qv4C1K1J1jqULFCtyEk7hTdRoeKAD1DgV2P d5CAjJqx0YhvOA4zpgeptH8= X-Received: by 2002:a1c:1dcb:: with SMTP id d194mr8868510wmd.161.1633519391730; Wed, 06 Oct 2021 04:23:11 -0700 (PDT) Received: from localhost.localdomain (252.red-83-54-181.dynamicip.rima-tde.net. [83.54.181.252]) by smtp.gmail.com with ESMTPSA id e14sm10801985wrw.33.2021.10.06.04.23.10 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Oct 2021 04:23:11 -0700 (PDT) From: Sergio Paracuellos To: sboyd@kernel.org Cc: linux-clk@vger.kernel.org, gregkh@linuxfoundation.org, devicetree@vger.kernel.org, robh+dt@kernel.org, linux-staging@lists.linux.dev, neil@brown.name, linux-kernel@vger.kernel.org, john@phrozen.org Subject: [PATCH v2 4/4] staging: mt7621-dts: align resets with binding documentation Date: Wed, 6 Oct 2021 13:23:06 +0200 Message-Id: <20211006112306.4691-5-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211006112306.4691-1-sergio.paracuellos@gmail.com> References: <20211006112306.4691-1-sergio.paracuellos@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Binding documentation for compatible 'mediatek,mt7621-sysc' has been updated to be used as a reset provider. Align reset related bits and system controller node with binding documentation along the dtsi file. Signed-off-by: Sergio Paracuellos --- drivers/staging/mt7621-dts/mt7621.dtsi | 27 ++++++++++++-------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/drivers/staging/mt7621-dts/mt7621.dtsi b/drivers/staging/mt7621-dts/mt7621.dtsi index 719ef28171f4..72b99d8b4647 100644 --- a/drivers/staging/mt7621-dts/mt7621.dtsi +++ b/drivers/staging/mt7621-dts/mt7621.dtsi @@ -1,6 +1,7 @@ #include #include #include +#include / { #address-cells = <1>; @@ -59,6 +60,7 @@ sysc: syscon@0 { compatible = "mediatek,mt7621-sysc", "syscon"; reg = <0x0 0x100>; #clock-cells = <1>; + #reset-cells = <1>; ralink,memctl = <&memc>; clock-output-names = "xtal", "cpu", "bus", "50m", "125m", "150m", @@ -88,7 +90,7 @@ i2c: i2c@900 { clocks = <&sysc MT7621_CLK_I2C>; clock-names = "i2c"; - resets = <&rstctrl 16>; + resets = <&sysc MT7621_RST_I2C>; reset-names = "i2c"; #address-cells = <1>; @@ -106,7 +108,7 @@ i2s: i2s@a00 { clocks = <&sysc MT7621_CLK_I2S>; clock-names = "i2s"; - resets = <&rstctrl 17>; + resets = <&sysc MT7621_RST_I2S>; reset-names = "i2s"; interrupt-parent = <&gic>; @@ -151,7 +153,7 @@ spi0: spi@b00 { clocks = <&sysc MT7621_CLK_SPI>; clock-names = "spi"; - resets = <&rstctrl 18>; + resets = <&sysc MT7621_RST_SPI>; reset-names = "spi"; #address-cells = <1>; @@ -167,7 +169,7 @@ gdma: gdma@2800 { clocks = <&sysc MT7621_CLK_GDMA>; clock-names = "gdma"; - resets = <&rstctrl 14>; + resets = <&sysc MT7621_RST_GDMA>; reset-names = "dma"; interrupt-parent = <&gic>; @@ -186,7 +188,7 @@ hsdma: hsdma@7000 { clocks = <&sysc MT7621_CLK_HSDMA>; clock-names = "hsdma"; - resets = <&rstctrl 5>; + resets = <&sysc MT7621_RST_HSDMA>; reset-names = "hsdma"; interrupt-parent = <&gic>; @@ -286,11 +288,6 @@ pinmux { }; }; - rstctrl: rstctrl { - compatible = "ralink,rt2880-reset"; - #reset-cells = <1>; - }; - sdhci: sdhci@1E130000 { status = "disabled"; @@ -383,7 +380,7 @@ ethernet: ethernet@1e100000 { #address-cells = <1>; #size-cells = <0>; - resets = <&rstctrl 6 &rstctrl 23>; + resets = <&sysc MT7621_CLK_FE &sysc MT7621_CLK_ETH>; reset-names = "fe", "eth"; interrupt-parent = <&gic>; @@ -428,7 +425,7 @@ switch0: switch0@0 { #size-cells = <0>; reg = <0>; mediatek,mcm; - resets = <&rstctrl 2>; + resets = <&sysc MT7621_RST_MCM>; reset-names = "mcm"; interrupt-controller; #interrupt-cells = <1>; @@ -514,7 +511,7 @@ pcie@0,0 { #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0>; interrupt-map = <0 0 0 0 &gic GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>; - resets = <&rstctrl 24>; + resets = <&sysc MT7621_RST_PCIE0>; clocks = <&sysc MT7621_CLK_PCIE0>; phys = <&pcie0_phy 1>; phy-names = "pcie-phy0"; @@ -529,7 +526,7 @@ pcie@1,0 { #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0>; interrupt-map = <0 0 0 0 &gic GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>; - resets = <&rstctrl 25>; + resets = <&sysc MT7621_RST_PCIE1>; clocks = <&sysc MT7621_CLK_PCIE1>; phys = <&pcie0_phy 1>; phy-names = "pcie-phy1"; @@ -544,7 +541,7 @@ pcie@2,0 { #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0>; interrupt-map = <0 0 0 0 &gic GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>; - resets = <&rstctrl 26>; + resets = <&sysc MT7621_RST_PCIE2>; clocks = <&sysc MT7621_CLK_PCIE2>; phys = <&pcie2_phy 0>; phy-names = "pcie-phy2"; -- 2.33.0