From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frank Wunderlich Date: Thu, 20 Aug 2020 15:40:43 +0200 Subject: [PATCH v5 6/8] arm: dts: mt7622: add sata- and asm_sel nodes In-Reply-To: <20200820134045.8784-1-linux@fw-web.de> References: <20200820134045.8784-1-linux@fw-web.de> Message-ID: <20200820134045.8784-7-linux@fw-web.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Frank Wunderlich 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 Reviewed-by: Chunfeng Yun --- 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