Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4754557imm; Mon, 30 Jul 2018 22:40:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeeLJfn4lR+OURG1gbwvIBjF5mGhQFBfS2euH4AyhfSdFyfdKcCFSsQRa86oEfOV2Md/Gwl X-Received: by 2002:a17:902:76c7:: with SMTP id j7-v6mr14291733plt.275.1533015649683; Mon, 30 Jul 2018 22:40:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533015649; cv=none; d=google.com; s=arc-20160816; b=W5S/Xl42LXXxS67MpsqoD4XMyq78dCte6kzdGZk7OXv975426/bFqnQ/7R4tX/7WRH /vqor4foK8z0h9uljsiMngZzLcyV+v32PqaQw3JLCSGj/8O/i8msp7ZQM5ZIEnct9ehO E1h04SjYa6NxGES975KmEll5wvvKVDj+BbAPFIA6TPJwpuUdcYOZMPEqGMPfSQyC08FN tybcKgd4xLk3Il3RLYmwlclDs8Y/HmTfCO8fxDdHJ0ukwVDpCi1wkxzZi3uKgffur+/u dbWApCkA/EY58hRK62fSgx1fQyeVtIino4KgooPi0TBeULqGAyXIaEz4RqSR2BTJsr+X zYvw== 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=nIhfPqPAXFevIeQElIQH8iGJcuqpxzOmQt6RJsXl7fg=; b=wrX5JyMyByrIHEjKf07yfc8l9U32Y8b2l2Yf00RIu1Wem6rzv8YU9ICUWCenfRDWhB 6YkbAhg8UbBKyYyTFswBixSHvD5LUTED4rl52Yx8HyWk0H1WFMLWI3NrJaJPq5IhyNaO jFAn1ub1Yt/x2cRSn1qGCWmxwdqXiCqU+cxuGWvQ/Pu0GMbn/bHXS+arFTQXQsLMbcrt h6nKi2Co8iDcTDdbe7Pf/BHH+PkHK1B3BbiY/wDDKgPRRnU9cpqVHrwrC87YsU31GH1q xyET4KpGQ+tYc9EJlEnnoSRnoNk8f0K0MKChjKhRp58A0ADlZnyBmxQEzgLyqa6EDKDH 1TOg== 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 m1-v6si11236658plt.264.2018.07.30.22.40.35; Mon, 30 Jul 2018 22:40:49 -0700 (PDT) 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 S1730196AbeGaHSL (ORCPT + 99 others); Tue, 31 Jul 2018 03:18:11 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:44465 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729785AbeGaHSK (ORCPT ); Tue, 31 Jul 2018 03:18:10 -0400 X-UUID: 254fca6d4b044389a938bc5bb87f2ba1-20180731 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1482220061; Tue, 31 Jul 2018 13:39:34 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 31 Jul 2018 13:39:32 +0800 Received: from mtkslt303.mediatek.inc (10.21.14.116) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 31 Jul 2018 13:39:32 +0800 From: Erin Lo To: Matthias Brugger , Rob Herring , Mark Rutland , Thomas Gleixner , Jason Cooper , Marc Zyngier , Greg Kroah-Hartman , Stephen Boyd CC: , srv_heupstream , , , , , , , , , , Weiyi Lu Subject: [PATCH v4 10/10] dts: arm64: mt8183: add uart node Date: Tue, 31 Jul 2018 13:38:07 +0800 Message-ID: <1533015487-60189-11-git-send-email-erin.lo@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1533015487-60189-1-git-send-email-erin.lo@mediatek.com> References: <1533015487-60189-1-git-send-email-erin.lo@mediatek.com> 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: Weiyi Lu Add uart node with correct uart clocks. Signed-off-by: Erin Lo Signed-off-by: Weiyi Lu --- arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 8 ++++++++ arch/arm64/boot/dts/mediatek/mt8183.dtsi | 30 +++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts index 2a3dd5a..9b52559 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts @@ -12,6 +12,10 @@ model = "MediaTek MT8183 evaluation board"; compatible = "mediatek,mt8183-evb", "mediatek,mt8183"; + aliases { + serial0 = &uart0; + }; + memory@40000000 { device_type = "memory"; reg = <0 0x40000000 0 0x80000000>; @@ -21,3 +25,7 @@ stdout-path = "serial0:921600n8"; }; }; + +&uart0 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index 6b87a24..c22a2dc 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -170,6 +170,36 @@ #clock-cells = <1>; }; + uart0: serial@11002000 { + compatible = "mediatek,mt8183-uart", + "mediatek,mt6577-uart"; + reg = <0 0x11002000 0 0x1000>; + interrupts = ; + clocks = <&clk26m>, <&infracfg CLK_INFRA_UART0>; + clock-names = "baud", "bus"; + status = "disabled"; + }; + + uart1: serial@11003000 { + compatible = "mediatek,mt8183-uart", + "mediatek,mt6577-uart"; + reg = <0 0x11003000 0 0x1000>; + interrupts = ; + clocks = <&clk26m>, <&infracfg CLK_INFRA_UART1>; + clock-names = "baud", "bus"; + status = "disabled"; + }; + + uart2: serial@11004000 { + compatible = "mediatek,mt8183-uart", + "mediatek,mt6577-uart"; + reg = <0 0x11004000 0 0x1000>; + interrupts = ; + clocks = <&clk26m>, <&infracfg CLK_INFRA_UART2>; + clock-names = "baud", "bus"; + status = "disabled"; + }; + audiosys: syscon@11220000 { compatible = "mediatek,mt8183-audiosys", "syscon"; reg = <0 0x11220000 0 0x1000>; -- 1.9.1