Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3022933ybn; Thu, 26 Sep 2019 23:10:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtaLnqxxCqu4MZXULsYvbOFc24Ub3rcn7qG5GYqhku8BkU+Ef4bOzJfSjD85g+Xbqg8YEY X-Received: by 2002:a17:906:1c05:: with SMTP id k5mr6497186ejg.286.1569564651254; Thu, 26 Sep 2019 23:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569564651; cv=none; d=google.com; s=arc-20160816; b=P3pz6s0782DhjadW/uY0/lYmRk359mVbY8uY7tdusqQufXsKfo62AaJn3PZyHD0kXK 6VO4Q4OyT9BLl0tOgl9aGNzyORsrTIWi3F0jZA/pnN/bdVzhVlM6xceEN5rZPlfS30OR HZkZmPZH5F/85KNibaSpxaG3uf3qJX13KiEMp4rhjraZHjzVDIrzHQovkPgEbKq6Hslc UruKzFAJxjlW8cEaxGqWASakgtYPSN2ivx0T2lH2ca1+fHdbpJg8VqlVKxRIz+L0SeHY YB2T3DmjiyrZkyN1LJ7KPpwjpNif1ie7Nnh5mY9pxuFrSsv4QX0WXRngEKexatNn91IK /EJg== 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=vN/vLaDchu3V+v0DNmfSkP4DfJeGR2CeHENLFQdUEP8=; b=Y6vKjpRXK6L39LHSUAFSSx7EUk0vx/e0WBtwSSy7xJeYUXbirYlpc0H8E1yhxeFEPU pvsXOk/dJd0qzHzH0VGU1GHLQPwfp39G7g7kzQ3b8q8Y7vkE4fl4HEy20gZIIENPe4VH 81SMzuNg3ErwreCTgPRCArL+e+++mp/ZUcI2lublMIFJF5Za7+/TFVEsPs+qgeC2VqAd zeILaIoECYC7je3YssPJ4VRwZO73g1apSsxf78o+Uz3mGaA5vG5t/dfrmbL6tjVtMrdp n4XbMssv3IltDFTpXFfwedSVaSSyQ9CqNO1H/BwMGI5bcs8XhpcEaOs6T7Ik2qpQJ3DT VSaw== 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 i5si973800edj.107.2019.09.26.23.10.26; Thu, 26 Sep 2019 23:10:51 -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 S1725883AbfI0GIh (ORCPT + 99 others); Fri, 27 Sep 2019 02:08:37 -0400 Received: from mail-sz.amlogic.com ([211.162.65.117]:34453 "EHLO mail-sz.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725802AbfI0GIg (ORCPT ); Fri, 27 Sep 2019 02:08:36 -0400 Received: from [10.28.19.114] (10.28.19.114) 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; Fri, 27 Sep 2019 14:08:34 +0800 Subject: Re: [PATCH 1/2] dt-bindings: clock: meson: add A1 clock controller bindings To: Jerome Brunet , Neil Armstrong CC: Jianxin Pan , Kevin Hilman , Rob Herring , Martin Blumenstingl , Michael Turquette , Stephen Boyd , Qiufang Dai , , , , , References: <1569411888-98116-1-git-send-email-jian.hu@amlogic.com> <1569411888-98116-2-git-send-email-jian.hu@amlogic.com> <1j4l10motk.fsf@starbuckisacylon.baylibre.com> From: Jian Hu Message-ID: Date: Fri, 27 Sep 2019 14:08:34 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 In-Reply-To: <1j4l10motk.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.19.114] 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 Hi, Jerome Thank you for review. On 2019/9/25 22:29, Jerome Brunet wrote: > On Wed 25 Sep 2019 at 19:44, Jian Hu wrote: > > In addition to the comment expressed by Stephen on patch 2 > got it. >> Add the documentation to support Amlogic A1 clock driver, >> and add A1 clock controller bindings. >> >> Signed-off-by: Jian Hu >> Signed-off-by: Jianxin Pan >> --- >> .../devicetree/bindings/clock/amlogic,a1-clkc.yaml | 65 +++++++++++++ >> include/dt-bindings/clock/a1-clkc.h | 102 +++++++++++++++++++++ >> 2 files changed, 167 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-clkc.yaml >> create mode 100644 include/dt-bindings/clock/a1-clkc.h >> >> diff --git a/Documentation/devicetree/bindings/clock/amlogic,a1-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,a1-clkc.yaml >> new file mode 100644 >> index 0000000..f012eb2 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/clock/amlogic,a1-clkc.yaml >> @@ -0,0 +1,65 @@ >> +/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ >> +/* >> + * Copyright (c) 2019 Amlogic, Inc. All rights reserved. >> + */ >> +%YAML 1.2 >> +--- >> +$id: "http://devicetree.org/schemas/clock/amlogic,a1-clkc.yaml#" >> +$schema: "http://devicetree.org/meta-schemas/core.yaml#" >> + >> +title: Amlogic Meson A1 Clock Control Unit Device Tree Bindings >> + >> +maintainers: >> + - Neil Armstrong >> + - Jerome Brunet >> + - Jian Hu >> + >> +properties: >> + compatible: >> + - enum: >> + - amlogic,a1-clkc >> + >> + reg: >> + minItems: 1 >> + maxItems: 3 >> + items: >> + - description: peripheral registers >> + - description: cpu registers >> + - description: pll registers >> + >> + reg-names: >> + items: >> + - const: peripheral >> + - const: pll >> + - const: cpu >> + >> + clocks: >> + maxItems: 1 >> + items: >> + - description: Input Oscillator (usually at 24MHz) >> + >> + clock-names: >> + maxItems: 1 >> + items: >> + - const: xtal >> + >> +required: >> + - compatible >> + - reg >> + - reg-names >> + - clocks >> + - clock-names >> + - "#clock-cells" >> + >> +examples: >> + - | >> + clkc: clock-controller { >> + compatible = "amlogic,a1-clkc"; >> + reg = <0x0 0xfe000800 0x0 0x100>, >> + <0x0 0xfe007c00 0x0 0x21c>, >> + <0x0 0xfd000080 0x0 0x20>; >> + reg-names = "peripheral", "pll", "cpu"; > > I'm sorry but I don't agree with this. You are trying to regroup several > controllers into one with this, and it is not OK > > By the looks of it there are 3 different controllers, including one you > did not implement in the driver. > Yes, In A1, the clock registers include three regions. I agree with your opinion. I will implement the two clock drivers of peripheral and plls first in PATCH V2. And CPU clock driver will be sent after the patches are merged. >> + clocks = <&xtal; >> + clock-names = "xtal"; >> + #clock-cells = <1>; > > . >