Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp126443rdb; Tue, 31 Oct 2023 02:53:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZMySiRItxwgLx61RqyJPxAgZVKAMOcA5ulXbJpzfH7ZwwfHIoYwRUQ1hymcWGaBfT2gsB X-Received: by 2002:a92:c74c:0:b0:359:3150:c695 with SMTP id y12-20020a92c74c000000b003593150c695mr1543103ilp.1.1698745985258; Tue, 31 Oct 2023 02:53:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698745985; cv=none; d=google.com; s=arc-20160816; b=hakJraZxOq/OUO7Qp9LNqLJYNpKuUdUt9yRcnodUL4Q5I4BOXz10Qr1bn2RVNbjn2L 8A9EuHebPOW/tNrywJDoF1xNx53PmusM8FF/pcJDysTHxI7reNUf76EIglevsBbZDlnX QEtvGdMORljv2uNQ5clOI1DGbxmmzzF2NreM2jaVP2FZOxklNY3abjcy+zDwuWxjznwz SscvrE9y2OUq6JHhn4WOrzYAgmzFxfbWej5TUa8efXqX4Ar0p/srDdVR2PALPP8hL7Pk OBHzYMwwUDR7jEVzhDQJDKqmnB0kUS6ByB1O0rs1NXI2HFEbbqc40B4Mvy5og5nIhnqF G7+w== 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=FyjN8eHbYq37HQVccSWii8dO2ARTjErlZVWYsMFISx8=; fh=/dXH39kUMWFhtCKk5tP5+NJOFwyfD2JnQ4HcSPvGaEQ=; b=ZrycZQqECfocnHYZJ0tVbkt2JrObC1AuSlphD7oQqAIDCd+m+OThQvj1DwJ68N9VXD HPm0ID4e9hf6K0kqvWtp23kUHUhv7qFjdQ2yLTHA4iIpAXZcsxjN9Y8Xha0g9VfUinlt nwjBFPD/zPLoz4r8RUBWHx8qFKKGTkW1G7t8fGCGFO3sJ+WoHsFGSCuE1GgNWL4SMHt6 dWlSSCDI0DAbzDaDi5oCoNefFkFlcJubrhj6/eSM765u/8vgb20yjp+AZGyi4AyGjyw2 jqff6fFEU3GhunUOc2pKlo5MFyseBZPC4rd/dd8SfIZSxxz8fxIS2lbcj4OQEl4XRtZ0 69lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=UtvrJ5VF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id e17-20020a656791000000b00573fc592e9dsi782802pgr.848.2023.10.31.02.53.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 02:53:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=UtvrJ5VF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 5624B8032141; Tue, 31 Oct 2023 02:53:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236120AbjJaJwj (ORCPT + 99 others); Tue, 31 Oct 2023 05:52:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236105AbjJaJwS (ORCPT ); Tue, 31 Oct 2023 05:52:18 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6BBF1726; Tue, 31 Oct 2023 02:51:10 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 51809C0004; Tue, 31 Oct 2023 09:51:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1698745869; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FyjN8eHbYq37HQVccSWii8dO2ARTjErlZVWYsMFISx8=; b=UtvrJ5VFR7enY6TYyRjZ+MC0kyvTzg9fiJ/FQXHvebe44qetk8VZpyeKLIS/CmYSFqBV42 mlFk/T5iDxapn4GaP9azgvw0de4clF/YQIBWztx3Yvr5A9FvaR7e6/9Qa39JsRtgdPYHrp 7aGYE/zJcE1bkILvJti4atBxNWuLU8Z4Z6RGfPDYrUH9VYNwGyORZwvHjgiZQUHmFAPLmn dJ7GgZ1nQV1VdbLL7w1J5wE4ZLDw47n6Av8x4aDv9gR+ZHA1ZXc0Krnjb+HX353Q9tw1vv uN1fTIwYIrRyzbIN+bf2glV6SypYzE1iZKGtneHHlooBxZgo26bjLSvVxs0fMA== Date: Tue, 31 Oct 2023 10:51:07 +0100 From: Paul Kocialkowski To: Rob Herring Cc: Mehdi Djait , mchehab@kernel.org, heiko@sntech.de, hverkuil-cisco@xs4all.nl, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, alexandre.belloni@bootlin.com, maxime.chevallier@bootlin.com, michael.riesch@wolfvision.net Subject: Re: [PATCH v9 1/3] media: dt-bindings: media: add bindings for Rockchip CIF Message-ID: References: <5f83d60031320c4c7b0f0727604903f50ee49058.1698666612.git.mehdi.djait@bootlin.com> <20231030193236.GA1995060-robh@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7fCeMisMgRBZQnBb" Content-Disposition: inline In-Reply-To: <20231030193236.GA1995060-robh@kernel.org> X-GND-Sasl: paul.kocialkowski@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Tue, 31 Oct 2023 02:53:01 -0700 (PDT) --7fCeMisMgRBZQnBb Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Rob, On Mon 30 Oct 23, 14:32, Rob Herring wrote: > On Mon, Oct 30, 2023 at 01:25:12PM +0100, Mehdi Djait wrote: > > Add a documentation for the Rockchip Camera Interface > > binding. > >=20 > > Signed-off-by: Mehdi Djait > > --- > > v8=3D>v9: > > dropped the "Reviewed-by: Rob Herring " > > because of the following changes: > > - changed the compatible to rk3066-cif: rk3066 is the earliest Rockchip= SoC > > that uses cif and it is the first model starting the RK30 lineup. >=20 > Is px30 compatible with rk3066? It's not clear because you didn't add=20 > rk3066 support. If not compatible, then add rk3066 when you have a user.= =20 > If it is compatible, then you should have a fallback for px30. Just to clarify here: we haven't checked that rk3066 uses the exact same programming model as px30 (so there should be no fallback compatible), but = it is definitely the same unit (in a different version). Since the yaml binding document will apply to all generations of the unit, the name of the file should be the first generation (rk3066) instead of the px30 which is just one of the many iterations of the unit. It would be both confusing and irrelevant to pick px30 just because it happ= ens to be the first generation supported in the Linux driver (and described in the binding). Cheers, Paul > > - adjusted the description > > - changed the node name to video-capture > >=20 > >=20 > > .../bindings/media/rockchip,rk3066-cif.yaml | 96 +++++++++++++++++++ > > 1 file changed, 96 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/media/rockchip,rk= 3066-cif.yaml > >=20 > > diff --git a/Documentation/devicetree/bindings/media/rockchip,rk3066-ci= f.yaml b/Documentation/devicetree/bindings/media/rockchip,rk3066-cif.yaml > > new file mode 100644 > > index 000000000000..be69e474ed26 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/media/rockchip,rk3066-cif.yaml > > @@ -0,0 +1,96 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/media/rockchip,rk3066-cif.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Rockchip CIF Camera Interface > > + > > +maintainers: > > + - Mehdi Djait > > + > > +description: | >=20 > Don't need '|' >=20 > > + CIF is a camera interface present on some rockchip SoCs. It > > + receives the data from Camera sensor or CCIR656 encoder and > > + transfers it into system main memory by AXI bus. >=20 > Wrap lines at 80. >=20 > > + > > +properties: > > + compatible: > > + enum: > > + - rockchip,rk3066-cif > > + - rockchip,px30-vip > > + > > + reg: > > + maxItems: 1 > > + > > + interrupts: > > + maxItems: 1 > > + > > + clocks: > > + items: > > + - description: ACLK > > + - description: HCLK > > + - description: PCLK > > + > > + clock-names: > > + items: > > + - const: aclk > > + - const: hclk > > + - const: pclk > > + > > + resets: > > + items: > > + - description: AXI > > + - description: AHB > > + - description: PCLK IN > > + > > + reset-names: > > + items: > > + - const: axi > > + - const: ahb > > + - const: pclkin > > + > > + power-domains: > > + maxItems: 1 > > + > > + port: > > + $ref: /schemas/graph.yaml#/properties/port > > + description: A connection to a sensor or decoder > > + > > +required: > > + - compatible > > + - reg > > + - interrupts > > + - clocks > > + - port > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + #include > > + #include > > + > > + parent { > > + #address-cells =3D <2>; > > + #size-cells =3D <2>; > > + > > + video-capture@ff490000 { > > + compatible =3D "rockchip,px30-vip"; > > + reg =3D <0x0 0xff490000 0x0 0x200>; > > + interrupts =3D ; > > + clocks =3D <&cru ACLK_CIF>, <&cru HCLK_CIF>, <&cru PCLK_CI= F>; > > + clock-names =3D "aclk", "hclk", "pclk"; > > + resets =3D <&cru SRST_CIF_A>, <&cru SRST_CIF_H>, <&cru SRS= T_CIF_PCLKIN>; > > + reset-names =3D "axi", "ahb", "pclkin"; > > + power-domains =3D <&power PX30_PD_VI>; > > + > > + port { > > + endpoint { > > + remote-endpoint =3D <&tw9900_out>; > > + }; > > + }; > > + }; > > + }; > > +... > > --=20 > > 2.41.0 > >=20 --=20 Paul Kocialkowski, Bootlin Embedded Linux and kernel engineering https://bootlin.com --7fCeMisMgRBZQnBb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEJZpWjZeIetVBefti3cLmz3+fv9EFAmVAzgsACgkQ3cLmz3+f v9Hb1Qf9Eze/ep5/BwUEK3IGBy/qFAEjGRoZuXbOHllYr2mnjDO4odYjMWzn7Av+ ZZR3u2CX3YthbJ2Ebrq8ONpweEkIfLTgPD+PE9PsACFsEcOi8oJBQDtO7FxNbVQJ ztVpqG0kB1cENdFHfj7Q6dI7t9fZXu483YnOTo7gL4ULTd09+Yter3eHoan5jZOB tqMn3kTUv+0Yn5HpQnhubgN42NQpUIVqtdvjuITo/WWIg3ApnW7cexGkiMBRyiwW Z96qKuEaHPkFuy3QyV3QgSzTuEOKQZG3A0Abhzvp1GG5p4mHZTocKK/EqYYCZi8U uN5gs8kAB+u/3LhjwhTgodNISl61Ww== =s9Kd -----END PGP SIGNATURE----- --7fCeMisMgRBZQnBb--