Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp985846ybg; Wed, 29 Jul 2020 02:54:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzjeDC2sK9R2egTujghQRIEfTSU37DFGCrKgTu6i1tmc+ts6/ZJPhp2DylIguO+qKEKzjd X-Received: by 2002:aa7:d1c8:: with SMTP id g8mr30298273edp.337.1596016446509; Wed, 29 Jul 2020 02:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596016446; cv=none; d=google.com; s=arc-20160816; b=wOoLiP7rPD+JxgnOcATLfmlYHJJ9Llnmke6WLH6rF8uDmhDA6neMDRUHU6Cau2/gKK Jm0//FnBsHnVqeLZxBQGShsv5ExDiQkRcTEyQ9wWqFl3p0RvLuDwINIfyFzqU2FZ1tHO gZC3JgJwURwZhTYl6WKWxViSUkjCZniAsGRJhEkmP9oZ4e0ZsSP+VtY8qX513AuFYuUb tvfoa8y21JS9aifAFvh0WrgGJQ0o1rpWmsHhC4mAetGpERGsknQw5vG+F6PUCONwZfgr LaY5XdxvjWHmDLKGdzReGnzz0VX7/pCLBfS1JRPwzv1a5d8g05dwZdIk1wiqqrhB/CD2 7A7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=dSPSCJP1B8FFQ4jru/jknXZJ0F7AjGqANGzZ0MmcwoM=; b=Ur0NIzbY2ypyajsLnBdoeOghW1tuA9Nj4XqxIVlbH2qiYgcsrvQ1RtieU4mElaLAB0 f56zWOiM+2RN0zxaIIalVexh+YkYJiijV/zHrJG6jQcSOx1MBKrEi24/ZrSUuS071z9p Rjxuv8Do/8dAlqd43Z7H648XN+wOor8T2VjHpKVvTP7FxWxlt9KBZI56vYINt1LzxO7h rDj8HDICOpQm9bRWLMMkA3N+y1aW5x+WxTxXZadpMODk1TfaD52PUwr6vZDKwUJLAPT6 j/7RZcQ9xM92hoFW/JVlq0J5GTpijJBUZSYrml5dPQCZy+bOywflzhbsKm3zehQ5UM0M 8clA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lIOC7BMx; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j20si935469edr.321.2020.07.29.02.53.44; Wed, 29 Jul 2020 02:54: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lIOC7BMx; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726756AbgG2Jxg (ORCPT + 99 others); Wed, 29 Jul 2020 05:53:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726054AbgG2Jxe (ORCPT ); Wed, 29 Jul 2020 05:53:34 -0400 Received: from mail-oo1-xc44.google.com (mail-oo1-xc44.google.com [IPv6:2607:f8b0:4864:20::c44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ECA9C061794; Wed, 29 Jul 2020 02:53:34 -0700 (PDT) Received: by mail-oo1-xc44.google.com with SMTP id g18so3561273ooa.0; Wed, 29 Jul 2020 02:53:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dSPSCJP1B8FFQ4jru/jknXZJ0F7AjGqANGzZ0MmcwoM=; b=lIOC7BMxg0i3gaLTPiKIqQZ26oN3EKt3MwpLLUUIy24/B3snuIWEqdrxTjAB35H8Dl PJjiXUVULIB843EPpUO4reI82egXXsJ3EkP1/FgV5RPDhHCHT36cbezjM2JEJAlSx11z mVDEmHa/W3gwdmHTrM74ZRxYqRo5eGkaTy85FDfkWtZSnyb0YDn8k5+kG4xMlZl6Amkh hgFe9Zv3NxFeipsLJ1D54xUeKl2esIONeeREh4KlKau6YVHJFeqEYRMfiZMmaXTYQtqR 9KtKXBw8SYqr4haun76+qo16Gw4rtXdWV/t0fWys1dZk4WOJ/6INU7xOu573110m3kNp wz+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dSPSCJP1B8FFQ4jru/jknXZJ0F7AjGqANGzZ0MmcwoM=; b=W5VfYop95C4eyAE86sgMfINDj/L04TwDoi5kxp9YbfHrohjkcG0VTOOHAYtdNzoHbr z+xRfa/cNsFbkbo7Ib4HqrDZlooFVw7+tT/9qH0NP7hfejkex1Sk6KBTLEH8fajq2J1y OLCfjBENgNG1oBEmAplVbT+uhbFOvZIEF/EBQCYaSFMEbqpueL2pXCIDN8NVVyRqJm13 xzlxRwxf40THdmnHBg6WRw9PK4qmF+anlY/xGQM4QXMNO8U2uj2cek13koRX9jeKoa8f NRUR18Q0O/S7ukqhAZy0IPdPvwRFKrMJe5Pa3rsNrIWnA6tkmvVogbJ9asyBjRYCWe8/ qHqg== X-Gm-Message-State: AOAM531n5FETnWiA7AWLgExOIVIlaRvUrDKvJ9c6lRJTIWI/s0Gtoxaq IXLY0xceIc+8xrGiQ6fdC6vVjkzh3qlMDzB7jCw= X-Received: by 2002:a4a:b2cc:: with SMTP id l12mr832013ooo.15.1596016413286; Wed, 29 Jul 2020 02:53:33 -0700 (PDT) MIME-Version: 1.0 References: <1596012277-8448-1-git-send-email-weiyi.lu@mediatek.com> <1596012277-8448-2-git-send-email-weiyi.lu@mediatek.com> In-Reply-To: <1596012277-8448-2-git-send-email-weiyi.lu@mediatek.com> From: Enric Balletbo Serra Date: Wed, 29 Jul 2020 11:53:22 +0200 Message-ID: Subject: Re: [PATCH v2 1/5] dt-bindings: ARM: Mediatek: Document bindings for MT8192 To: Weiyi Lu Cc: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat , James Liao , Linux ARM , linux-kernel , "moderated list:ARM/Mediatek SoC support" , linux-clk@vger.kernel.org, srv_heupstream , Wendell Lin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Weiyu, Thanks for the patch, some comments below. I am not sure what maintainers think but your patches, in general, are really big and I'm wondering if wouldn't be better split by functionalities. Will make your series much longer but easy to review in my opinion. Anyway, I'm going to comment a few files but the comments can be applied to other files. Missatge de Weiyi Lu del dia dc., 29 de jul. 2020 a les 10:46: > > This patch adds the binding documentation for apmixedsys, audsys, > camsys-raw, camsys, imgsys, imp_iic_wrap, infracfg, ipesys, mdpsys, > mfgcfg, mmsys, msdc, pericfg, scp-adsp, topckgen, vdecsys-soc, > vdecsys and vencsys for Mediatek MT8192. > > Signed-off-by: Weiyi Lu > --- > .../bindings/arm/mediatek/mediatek,apmixedsys.txt | 1 + > .../bindings/arm/mediatek/mediatek,audsys.txt | 1 + > .../bindings/arm/mediatek/mediatek,camsys-raw.yaml | 40 ++++++++++++++++++++ > .../bindings/arm/mediatek/mediatek,camsys.txt | 1 + > .../bindings/arm/mediatek/mediatek,imgsys.txt | 2 + > .../arm/mediatek/mediatek,imp_iic_wrap.yaml | 43 ++++++++++++++++++++++ > .../bindings/arm/mediatek/mediatek,infracfg.txt | 1 + > .../bindings/arm/mediatek/mediatek,ipesys.txt | 1 + > .../bindings/arm/mediatek/mediatek,mdpsys.yaml | 38 +++++++++++++++++++ > .../bindings/arm/mediatek/mediatek,mfgcfg.txt | 1 + > .../bindings/arm/mediatek/mediatek,mmsys.txt | 1 + > .../bindings/arm/mediatek/mediatek,msdc.yaml | 39 ++++++++++++++++++++ > .../bindings/arm/mediatek/mediatek,pericfg.yaml | 1 + > .../bindings/arm/mediatek/mediatek,scp-adsp.yaml | 38 +++++++++++++++++++ > .../bindings/arm/mediatek/mediatek,topckgen.txt | 1 + > .../arm/mediatek/mediatek,vdecsys-soc.yaml | 38 +++++++++++++++++++ > .../bindings/arm/mediatek/mediatek,vdecsys.txt | 1 + > .../bindings/arm/mediatek/mediatek,vencsys.txt | 1 + > 18 files changed, 249 insertions(+) > create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,camsys-raw.yaml > create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,imp_iic_wrap.yaml > create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mdpsys.yaml > create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,msdc.yaml > create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,scp-adsp.yaml > create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,vdecsys-soc.yaml > > diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt > index bd7a0fa..6942ad4 100644 > --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt > +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt > @@ -17,6 +17,7 @@ Required Properties: > - "mediatek,mt8135-apmixedsys" > - "mediatek,mt8173-apmixedsys" > - "mediatek,mt8183-apmixedsys", "syscon" > + - "mediatek,mt8192-apmixedsys", "syscon" > - "mediatek,mt8516-apmixedsys" > - #clock-cells: Must be 1 > > diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt > index 38309db..fdcb267 100644 > --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt > +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt > @@ -12,6 +12,7 @@ Required Properties: > - "mediatek,mt7622-audsys", "syscon" > - "mediatek,mt7623-audsys", "mediatek,mt2701-audsys", "syscon" > - "mediatek,mt8183-audiosys", "syscon" > + - "mediatek,mt8192-audsys", "syscon" > - "mediatek,mt8516-audsys", "syscon" > - #clock-cells: Must be 1 > > diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,camsys-raw.yaml b/Documentation/devicetree/bindings/arm/mediatek/mediatek,camsys-raw.yaml > new file mode 100644 > index 0000000..db6f425 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,camsys-raw.yaml > @@ -0,0 +1,40 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/arm/mediatek/mediatek,camsys-raw.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek CAMSYS RAW Controller > + > +maintainers: > + - Weiyi Lu > + > +description: > + The Mediatek camsys raw controller provides various clocks to the system. > + It only provides clocks or also provides configuration registers non-clock related? > +properties: > + compatible: > + items: > + - enum: > + - mediatek,mt8192-camsys_rawa > + - mediatek,mt8192-camsys_rawb > + - mediatek,mt8192-camsys_rawc > + - const: syscon > + > + reg: > + maxItems: 1 > + > + '#clock-cells': > + const: 1 > + > +required: > + - compatible > + - reg > + > +examples: > + - | > + camsys_rawa: camsys_rawa@1a04f000 { I think that this should be "syscon@1a04f000", since node names are supposed to match the class of the device instead of the name of the device. Just because I am curious, can you show me an example of "mediatek,mt8192-camsys_rawb" or "mediatek,mt8192-camsys_rawc"? It's a different address space? > + compatible = "mediatek,mt8192-camsys_rawa", "syscon"; > + reg = <0 0x1a04f000 0 0x1000>; > + #clock-cells = <1>; > + }; [snip]