Received: by 10.223.185.116 with SMTP id b49csp2098298wrg; Sat, 17 Feb 2018 12:10:37 -0800 (PST) X-Google-Smtp-Source: AH8x227Y/BN/i0UnVXEjeR7nf86spiaA+ZdAh152kFuJeyWI1HLjp377ppwwYKqIdUXDu3UrM4b7 X-Received: by 10.98.106.10 with SMTP id f10mr6713869pfc.222.1518898237833; Sat, 17 Feb 2018 12:10:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518898237; cv=none; d=google.com; s=arc-20160816; b=cbliZ3p00+qf9aUzSGGS6eUXJGGYsXBmlFxD3Z7dOoE28++vhsYf5aFrQlNtJxZo8U GuqM714aU/5FaGVlqAz2p29HKpreGt2H9WL36hnZwIvLS+NYGUCnSZi+uVJ4GVdISL3Y ESknmr5oguH9OLvdLPE9UWuILDpXgzooZ7ky54THCDywgFV+sEvlR4TsdFn0MNgIlqtD v/rpD3yTTMbEDfGbauhpFjnuux4Ul1qkciR0Pcual4f+iwgRx7/BZ9wicioSN5gxvYHZ tyoDCYPeXgOIDmMmF3vxEXnkLLZvKDr+aIwssyVi0Z5UHN50Uqcw6uYXFFY0ob/jzsWn i4vg== 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=2c5WJo+q3Jpe9igskBVOcF4Y97kuaalGp8Mvgiu8C/4=; b=vKVXGjxsQ2aTo63L0gozQMEqb9t0KRSRc7d5r0eqW3mpxRIpXQh70HEQBZ8IxR1bu7 ODYcPvdJj55SvmM7adRLbqnV9r+1DZ1KQ/zMuj0EzWKPxyStj27Vcb2spYHosV9qHZPJ bcBm9Ugl9V3FnuKSyECEx8InE+FoaFusPM3u1KpS31unSx+ezjPaeE0yzm3u1cZjpmM1 I5rQe51aQ+epuEyERHr24K6K0BnsPyuY+BD4m9gDPSHtoYZZJjROafSJv25iejU5WKct fsw7XCkdcWTif7SfGvIBeQp+IMFAsnUIeCiiLuwD+bv0PAS9fsupxPlCeV5iKkta4Rxz pl4w== 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 i35-v6si1613085plg.48.2018.02.17.12.10.23; Sat, 17 Feb 2018 12:10:37 -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 S1751456AbeBQT4W (ORCPT + 99 others); Sat, 17 Feb 2018 14:56:22 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:49706 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751297AbeBQTzJ (ORCPT ); Sat, 17 Feb 2018 14:55:09 -0500 X-UUID: f0eeed398c60444f81b3441c4747c390-20180218 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1940526241; Sun, 18 Feb 2018 03:55:04 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sun, 18 Feb 2018 03:55:03 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Sun, 18 Feb 2018 03:55:03 +0800 From: To: , , , , CC: , , Ryder Lee , Sean Wang Subject: [PATCH v3 12/15] arm64: dts: mt7622: add SATA device nodes Date: Sun, 18 Feb 2018 03:54:47 +0800 Message-ID: <03cd35cd3ffce2a8cd238005ad3f68a868358b9e.1518895232.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 72ef443..6715ffa 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 cc026eb..881bc17 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 #include @@ -616,6 +617,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