Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1890024rdh; Tue, 26 Sep 2023 06:40:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH02X0roy28PvR26XogYz3CgWLL5/E3yx8vVNfSCI0uS7PhBU6T/YiE5gjGm8ggzv+0Bn/8 X-Received: by 2002:a05:6808:5cc:b0:3a7:3988:87ee with SMTP id d12-20020a05680805cc00b003a7398887eemr10574304oij.58.1695735627854; Tue, 26 Sep 2023 06:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695735627; cv=none; d=google.com; s=arc-20160816; b=ZHosWUwr8Pef5qqQjCHSwNCqsmLFMFGH0wU3LqsB6mzCgWHLHyr3i3XruYUXf0XvHB 5DZ+ry/eR+Dgvm4Z9fcubk1RyM1fO8Tpf0+0YfEvOt+KAUTGsFjHmNKoR9rzJ7PEs/uN 9JHSj0hrIP3NVXLICQj7a3gIR0AGPrzVfNL+CxtOMJFxjWrwEhjk0QrV+SOHIvSZYYJj cyeUcnNafpPH6e5UwcXQb4un2NeCZX+vsOfSCh3QJEurgbAfPe3c8Du5uK42Lil8QoNx 386+K4kgn8GS+fPn5wVAlpCdUC1PiL9Rvmp8fGnIEVk1CkP/tAWONdyOkV2lh80NKzcq UQ+A== 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=Qoe381B97mSD/VAxduHE1lJcdQnU3lxNsdctGVa16Xc=; fh=dfwa9J7mx0JY9FT0/QHTLLVl5yf0Oc26tBe2ZBDb3Ig=; b=i9thWry6FAyKw4T6AvIKmuHbxXVmI5ekLgpXRI2JYvwkk4z81Px9ExCPP0z+oXz3YE mLsEGojqrISApc+usqzvTC3ynQ9Je3UqBqDXwmKE0Tm5VW6LIFx4VjCE1XpNs3GJxSMJ zmGCCv1RWqO8Vy4KV7nLz6rCytzn/ehD5O+TIGvhewreMgGL5yjH9T7ZDFNhgpK13ztJ YC/tIEj+5uemSdGcR79ZOXZddU6H39AW6vy0HlJRArCTQ3syF4fe+DfdbOve8sXkht5r Kms81cPFAgMNGNpw6fUDVfDAu2XlAL+XwCyd8O4ZQr/2w0uQJmtt39hHceiAGwQ388oC fYBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e+UEasE7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id bt8-20020a632908000000b0054fdfd26dffsi12418536pgb.337.2023.09.26.06.40.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 06:40:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e+UEasE7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 2473183731BC; Tue, 26 Sep 2023 06:26:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234036AbjIZNZ7 (ORCPT + 99 others); Tue, 26 Sep 2023 09:25:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233704AbjIZNZ6 (ORCPT ); Tue, 26 Sep 2023 09:25:58 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1182B4; Tue, 26 Sep 2023 06:25:51 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D57EDC433C8; Tue, 26 Sep 2023 13:25:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695734751; bh=Ad5HUhPEQj40kGgmNxNGQfjNC2SztcpqDvyMP2qHtaM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=e+UEasE7mJB5wVg49Yb7RoUWryT/uylyMtAIlEBr/Q7wavS9BKub+GBa+bzvXWfYm 1hCu1ptxSPAIFwybbWRUjMNEUokd9C6QeBSYIzgtmZJq/PsYxnid57yCjR0jY87b0j qcR8MQ2yoFmWdSKLhtsHiZyNVIS+HVOr6+0ZZLIlOvDKwaRy36nEio3Gil47bRhwuu oSP0nlsIlyr9E+EX7OOdAZO+yNbQnAtjiSuazJDlNl+wgSNb68Uyz7HcE8KdOD+E/0 xObc2w+mcved+DxIOu8goWySwQb6svG4YLgTPxS9AUVd09UA+XBPiWYl2sc1cmfbo7 tFY/36EwU8V+A== Date: Tue, 26 Sep 2023 14:25:45 +0100 From: Conor Dooley To: Ming Qian Cc: mirela.rabulea@oss.nxp.com, robh+dt@kernel.org, shawnguo@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, mchehab@kernel.org, hverkuil-cisco@xs4all.nl, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, xiahong.bao@nxp.com, eagle.zhou@nxp.com, tao.jiang_2@nxp.com, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 2/2] dt-bindings: media: imx-jpeg: Assign slot for imx jpeg encoder/decoder Message-ID: <20230926-slackness-target-b74e33ab1031@spud> References: <20230926101000.13392-1-ming.qian@nxp.com> <20230926101000.13392-2-ming.qian@nxp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7eY7R+Myp0ZzWp6O" Content-Disposition: inline In-Reply-To: <20230926101000.13392-2-ming.qian@nxp.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 26 Sep 2023 06:26:00 -0700 (PDT) --7eY7R+Myp0ZzWp6O Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Tue, Sep 26, 2023 at 06:10:00PM +0800, Ming Qian wrote: > There are total 4 slots available in the IP, and we only need to use one > slot in one os, assign a single slot, configure interrupt and power > domain only for 1 slot, not for the all 4 slots. >=20 > Signed-off-by: Ming Qian > --- > v4 > - improve commit message > - don't make an ABI break What does this mean? Can you please try to explain things a bit more clearly in your changelogs? Also, where is the code that actually makes use of these properties? > v3 > - add vender prefix, change property slot to nxp,slot > - add type for property slot >=20 > .../bindings/media/nxp,imx8-jpeg.yaml | 45 +++++++++---------- > 1 file changed, 21 insertions(+), 24 deletions(-) >=20 > diff --git a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml b= /Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml > index 3d9d1db37040..4bcfc815c894 100644 > --- a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml > +++ b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml > @@ -32,19 +32,26 @@ properties: > maxItems: 1 > =20 > interrupts: > - description: | > - There are 4 slots available in the IP, which the driver may use > - If a certain slot is used, it should have an associated interrupt > - The interrupt with index i is assumed to be for slot i > - minItems: 1 # At least one slot is needed by the driver > - maxItems: 4 # The IP has 4 slots available for use > + description: > + Interrupt number for slot > + maxItems: 1 So, what happens to users that already exist that have 2, 3 or 4 interrupts? Your commit message says: > There are total 4 slots available in the IP, and we only need to use one > slot in one os, assign a single slot, configure interrupt and power > domain only for 1 slot, not for the all 4 slots. Note that "only need to use one" doesn't mean that a user might not want to use more than one. Is it possible to use more than one slot? Also, if the interrupt numbers map 1:1 to slots, as the previous binding states, why do you even need this new "nxp,slot" property? Thanks, Conor. > =20 > power-domains: > description: > List of phandle and PM domain specifier as documented in > Documentation/devicetree/bindings/power/power_domain.txt > - minItems: 2 # Wrapper and 1 slot > - maxItems: 5 # Wrapper and 4 slots > + minItems: 1 # VPUMIX > + maxItems: 2 # Wrapper and 1 slot > + > + nxp,slot: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Integer number of slot index used. There are 4 slots available in = the IP, > + and driver can use a certain slot, it should have an associated in= terrupt > + and power-domain. In theory, it supports 4 os or vm. If not specif= ied, 0 > + is used by default. > + minimum: 0 > + maximum: 3 > =20 > required: > - compatible > @@ -62,28 +69,18 @@ examples: > jpegdec: jpegdec@58400000 { > compatible =3D "nxp,imx8qxp-jpgdec"; > reg =3D <0x58400000 0x00050000 >; > - interrupts =3D , > - , > - , > - ; > + interrupts =3D ; > power-domains =3D <&pd IMX_SC_R_MJPEG_DEC_MP>, > - <&pd IMX_SC_R_MJPEG_DEC_S0>, > - <&pd IMX_SC_R_MJPEG_DEC_S1>, > - <&pd IMX_SC_R_MJPEG_DEC_S2>, > - <&pd IMX_SC_R_MJPEG_DEC_S3>; > + <&pd IMX_SC_R_MJPEG_DEC_S0>; > + nxp,slot =3D <0>; > }; > =20 > jpegenc: jpegenc@58450000 { > compatible =3D "nxp,imx8qm-jpgenc", "nxp,imx8qxp-jpgenc"; > reg =3D <0x58450000 0x00050000 >; > - interrupts =3D , > - , > - , > - ; > + interrupts =3D ; > power-domains =3D <&pd IMX_SC_R_MJPEG_ENC_MP>, > - <&pd IMX_SC_R_MJPEG_ENC_S0>, > - <&pd IMX_SC_R_MJPEG_ENC_S1>, > - <&pd IMX_SC_R_MJPEG_ENC_S2>, > - <&pd IMX_SC_R_MJPEG_ENC_S3>; > + <&pd IMX_SC_R_MJPEG_ENC_S0>; > + nxp,slot =3D <0>; > }; > ... > --=20 > 2.38.1 >=20 --7eY7R+Myp0ZzWp6O Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZRLb2QAKCRB4tDGHoIJi 0rLVAP490xhNnzsc7JCNkZo8y8ijcSPOgsQTTnBa/itMeZP5VQEA9H77egyoeeCt VfvJ/btIc+SD/849pirq+9fKnia3Dw4= =VyRg -----END PGP SIGNATURE----- --7eY7R+Myp0ZzWp6O--