Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3678293pxm; Tue, 1 Mar 2022 03:19:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5TfgAZ8Nw0qVG4dkEzhkT3gqkv9Ux+8uYo2Mi0PyOAyHJlmR2chLXnxhL7JRBPIvKpT3k X-Received: by 2002:a17:90a:4b45:b0:1be:da4b:a56a with SMTP id o5-20020a17090a4b4500b001beda4ba56amr3005676pjl.82.1646133549835; Tue, 01 Mar 2022 03:19:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646133549; cv=none; d=google.com; s=arc-20160816; b=zkM/ZTTq1uCuO5h8BUo4sn5qvn/knbLGWw1IuQlTULFvAvdxs3RQXhbB6hslbNVCEj Ts2+36ERXo7A1jkvV2IR7siIazxNaBZgCDB5JDvPjLfDJ4gt5ynkPTdimAINHX7WlibP lX7jXrudXtsRJY4ijq0uSlO18n905sfsPKHiJeZimNG0FixoCW122NqxdDtQvqr/ld9Y M6hiyYyUTXUSQtCDcjUiRp54BDduGaYQrduhwHIh5y+v+0z/Tv+yMJi9QViFlZxwJ3H/ k50Rh6flri3AAX9GufyA29HRnrS2RVZuo+aNroFW25jyCnAUVgtYSI6yKrRA6VqtT0XD yuLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=LkrTcQQbt/9+kZrb/G+6KYClsmPdfv/aEHScRzi5ZAs=; b=mj1VEvaRnf99JntNNnxiV0yRrdfFSofYWZT/RUHJdrozCvdW6rK/QO/PWN3zh/C1zC PRneLTeA+JsxOT/cn55o9xECkWjnVQjnir9u4rd27xf6J+pr53jbMZCHHSyTa/ZNySsV WQa9cmo1P7OU/HO8Sm4FWYT2Qm0gdw5vO0SxC7qj7VDmNdxUE48azHNXHxL1qolXwQEj i9rQNrxDZgUBHb1rfrWvUVtRrJiV55Ud9g7AjJE+nlOngLVMDIIFWTsQU4iEvE/cPXpF Ln+S1tGykWThgMFTyqEpQXn4tPPjBrDu+8Fl7hBEwxavWKgnFbTXFYhRa5gt76X7jrJ6 k0zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mtj+dI+N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w22-20020a63fb56000000b0036551f930f7si11891459pgj.27.2022.03.01.03.18.54; Tue, 01 Mar 2022 03:19:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mtj+dI+N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233391AbiCAIeX (ORCPT + 99 others); Tue, 1 Mar 2022 03:34:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229906AbiCAIeU (ORCPT ); Tue, 1 Mar 2022 03:34:20 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9029B27FFC; Tue, 1 Mar 2022 00:33:38 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id bg16-20020a05600c3c9000b00380f6f473b0so801129wmb.1; Tue, 01 Mar 2022 00:33:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=LkrTcQQbt/9+kZrb/G+6KYClsmPdfv/aEHScRzi5ZAs=; b=mtj+dI+NVw8LeXLhTCnZeZgjE3M77ddOgX9ienReKqhu6eqXMGaGvl7kUgLxrH/imx zZL610ITo2FA7KruB9rkrHKT4/Lwpt/A3V3047Sb8rZzaecQu8EuVpKZycFqjIf+Ea4F 1Ysqyx7vO9OwDlQTRcD+6O6gpHTx7Fw5Hw+exkYLnkC+IckNQZ9/lqdjjYftid5gPmse d7D0a0z9p529s7UIwJUtQlgVGEp3iWEeBgftNB1BSDhHTWNlWvSwbDKAGdVMajt29Ily 0TwJaiR/lZw0rkHIIdH1NSpo+w34uoy7kF+7eM0po8sA+nNKCN9ARHCMjWC/Mjt8tVU9 1rjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=LkrTcQQbt/9+kZrb/G+6KYClsmPdfv/aEHScRzi5ZAs=; b=7hnRhBnHhc1xCk5Uti9CJqOdl32R4Osfyr1p04QiKqF9DeqRIbGpO00VKbW6lagESZ KtQyin/6wDFLJZfkeFcFsyFyOdnik/3/n9HCI9+08Tm+8x49CIkXANXCbjMCukBMyNHr EdV6MDG3cVQhH1VWmELT8wfPIghP2kDLUuAoDc2PZm7ckORSH+VEDDv1qUEknfSw8ANY 7E7xUhmTuncemW6Jg2Fs5Fb2/XmyR5LZPI1uXsKPkGZror+zfLd/3iFNYxvR/zdQLdW/ II8Gr+Y21coFqmotLAM2Dl8xOo+gxzMhQLLQ7qzz52GbKqxyBcInjcpMaZsV4LX5netE V/vA== X-Gm-Message-State: AOAM532M9xwhExwFwRLPUsYSt+NxeTVni+9vpDoCZsPlvjUdjzy6iShL Ac2++EQ9HvlEuRo+XQRubbM= X-Received: by 2002:a05:600c:508:b0:380:fd39:2c42 with SMTP id i8-20020a05600c050800b00380fd392c42mr15993789wmc.178.1646123616070; Tue, 01 Mar 2022 00:33:36 -0800 (PST) Received: from [192.168.2.177] ([207.188.167.132]) by smtp.gmail.com with ESMTPSA id q17-20020adfc511000000b001edc0a8a8b6sm19256706wrf.0.2022.03.01.00.33.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Mar 2022 00:33:35 -0800 (PST) Message-ID: <232259a8-1cce-002b-3f46-916425de1d69@gmail.com> Date: Tue, 1 Mar 2022 09:33:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 1/1] arm64: dts: mediatek: add clock support for mt7986a Content-Language: en-US To: Sam Shih , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Cc: John Crispin , Ryder Lee References: <20220119123624.10043-1-sam.shih@mediatek.com> <20220119123624.10043-2-sam.shih@mediatek.com> From: Matthias Brugger In-Reply-To: <20220119123624.10043-2-sam.shih@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/01/2022 13:36, Sam Shih wrote: > Add clock controller nodes, include 40M clock source, topckgen, > infracfg, apmixedsys and ethernet subsystem. > > Signed-off-by: Sam Shih Applied, thanks! > --- > arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 68 +++++++++++++++++++++-- > 1 file changed, 63 insertions(+), 5 deletions(-) > > diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi > index b8da76b6ba47..694acf8f5b70 100644 > --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi > @@ -6,16 +6,18 @@ > > #include > #include > +#include > > / { > interrupt-parent = <&gic>; > #address-cells = <2>; > #size-cells = <2>; > > - system_clk: dummy40m { > + clk40m: oscillator@0 { > compatible = "fixed-clock"; > clock-frequency = <40000000>; > #clock-cells = <0>; > + clock-output-names = "clkxtal"; > }; > > cpus { > @@ -98,6 +100,18 @@ gic: interrupt-controller@c000000 { > interrupts = ; > }; > > + 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>; > + }; > + > watchdog: watchdog@1001c000 { > compatible = "mediatek,mt7986-wdt", > "mediatek,mt6589-wdt"; > @@ -107,6 +121,12 @@ watchdog: watchdog@1001c000 { > status = "disabled"; > }; > > + apmixedsys: apmixedsys@1001e000 { > + compatible = "mediatek,mt7986-apmixedsys"; > + reg = <0 0x1001E000 0 0x1000>; > + #clock-cells = <1>; > + }; > + > pio: pinctrl@1001f000 { > compatible = "mediatek,mt7986a-pinctrl"; > reg = <0 0x1001f000 0 0x1000>, > @@ -128,11 +148,25 @@ pio: pinctrl@1001f000 { > #interrupt-cells = <2>; > }; > > + 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"; > }; > @@ -142,7 +176,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"; > }; > > @@ -151,7 +191,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"; > }; > > @@ -160,10 +204,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>; > + }; > + > }; > > };