From: Frank Wunderlich <linux@fw-web.de>
To: u-boot@lists.denx.de
Subject: [PATCH v5 6/8] arm: dts: mt7622: add sata- and asm_sel nodes
Date: Thu, 20 Aug 2020 15:40:43 +0200 [thread overview]
Message-ID: <20200820134045.8784-7-linux@fw-web.de> (raw)
In-Reply-To: <20200820134045.8784-1-linux@fw-web.de>
From: Frank Wunderlich <frank-w@public-files.de>
asm_sel is for switching between sata and pcie mode
on r64 there is GPIO90 connected to ASM1480 which
switches RX/TX pairs to PCIe/SATA connector
output-low means sata-controller is active
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Reviewed-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
arch/arm/dts/mt7622-bananapi-bpi-r64.dts | 9 +++++++++
arch/arm/dts/mt7622.dtsi | 1 -
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/arch/arm/dts/mt7622-bananapi-bpi-r64.dts b/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
index 768f15bc2c..c36ec8f8d0 100644
--- a/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
+++ b/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
@@ -204,3 +204,12 @@
full-duplex;
};
};
+
+&gpio {
+ /*gpio 90 for setting mode to sata*/
+ asm_sel {
+ gpio-hog;
+ gpios = <90 GPIO_ACTIVE_HIGH>;
+ output-low;
+ };
+};
diff --git a/arch/arm/dts/mt7622.dtsi b/arch/arm/dts/mt7622.dtsi
index c43ad65702..6b4260407e 100644
--- a/arch/arm/dts/mt7622.dtsi
+++ b/arch/arm/dts/mt7622.dtsi
@@ -287,7 +287,6 @@
sata_phy: sata-phy at 1a243000 {
compatible = "mediatek,generic-tphy-v1";
- reg = <0x1a243000 0x0100>;
#address-cells = <1>;
#size-cells = <1>;
ranges;
--
2.25.1
next prev parent reply other threads:[~2020-08-20 13:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-20 13:40 [PATCH v5 00/11] Add MTK AHCI driver, BPI-R64 dts and USB-Nodes for mt7622> Frank Wunderlich
2020-08-20 13:40 ` [PATCH v5 1/8] phy: mtk-tphy: make shared reg optional for v1 Frank Wunderlich
2020-08-20 13:40 ` [PATCH v5 2/8] reset: add basic reset controller for pciesys Frank Wunderlich
2020-08-20 13:40 ` [PATCH v5 3/8] ahci: mediatek: add ahci driver Frank Wunderlich
2020-08-20 13:57 ` Aw: " Frank Wunderlich
2020-08-20 13:40 ` [PATCH v5 4/8] clk: mt7622: add needed clocks for ssusb-node Frank Wunderlich
2020-08-20 13:40 ` [PATCH v5 5/8] arm: dts: add dts for Bananapi-R64 Frank Wunderlich
2020-08-20 14:14 ` Frank Wunderlich
2020-08-20 13:40 ` Frank Wunderlich [this message]
2020-08-20 13:40 ` [PATCH v5 7/8] arm: dts: mt7622: add USB nodes Frank Wunderlich
2020-08-20 13:40 ` [PATCH v5 8/8] arm: dts: mt7623: " Frank Wunderlich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200820134045.8784-7-linux@fw-web.de \
--to=linux@fw-web.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox