From patchwork Mon Mar 14 03:20:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Chen X-Patchwork-Id: 596933 X-Patchwork-Delegate: agust@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3qNmPs0KbFz9sdm for ; Mon, 14 Mar 2016 16:24:01 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 32422A7761; Mon, 14 Mar 2016 06:22:51 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HY8IBMVyqfMC; Mon, 14 Mar 2016 06:22:51 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 11F88A7707; Mon, 14 Mar 2016 06:22:11 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7B0CFA76C8 for ; Mon, 14 Mar 2016 04:21:19 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n31-QdVvOwgb for ; Mon, 14 Mar 2016 04:21:19 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f65.google.com (mail-pa0-f65.google.com [209.85.220.65]) by theia.denx.de (Postfix) with ESMTPS id 084F5A74E9 for ; Mon, 14 Mar 2016 04:21:16 +0100 (CET) Received: by mail-pa0-f65.google.com with SMTP id q6so13670754pav.0 for ; Sun, 13 Mar 2016 20:21:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZojY9N3YqY36k4oFAxhyA0sFcSxQ4I1QLVLS85XVp0Q=; b=PxFm+i73NBxo1l2xA7syBEdfYHfdvCbQetORUJbdoWlA0WBzRUsUjDsuEojRwzV2iC v8/NLus0c6L2Ag7vuNub4eS9S7gzshQjSwHlz9znxANhnrvD2mL8RxD3SHrOqWbyhKwn SMwI64Yvfz5hMsh7dl6Stzu+Dp1Ytqg/68FinJEwQQvqweHQWPZt+rf/dqSds83FJGfQ I1eRLmh9ETffU0M5DUq4Jhbv65KhXw63LChCuwAnxA45SoJ65aJhZboNBENmTq/AvHBy 5K86e72+9VxVX6HhZv8zcEPPm331+wl7GqqYbl7O9cljZXQQigu0hInVtq08YlfG4ZNd O9gA== X-Gm-Message-State: AD7BkJLxixj5JIrLNxH/ZeIIFwCewayAF2mDHUl6HqRgjnwRrJxSTjOHyeh0XI86WtslJw== X-Received: by 10.66.153.44 with SMTP id vd12mr34206219pab.82.1457925674813; Sun, 13 Mar 2016 20:21:14 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id 16sm27905582pfk.28.2016.03.13.20.21.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 13 Mar 2016 20:21:13 -0700 (PDT) From: Jacob Chen To: u-boot@lists.denx.de Date: Mon, 14 Mar 2016 11:20:19 +0800 Message-Id: <1457925619-8170-7-git-send-email-jacob-chen@iotwrt.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1457925619-8170-1-git-send-email-jacob-chen@iotwrt.com> References: <1457925619-8170-1-git-send-email-jacob-chen@iotwrt.com> X-Mailman-Approved-At: Mon, 14 Mar 2016 06:21:37 +0100 Cc: zyw@rock-chips.com, Jacob Chen , cjf@rock-chips.com Subject: [U-Boot] [PATCH v3 6/6] doc: dt-bindings: Describe rockchip LVDS interface X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" I didn't have a common board to enable LVDS. So add this dcocument to help others who want to enable LVDS in their board. Signed-off-by: Jacob Chen Acked-by: Simon Glass --- Changes in v3: - None Changes in v2: - Correct file - Change description since the using of bingding file doc/device-tree-bindings/video/rockchip-lvds.txt | 77 ++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 doc/device-tree-bindings/video/rockchip-lvds.txt diff --git a/doc/device-tree-bindings/video/rockchip-lvds.txt b/doc/device-tree-bindings/video/rockchip-lvds.txt new file mode 100644 index 0000000..07e3d3f --- /dev/null +++ b/doc/device-tree-bindings/video/rockchip-lvds.txt @@ -0,0 +1,77 @@ +Rockchip LVDS interface +------------------ + +Required properties: +- compatible: "rockchip,rk3288-lvds"; + +- reg: physical base address of the controller and length + of memory mapped region. +- clocks: must include clock specifiers corresponding to entries in the + clock-names property. +- clock-names: must contain "pclk_lvds" + +- rockchip,grf: phandle to the general register files syscon + +- rockchip,data-mapping: should be or , + This describes how the color bits are laid out in the + serialized LVDS signal. +- rockchip,data-width : should be <18> or <24>; +- rockchip,output: should be , or + , This describes the output face. + +- display-timings : described by + doc/devicetree/device-tree-bindings/video/display-timing.txt. + +Example: + lvds: lvds@ff96c000 { + compatible = "rockchip,rk3288-lvds"; + reg = <0xff96c000 0x4000>; + clocks = <&cru PCLK_LVDS_PHY>; + clock-names = "pclk_lvds"; + pinctrl-names = "default"; + pinctrl-0 = <&lcdc0_ctl>; + rockchip,grf = <&grf>; + status = "disabled"; + ports { + #address-cells = <1>; + #size-cells = <0>; + + lvds_in: port@0 { + reg = <0>; + + #address-cells = <1>; + #size-cells = <0>; + + lvds_in_vopb: endpoint@0 { + reg = <0>; + remote-endpoint = <&vopb_out_lvds>; + }; + lvds_in_vopl: endpoint@1 { + reg = <1>; + remote-endpoint = <&vopl_out_lvds>; + }; + }; + }; + }; + + &lvds { + rockchip,data-mapping = ; + rockchip,data-width = <24>; + rockchip,output = ; + rockchip,panel = <&panel>; + status = "okay"; + + display-timings { + timing@0 { + clock-frequency = <40000000>; + hactive = <1920>; + vactive = <1080>; + hsync-len = <44>; + hfront-porch = <88>; + hback-porch = <148>; + vfront-porch = <4>; + vback-porch = <36>; + vsync-len = <5>; + }; + }; + };