Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3298414pxu; Tue, 8 Dec 2020 08:27:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzfyBUSnPj1uHpafKoXmO5ohTEY5AdDd3lV2xbK7q6Ry01enGYNNTQfcL6myRA29Vrlc9ai X-Received: by 2002:a17:906:2b95:: with SMTP id m21mr24422593ejg.134.1607444857540; Tue, 08 Dec 2020 08:27:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607444857; cv=none; d=google.com; s=arc-20160816; b=zCb3SSmSjm/wlZvYUzRIFvhrqKh3FrdSAC7CLhfPl3GJRTRnwp4wF0d1gLhDnloL6q hP6IHkJmAa5ly7TmvZWxmi/nUArJhl0d0VsQ9ApFVHwfPL8O5rCog2Gtxj+ZMcYtx+Zs CTM33H70HY43Fgi6srHjTEUGmJt0IkEi7tUuijZQyh/D3e2PEr2EtccTKMT3uhsgeEO2 8loRedQpgGSKcDJtTZG7BQaA5wIXoIyUPdBsL8VWnSTS8ad2vC93iLgVzKLB1Ay6lHJn WTLDeDFOLEFF5OUVDTxm0pqYbjXK9SkkLhDqJHniCySv6KFxizOaQVB1u0lR+4IFu07u oanQ== 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; bh=H45oA1RbIA3QTuA/kiF4oWuL/M4O4KOFbBBl4/4myPc=; b=U7UyS6+XcZsV/BY2U9BFi6mSFCZeEL9HZMqAqa7eOaeUCLZmMqT3Z17TUa6+mEvxrA eiTrDpSwjXMI5iD2sKkPgtLIaN0BGXfak8TwU3jCDoYYejG2MxAF370Yuaq9E+6waKWB UF7kSDEbpgaChZQBDOVzugjJRmc9De9xZsfk7vRSZFcgcYdC89QNIpfI9uQjPYG/TcLW pBjC1xOtuHHc18JojfT7MfN7eTydBAmW00Ngn3xBBadyAtYgrIvag61+UObCsdH+8MVU EbRT4gmoc/1piTFrdsUv6GigNUP4hycbj/OXiqTJLC00pfapF9wDmyA8jSUwd2K6thZp o5IQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q19si11376593edv.85.2020.12.08.08.27.12; Tue, 08 Dec 2020 08:27:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730183AbgLHQWo (ORCPT + 99 others); Tue, 8 Dec 2020 11:22:44 -0500 Received: from mslow2.mail.gandi.net ([217.70.178.242]:42802 "EHLO mslow2.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730157AbgLHQWo (ORCPT ); Tue, 8 Dec 2020 11:22:44 -0500 Received: from relay9-d.mail.gandi.net (unknown [217.70.183.199]) by mslow2.mail.gandi.net (Postfix) with ESMTP id 31E833ADB5D; Tue, 8 Dec 2020 16:16:21 +0000 (UTC) X-Originating-IP: 90.76.70.27 Received: from pc-2.home (lfbn-tou-1-1249-27.w90-76.abo.wanadoo.fr [90.76.70.27]) (Authenticated sender: maxime.chevallier@bootlin.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 90A1DFF817; Tue, 8 Dec 2020 16:15:17 +0000 (UTC) From: Maxime Chevallier To: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Heiko Stuebner , Hans Verkuil , Ezequiel Garcia Cc: Maxime Chevallier , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Miquel Raynal , Paul Kocialkowski Subject: [PATCH v4 1/3] media: dt-bindings: media: Document Rockchip VIP bindings Date: Tue, 8 Dec 2020 17:15:07 +0100 Message-Id: <20201208161509.655862-2-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20201208161509.655862-1-maxime.chevallier@bootlin.com> References: <20201208161509.655862-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a documentation for the Rockchip Camera Interface controller binding. This controller can be found on platforms such as the PX30 or the RK3288, the PX30 being the only platform supported so far. Signed-off-by: Maxime Chevallier --- v3: Renmed the controller to "vip" v4: fixed the binding to get a compiling example .../bindings/media/rockchip-vip.yaml | 94 +++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/rockchip-vip.yaml diff --git a/Documentation/devicetree/bindings/media/rockchip-vip.yaml b/Documentation/devicetree/bindings/media/rockchip-vip.yaml new file mode 100644 index 000000000000..268dbc7662bf --- /dev/null +++ b/Documentation/devicetree/bindings/media/rockchip-vip.yaml @@ -0,0 +1,94 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/rockchip-vip.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip VIP Camera Interface + +maintainers: + - Maxime Chevallier + +description: |- + Camera Interface for Rockcip platforms + +properties: + compatible: + const: rockchip,px30-vip + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: ACLK + - description: HCLK + - description: PCLK IN + + clock-names: + items: + - const: aclk + - const: hclkf + - const: pclkin + + resets: + items: + - description: AXI + - description: AHB + - description: PCLK IN + + reset-names: + items: + - const: axi + - const: ahb + - const: pclkin + + power-domains: + maxItems: 1 + + # See ./video-interfaces.txt for details + port: + type: object + additionalProperties: false + description: A connection to a sensor or decoder + + properties: + remote-endpoint: true + + required: + - remote-endpoint + +required: + - compatible + - reg + - interrupts + - clocks + - port + +additionalProperties: false + +examples: + - | + #include + #include + #include + + vip: vip@ff490000 { + compatible = "rockchip,px30-vip"; + reg = <0x0 0xff490000 0x0 0x200>; + interrupts = ; + clocks = <&cru ACLK_CIF>, <&cru HCLK_CIF>, <&cru PCLK_CIF>, <&cru SCLK_CIF_OUT>; + clock-names = "aclk", "hclk", "pclkin"; + resets = <&cru SRST_CIF_A>, <&cru SRST_CIF_H>, <&cru SRST_CIF_PCLKIN>; + reset-names = "axi", "ahb", "pclkin"; + power-domains = <&power PX30_PD_VI>; + port { + vip_in: endpoint { + remote-endpoint = <&tw9900_out>; + }; + }; + }; +... -- 2.25.4