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: 20940 X-Patchwork-Delegate: sylvester.nawrocki@gmail.com Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1VoXGy-0000Bt-De; Thu, 05 Dec 2013 12:39:12 +0100 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.72/mailfrontend-8) with esmtp id 1VoXGw-0004ms-kc; Thu, 05 Dec 2013 12:39:12 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756081Ab3LELjI (ORCPT + 1 other); 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-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2013.12.5.113314 X-PMX-Spam: Gauge=IIIIIIIII, Probability=9%, Report=' HTML_NO_HTTP 0.1, MULTIPLE_RCPTS 0.1, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_2000_2999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, CHILD_EX_X3 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_MEDIA_BODY 0, __CP_NAME_BODY 0, __CP_URI_IN_BODY 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MULTIPLE_RCPTS_CC_X2 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS ' 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>; + }; + }; +};