From patchwork Thu Dec 5 11:38:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 3287561 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 06561C0D4A for ; Thu, 5 Dec 2013 11:39:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B4838204DF for ; Thu, 5 Dec 2013 11:39:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 76CBE204E2 for ; Thu, 5 Dec 2013 11:39:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756081Ab3LELjI (ORCPT ); Thu, 5 Dec 2013 06:39:08 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:53546 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755792Ab3LELjE (ORCPT ); Thu, 5 Dec 2013 06:39:04 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MXC00JF60D3BJ10@mailout2.w1.samsung.com>; Thu, 05 Dec 2013 11:39:03 +0000 (GMT) X-AuditID: cbfec7f4-b7f966d0000003d9-4c-52a065d77ef2 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 37.53.00985.7D560A25; Thu, 05 Dec 2013 11:39:03 +0000 (GMT) Received: from AMDC1061.digital.local ([106.116.147.88]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MXC006XU0CV7T70@eusync1.samsung.com>; Thu, 05 Dec 2013 11:39:03 +0000 (GMT) From: Andrzej Hajda To: linux-media@vger.kernel.org Cc: Andrzej Hajda , laurent.pinchart@ideasonboard.com, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, Sylwester Nawrocki , Kyungmin Park , Rob Herring , Pawel Moll , Mark Rutland , Stephen Warren , Ian Campbell , Grant Likely Subject: [PATCH v10 2/2] s5k5baf: add DT bindings for camera sensor Date: Thu, 05 Dec 2013 12:38:40 +0100 Message-id: <1386243520-17117-3-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.8.3.2 In-reply-to: <1386243520-17117-1-git-send-email-a.hajda@samsung.com> References: <1386243520-17117-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrILMWRmVeSWpSXmKPExsVy+t/xy7rXUxcEGWw6z2xxa905Vov5R4DE gT87GC3e9HawWJxtesNu0TlxCbtFz4atrBYzzu9jslh6/SKTxYTpa1ksDq84wGRx+E07q8Wr g20sDrwea+atYfRY8PkKu8fryRMYPWZ3zGT1uHNtD5tH35ZVjB6fN8l5bJwbGsARxWWTkpqT WZZapG+XwJVxs+EMa8Ff0YotTcoNjO8Fuxg5OSQETCRWb/jHCmGLSVy4t56ti5GLQ0hgKaPE /KPXoZw+JonT966AVbEJaEr83XyTDcQWEZCXeNJ7A8xmFrjELLF7tTOILSzgLPH19D8WEJtF QFVi7erLTCA2L1D8+YZ2qG0KEsu+rGUGsTkFXCRO3DoMNkcIqKbl4krWCYy8CxgZVjGKppYm FxQnpeca6hUn5haX5qXrJefnbmKEBOuXHYyLj1kdYhTgYFTi4f2RPz9IiDWxrLgy9xCjBAez kgivY+yCICHelMTKqtSi/Pii0pzU4kOMTBycUg2MZU5nxUO+Jad6JWdEl388ZdSwPfnsfA3H t/IzZgh6xd3bq7Zr1eOmV+9nBu9MMAs+Li1b9/7G/oD3UQ4iqg9OyJ9WcM97WaXH+uKGzZzm h89SI6TmJKQJ/ot/zXFrMdOtgw13z1mzG319WuEV1au0/i/D8v7XGfk7bDyq57b9azibOOE2 t2qIEktxRqKhFnNRcSIAzhSBEzQCAAA= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The patch adds the DT bindings documentation for Samsung S5K5BAF Image Sensor. Signed-off-by: Andrzej Hajda Signed-off-by: Kyungmin Park Acked-by: Mark Rutland --- v10 - bindings moved to separate patch, - improved clocks description. --- .../devicetree/bindings/media/samsung-s5k5baf.txt | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/samsung-s5k5baf.txt diff --git a/Documentation/devicetree/bindings/media/samsung-s5k5baf.txt b/Documentation/devicetree/bindings/media/samsung-s5k5baf.txt new file mode 100644 index 0000000..1f51e04 --- /dev/null +++ b/Documentation/devicetree/bindings/media/samsung-s5k5baf.txt @@ -0,0 +1,58 @@ +Samsung S5K5BAF UXGA 1/5" 2M CMOS Image Sensor with embedded SoC ISP +-------------------------------------------------------------------- + +Required properties: + +- compatible : "samsung,s5k5baf"; +- reg : I2C slave address of the sensor; +- vdda-supply : analog power supply 2.8V (2.6V to 3.0V); +- vddreg-supply : regulator input power supply 1.8V (1.7V to 1.9V) + or 2.8V (2.6V to 3.0); +- vddio-supply : I/O power supply 1.8V (1.65V to 1.95V) + or 2.8V (2.5V to 3.1V); +- stbyn-gpios : GPIO connected to STDBYN pin; +- rstn-gpios : GPIO connected to RSTN pin; +- clocks : list of phandle and clock specifier pairs + according to common clock bindings for the + clocks described in clock-names; +- clock-names : should include "mclk" for the sensor's master clock; + +Optional properties: + +- clock-frequency : the frequency at which the "mclk" clock should be + configured to operate, in Hz; if this property is not + specified default 24 MHz value will be used. + +The device 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 following are properties specific to those +nodes. + +endpoint node +------------- + +- data-lanes : (optional) specifies MIPI CSI-2 data lanes as covered in + video-interfaces.txt. If present it should be <1> - the device + supports only one data lane without re-mapping. + +Example: + +s5k5bafx@2d { + compatible = "samsung,s5k5baf"; + reg = <0x2d>; + vdda-supply = <&cam_io_en_reg>; + vddreg-supply = <&vt_core_15v_reg>; + vddio-supply = <&vtcam_reg>; + stbyn-gpios = <&gpl2 0 1>; + rstn-gpios = <&gpl2 1 1>; + clock-names = "mclk"; + clocks = <&clock_cam 0>; + clock-frequency = <24000000>; + + port { + s5k5bafx_ep: endpoint { + remote-endpoint = <&csis1_ep>; + data-lanes = <1>; + }; + }; +};