Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3543221pxb; Mon, 24 Jan 2022 11:50:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZhbBHlbhrRqsiG0WNNsVKujSWJ8DerDMk6VQ+W+AXlGzKjdAYnV9Zc3dJkocmwKgQfqdf X-Received: by 2002:a17:90a:7e08:: with SMTP id i8mr3409504pjl.82.1643053847795; Mon, 24 Jan 2022 11:50:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643053847; cv=none; d=google.com; s=arc-20160816; b=q9MKT/mg56BG2062mrrxEeYAfLxsVlhBfin+p77qV5zQqiU1rSRs4yiBVjSK45Q7yy 9DFj520b25D+sbOu5+OcLWgX8o/KWMg8VoMEImDvB1OZGW+0UpH6RMbrko2CW+rGngt4 OMVMEYYjh6N8IpwCx0Ipy2RwBFSTjlUopeRWQfCK9Ua9TgMa6SxbwFZcjXjmRLWcoE3Y y/w5Q548kBuKtnamwvufqmF7/+xCq9XTFOyyJ8kMZudQJix+/zKL8xDMR2jdb3zpKrvD oKAl/i49y2Gql0YCOnAiCKLqTwxjs87+AGG8eFpU06uJHaXGEJsjSwprbMoQctPhu+3e BzTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=bLjR18B4+O+BIq4G++lcJm85fWQaGrH2dHhZhdZDiNg=; b=c4mK99Jti77bO96FPmajEnfshHQTMjKyqkwklpYuC0Z45t6QFYoUn2hvm1DSljFLB5 9yM7dNfp/fZGwkLemm02tyw7YFlYVwYWTNYDD0n9WZcihZc3kdNsP719qfHkmjP2Wp94 5RWb7SqQd5bTjM21bMczemi+8JgKptj6+KrQUdVjBCylniXjuJdvK47z7UJgxawQJiL+ agQZVTqocPnMHGk2MtwvogPkWRDDtIKWowCUGyNzQEZMHuDWfssSTvno/ul+8hRgxghN w1dRv8teiche2j8VX6O8eHO1tT+EGgMU/rKeNdk1Syk0T7yiWHCfItzYIauIiPkhugo/ O5bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20210112.gappssmtp.com header.s=20210112 header.b=4Pwvu6wb; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s3si5404926pgs.627.2022.01.24.11.50.34; Mon, 24 Jan 2022 11:50:47 -0800 (PST) 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=@vanguardiasur-com-ar.20210112.gappssmtp.com header.s=20210112 header.b=4Pwvu6wb; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245057AbiAXSLD (ORCPT + 99 others); Mon, 24 Jan 2022 13:11:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241620AbiAXSLB (ORCPT ); Mon, 24 Jan 2022 13:11:01 -0500 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68E45C06173B for ; Mon, 24 Jan 2022 10:11:01 -0800 (PST) Received: by mail-oi1-x232.google.com with SMTP id bx18so26766078oib.7 for ; Mon, 24 Jan 2022 10:11:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=bLjR18B4+O+BIq4G++lcJm85fWQaGrH2dHhZhdZDiNg=; b=4Pwvu6wbVKNMT1IIQfGgwf/cWB5DOhgoxtmYK9b6CJBDR/cUI8aLbOZCfdjQK3m8Oy fYczIA0hgH9T+qPlgcE6d5o896j4zVri+HqCwa1ld7/XoTdCR1F2qd4oNDAFDyCAyjfc 1e91X48DOh4n4D+LcPA17yp8DIYCconJ51xP7BnflNfJ/vSnPtRWU0GSjkiDJU0kV4Kc XLMa7fgbCO8Vyns+V1qjIAnOKSZGIDxf96+kQ+kHGz3tIBpgAFuflEDcENF7GRTgSxR5 WzSvGjETaJE1YsmuJ2b0vU2pJw1+fsx0n5zBJrd+KI4zrRBgmZDKsqTWwd0R8IyjQGp3 oGdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=bLjR18B4+O+BIq4G++lcJm85fWQaGrH2dHhZhdZDiNg=; b=aLhPEV94DyuYv/8tawUNC/TAbfoLqdcrFag3XsBRNL9tu2CF3vd1arN1J8/frrpK7e 9dZKe+w25p+WnWPSkXQDs0lY1EV7/YMTkp2sZw5/d/gGynBhwqy0Pw/ams24DcYrkf56 /At/adHK0Cv/7mOS8eVAm99/aRInookCSN5n8Csklh6J6+4pLeueAJhGDT4AElaUKxiw zJ6VPmu1JOYjBdWIekBtnDBUs/5qvSw8XdfBj/j3BHQpYkUiQVfUvnO7aG4IrCsepuVw 51N2+10KkEUI1ei/bVDy0zXeE/CL8gUdJonEnO41l/8hWHGHqR2/muo2JwlGWF/pXclY NeOQ== X-Gm-Message-State: AOAM532QkOpfqjXdp0vgK8RsqtVgXLdiY2dKNhTbjzAqStrHj821bdBs glZ6SZncMkDYaslYL6EebHmSMQ== X-Received: by 2002:a05:6808:1644:: with SMTP id az4mr2599697oib.18.1643047860800; Mon, 24 Jan 2022 10:11:00 -0800 (PST) Received: from eze-laptop ([190.194.87.200]) by smtp.gmail.com with ESMTPSA id b7sm4602674ooq.30.2022.01.24.10.10.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 10:10:59 -0800 (PST) Date: Mon, 24 Jan 2022 15:10:53 -0300 From: Ezequiel Garcia To: Adam Ford Cc: linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, shawnguo@kernel.org, aford@beaconembedded.com, Rob Herring , Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Greg Kroah-Hartman , Lucas Stach , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: Re: [PATCH V3 04/10] dt-bindings: media: nxp, imx8mq-vpu: Split G1 and G2 nodes Message-ID: References: <20220124023125.414794-1-aford173@gmail.com> <20220124023125.414794-5-aford173@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220124023125.414794-5-aford173@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 23, 2022 at 08:31:18PM -0600, Adam Ford wrote: > The G1 and G2 are independent and separate decoder blocks > that are enabled by the vpu-blk-ctrl power-domain controller, > which now has a proper driver. > > Because these blocks only share the power-domain, and can be > independently fused out, update the bindings to support separate > nodes for the G1 and G2 decoders with vpu-blk-ctrl power-domain > support. > > The new DT + old kernel isn't a supported configuration. > > Signed-off-by: Adam Ford > Reviewed-by: Rob Herring > Reviewed-by: Ezequiel Garcia Thanks, Ezequiel > diff --git a/Documentation/devicetree/bindings/media/nxp,imx8mq-vpu.yaml b/Documentation/devicetree/bindings/media/nxp,imx8mq-vpu.yaml > index 762be3f96ce9..9c28d562112b 100644 > --- a/Documentation/devicetree/bindings/media/nxp,imx8mq-vpu.yaml > +++ b/Documentation/devicetree/bindings/media/nxp,imx8mq-vpu.yaml > @@ -15,33 +15,20 @@ description: > > properties: > compatible: > - const: nxp,imx8mq-vpu > + oneOf: > + - const: nxp,imx8mq-vpu > + deprecated: true > + - const: nxp,imx8mq-vpu-g1 > + - const: nxp,imx8mq-vpu-g2 > > reg: > - maxItems: 3 > - > - reg-names: > - items: > - - const: g1 > - - const: g2 > - - const: ctrl > + maxItems: 1 > > interrupts: > - maxItems: 2 > - > - interrupt-names: > - items: > - - const: g1 > - - const: g2 > + maxItems: 1 > > clocks: > - maxItems: 3 > - > - clock-names: > - items: > - - const: g1 > - - const: g2 > - - const: bus > + maxItems: 1 > > power-domains: > maxItems: 1 > @@ -49,31 +36,33 @@ properties: > required: > - compatible > - reg > - - reg-names > - interrupts > - - interrupt-names > - clocks > - - clock-names > > additionalProperties: false > > examples: > - | > #include > + #include > + #include > + > + vpu_g1: video-codec@38300000 { > + compatible = "nxp,imx8mq-vpu-g1"; > + reg = <0x38300000 0x10000>; > + interrupts = ; > + clocks = <&clk IMX8MQ_CLK_VPU_G1_ROOT>; > + power-domains = <&vpu_blk_ctrl IMX8MQ_VPUBLK_PD_G1>; > + }; > + - | > + #include > + #include > #include > > - vpu: video-codec@38300000 { > - compatible = "nxp,imx8mq-vpu"; > - reg = <0x38300000 0x10000>, > - <0x38310000 0x10000>, > - <0x38320000 0x10000>; > - reg-names = "g1", "g2", "ctrl"; > - interrupts = , > - ; > - interrupt-names = "g1", "g2"; > - clocks = <&clk IMX8MQ_CLK_VPU_G1_ROOT>, > - <&clk IMX8MQ_CLK_VPU_G2_ROOT>, > - <&clk IMX8MQ_CLK_VPU_DEC_ROOT>; > - clock-names = "g1", "g2", "bus"; > - power-domains = <&pgc_vpu>; > + vpu_g2: video-codec@38300000 { > + compatible = "nxp,imx8mq-vpu-g2"; > + reg = <0x38310000 0x10000>; > + interrupts = ; > + clocks = <&clk IMX8MQ_CLK_VPU_G2_ROOT>; > + power-domains = <&vpu_blk_ctrl IMX8MQ_VPUBLK_PD_G2>; > }; > -- > 2.32.0 >