Received: by 10.223.176.5 with SMTP id f5csp464822wra; Tue, 6 Feb 2018 01:56:02 -0800 (PST) X-Google-Smtp-Source: AH8x2242Xj16qpqt+/fQWs0f8lYJAGk1GZr+D2nDiYna1Q+eaNQpOl6ZkxrIJA9nvSTW1REU0264 X-Received: by 2002:a17:902:bd84:: with SMTP id q4-v6mr1847329pls.247.1517910962785; Tue, 06 Feb 2018 01:56:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517910962; cv=none; d=google.com; s=arc-20160816; b=vvvFAXaq78YrmMFp6Mv/OPm+E6fDfUZNb8d31o3/VQDYNPPmgMfUMSdICyK84Fux1I YZ5w1zfO/1hQk985BzHVflf89ayc6WgsMieuQJZkPMuIMDHVXUUWKC7MalfNkeaMVVQ7 ZbqbWzSKkeFpnhTGSBWfPJ4BlC3E+Q0bdS3Q54sbIq6SNg0QtsH8hjsxI8peeZUluCHc 3qjg+Wh7vNzC2Y/va5jCaB8M56XjCVkTQkmctPE+n73JAcXwVbmzGEgT7DsEkLKRWXF1 +l8BfuLBB/6NvS6KirFaOPUNm6tZFYi5SDhOVeWizJ+f9tlPN58InFiFBqDziVOnJXiL QbKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=8K/CT4UAwdaQsk4zSVM4DNI8FQdPqcDDfQHrYidG0ro=; b=q9/Qjk2k97bdtHYkQE7S99k5UgugPoMpFLejuhsLviycGXkbIDjdFG0Iu9UaoUG9+3 B/z2qr4c7QfpcZljqXXDp4y0boI93aWzdm5CCg4bffGs1USxWQsUfYPKqpDwKes5lDN1 f2FQuJ5Bvbgd/XZT0wR9x1c9MLF08nCJw1GxQR+9eVdg78ovydKKFC+sRSCu6RXXiBwe +s1FVKrHO4Hxni2/+s/1+5aeSshfFpvJFU6bIklKLHBmYrIdvQiMxndMtGU2ZaXA/MUR JgvHvVt1OUnWucaXGK5zkKzoRy+wGnSi9oGLaix+p31gURs3zQebtcSaFWkzmkES0Eyl FIsw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o5-v6si6259761plh.780.2018.02.06.01.55.48; Tue, 06 Feb 2018 01:56:02 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752904AbeBFJy6 (ORCPT + 99 others); Tue, 6 Feb 2018 04:54:58 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:26310 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752684AbeBFJx2 (ORCPT ); Tue, 6 Feb 2018 04:53:28 -0500 X-UUID: d5f1be525b08482ab49b30c44e1fcedb-20180206 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1675971781; Tue, 06 Feb 2018 17:53:26 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 6 Feb 2018 17:53:24 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 6 Feb 2018 17:53:24 +0800 From: To: , , , , CC: , , Ryder Lee , Sean Wang Subject: [PATCH v2 12/16] arm64: dts: mt7622: add SATA device nodes Date: Tue, 6 Feb 2018 17:53:01 +0800 Message-ID: <3d66224f4423d8bf9d3c5dc12763c489fea05c41.1517910489.git.sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ryder Lee This patch adds SATA support fot MT7622. Signed-off-by: Ryder Lee Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 8 ++++++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 40 ++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts index 1007932..87b6080 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts @@ -323,6 +323,14 @@ status = "okay"; }; +&sata { + status = "okay"; +}; + +&sata_phy { + status = "okay"; +}; + &spi0 { pinctrl-names = "default"; pinctrl-0 = <&spic0_pins>; diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index f0f18b3..d5ca0a8 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -543,6 +544,45 @@ }; }; + sata: sata@1a200000 { + compatible = "mediatek,mt7622-ahci", + "mediatek,mtk-ahci"; + reg = <0 0x1a200000 0 0x1100>; + interrupts = ; + interrupt-names = "hostc"; + clocks = <&pciesys CLK_SATA_AHB_EN>, + <&pciesys CLK_SATA_AXI_EN>, + <&pciesys CLK_SATA_ASIC_EN>, + <&pciesys CLK_SATA_RBC_EN>, + <&pciesys CLK_SATA_PM_EN>; + clock-names = "ahb", "axi", "asic", "rbc", "pm"; + phys = <&sata_port PHY_TYPE_SATA>; + phy-names = "sata-phy"; + ports-implemented = <0x1>; + power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>; + resets = <&pciesys MT7622_SATA_AXI_BUS_RST>, + <&pciesys MT7622_SATA_PHY_SW_RST>, + <&pciesys MT7622_SATA_PHY_REG_RST>; + reset-names = "axi", "sw", "reg"; + mediatek,phy-mode = <&pciesys>; + status = "disabled"; + }; + + sata_phy: sata-phy@1a243000 { + compatible = "mediatek,generic-tphy-v1"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + status = "disabled"; + + sata_port: sata-phy@1a243000 { + reg = <0 0x1a243000 0 0x0100>; + clocks = <&topckgen CLK_TOP_ETH_500M>; + clock-names = "ref"; + #phy-cells = <1>; + }; + }; + ethsys: syscon@1b000000 { compatible = "mediatek,mt7622-ethsys", "syscon"; -- 2.7.4