Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp103623pxb; Mon, 18 Oct 2021 21:52:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwt+CEHHG5zsa05NcEyqOmE216vKmZlIFE4JH0Z8J7Kh8+G8NxsEbreVF0W/W1/CPhJOrW9 X-Received: by 2002:a17:906:c2cf:: with SMTP id ch15mr34180646ejb.321.1634619126570; Mon, 18 Oct 2021 21:52:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634619126; cv=none; d=google.com; s=arc-20160816; b=H6TOCYT1LZROp2loLQK0vknp0wAe+87uS8o6uDmzcmrIQ/dbkRJ7AKbjIyESoOfQ8M jzY6NbUyakYd+fbL68IDiWA+tg+gJ8duG/r95o2VVGBWBKR2TZVbaTHwbWzHRvRXdHHQ 1NqE7va1gyJ7lvSEQrazcvuAdmIoXrZ7Q9wOzOS8neFmNVwD3cttMG50Zoxryoqr/MXx Jrh05JcxgsJ4uap6O6oeJj0fEIv6QYHdGXWIihCtCqBEksSXo4mFiCzSBC8c1G4aOVaV zLIUF6AtOMsOWAbyO5psl8P+SnyXGpm3PlFUq+n0N6iXhqu52XWCyZ4jdQoOOdhuoLh4 k3Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=9mpU4dcUGSuf4bTgSU4UvZ31OCBgLAGNj0YvDl03XIc=; b=lBZwSERld4QyOmeE3Q/zvg6aP1txBY1dk8o8ifLaYtO59s4iV5qBLywat8khrkwgy0 L+5dI8l/N3gvIxTKBOHS9bKNFCQNwFn2RKPeMjiw8y6fiS2QwWOC3cvY4r0n4pTvsXi+ CNAWaaEOTl0s0DYstJCkwohZ63Cj5WgKyxEJ/aW51+LN8PVAMwSC18EsqRXi2pTQTvuv toVSAcRCGB4jCEh16cuiKqun+5swGQSR2NXA5T5JRRaXThUsMCtkedFRmb0daY9RooDu p12DEfJvNUser12RCd0AFA3hEox1juG7SNhbXZNArDjqH/6PQfpPT/NHmfSKGsOHL9dL HnJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g6si28619964edb.125.2021.10.18.21.51.42; Mon, 18 Oct 2021 21:52:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232714AbhJSEtr (ORCPT + 99 others); Tue, 19 Oct 2021 00:49:47 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:41476 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229649AbhJSEtq (ORCPT ); Tue, 19 Oct 2021 00:49:46 -0400 X-UUID: 8ad71689af5a4caaa262c52bc2324fe4-20211019 X-UUID: 8ad71689af5a4caaa262c52bc2324fe4-20211019 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1024412807; Tue, 19 Oct 2021 12:47:31 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 19 Oct 2021 12:47:30 +0800 Received: from mtksdccf07 (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 19 Oct 2021 12:47:30 +0800 Message-ID: <6c7879c2db62cad0f6de1452b5d3b39cc8c58a2a.camel@mediatek.com> Subject: Re: [PATCH v5 4/5] arm64: dts: mediatek: add clock support for mt7986a From: Miles Chen To: Sam Shih , Rob Herring , Matthias Brugger , Michael Turquette , Stephen Boyd , Fabien Parent , Weiyi Lu , Chun-Jie Chen , Ikjoon Jang , "Enric Balletbo i Serra" , , , , , CC: John Crispin , Ryder Lee Date: Tue, 19 Oct 2021 12:47:30 +0800 In-Reply-To: <20211018114701.13984-5-sam.shih@mediatek.com> References: <20211018114701.13984-1-sam.shih@mediatek.com> <20211018114701.13984-5-sam.shih@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sam, > + infracfg: infracfg@10001000 { > + compatible = "mediatek,mt7986-infracfg", > "syscon"; > + reg = <0 0x10001000 0 0x1000>; > + #clock-cells = <1>; > + }; > + > + topckgen: topckgen@1001b000 { > + compatible = "mediatek,mt7986-topckgen", > "syscon"; > + reg = <0 0x1001B000 0 0x1000>; > + #clock-cells = <1>; > + }; please use lowercase hex value. > + > watchdog: watchdog@1001c000 { > compatible = "mediatek,mt7986-wdt", > "mediatek,mt6589-wdt"; > @@ -108,11 +122,31 @@ watchdog: watchdog@1001c000 { > status = "disabled"; > }; > > + apmixedsys: apmixedsys@1001e000 { > + compatible = "mediatek,mt7986-apmixedsys"; > + reg = <0 0x1001E000 0 0x1000>; > + #clock-cells = <1>; > + }; > + > + sgmiisys0: syscon@10060000 { > + compatible = "mediatek,mt7986-sgmiisys_0", > + "syscon"; > + reg = <0 0x10060000 0 0x1000>; > + #clock-cells = <1>; > + }; > + > + sgmiisys1: syscon@10070000 { > + compatible = "mediatek,mt7986-sgmiisys_1", > + "syscon"; > + reg = <0 0x10070000 0 0x1000>; > + #clock-cells = <1>; > + }; > + > trng: trng@1020f000 { > compatible = "mediatek,mt7986-rng", > "mediatek,mt7623-rng"; > reg = <0 0x1020f000 0 0x100>; > - clocks = <&system_clk>; > + clocks = <&infracfg CLK_INFRA_TRNG_CK>; > clock-names = "rng"; > status = "disabled"; > }; > @@ -122,7 +156,13 @@ uart0: serial@11002000 { > "mediatek,mt6577-uart"; > reg = <0 0x11002000 0 0x400>; > interrupts = ; > - clocks = <&system_clk>; > + clocks = <&infracfg CLK_INFRA_UART0_SEL>, > + <&infracfg CLK_INFRA_UART0_CK>; > + clock-names = "baud", "bus"; > + assigned-clocks = <&topckgen CLK_TOP_UART_SEL>, > + <&infracfg > CLK_INFRA_UART0_SEL>; > + assigned-clock-parents = <&topckgen > CLK_TOP_XTAL>, > + <&topckgen > CLK_TOP_UART_SEL>; > status = "disabled"; > }; > > @@ -131,7 +171,11 @@ uart1: serial@11003000 { > "mediatek,mt6577-uart"; > reg = <0 0x11003000 0 0x400>; > interrupts = ; > - clocks = <&system_clk>; > + clocks = <&infracfg CLK_INFRA_UART1_SEL>, > + <&infracfg CLK_INFRA_UART1_CK>; > + clock-names = "baud", "bus"; > + assigned-clocks = <&infracfg > CLK_INFRA_UART1_SEL>; > + assigned-clock-parents = <&topckgen > CLK_TOP_F26M_SEL>; > status = "disabled"; > }; > > @@ -140,10 +184,24 @@ uart2: serial@11004000 { > "mediatek,mt6577-uart"; > reg = <0 0x11004000 0 0x400>; > interrupts = ; > - clocks = <&system_clk>; > + clocks = <&infracfg CLK_INFRA_UART2_SEL>, > + <&infracfg CLK_INFRA_UART2_CK>; > + clock-names = "baud", "bus"; > + assigned-clocks = <&infracfg > CLK_INFRA_UART2_SEL>; > + assigned-clock-parents = <&topckgen > CLK_TOP_F26M_SEL>; > status = "disabled"; > }; > > + ethsys: syscon@15000000 { > + #address-cells = <1>; > + #size-cells = <1>; > + compatible = "mediatek,mt7986-ethsys", > + "syscon"; > + reg = <0 0x15000000 0 0x1000>; > + #clock-cells = <1>; > + #reset-cells = <1>; > + }; > + > }; > > };