Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp271658ybg; Tue, 9 Jun 2020 23:50:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5dsGntnb5aBxeHWFURH8TNe3N9UZpLL+EaN895ajZLoYtFM0NmI09LxcfC+xujhxLE2MQ X-Received: by 2002:a05:6402:17f9:: with SMTP id t25mr1273431edy.134.1591771853896; Tue, 09 Jun 2020 23:50:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591771853; cv=none; d=google.com; s=arc-20160816; b=gFZA8Nu5mTN0XMjTiN9kq08Q65T+RLyFT13PDkhRfwQKo5Lo/7yop695zCcieeBAAq ElmJeiRfIveXQBO7UJhyB5rQAEUS2eB8PHHwcO+zNBqJWuaZd5BlvLIg2OUneCfJH0XL YDw3HVIo6aKCAHLjPRhGJe4ZoDEFFnSuT/2VnHW3GEutDbDLYfCMBw/JniBmsxVvbuRX 9vOO3gsQP04kbVPseY6BIC6g/r/GWnSwGRKBpZbT2WhYu1XYtweXfHiwEW3zrIzBtLfV TqqDnmJc/jy3TzDtOhdJd6m/hqEA3FFsisPs6XLrtpdnmX/1MQWHI1eduXxeV8wUFX5h MKnA== 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=Yin6o44RA9C2iY1zjLC7qjeyYuw8En/EwnMzkJfVbHA=; b=RtOjXDAe/ZYPs1aak+yHY383y7zag7B6eNd7jsDAh+jRZzI1uGbREvek9do7RYSQ28 ehUWcC39rrd1KzVfpO62xTZ1aQFYcJ7VHXLazfaeJkrj2vqEjHSnXI8NfORgp41p/w6K m+ItqRBHeEPsFxOh4yVlsFeVsCDEIRsg9w98izhz0uJh45WAgMkRArfzDbdimvfcR1EZ vMw68QTJaaObrrxx9YK3xR6sIxSd/IiWleGpzXt8EWvAjtL01ZhQSoEc1Ihj44I05OYY m9aNvVs9iW4pn51cMFKIsmOBXtCuUdkqOEJRy63WMlqkLd0EBoQ+Rl4ANLeM8mBBy0Hv AWgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=conjEMDd; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h2si4288795ejp.405.2020.06.09.23.50.30; Tue, 09 Jun 2020 23:50:53 -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=@chromium.org header.s=google header.b=conjEMDd; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726258AbgFJGqi (ORCPT + 99 others); Wed, 10 Jun 2020 02:46:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726196AbgFJGqh (ORCPT ); Wed, 10 Jun 2020 02:46:37 -0400 Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0770BC03E96B for ; Tue, 9 Jun 2020 23:46:36 -0700 (PDT) Received: by mail-ot1-x342.google.com with SMTP id 69so898342otv.2 for ; Tue, 09 Jun 2020 23:46:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Yin6o44RA9C2iY1zjLC7qjeyYuw8En/EwnMzkJfVbHA=; b=conjEMDdAu75471GYPOyD9ApfoQNcdTFD9u5fvVioxjXdiCBsEB+nmD8Z4w1ni5NPq p7/iun/lO83U7rEO6kET9GTPXj4KA38CjGV466+SVDXTidx3UmZTldHMfCYp6AQg43Uo rN/HEqG0rgkZQhoklfs8sI4eYaJqYh0RzM7uk= 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=Yin6o44RA9C2iY1zjLC7qjeyYuw8En/EwnMzkJfVbHA=; b=mpFn78fXv9F6ifvF2R2QexfJ+EWm20ZGx+K7TEwA8jIQ1zBAUOMPxWD+iy0hq8iF8T Uz+NegJTVL5YxtitIozUmrSPcwmyc6m21Dfptpg4JV/sO9ziI+OFXcBKj22Xinm6IVYN YMnP+87LkoTcmFzW+D2958Duo0f7kpXG+E5Vi+2oGssjbqnWMsiHKF7zDxLSq5tr0eRD xay/sN3z/hr8aToZbOAm2brN52pJ20QGmnlVKd9br9a/SsJTOhaSW+A/wnoJSomfv++K eOhJOXzHICxqm7rxE7oNt2xfEKAvNsLZCawSl7giVqVf92zjyjVOuPUU++oSK5Z/rfc1 ehwQ== X-Gm-Message-State: AOAM531iZcKsU44KVpjMBEodlStm+Pz3JXO7+ZyeWHGbmYxZPTaq3lxx qAs/YwAhhpjiZcs2budQfrdMZuaFr6Y= X-Received: by 2002:a9d:d24:: with SMTP id 33mr1487227oti.26.1591771593487; Tue, 09 Jun 2020 23:46:33 -0700 (PDT) Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com. [209.85.210.52]) by smtp.gmail.com with ESMTPSA id z9sm2709015otk.74.2020.06.09.23.46.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Jun 2020 23:46:32 -0700 (PDT) Received: by mail-ot1-f52.google.com with SMTP id v13so887353otp.4 for ; Tue, 09 Jun 2020 23:46:31 -0700 (PDT) X-Received: by 2002:a05:6830:242e:: with SMTP id k14mr1533456ots.36.1591771590799; Tue, 09 Jun 2020 23:46:30 -0700 (PDT) MIME-Version: 1.0 References: <1590826218-23653-1-git-send-email-yong.wu@mediatek.com> <1590826218-23653-2-git-send-email-yong.wu@mediatek.com> <20200609212102.GA1416099@bogus> In-Reply-To: <20200609212102.GA1416099@bogus> From: Alexandre Courbot Date: Wed, 10 Jun 2020 15:46:18 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 01/17] media: dt-binding: mtk-vcodec: Separating mtk-vcodec encode node. To: Rob Herring , Tiffany Lin Cc: Yong Wu , Matthias Brugger , Joerg Roedel , Evan Green , Robin Murphy , Tomasz Figa , Will Deacon , "moderated list:ARM/Mediatek SoC support" , srv_heupstream@mediatek.com, devicetree@vger.kernel.org, LKML , "moderated list:ARM/Mediatek SoC support" , iommu@lists.linux-foundation.org, youlin.pei@mediatek.com, Nicolas Boichat , Matthias Kaehlcke , anan.sun@mediatek.com, cui.zhang@mediatek.com, chao.hao@mediatek.com, ming-fan.chen@mediatek.com, eizan@chromium.org, Maoguang Meng , Hsin-Yi Wang , Irui Wang 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 On Wed, Jun 10, 2020 at 6:21 AM Rob Herring wrote: > > On Sat, May 30, 2020 at 04:10:02PM +0800, Yong Wu wrote: > > From: Maoguang Meng > > > > Update binding document since the avc and vp8 hardware encoder in > > mt8173 are now separated. Separate "mediatek,mt8173-vcodec-enc" to > > "mediatek,mt8173-vcodec-vp8-enc" and "mediatek,mt8173-vcodec-avc-enc". > > The h/w suddenly split in 2? You are breaking compatibility. Up to the > Mediatek maintainers to decide if that's okay, but you need to state you > are breaking compatibility (here and in the driver) and why that is > okay. In my understanding there is no real hardware using the old bindings at the moment, and the split is indeed a reflection of the actual hardware layout. Tiffany, can you give your acked-by if this change is ok with you? > > > > > This is a preparing patch for smi cleaning up "mediatek,larb". > > > > Signed-off-by: Maoguang Meng > > Signed-off-by: Hsin-Yi Wang > > Signed-off-by: Irui Wang > > Signed-off-by: Yong Wu > > --- > > .../devicetree/bindings/media/mediatek-vcodec.txt | 58 ++++++++++++---------- > > 1 file changed, 31 insertions(+), 27 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/media/mediatek-vcodec.txt b/Documentation/devicetree/bindings/media/mediatek-vcodec.txt > > index 8093335..1023740 100644 > > --- a/Documentation/devicetree/bindings/media/mediatek-vcodec.txt > > +++ b/Documentation/devicetree/bindings/media/mediatek-vcodec.txt > > @@ -4,7 +4,9 @@ Mediatek Video Codec is the video codec hw present in Mediatek SoCs which > > supports high resolution encoding and decoding functionalities. > > > > Required properties: > > -- compatible : "mediatek,mt8173-vcodec-enc" for MT8173 encoder > > +- compatible : must be one of the following string: > > + "mediatek,mt8173-vcodec-vp8-enc" for mt8173 vp8 encoder. > > + "mediatek,mt8173-vcodec-avc-enc" for mt8173 avc encoder. > > "mediatek,mt8183-vcodec-enc" for MT8183 encoder. > > "mediatek,mt8173-vcodec-dec" for MT8173 decoder. > > - reg : Physical base address of the video codec registers and length of > > @@ -13,10 +15,11 @@ Required properties: > > - mediatek,larb : must contain the local arbiters in the current Socs. > > - clocks : list of clock specifiers, corresponding to entries in > > the clock-names property. > > -- clock-names: encoder must contain "venc_sel_src", "venc_sel",, > > - "venc_lt_sel_src", "venc_lt_sel", decoder must contain "vcodecpll", > > - "univpll_d2", "clk_cci400_sel", "vdec_sel", "vdecpll", "vencpll", > > - "venc_lt_sel", "vdec_bus_clk_src". > > +- clock-names: > > + avc venc must contain "venc_sel"; > > + vp8 venc must contain "venc_lt_sel"; > > + decoder must contain "vcodecpll", "univpll_d2", "clk_cci400_sel", > > + "vdec_sel", "vdecpll", "vencpll", "venc_lt_sel", "vdec_bus_clk_src". > > - iommus : should point to the respective IOMMU block with master port as > > argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.txt > > for details. > > @@ -80,14 +83,10 @@ vcodec_dec: vcodec@16000000 { > > assigned-clock-rates = <0>, <0>, <0>, <1482000000>, <800000000>; > > }; > > > > - vcodec_enc: vcodec@18002000 { > > - compatible = "mediatek,mt8173-vcodec-enc"; > > - reg = <0 0x18002000 0 0x1000>, /*VENC_SYS*/ > > - <0 0x19002000 0 0x1000>; /*VENC_LT_SYS*/ > > - interrupts = , > > - ; > > - mediatek,larb = <&larb3>, > > - <&larb5>; > > +vcodec_enc: vcodec@18002000 { > > + compatible = "mediatek,mt8173-vcodec-avc-enc"; > > + reg = <0 0x18002000 0 0x1000>; > > + interrupts = ; > > iommus = <&iommu M4U_PORT_VENC_RCPU>, > > <&iommu M4U_PORT_VENC_REC>, > > <&iommu M4U_PORT_VENC_BSDMA>, > > @@ -98,8 +97,20 @@ vcodec_dec: vcodec@16000000 { > > <&iommu M4U_PORT_VENC_REF_LUMA>, > > <&iommu M4U_PORT_VENC_REF_CHROMA>, > > <&iommu M4U_PORT_VENC_NBM_RDMA>, > > - <&iommu M4U_PORT_VENC_NBM_WDMA>, > > - <&iommu M4U_PORT_VENC_RCPU_SET2>, > > + <&iommu M4U_PORT_VENC_NBM_WDMA>; > > + mediatek,larb = <&larb3>; > > + mediatek,vpu = <&vpu>; > > + clocks = <&topckgen CLK_TOP_VENC_SEL>; > > + clock-names = "venc_sel"; > > + assigned-clocks = <&topckgen CLK_TOP_VENC_SEL>; > > + assigned-clock-parents = <&topckgen CLK_TOP_VCODECPLL>; > > + }; > > + > > +vcodec_enc_lt: vcodec@19002000 { > > + compatible = "mediatek,mt8173-vcodec-vp8-enc"; > > + reg = <0 0x19002000 0 0x1000>; /* VENC_LT_SYS */ > > + interrupts = ; > > + iommus = <&iommu M4U_PORT_VENC_RCPU_SET2>, > > <&iommu M4U_PORT_VENC_REC_FRM_SET2>, > > <&iommu M4U_PORT_VENC_BSDMA_SET2>, > > <&iommu M4U_PORT_VENC_SV_COMA_SET2>, > > @@ -108,17 +119,10 @@ vcodec_dec: vcodec@16000000 { > > <&iommu M4U_PORT_VENC_CUR_CHROMA_SET2>, > > <&iommu M4U_PORT_VENC_REF_LUMA_SET2>, > > <&iommu M4U_PORT_VENC_REC_CHROMA_SET2>; > > + mediatek,larb = <&larb5>; > > mediatek,vpu = <&vpu>; > > - clocks = <&topckgen CLK_TOP_VENCPLL_D2>, > > - <&topckgen CLK_TOP_VENC_SEL>, > > - <&topckgen CLK_TOP_UNIVPLL1_D2>, > > - <&topckgen CLK_TOP_VENC_LT_SEL>; > > - clock-names = "venc_sel_src", > > - "venc_sel", > > - "venc_lt_sel_src", > > - "venc_lt_sel"; > > - assigned-clocks = <&topckgen CLK_TOP_VENC_SEL>, > > - <&topckgen CLK_TOP_VENC_LT_SEL>; > > - assigned-clock-parents = <&topckgen CLK_TOP_VENCPLL_D2>, > > - <&topckgen CLK_TOP_UNIVPLL1_D2>; > > + clocks = <&topckgen CLK_TOP_VENC_LT_SEL>; > > + clock-names = "venc_lt_sel"; > > + assigned-clocks = <&topckgen CLK_TOP_VENC_LT_SEL>; > > + assigned-clock-parents = <&topckgen CLK_TOP_VCODECPLL_370P5>; > > }; > > -- > > 1.9.1