Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp487443rdb; Thu, 30 Nov 2023 09:47:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1K0KIVw1jsR4hU8OzoW/UavGY2zhcMm9ohRd/iZVwM/3X8lJEjvucpL2ilKkS5zI5H1Ch X-Received: by 2002:a05:6a21:3815:b0:17b:426f:829 with SMTP id yi21-20020a056a21381500b0017b426f0829mr19891361pzb.37.1701366444118; Thu, 30 Nov 2023 09:47:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701366444; cv=none; d=google.com; s=arc-20160816; b=YoDl8LbCrpSjKidNRFdTkDwmA6srnaX7wnLE6+EU3d6QPwRJXhyvgohzVu1i98PGCR sXsJN+Nw6NUBZIkqBTR4AgHXMiXyht8VjcvhLFKPU9XJTrmnAIHOrRnzmy0w+0EM2mkl BCAsADlIXS8Nbe82uanqfdjCYgdF1T2NJCNBjIapaeOOfzbFb9BIlI944yJB6VTtNJhl u94WZFGK6vJ+Z3aVYL7nD89kefBZadoEgT8sSUJMgsgyIiK8jl0rvbpd9BAOMTvonaBw yvBqTOIJ/rmQirlWy0/Jv0jY5X1BYpvmucBztmFoPbVtazM7I0ujsBojpPgaKaHm8tgN ERng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=s+kKRDGdLoRwa4sdwP8duAQkRO0quqg+Orr5DdwaX0w=; fh=CXk6I2MhIwkTHFNqtYZEhhU4iSB5PwaBSSMRV3ZA194=; b=lQhzUgoPc9PJmU1QtA/+6bGbnnUFw2hMzBnROkiyaq4hkCJVw6ArT4qEYALk6mqwLp ulbr9EWUPq7WGdDkF1/764TsdLKQYU4io8wWUU3T4JPYLon8GapBM7WF/2PTPlM7qack xRU+KifITuGjdTF5JgvdJTAzlCWHfckrEoSiad6OgUExFO8aVPcjxUUNfaIDhpgS7cgL a3rOTsYTGkvXizal2aXlyex+vsYU0poPN+sXOu7UZP+nGGzc+CmgC48540OgqwHv/swn 4eUUU/cGipbv1fUD4euaoQKZ/ZoPHja4icSpAii35gep9cpvqM+ZocozpxLy/iGD4jVH 2i2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ZTkBketZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id bi10-20020a056a02024a00b00565db2812a0si1945119pgb.60.2023.11.30.09.47.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 09:47:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ZTkBketZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 DA92E8028B76; Thu, 30 Nov 2023 09:47:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346649AbjK3Rq6 (ORCPT + 99 others); Thu, 30 Nov 2023 12:46:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235215AbjK3Rqz (ORCPT ); Thu, 30 Nov 2023 12:46:55 -0500 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B31BE106; Thu, 30 Nov 2023 09:46:54 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 4A1FDC000A; Thu, 30 Nov 2023 17:46:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701366412; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=s+kKRDGdLoRwa4sdwP8duAQkRO0quqg+Orr5DdwaX0w=; b=ZTkBketZtNXbb1Sq37VHPcOA0ksn3XTby7UWBldxLZaDPnhzh1dX7MaGsn8zPilY8693hi TVzEFu9xiBcXgtsbTnI9aXYyEyDyLXiyEucS1m0meL3gRD1TmQNC1yD0IEDiuEmH7bK8+m sI9n2XhiNLmVebHv3fQeJmbS7aU5nsQZQavmOf/77mdKFcC7RPEBxBtRSkt57AwRPkpjKZ tcsH8f9dey6qf1ZrMxTPwwRAT9o7pR2+8qD2a2TPQwTGuaMum5Mbxdc6MQHza/PcE4cgJp kQ3WK7YmS2xo4liNodbmjZhqyj5CaA2gwe19ya4tWvxYzwn7WikD5T/L+or0zA== From: Mehdi Djait To: 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 Cc: 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, paul.kocialkowski@bootlin.com, Mehdi Djait , Rob Herring Subject: [PATCH V10 2/3] media: dt-bindings: media: i2c: Add bindings for TW9900 Date: Thu, 30 Nov 2023 18:46:46 +0100 Message-ID: <08018e115a2fe352ac702e7812790e0cf3f8f64d.1701366233.git.mehdi.djait@bootlin.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: mehdi.djait@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]); Thu, 30 Nov 2023 09:47:14 -0800 (PST) The Techwell TW9900 is a video decoder supporting multiple input standards such as PAL and NTSC and has a parallel BT.656 output interface. It's designed to be low-power, posesses some features such as a programmable comb-filter, and automatic input standard detection Reviewed-by: Paul Kocialkowski Reviewed-by: Rob Herring Signed-off-by: Mehdi Djait --- .../bindings/media/i2c/techwell,tw9900.yaml | 137 ++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/techwell,tw9900.yaml 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 standards + 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 = "composite-video-connector"; + label = "tv"; + sdtv-standards = <(SDTV_STD_PAL | SDTV_STD_NTSC)>; + + port { + composite_to_tw9900: endpoint { + remote-endpoint = <&tw9900_to_composite>; + }; + }; + }; + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + video-decoder@44 { + compatible = "techwell,tw9900"; + reg = <0x44>; + + vdd-supply = <&tw9900_supply>; + reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + #address-cells = <1>; + #size-cells = <0>; + + reg = <0>; + tw9900_to_composite: endpoint@0 { + reg = <0>; + remote-endpoint = <&composite_to_tw9900>; + }; + }; + + port@1 { + reg = <1>; + endpoint { + remote-endpoint = <&cif_in>; + }; + }; + }; + }; + }; -- 2.41.0