Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3196457rdb; Thu, 16 Nov 2023 03:05:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEWA/NiHKKtbk91PCcqbbKmqZnmkpiv9uKQ19EJEza4JCxAqDQOtOpkctdQh4nUa3MVF4Xa X-Received: by 2002:a17:902:eccb:b0:1cc:3c2f:9c41 with SMTP id a11-20020a170902eccb00b001cc3c2f9c41mr9734429plh.23.1700132703409; Thu, 16 Nov 2023 03:05:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700132703; cv=none; d=google.com; s=arc-20160816; b=zwb3nEZfGZyLkN1P/+j1cwQOWs5qCgokvYBDENJlD3sO32EkuhAUBuFOiEN2jvcfCZ xZne3j4kKaXQeWLlFcSM5Y8F9YfGhGvejIx2pmRC1OouULvC6UU5BcKDpUK8CDc5NA1z qimntTeM9wnUU+fuQRUEq0Yu1zRQ/cgdPYeuQg4W3n/A+xvTrWRXBHG9TngwEjFWS1dw 4Qvehqzpf3Idz/N8r50UDfxZNXW9CiscIYyJPLUesJdxmVWtvW6rXuLnhsIz74yHKCHI fgZwsReLa1l7+50VIkyPLgbsFHmbaIFCQKRepJB1fDpPFNWdzLuII9r+Hu3ikkJw7B1G eGyA== 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=EyPmLKEWFPDgPPYRZfXPlUCu9Qf5hi/+K722XVSV1aY=; fh=/sUFM3LIRLscnjlLfpf1Icbv7aS2VHkc5345TYI64Ck=; b=sBOvPz3m0guo9WnvEeEx6iqgGzW1bWUa6On26zKKDHJB9aVq6InTqlrNjOeVWN9nHs RY4HoKk9/OoAeeFPZ2FEahmI6zpzZXIFUY2TsjiFQzIJBRG0Y2aze5haaZcIuo048+u/ AXrFrLb6eKUD4nWdbp4pHQzW6eEnISff7ChIo38OgsHNUmOo+etKOsviuv7CXsYi7sMD 2dnvFgUZjad3ZZU3PT0SNGU/R+MnJLC1LC3iJ/7JoUifZGW8qbadymluJExce8ffwac5 TnKR84Ob38zD3ujrChLdn/utETEtwHNlv2FoWQPp/LFj/XKqKPIn9jMVdQjxN+07pu4y 6Etw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=VpGKJ2f8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ju22-20020a170903429600b001c9bdaa81e3si11359937plb.633.2023.11.16.03.05.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 03:05:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=VpGKJ2f8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id C07F28104F1A; Thu, 16 Nov 2023 03:05:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345045AbjKPLEz (ORCPT + 99 others); Thu, 16 Nov 2023 06:04:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344966AbjKPLEw (ORCPT ); Thu, 16 Nov 2023 06:04:52 -0500 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B94B4A0; Thu, 16 Nov 2023 03:04:46 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id D91EE24000F; Thu, 16 Nov 2023 11:04:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1700132685; 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=EyPmLKEWFPDgPPYRZfXPlUCu9Qf5hi/+K722XVSV1aY=; b=VpGKJ2f8V8L1k5JFSicBbhnQYMHos/cXeeTI3ujE+XUjgPMllmBG7IjwQkvrEYMTwwNRze 2qfufHPYx1bAtJKIqS5XGOfBpaPzuubQ97E+o+G9TZaq0zPZ1jZtV1N4albPW51zA8Z5NL u/wU9g+rJnHTki6HkHGuF5+dazQnaEdUlvx2yhQdCMe1v3SqVC0PkdLVgZqyyqK4Fn/s3c sCiOoU2h7GzgwIxTh7BlnF0ogglRkAYOkoUjgdIoRroAGJxqpSe1756rguduo0hU6vKBwI u3DAelmdMtYb/dTZviVHNM8a0GhiACUVy6PiAfB5RAE7yyG628N6PM+ZfQRebA== From: Mehdi Djait To: mchehab@kernel.org, heiko@sntech.de, hverkuil-cisco@xs4all.nl, 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, michael.riesch@wolfvision.net, Mehdi Djait Subject: [PATCH v11 1/3] media: dt-bindings: media: add bindings for Rockchip CIF Date: Thu, 16 Nov 2023 12:04:38 +0100 Message-ID: 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 (snail.vger.email [0.0.0.0]); Thu, 16 Nov 2023 03:05:01 -0800 (PST) Add a documentation for the Rockchip Camera Interface binding. Signed-off-by: Mehdi Djait --- .../bindings/media/rockchip,px30-vip.yaml | 173 ++++++++++++++++++ 1 file changed, 173 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml diff --git a/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml b/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml new file mode 100644 index 000000000000..580ed654000c --- /dev/null +++ b/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml @@ -0,0 +1,173 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/rockchip,px30-vip.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip CIF Camera Interface + +maintainers: + - Mehdi Djait + +description: + 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. + +properties: + compatible: + const: 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 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: input port on the parallel interface + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + bus-type: + enum: [5, 6] + + required: + - bus-type + + required: + - port@0 + +required: + - compatible + - reg + - interrupts + - clocks + - ports + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + #include + #include + + parent { + #address-cells = <2>; + #size-cells = <2>; + + video-capture@ff490000 { + compatible = "rockchip,px30-vip"; + reg = <0x0 0xff490000 0x0 0x200>; + interrupts = ; + clocks = <&cru ACLK_CIF>, <&cru HCLK_CIF>, <&cru PCLK_CIF>; + clock-names = "aclk", "hclk", "pclk"; + resets = <&cru SRST_CIF_A>, <&cru SRST_CIF_H>, <&cru SRST_CIF_PCLKIN>; + reset-names = "axi", "ahb", "pclkin"; + power-domains = <&power PX30_PD_VI>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + cif_in: endpoint { + remote-endpoint = <&tw9900_out>; + bus-type = ; + }; + }; + }; + }; + + 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>; + tw9900_out: endpoint { + remote-endpoint = <&cif_in>; + }; + }; + }; + }; + }; + }; +... -- 2.41.0