Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3249486pxb; Mon, 6 Sep 2021 16:47:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBdq+BCRfnyYdcm+y0DUnkLLbUZmg3YLushI5DdZx09TzIX4MPC7LbhlWQ3sgCDfMJdjav X-Received: by 2002:a17:906:ed1:: with SMTP id u17mr16152650eji.304.1630972047841; Mon, 06 Sep 2021 16:47:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630972047; cv=none; d=google.com; s=arc-20160816; b=t5Xy1TEoK28HhgikcDEqobfWdXf09UZbWSoTkJRyhAaqBE84LQPdDrMr4+zbY4Kplt yuOjPv3ByZzbsCimQHOGKE/uxzeUkakiiflfjXMHpNQEYO5Q25cxdYtJSw34xTmujXHu dNy8gIB00nGycTWwxtvOpU5WbtM5wOp64CpBH8J6Bmh4xzZEL32FzOjasBkfzgAZNbPU 0sWxZKKfgk50o20SGNLJx4siwCFRmbW3XoWcMj96+jDMs3rtdY5Pq7ityvgvlnPrV1cB bWRFzZD42HGmqoqEVwLsKAecD283VUJtxM/feH04AZH+p2D8giHeiq2Tp6mGUnKuSqHR uY/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=O4029E/f5nZjFsR+myWdQbik8FUtYuAgzCyMVfdCZM4=; b=wYTfT/nyMpPopjcU//kTVtHYlw1EPWMLqj+eCPy+AtTyYHYQRg4SwBFZi632gGuQ7h Y7f1Er+PVlChDYXnbq5l7qcLhnIejmBPrE60Hj6pLJCaemDDDbgV+3LJQB5LOoVHYe+E Aw4uXgxefhc/l+hcUE3u72dOWiFjfaGfqjF4tCVS1H2DxgZZkugbFaDuSw5gNayu8HCs heAR6CGXJxi+UZEIdD/SAJ4eEhtW77kcAEeK/+b7a+m8TRqscr/dZTF2oL7q9nHdv1kD NasirTl6xC802Q54P9KiioA3OPfj/o55vsjSrHnvQTPJ6kThFTZMe+kNpIAseMhSjPGN xBJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hpN7vQak; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by3si8997859edb.310.2021.09.06.16.46.59; Mon, 06 Sep 2021 16:47:27 -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=@kernel.org header.s=k20201202 header.b=hpN7vQak; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234026AbhIFXnl (ORCPT + 99 others); Mon, 6 Sep 2021 19:43:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:56734 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229866AbhIFXnk (ORCPT ); Mon, 6 Sep 2021 19:43:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4C7C6610E8; Mon, 6 Sep 2021 23:42:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630971755; bh=cuA40y3WCNTC7CV2ya4Ol9astWJ3BZ/R1zc7YsJ6DPA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hpN7vQakMSneLWTFVH6kZZKK4AhSVRO7Ecnkyzi22rWZMdDaDmCfJGp/sGAJx/5As GgAx4SCnLhHUB6dkNnyfIeWiwzOpnnxSB+yfhC/rjf+eNWmNjjZUgTiqsHr0XkE9XJ jD1j6RtWUqfaj+e8PjnF9aO1SQyq58+mz0jAAgk3hrdU/scVgiUQXVvOK9lRITTFkw k6tRK8Fbc77Ea5I3UyrpIQhTfkar5lY9WhIXwjly72Qb6J9djnmFESFJWIl45tiA0j QmiMLSWfdh0BcIeGw41pCHaZ5lEGu+jZ/m2ZAn2p2y0y6WzPxko0VPwV78xk1BkLNk 9xiptRB80UHvw== Received: by mail-ed1-f45.google.com with SMTP id r7so11346180edd.6; Mon, 06 Sep 2021 16:42:35 -0700 (PDT) X-Gm-Message-State: AOAM531anSU4fX50nSOPmOoQTPB2Veqb0cqRGwRnSJ//I483BM6oVh2w eyoHU2137UatrUG9T3mvSM9wARGb5W+lzLKl4Q== X-Received: by 2002:a05:6402:51c9:: with SMTP id r9mr15862686edd.65.1630971753787; Mon, 06 Sep 2021 16:42:33 -0700 (PDT) MIME-Version: 1.0 References: <20210906071539.12953-1-nancy.lin@mediatek.com> <20210906071539.12953-2-nancy.lin@mediatek.com> In-Reply-To: <20210906071539.12953-2-nancy.lin@mediatek.com> From: Chun-Kuang Hu Date: Tue, 7 Sep 2021 07:42:22 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 01/16] dt-bindings: mediatek: add vdosys1 RDMA definition for mt8195 To: "Nancy.Lin" Cc: CK Hu , Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Rob Herring , Matthias Brugger , "jason-jh . lin" , Yongqiang Niu , DRI Development , "moderated list:ARM/Mediatek SoC support" , DTML , linux-kernel , Linux ARM , singo.chang@mediatek.com, srv_heupstream Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Nancy: Nancy.Lin =E6=96=BC 2021=E5=B9=B49=E6=9C=886=E6=97= =A5 =E9=80=B1=E4=B8=80 =E4=B8=8B=E5=8D=883:15=E5=AF=AB=E9=81=93=EF=BC=9A > > Add vdosys1 RDMA definition. > > Signed-off-by: Nancy.Lin > --- > .../display/mediatek/mediatek,mdp-rdma.yaml | 77 +++++++++++++++++++ > 1 file changed, 77 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/mediatek/me= diatek,mdp-rdma.yaml > > diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,= mdp-rdma.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek= ,mdp-rdma.yaml > new file mode 100644 > index 000000000000..3610093848e1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdm= a.yaml I've compared the rdma driver in mdp [1] with the rdma driver in display [2], both are similar. The difference are like merge0 versus merge5. So I would like both binding document are placed together. In display folder? In media folder? In SoC folder? I've no idea which one is better, but at lease put together. [1] https://patchwork.kernel.org/project/linux-mediatek/patch/2021082410002= 7.25989-6-moudy.ho@mediatek.com/ [2] https://patchwork.kernel.org/project/linux-mediatek/patch/2021090607153= 9.12953-12-nancy.lin@mediatek.com/ Regards, Chun-Kuang. > @@ -0,0 +1,77 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/mediatek/mediatek,mdp-rdma.ya= ml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: mediatek display MDP RDMA > + > +maintainers: > + - CK Hu > + > +description: | > + The mediatek display MDP RDMA stands for Read Direct Memory Access. > + It provides real time data to the back-end panel driver, such as DSI, > + DPI and DP_INTF. > + It contains one line buffer to store the sufficient pixel data. > + RDMA device node must be siblings to the central MMSYS_CONFIG node. > + For a description of the MMSYS_CONFIG binding, see > + Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml for= details. > + > +properties: > + compatible: > + oneOf: > + - items: > + - const: mediatek,mt8195-vdo1-rdma > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + power-domains: > + description: A phandle and PM domain specifier as defined by binding= s of > + the power controller specified by phandle. See > + Documentation/devicetree/bindings/power/power-domain.yaml for deta= ils. > + > + clocks: > + items: > + - description: RDMA Clock > + > + iommus: > + description: > + This property should point to the respective IOMMU block with mast= er port as argument, > + see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml fo= r details. > + > + mediatek,gce-client-reg: > + description: > + The register of display function block to be set by gce. There are= 4 arguments, > + such as gce node, subsys id, offset and register size. The subsys = id that is > + mapping to the register of display function blocks is defined in t= he gce header > + include/include/dt-bindings/gce/-gce.h of each chips. > + $ref: /schemas/types.yaml#/definitions/phandle-array > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - power-domains > + - clocks > + - iommus > + > +additionalProperties: false > + > +examples: > + - | > + > + vdo1_rdma0: vdo1_rdma@1c104000 { > + compatible =3D "mediatek,mt8195-vdo1-rdma"; > + reg =3D <0 0x1c104000 0 0x1000>; > + interrupts =3D ; > + clocks =3D <&vdosys1 CLK_VDO1_MDP_RDMA0>; > + power-domains =3D <&spm MT8195_POWER_DOMAIN_VDOSYS1>; > + iommus =3D <&iommu_vdo M4U_PORT_L2_MDP_RDMA0>; > + mediatek,gce-client-reg =3D <&gce1 SUBSYS_1c10XXXX 0x4000 0x1000= >; > + }; > + > -- > 2.18.0 >