Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5081239imu; Tue, 13 Nov 2018 00:27:30 -0800 (PST) X-Google-Smtp-Source: AJdET5d8A2QVM+v6DJe7iVT3EIo1YZxhzEJaxgHVZhy+GyevrKRSkgAFQRYPHQ3FYbuu37B/WX/x X-Received: by 2002:a17:902:e081:: with SMTP id cb1-v6mr4103431plb.206.1542097650410; Tue, 13 Nov 2018 00:27:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542097650; cv=none; d=google.com; s=arc-20160816; b=Yu9jIDuXiT49gUtBBc7AEX1RwACenSHVMH4OGQkUBTOrJD7V9MQ/hxldtGY4TXEmRn YdwGkubBGC8uS7cP+FPO5e0a2JT0101FOTUnhGT/oq9MUwmnOACE12M2vIW5DXrUXRCm CZ6I3uo3wpFJYRoKEviA6gTQ7N3t7V9fhyL8PcFWbWvk54G8Knw+h4VoZIcNQMvfjlF8 k7kB40yamOh2JbFEA9Wl+SMcsr1Lvtd4/eqdIeSmuJiCg1YyiPQ0xg8zrld33AmKzX1e 0akmt7TJvNISQFXirjWdIHfpXd0UUYqejBnc4TloUvHTLVlU9RMaNNxBrklDJHNARXw7 Agyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=yMIcvfstFcx5b13fsC8EcH7VJf9pkgrx4/4BE+3mMvs=; b=uHiF5oiRbdrEvYith2wbQg37R8LOTqx0BCwi8nGSY5Oj1o/ifDpol5IfdCe+Z2N67x dp00yova0j3hRru+IUJnDi+wslZqdqQTTQAO3MurL+Z/SBhxCq5xvMI1AiBtBemR8uzO hmIJyA3lJ53f328w/FT3J60yp+ekp3qPywkc7d6O7V0ssu03DRFthgWaBgSL5J8PPbo1 7yzEunux08ACShwHk8NZO1cP68Ke8YAZ8efDDy80Nqn92Lckuqw/gh/ZsLsDYjnBAlcc 445O+Ow3XXErq4TwCNVe9ZvvSSWdDQy3sPI0OlrFShscPOISgB+bcxqYjc2Pggv0LuWa 2Dyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id be7-v6si18479930plb.267.2018.11.13.00.27.14; Tue, 13 Nov 2018 00:27:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731416AbeKMSVV (ORCPT + 99 others); Tue, 13 Nov 2018 13:21:21 -0500 Received: from mail.bootlin.com ([62.4.15.54]:40208 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731346AbeKMSVV (ORCPT ); Tue, 13 Nov 2018 13:21:21 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 96769208EB; Tue, 13 Nov 2018 09:24:19 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost (aaubervilliers-681-1-30-49.w90-88.abo.wanadoo.fr [90.88.15.49]) by mail.bootlin.com (Postfix) with ESMTPSA id 6C9D62039F; Tue, 13 Nov 2018 09:24:19 +0100 (CET) From: Maxime Ripard To: Hans Verkuil , Sakari Ailus , Mauro Carvalho Chehab Cc: Thomas Petazzoni , Laurent Pinchart , linux-media@vger.kernel.org, Andrzej Hajda , Chen-Yu Tsai , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Mark Rutland , Rob Herring , Frank Rowand , Maxime Ripard Subject: [PATCH 1/5] dt-bindings: media: Add Allwinner A10 CSI binding Date: Tue, 13 Nov 2018 09:24:13 +0100 Message-Id: <60494dd4245ab01473d074dc5cd46198a2181614.1542097288.git-series.maxime.ripard@bootlin.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Allwinner A10 CMOS Sensor Interface is a camera capture interface also used in later (A10s, A13, A20, R8 and GR8) SoCs. On some SoCs, like the A10, there's multiple instances of that controller, with one instance supporting more channels and having an ISP. Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/media/sun4i-csi.txt | 71 ++++++++++++- 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/sun4i-csi.txt diff --git a/Documentation/devicetree/bindings/media/sun4i-csi.txt b/Documentation/devicetree/bindings/media/sun4i-csi.txt new file mode 100644 index 000000000000..3d96bcbef9d9 --- /dev/null +++ b/Documentation/devicetree/bindings/media/sun4i-csi.txt @@ -0,0 +1,71 @@ +Allwinner A10 CMOS Sensor Interface +------------------------------------- + +The Allwinner A10 SoC features two camera capture interfaces, one +featuring an ISP and the other without. Later SoCs built upon that +design and used similar SoCs. + +Required properties: + - compatible: value must be one of: + * allwinner,sun4i-a10-csi + * allwinner,sun5i-a13-csi, allwinner,sun4i-a10-csi + * allwinner,sun7i-a20-csi, allwinner,sun4i-a10-csi + - reg: base address and size of the memory-mapped region. + - interrupts: interrupt associated to this IP + - clocks: phandles to the clocks feeding the CSI + * ahb: the CSI interface clock + * mod: the CSI module clock + * ram: the CSI DRAM clock + - clock-names: the clock names mentioned above + - resets: phandles to the reset line driving the CSI + +Optional properties: + - allwinner,csi-channels: Number of channels available in the CSI + controller. If not present, the default + will be 1. + - allwinner,has-isp: Whether the CSI controller has an ISP + associated to it or not + +If allwinner,has-isp is set, an additional "isp" clock is needed, +being a phandle to the clock driving the ISP. + +The CSI node should contain one 'port' child node with one child +'endpoint' node, according to the bindings defined in +Documentation/devicetree/bindings/media/video-interfaces.txt. The +endpoint's bus type must be parallel or BT656. + +Endpoint node properties for CSI +--------------------------------- + +- remote-endpoint : (required) a phandle to the bus receiver's endpoint + node +- bus-width: : (required) must be 8 +- pclk-sample : (optional) (default: sample on falling edge) +- hsync-active : (only required for parallel) +- vsync-active : (only required for parallel) + +Example: + +csi0: csi@1c09000 { + compatible = "allwinner,sun7i-a20-csi", + "allwinner,sun4i-a10-csi"; + reg = <0x01c09000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_AHB_CSI0>, <&ccu CLK_CSI0>, + <&ccu CLK_CSI_SCLK>, <&ccu CLK_DRAM_CSI0>; + clock-names = "ahb", "mod", "isp", "ram"; + resets = <&ccu RST_CSI0>; + allwinner,csi-channels = <4>; + allwinner,has-isp; + + port { + csi_from_ov5640: endpoint { + remote-endpoint = <&ov5640_to_csi>; + bus-width = <8>; + data-shift = <2>; + hsync-active = <1>; /* Active high */ + vsync-active = <0>; /* Active low */ + pclk-sample = <1>; /* Rising */ + }; + }; +}; -- git-series 0.9.1