Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9911993pxu; Tue, 29 Dec 2020 08:20:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxawfJsEzeDSVJmQPwnL5CLUdHMasHp7mfG1sRPvfpwPxkWrUZ7dbIX/F2kCMyFfyaY4K2E X-Received: by 2002:a17:906:cc8c:: with SMTP id oq12mr47350972ejb.419.1609258804841; Tue, 29 Dec 2020 08:20:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609258804; cv=none; d=google.com; s=arc-20160816; b=VvfYfHstRUiz/El2o0zneRBY5MUMNpRUf7NMknngOMQqxVaG3yGmUv+AQbOhzFZGgu MGPfY/tsg7xKIzrEeAO5/QDJWZXyHyLphvPLcWUuJDGUtGvlZEJrQ8Ogx7AUaXpZPw+E +NoSit9Bt30k7U54QlQIJHnyd8yXBLVTk11OpKrsetrdCVSzFJvJ50mmeCx6P1S9hL1B 6Gia2t84OxaoxAh/Wtn1M3NxaUzWYRoNHYeB5S6y1wDd1VzgoD69yNDuib6hEURSkQLk dW8C59mjDQIRLVzsHwKz1ZgBlJRvDKQD5BSn2lUKY737uBJoy1ZUYuOfxMtu24IU/6hY rIAw== 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=6h7KnZokVw1YY9Yy9WxDdZ+zRomlkPj6jYfyIsdJVE8=; b=RRhAlX5ksiBuUnG9TDauJSia4CynZMsvPycwlxePT3iAh4f4Yvu77aajyWUzRvZFPG mwosV+mUSeaZhn6hoe8DMHl/o8DlMhyuZRynDRgvn0Q07AMidYzeMuwDXpsCWIuMDzd3 hYRM/hnglnbJxN8aDUfArsHzmzZNJZT8J17J4kgfN48rM7sGxnoXVrodfTw/91SagSo3 Xl4cIcInK8tDepj74lZriXGJvDN99T3aRWEAhWus1aIwnKQ+YJSUe57RXZ83hgjhGpo5 oqpa4Wb9E2PhwD9DPPlhLxdczf/up017qj1X0zNBIMijA4tQjNPbw9WXLcDn8LTwx3sT AzsQ== 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 j24si20393571ejd.743.2020.12.29.08.19.42; Tue, 29 Dec 2020 08:20:04 -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 S1726285AbgL2QSQ (ORCPT + 99 others); Tue, 29 Dec 2020 11:18:16 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:47525 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726156AbgL2QSM (ORCPT ); Tue, 29 Dec 2020 11:18:12 -0500 X-Originating-IP: 90.55.97.122 Received: from pc-2.home (apoitiers-259-1-26-122.w90-55.abo.wanadoo.fr [90.55.97.122]) (Authenticated sender: maxime.chevallier@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 6C0CAE0004; Tue, 29 Dec 2020 16:17:28 +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 v5 1/3] media: dt-bindings: media: Document Rockchip VIP bindings Date: Tue, 29 Dec 2020 17:17:22 +0100 Message-Id: <20201229161724.511102-2-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20201229161724.511102-1-maxime.chevallier@bootlin.com> References: <20201229161724.511102-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: Renamed the controller to "vip" v4: fixed the binding to get a compiling example v5: Fixed the binding even more, the 'endpoint' description was missing .../bindings/media/rockchip-vip.yaml | 101 ++++++++++++++++++ 1 file changed, 101 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..93055273b32f --- /dev/null +++ b/Documentation/devicetree/bindings/media/rockchip-vip.yaml @@ -0,0 +1,101 @@ +# 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 Rockchip platforms + +properties: + compatible: + const: rockchip,px30-vip + + reg: + maxItems: 2 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: ACLK + - description: HCLK + - description: PCLK IN + + clock-names: + items: + - const: aclk + - const: hclk + - 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: + endpoint: + type: object + + properties: + remote-endpoint: true + + required: + - remote-endpoint + + required: + - 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>; + 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