mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-07 14:52:04 +08:00
134 lines
4.1 KiB
Diff
134 lines
4.1 KiB
Diff
From patchwork Sun May 11 14:19:21 2025
|
|
Content-Type: text/plain; charset="utf-8"
|
|
MIME-Version: 1.0
|
|
Content-Transfer-Encoding: 7bit
|
|
X-Patchwork-Submitter: Frank Wunderlich <linux@fw-web.de>
|
|
X-Patchwork-Id: 14084155
|
|
From: Frank Wunderlich <linux@fw-web.de>
|
|
To: Andrew Lunn <andrew@lunn.ch>,
|
|
Vladimir Oltean <olteanv@gmail.com>,
|
|
"David S. Miller" <davem@davemloft.net>,
|
|
Eric Dumazet <edumazet@google.com>,
|
|
Jakub Kicinski <kuba@kernel.org>,
|
|
Paolo Abeni <pabeni@redhat.com>,
|
|
Rob Herring <robh@kernel.org>,
|
|
Krzysztof Kozlowski <krzk+dt@kernel.org>,
|
|
Conor Dooley <conor+dt@kernel.org>,
|
|
Matthias Brugger <matthias.bgg@gmail.com>,
|
|
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
|
|
Subject: [PATCH v1 05/14] arm64: dts: mediatek: mt7988: move uart0 and spi1
|
|
pins to soc dtsi
|
|
Date: Sun, 11 May 2025 16:19:21 +0200
|
|
Message-ID: <20250511141942.10284-6-linux@fw-web.de>
|
|
X-Mailer: git-send-email 2.43.0
|
|
In-Reply-To: <20250511141942.10284-1-linux@fw-web.de>
|
|
References: <20250511141942.10284-1-linux@fw-web.de>
|
|
MIME-Version: 1.0
|
|
X-Mail-ID: 730e5bd4-362e-4c00-a35e-0ec77e8f4691
|
|
X-BeenThere: linux-mediatek@lists.infradead.org
|
|
X-Mailman-Version: 2.1.34
|
|
Precedence: list
|
|
List-Id: <linux-mediatek.lists.infradead.org>
|
|
List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mediatek>,
|
|
<mailto:linux-mediatek-request@lists.infradead.org?subject=unsubscribe>
|
|
List-Archive: <http://lists.infradead.org/pipermail/linux-mediatek/>
|
|
List-Post: <mailto:linux-mediatek@lists.infradead.org>
|
|
List-Help: <mailto:linux-mediatek-request@lists.infradead.org?subject=help>
|
|
List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mediatek>,
|
|
<mailto:linux-mediatek-request@lists.infradead.org?subject=subscribe>
|
|
Cc: devicetree@vger.kernel.org, Landen Chao <Landen.Chao@mediatek.com>,
|
|
=?utf-8?b?QXLEsW7DpyDDnE5BTA==?= <arinc.unal@arinc9.com>,
|
|
netdev@vger.kernel.org, Sean Wang <sean.wang@mediatek.com>,
|
|
Daniel Golle <daniel@makrotopia.org>, linux-kernel@vger.kernel.org,
|
|
DENG Qingfang <dqfext@gmail.com>, linux-mediatek@lists.infradead.org,
|
|
Lorenzo Bianconi <lorenzo@kernel.org>, linux-arm-kernel@lists.infradead.org,
|
|
Felix Fietkau <nbd@nbd.name>
|
|
Sender: "Linux-mediatek" <linux-mediatek-bounces@lists.infradead.org>
|
|
Errors-To:
|
|
linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org
|
|
|
|
From: Frank Wunderlich <frank-w@public-files.de>
|
|
|
|
In order to use uart0 or spi1 there is only 1 possible pin definition
|
|
so move them to soc dtsi to reuse them in other boards and avoiding
|
|
conflict if defined twice.
|
|
|
|
Suggested-by: Daniel Golle <daniel@makrotopia.org>
|
|
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
|
|
---
|
|
.../dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi | 14 --------------
|
|
arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 18 ++++++++++++++++++
|
|
2 files changed, 18 insertions(+), 14 deletions(-)
|
|
|
|
--- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi
|
|
+++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi
|
|
@@ -328,13 +328,6 @@
|
|
};
|
|
};
|
|
|
|
- uart0_pins: uart0-pins {
|
|
- mux {
|
|
- function = "uart";
|
|
- groups = "uart0";
|
|
- };
|
|
- };
|
|
-
|
|
snfi_pins: snfi-pins {
|
|
mux {
|
|
function = "flash";
|
|
@@ -356,13 +349,6 @@
|
|
};
|
|
};
|
|
|
|
- spi1_pins: spi1-pins {
|
|
- mux {
|
|
- function = "spi";
|
|
- groups = "spi1";
|
|
- };
|
|
- };
|
|
-
|
|
spi2_pins: spi2-pins {
|
|
mux {
|
|
function = "spi";
|
|
--- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
|
|
+++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
|
|
@@ -209,6 +209,20 @@
|
|
"pcie_wake_n3_0";
|
|
};
|
|
};
|
|
+
|
|
+ spi1_pins: spi1-pins {
|
|
+ mux {
|
|
+ function = "spi";
|
|
+ groups = "spi1";
|
|
+ };
|
|
+ };
|
|
+
|
|
+ uart0_pins: uart0-pins {
|
|
+ mux {
|
|
+ function = "uart";
|
|
+ groups = "uart0";
|
|
+ };
|
|
+ };
|
|
};
|
|
|
|
pwm: pwm@10048000 {
|
|
@@ -244,6 +258,8 @@
|
|
clocks = <&topckgen CLK_TOP_UART_SEL>,
|
|
<&infracfg CLK_INFRA_52M_UART0_CK>;
|
|
clock-names = "baud", "bus";
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&uart0_pins>;
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -338,6 +354,8 @@
|
|
"hclk";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&spi1_pins>;
|
|
status = "disabled";
|
|
};
|
|
|