From patchwork Wed Aug 27 14:48:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar X-Patchwork-Id: 4788861 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 D3D5EC0338 for ; Wed, 27 Aug 2014 14:54:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2FFF420127 for ; Wed, 27 Aug 2014 14:54:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DFD2920109 for ; Wed, 27 Aug 2014 14:54:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934231AbaH0OyY (ORCPT ); Wed, 27 Aug 2014 10:54:24 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:55450 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933630AbaH0OyX (ORCPT ); Wed, 27 Aug 2014 10:54:23 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NAZ001LI02L2P70@mailout4.samsung.com>; Wed, 27 Aug 2014 23:54:21 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.126]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 7D.22.02948.D11FDF35; Wed, 27 Aug 2014 23:54:21 +0900 (KST) X-AuditID: cbfee68d-f79c46d000000b84-c4-53fdf11dfe7c Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 95.87.04943.D11FDF35; Wed, 27 Aug 2014 23:54:21 +0900 (KST) Received: from chromebld-server.sisodomain.com ([107.108.73.106]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NAY00KFJZZ4GJ60@mmp1.samsung.com>; Wed, 27 Aug 2014 23:54:21 +0900 (KST) From: Ajay Kumar To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: kgene.kim@samsung.com, kgene.kim@gmail.com, inki.dae@samsung.com, thierry.reding@gmail.com, seanpaul@google.com, ajaynumb@gmail.com, jg1.han@samsung.com, joshi@samsung.com, prashanth.g@samsung.com, Ajay Kumar Subject: [PATCH 2/2] ARM: dts: Add DT changes for display on peach_pit Date: Wed, 27 Aug 2014 20:18:28 +0530 Message-id: <1409150908-12801-2-git-send-email-ajaykumar.rs@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1409150908-12801-1-git-send-email-ajaykumar.rs@samsung.com> References: <1409150908-12801-1-git-send-email-ajaykumar.rs@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrGLMWRmVeSWpSXmKPExsWyRsSkTlf2499ggxXz9S0OvD/IYrHhzUJm i/lHzrFaTLo/gcXi8sJLrBbfd31htzi4qZHZonfBVTaLTY+vsVrMOL+PyWLV4Q3sFnMP5lr8 3DWPxYHXY+esu+weCzaVemxeUu/Rt2UVo8fnTXIBrFFcNimpOZllqUX6dglcGdc6vzEX3Beq uLUhuYHxJV8XIyeHhICJxM4vD9khbDGJC/fWs3UxcnEICSxllFi3sYMVpujv8mfsEIlFjBJX Lp1lgnAmMElsf7CRDaSKTUBbYtv0mywgtohApsSmu9sYQYqYBb4ySrx5cBGsSFjATeL3lVVM IDaLgKrEntsHwFbwCnhIvD92GaiBA2idgsScSTYgYU4BT4nnc6YygthCQCW391wHmykhcIpd 4unxhawQcwQkvk0+xALRKyux6QAzxNWSEgdX3G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wfUwcnFINjPH7Tk3MiJqwS4rl2Zo7 ZsGfGO7zX7nYuaPp6u+0sBsKFYtC5l5hnNNzS+tSt3/FxK03L5z3bnR7taktb3Gyu4p+ndhe 5ohtmT+MtxeaXFIXuNQQNu1te6vopTNnay5PmN8kd4o5/dn09cYbeG7GeFvuf/iVSa+o7Ff4 l6Dc0rdnNn5s7lw/MUmJpTgj0VCLuag4EQAHhU7N0wIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@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 Add DT nodes for ps8622 bridge chip and panel. Add backlight power supply for pwm-backlight. Also add bridge phandle needed by dp to enable display on peach_pit. Note that, peach_pit doesn't support "chunghwa,claa101wb01" panel, but still we choose to reuse the binding since "chunghwa,claa101wb01" has similar LCD timings. Signed-off-by: Ajay Kumar --- Changes since V1: -- Remove "simple-panel" compatible string. -- Use GPIO_ACTIVE_HIGH instead of 0. -- Change panel node naming from "panel-simple" to "panel". arch/arm/boot/dts/exynos5420-peach-pit.dts | 36 +++++++++++++++------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts index 228a6b1..1070a31 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -30,11 +30,12 @@ i2c20 = "/spi@12d40000/cros-ec@0/i2c-tunnel"; }; - backlight { + backlight: backlight { compatible = "pwm-backlight"; pwms = <&pwm 0 1000000 0>; brightness-levels = <0 100 500 1000 1500 2000 2500 2800>; default-brightness-level = <7>; + power-supply = <&tps65090_fet1>; pinctrl-0 = <&pwm0_out>; pinctrl-names = "default"; }; @@ -100,6 +101,12 @@ regulator-boot-on; regulator-always-on; }; + + panel: panel { + compatible = "chunghwa,claa101wb01"; + power-supply = <&tps65090_fet6>; + backlight = <&backlight>; + }; }; &dp { @@ -113,22 +120,7 @@ samsung,link-rate = <0x06>; samsung,lane-count = <2>; samsung,hpd-gpio = <&gpx2 6 0>; - - display-timings { - native-mode = <&timing1>; - - timing1: timing@1 { - clock-frequency = <70589280>; - hactive = <1366>; - vactive = <768>; - hfront-porch = <40>; - hback-porch = <40>; - hsync-len = <32>; - vback-porch = <10>; - vfront-porch = <12>; - vsync-len = <6>; - }; - }; + bridge = <&ps8625>; }; &fimd { @@ -155,6 +147,16 @@ pinctrl-names = "default"; pinctrl-0 = <&max98090_irq>; }; + + ps8625: lvds-bridge@48 { + compatible = "parade,ps8625"; + reg = <0x48>; + sleep-gpios = <&gpx3 5 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpy7 7 GPIO_ACTIVE_HIGH>; + lane-count = <2>; + panel = <&panel>; + use-external-pwm; + }; }; &hsi2c_9 {