Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp460823imu; Fri, 9 Nov 2018 00:08:06 -0800 (PST) X-Google-Smtp-Source: AJdET5d+8IRbLrZHzUXRfJai5g15H54ktv2Thnfo6RStYFFLZUeuqmk5tYT2IT5oGB0FNogCYyOS X-Received: by 2002:a17:902:6b0a:: with SMTP id o10-v6mr7910348plk.208.1541750886605; Fri, 09 Nov 2018 00:08:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541750886; cv=none; d=google.com; s=arc-20160816; b=hGpdwAEInIFk3EAgTDOS+YIgpLvy6g7VTis0ix4h/jfE7RDdp9Jud/KTqrOgfbOa8Z mos6IpjW0ZZawYQ6T2iWIwzkzdcHEb/1bA+HkX8edu6Z8dClb5w2aRFB4NGsRPSV0YDC VKYljWnUKxIBbb7NMJGDMTeE7pFZ8n+jGbFPFNCibRzC8waZhcu3379jCuGa+p++T/XB y/zeGwhRviBEBl6xi3Rup04EVLtHXNlvxEwqJvoneiotxkP8R/0AoPJMAy4ZXFiBexTx 3KiXgb5EA0NsU4fScEQHMR0Z/I3PS8Ci8OCvj9e4nVtBLNKnEnn2QiAqrBH6BHkYmczg Nvzg== 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=61/xUqhIW/b81WbXqRQ8Bt3GyzLCfvIOa8Zei/GSpxQ=; b=hb0yHsXxOziRNIqmyx9bgjp9FomK5MqEUUzdGBqMOf5600fji+TxPCTw96T+EBJPf8 zgCeYeVZ4aTvz9YRSj5iHrKXdCv0hz7Xz5d4pUVMjOdFjzF6Bhv3+gd0AbTDr61AhlLM 6elPWiaiHAUfgby7Vf4O+erXgLm96WZEtqdcN/KxHDUHewyRXxyed/Wno1Dk2BuRbYDG kevUJZ9geUu6usVTypzjlkuUiJUAk/GbMHwPeud2FmSXfAXZQgr+qpDcUuVsfPpwViXr umtE/KdOz/zYRXmlPZwgKpxNdOnVAjN2tPFSm2agq7QoDkps7R5LMkrdrRt/psweys2n A7Hg== 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 b12-v6si6904430plr.175.2018.11.09.00.07.50; Fri, 09 Nov 2018 00:08:06 -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 S1728375AbeKIRph (ORCPT + 99 others); Fri, 9 Nov 2018 12:45:37 -0500 Received: from mail-sz2.amlogic.com ([211.162.65.114]:60099 "EHLO mail-sz2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728149AbeKIRph (ORCPT ); Fri, 9 Nov 2018 12:45:37 -0500 X-Greylist: delayed 912 seconds by postgrey-1.27 at vger.kernel.org; Fri, 09 Nov 2018 12:45:33 EST Received: from [10.28.16.26] (10.28.16.26) by mail-sz2.amlogic.com (10.28.11.6) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Fri, 9 Nov 2018 15:51:00 +0800 Subject: Re: [PATCH v4 0/2] clk: meson-g12a: Add EE clock controller driver To: , Neil Armstrong CC: Kevin Hilman , Carlo Caione , "Rob Herring" , Martin Blumenstingl , Michael Turquette , Stephen Boyd , Yixun Lan , Qiufang Dai , Jianxin Pan , , , , , References: <1541682912-120480-1-git-send-email-jian.hu@amlogic.com> <1157f0a9419eea01c099d8dc08d7757593720286.camel@baylibre.com> From: Jian Hu Message-ID: Date: Fri, 9 Nov 2018 15:51:01 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1157f0a9419eea01c099d8dc08d7757593720286.camel@baylibre.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.28.16.26] X-ClientProxiedBy: mail-sz2.amlogic.com (10.28.11.6) To mail-sz2.amlogic.com (10.28.11.6) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jerome On 2018/11/8 21:34, jbrunet@baylibre.com wrote: > On Thu, 2018-11-08 at 21:15 +0800, Jian Hu wrote: >> Changes since v3 at[4] >> -add fixed clocks clk_regmap definition > > Jian, > > When replying to the v1 of your clk_ao patchset : > https://patchwork.kernel.org/patch/10562563/#22177627 > > I have explained that I would like to stop taking clock (such as xtal) from > nowhere. Clocks (even the xtal) should be properly claimed through DT. > I have specifically asked this to be taken into account for the EE controller. > > If you need an exemple on how to get the input clock from DT to your > controller, please have look at the axg audio clock controller. > > This comment does not appear to be addressed in this version. > Please make sure you have addressed all the comments of past reviews before > reposting > > Thx > Thanks, I will resolve it, I want make sure for it. I should take the "periphs_xtal" clock in ee g12a clock controller driver through DT , And then I can get its clock name "xtal" by property of clock-output-names. Is that right? ee g12a clock dts: hiubus: bus@ff63c000 { compatible = "simple-bus"; reg = <0x0 0xff63c000 0x0 0x1c00>; #address-cells = <2>; #size-cells = <2>; ranges = <0x0 0x0 0x0 0xff63c000 0x0 0x1c00>; sysctrl: syscon@0 { compatible = "amlogic,meson-g12a-hhi-sysctrl", "simple-mfd", "syscon"; reg = <0x0 0x0 0x0 0x400>; clkc: clock-controller { compatible = "amlogic,g12a-clkc"; #clock-cells = <1>; clocks = <&xtal>; clock-name = "periphs_xtal"; }; }; }; xtal: xtal-clk { compatible = "fixed-clock"; clock-frequency = <24000000>; clock-output-names = "xtal"; #clock-cells = <0>; }; >> >> Changes since v2 at[2] >> -fix fixed clocks's descriptions >> -fix aligment >> -add enable bit for plls base on [3] patches >> -add fixed clock gate bit >> >> Changes since v1 at[1] >> -fix typo of 'Everything'. >> -change the word 'AmLogic' to 'Amlogic' >> -squash patch 1 and 2. >> -delete usless message of "Trying obsolete regs". >> -delete the empty line in include/dt-bindings/clock/g12a-clkc.h. >> -rebase on top of the "next/drivers" branch, and add g12a clock patch. >> -add CLK_MUX_ROUND_CLOSEST for g12a_sd_emmc_b_clk0_sel and >> g12a_sd_emmc_c_clk0_sel. >> >> [1] >> https://lkml.kernel.org/r/1531133549-25806-2-git-send-email-jian.hu@amlogic.com >> [2] >> https://lkml.kernel.org/r/1531728707-192230-2-git-send-email-jian.hu@amlogic.com >> [3]https://lkml.kernel.org/r/20180717095617.12240-1-jbrunet@baylibre.com >> [4] >> https://lkml.kernel.org/r/1533890858-113020-1-git-send-email-jian.hu@amlogic.com >> >> Jian Hu (2): >> dt-bindings: clk: meson-g12a: Add G12A EE Clock Bindings >> clk: meson-g12a: Add EE Clock controller driver >> >> .../bindings/clock/amlogic,gxbb-clkc.txt | 1 + >> drivers/clk/meson/Kconfig | 10 + >> drivers/clk/meson/Makefile | 1 + >> drivers/clk/meson/g12a.c | 1134 >> ++++++++++++++++++++ >> drivers/clk/meson/g12a.h | 128 +++ >> include/dt-bindings/clock/g12a-clkc.h | 93 ++ >> 6 files changed, 1367 insertions(+) >> create mode 100644 drivers/clk/meson/g12a.c >> create mode 100644 drivers/clk/meson/g12a.h >> create mode 100644 include/dt-bindings/clock/g12a-clkc.h >> > > > . >