Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4634381rdh; Wed, 29 Nov 2023 06:51:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGsiBMTeEGTe04lePR/ep56xDtkM1LG6p9CQGmZWwLdAUQAhF9r6g0VocWVpILXyfxIyXQ7 X-Received: by 2002:a05:6a00:6ca4:b0:6cb:b816:7991 with SMTP id jc36-20020a056a006ca400b006cbb8167991mr23861011pfb.6.1701269490090; Wed, 29 Nov 2023 06:51:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701269490; cv=none; d=google.com; s=arc-20160816; b=vLrPUdmsDhpsjjYB1zdWgm6M1jFOKU2tKLgkJIurRGSBBbd+aENtSxGIWpqaar10X+ IzXvOVIfokDnSzJErmUiiUOcW2g53wnt18hmUxdPmvhIh8Q1TmASHuAtCDINRcgi7ZPw UzJw8RppEignixNzRnvmimr8bakAvJTNXxxkEtBa9BDsKV3fxE413QNYfLoVlSmFzllb R8i5kYSyg27DhzGb03r5Zswe6fejSGpTWJKBKhCUItvuqNUGwJbby+BubsRbhH3uvQFy WQfVTbv/Y0w7R04yGC8/hUMVvB8Lj7qUKUHzjeGFiycFpO+zxFj3AvTtl3DkrsGAuQIF wDgA== 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=Zvhoy3MWU/kAI5JAksznH8O+bfmDG28Swkq325dgEQc=; fh=NPgWDMmX14NCjqVYykar6Cr52SYgMwh+jqa1NWIgsIU=; b=zoPP0nmnJnPwcqFYWQ5ncVYWGeRDOJrdlWlZUcB3bbr1Bsn72+oMh4iRgPTe/uigxH G3dtWRUbFBH4m0jkdzgOmZiCD9vaQrbBsHcHgHeW/MIdm4Qre1sfAiZfZYff7RkGGBuf NXp2UE8uLiItse/Q3doPUDVqvAadodi/LYUzoz9j2HQVkN1dnbSVOTqDfbw60uGWOAN8 p4oAw8drSdMoVAREaSwKRLxKaV9M9iyPVyXphyq+deQF90k2wOBRPAKCYWJ96W6Vi+Vw +RwNp0qTeykPDkSOB4eKnaT+XPKStoHeZ4nIT0SbM8fcwd/oKuBTmYxqCSx8yHcV8VYY pzRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=IU5r85yU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id f11-20020a056a001acb00b0068e3f3c6250si14743637pfv.343.2023.11.29.06.51.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 06:51:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=IU5r85yU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id BCF9D80338AA; Wed, 29 Nov 2023 06:51:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233178AbjK2Ou6 (ORCPT + 99 others); Wed, 29 Nov 2023 09:50:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234323AbjK2Oun (ORCPT ); Wed, 29 Nov 2023 09:50:43 -0500 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3509EBE; Wed, 29 Nov 2023 06:50:48 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id C1CCA240005; Wed, 29 Nov 2023 14:50:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701269446; 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=Zvhoy3MWU/kAI5JAksznH8O+bfmDG28Swkq325dgEQc=; b=IU5r85yUfzxDrsmU6tvwihH1x9zyvHde0BuNpwSYc7ufd5mB/Zzjm0I5QsjWyN+05xFd2R hVHbfBLQiMF8py9iAz7EqseLWAcTWSvVSPjn+ICbuydn4D1vLOSKUb8r/mW5bkfOzqp3A3 5YGAwOvZzec+EHfLTrgtdyFdvcceXEDoCEIun2K4+PXO76h9l33ozsmWEdJ260VAXWXd4r +KKf7vVP5pyBaQxtWL5ROchoOhB0ZojiNAzzBdriVAzUr1i0mF/DgBjRQHmNDPkaeOE+3j HEvMlUjgOSTeXV3dctOFenhqncAqpdziMZPZu8Nb2li9BZPWKZx+GR/oSGNAnQ== Date: Wed, 29 Nov 2023 15:50:45 +0100 From: Paul Kocialkowski To: Mehdi Djait Cc: mchehab@kernel.org, heiko@sntech.de, hverkuil-cisco@xs4all.nl, laurent.pinchart@ideasonboard.com, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.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, Rob Herring Subject: Re: [PATCH v9 2/3] media: dt-bindings: media: i2c: Add bindings for TW9900 Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="a9fMN3vXS4yRSY1P" Content-Disposition: inline In-Reply-To: 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 pete.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 (pete.vger.email [0.0.0.0]); Wed, 29 Nov 2023 06:51:20 -0800 (PST) --a9fMN3vXS4yRSY1P Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Fri 17 Nov 23, 16:42, Mehdi Djait wrote: > The Techwell TW9900 is a video decoder supporting multiple input > standards such as PAL and NTSC and has a parallel BT.656 output > interface. >=20 > It's designed to be low-power, posesses some features such as a > programmable comb-filter, and automatic input standard detection >=20 > Reviewed-by: Rob Herring > Signed-off-by: Mehdi Djait Reviewed-by: Paul Kocialkowski Cheers, Paul > --- > .../bindings/media/i2c/techwell,tw9900.yaml | 137 ++++++++++++++++++ > 1 file changed, 137 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/i2c/techwell,= tw9900.yaml >=20 > diff --git a/Documentation/devicetree/bindings/media/i2c/techwell,tw9900.= yaml b/Documentation/devicetree/bindings/media/i2c/techwell,tw9900.yaml > new file mode 100644 > index 000000000000..e37317f81072 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/i2c/techwell,tw9900.yaml > @@ -0,0 +1,137 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/i2c/techwell,tw9900.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Techwell TW9900 NTSC/PAL video decoder > + > +maintainers: > + - Mehdi Djait > + > +description: > + The tw9900 is a multi-standard video decoder, supporting NTSC, PAL sta= ndards > + with auto-detection features. > + > +properties: > + compatible: > + const: techwell,tw9900 > + > + reg: > + maxItems: 1 > + > + vdd-supply: > + description: VDD power supply > + > + reset-gpios: > + description: GPIO descriptor for the RESET input pin > + maxItems: 1 > + > + powerdown-gpios: > + description: GPIO descriptor for the POWERDOWN input pin > + maxItems: 1 > + > + ports: > + $ref: /schemas/graph.yaml#/properties/ports > + > + properties: > + port@0: > + $ref: /schemas/graph.yaml#/$defs/port-base > + description: Analog input port > + > + properties: > + endpoint@0: > + $ref: /schemas/graph.yaml#/properties/endpoint > + description: CVBS over MUX0 > + > + endpoint@1: > + $ref: /schemas/graph.yaml#/properties/endpoint > + description: CVBS over MUX1 > + > + endpoint@2: > + $ref: /schemas/graph.yaml#/properties/endpoint > + description: Chroma over CIN0 and Y over MUX0 > + > + endpoint@3: > + $ref: /schemas/graph.yaml#/properties/endpoint > + description: Chroma over CIN0 and Y over MUX1 > + > + oneOf: > + - required: > + - endpoint@0 > + - required: > + - endpoint@1 > + - required: > + - endpoint@2 > + - required: > + - endpoint@3 > + > + port@1: > + $ref: /schemas/graph.yaml#/properties/port > + description: Video port for the decoder output. > + > + > + required: > + - port@0 > + - port@1 > + > +required: > + - compatible > + - ports > + - reg > + - vdd-supply > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + > + composite_connector { > + compatible =3D "composite-video-connector"; > + label =3D "tv"; > + sdtv-standards =3D <(SDTV_STD_PAL | SDTV_STD_NTSC)>; > + > + port { > + composite_to_tw9900: endpoint { > + remote-endpoint =3D <&tw9900_to_composite>; > + }; > + }; > + }; > + > + i2c { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + video-decoder@44 { > + compatible =3D "techwell,tw9900"; > + reg =3D <0x44>; > + > + vdd-supply =3D <&tw9900_supply>; > + reset-gpios =3D <&gpio2 5 GPIO_ACTIVE_LOW>; > + > + ports { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + port@0 { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + reg =3D <0>; > + tw9900_to_composite: endpoint@0 { > + reg =3D <0>; > + remote-endpoint =3D <&composite_to_tw9900>; > + }; > + }; > + > + port@1 { > + reg =3D <1>; > + endpoint { > + remote-endpoint =3D <&cif_in>; > + }; > + }; > + }; > + }; > + }; > --=20 > 2.41.0 >=20 --=20 Paul Kocialkowski, Bootlin Embedded Linux and kernel engineering https://bootlin.com --a9fMN3vXS4yRSY1P Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEJZpWjZeIetVBefti3cLmz3+fv9EFAmVnT8UACgkQ3cLmz3+f v9ESKwf8DdcZc4vGwQ10PLCRGzjLRppEKoEyFXbC+BIQH/6ymemelleAp4rsqax+ j5Vb4+DpA7G73lnNlcgMicJBm9vIuvRTGIfgPdur0aK8GYg81Hx1uWL7jaC0/+e3 Q6MXtDYPrlsM9eMXRES68pS+gfTHnmkNUYsOI3oMgeWObyQP+IB+h00YLCgkAvGj YeGT2/6ztevYBdVemYkTofUTUD5XQCEOrW1S9MnGcRGW5p6SLvTnE71k60orjncN Jcss/QV07LktCWev+xWO6G8g3FK0mV5MeyTRUx/jbmf1oreiS2h6YGN8lSMGbFbb 1KOzl+MfasZrldZXsJjUG5BGRuY2xQ== =JVMJ -----END PGP SIGNATURE----- --a9fMN3vXS4yRSY1P--