Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp636721ybl; Wed, 11 Dec 2019 05:16:30 -0800 (PST) X-Google-Smtp-Source: APXvYqxUqawV700xYBaJHtMjHBQiW2MBol2giYyUhw2z+yr+/MjT++df7j57zGWk4Z5vOb+za1Nf X-Received: by 2002:a9d:7b4e:: with SMTP id f14mr2231731oto.355.1576070190766; Wed, 11 Dec 2019 05:16:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576070190; cv=none; d=google.com; s=arc-20160816; b=CaT7Aq4010Td0e+BdYWhT/RFJqGnxcDJMIFED+/E958GYOigbiugwt3SFjnAiIfZKt 7/iI6TU1T0aaVt5X2/YXqcAxoAbKyglfPi+LBcb5dNBYtUFT6XR2ExMXtVm6brYGntnj +5Gq6+cR00AFqkTWYisPEAHN+2lshaTrEdSXZvWKuwXyVXwulm3dP9uCO5+dTLpBzGw1 0VtOIZEYiiE2dndZYSzlzjQks1zgIzl8mJU7NsWx5KQKNOGfP0MmFv1ru7Hwt8Ajxzhw lfFIhznvyC/HAUC7tHjtLVoleAhAn/zaIWfI9VY1hHl4071yKeu6Y0/w/ew0FN3XPsqZ 5Y4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=gdSmi0bdES1UZA6rNHK0i8+YEnZEvCaAo1V2KkvFYdc=; b=LhBugx+LXVvd9hoSrGlhVFTgsNRvMgBO/PxHjKCRTlTDLq/yCKF6L22lZXKg14Plfa tLe/T3vYZkHnWS0UmD2cRhlvFZQl19aljrz/cLnoq43Or0OnMqYX/iXcqNyhIlfo5ckX ebcOBwOveaJ1d1qEaqZ7XYnXJzoVx1BkjqTlrHDd7QlCbjWIRfM54vGzWPU0RLC1wsTa 9reuNGa8u8+Hx/ugWNUxubbUjZguBuZ11g+SPeKm8UtFELfNBCsyO3E71uy24fzb+BUG LDraPxBg701jFlW3v5mMVu2MdlsjX21bac76lw5D0yaXzW8gcDzYKG9/s5JX1YNuB2+M vWnA== 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 j20si961985otp.147.2019.12.11.05.16.15; Wed, 11 Dec 2019 05:16:30 -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 S1729407AbfLKNPo (ORCPT + 99 others); Wed, 11 Dec 2019 08:15:44 -0500 Received: from mail-sz.amlogic.com ([211.162.65.117]:12596 "EHLO mail-sz.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729299AbfLKNPo (ORCPT ); Wed, 11 Dec 2019 08:15:44 -0500 Received: from [10.28.39.99] (10.28.39.99) by mail-sz.amlogic.com (10.28.11.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1591.10; Wed, 11 Dec 2019 21:16:13 +0800 Subject: Re: [PATCH] arm64: dts: meson: add A1 periphs and PLL clock nodes To: Jerome Brunet , Neil Armstrong CC: Kevin Hilman , Rob Herring , Martin Blumenstingl , Michael Turquette , Stephen Boyd , Qiufang Dai , Jianxin Pan , Victor Wan , Chandle Zou , , , , , References: <20191211070835.83489-1-jian.hu@amlogic.com> <1jimmnkxj5.fsf@starbuckisacylon.baylibre.com> From: Jian Hu Message-ID: Date: Wed, 11 Dec 2019 21:16:13 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <1jimmnkxj5.fsf@starbuckisacylon.baylibre.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.28.39.99] X-ClientProxiedBy: mail-sz.amlogic.com (10.28.11.5) To mail-sz.amlogic.com (10.28.11.5) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/12/11 17:43, Jerome Brunet wrote: > > On Wed 11 Dec 2019 at 08:08, Jian Hu wrote: > >> Add A1 periphs and PLL clock controller nodes, Some clocks >> in periphs controller are the parents of PLL clocks, Meanwhile >> some clocks in PLL controller are those of periphs clocks. >> They rely on each other. > >> Compared with the previous series, >> the register region is only for the clock. So syscon is not >> used in A1. > > Again, while this is valuable information for the maintainer to keep up, > it is not something that should appear in the commit description. > > The evolution of your commit should be described after the '---' > OK, I will put the compared message after the '---' > Also, this obviously depends on another series. It should be mentioned > accordingly OK, I will add the dependent clock patchset. > >> >> Signed-off-by: Jian Hu >> --- >> arch/arm64/boot/dts/amlogic/meson-a1.dtsi | 26 +++++++++++++++++++++++ >> 1 file changed, 26 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi >> index 7210ad049d1d..de43a010fa6e 100644 >> --- a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi >> +++ b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi >> @@ -5,6 +5,8 @@ >> >> #include >> #include >> +#include >> +#include > > When possible, please order the includes alpha-numerically > OK, I will reorder it. >> >> / { >> compatible = "amlogic,a1"; >> @@ -74,6 +76,30 @@ >> #size-cells = <2>; >> ranges = <0x0 0x0 0x0 0xfe000000 0x0 0x1000000>; >> >> + clkc_periphs: periphs-clock-controller@800 { > ^ >>From DT spec: "The name of a node should be somewhat generic, reflecting > the function of the device and not its precise programming model." > > Here, an appropriate node name would be "clock-controller", not > "periphs-clock-controller" OK, I will change the node name. > >> + compatible = "amlogic,a1-periphs-clkc"; >> + #clock-cells = <1>; >> + reg = <0 0x800 0 0x104>; >> + clocks = <&clkc_pll CLKID_FCLK_DIV2>, >> + <&clkc_pll CLKID_FCLK_DIV3>, >> + <&clkc_pll CLKID_FCLK_DIV5>, >> + <&clkc_pll CLKID_FCLK_DIV7>, >> + <&clkc_pll CLKID_HIFI_PLL>, >> + <&xtal>; >> + clock-names = "fclk_div2", "fclk_div3", >> + "fclk_div5", "fclk_div7", >> + "hifi_pll", "xtal"; >> + }; >> + >> + clkc_pll: pll-clock-controller@7c80 { > > Please order nodes by address when they have one. > This clock controller should appear after the uarts OK, I will reorder it. > >> + compatible = "amlogic,a1-pll-clkc"; >> + #clock-cells = <1>; >> + reg = <0 0x7c80 0 0x21c>; >> + clocks = <&clkc_periphs CLKID_XTAL_FIXPLL>, >> + <&clkc_periphs CLKID_XTAL_HIFIPLL>; >> + clock-names = "xtal_fixpll", "xtal_hifipll"; >> + }; >> + >> uart_AO: serial@1c00 { >> compatible = "amlogic,meson-gx-uart", >> "amlogic,meson-ao-uart"; > > . >