From patchwork Mon Sep 19 19:02:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ayaka X-Patchwork-Id: 9340337 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0E4B66022E for ; Mon, 19 Sep 2016 19:03:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F01682966E for ; Mon, 19 Sep 2016 19:03:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E4A9529670; Mon, 19 Sep 2016 19:03:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6BBAD2966E for ; Mon, 19 Sep 2016 19:03:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752145AbcISTDT (ORCPT ); Mon, 19 Sep 2016 15:03:19 -0400 Received: from kozue.soulik.info ([108.61.200.231]:57299 "EHLO kozue.soulik.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751905AbcISTDS (ORCPT ); Mon, 19 Sep 2016 15:03:18 -0400 Received: from ritsuko.sumomo.pri (unknown [IPv6:2001:470:b30d:2::3bd]) by kozue.soulik.info (Postfix) with ESMTPA id 797F61012B5; Tue, 20 Sep 2016 04:03:26 +0900 (JST) From: Randy Li To: dri-devel@lists.freedesktop.org Cc: linux@armlinux.org.uk, kgene@kernel.org, krzk@kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, thierry.reding@gmail.com, airlied@linux.ie, a.hajda@samsung.com, devicetree@vger.kernel.org, Randy Li Subject: [RFC PATCH v3 1/2] ARM: dts: samsung: add rga-lvds panel in itop elite Date: Tue, 20 Sep 2016 03:02:50 +0800 Message-Id: <1474311771-23321-2-git-send-email-ayaka@soulik.info> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474311771-23321-1-git-send-email-ayaka@soulik.info> References: <1474311771-23321-1-git-send-email-ayaka@soulik.info> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It is actually a lvds panel connected through a rga-lvds bridge. The touchscreen is communicated with i2c bus but the driver is not support now. Signed-off-by: Randy Li --- arch/arm/boot/dts/exynos4412-itop-elite.dts | 54 +++++++++++++++++++++++++++-- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/exynos4412-itop-elite.dts b/arch/arm/boot/dts/exynos4412-itop-elite.dts index b08705e..5153522 100644 --- a/arch/arm/boot/dts/exynos4412-itop-elite.dts +++ b/arch/arm/boot/dts/exynos4412-itop-elite.dts @@ -138,6 +138,36 @@ assigned-clocks = <&clock CLK_MOUT_CAM0>; assigned-clock-parents = <&clock CLK_XUSBXTI>; }; + + vcc_sys_lcd: sys-lcd { + compatible = "regulator-fixed"; + regulator-name = "vcc_5v"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpl0 4 GPIO_ACTIVE_HIGH>; + }; + + panel: panel@0 { + compatible = "chunghwa,claa070wp03xg"; + + power-supply = <&vcc_sys_lcd>; + enable-gpios = <&gpl0 2 GPIO_ACTIVE_HIGH>; + backlight = <&bl>; + + port { + lcd_ep: endpoint { + remote-endpoint = <&rga_lvds>; + }; + }; + }; + + bl: backlight { + compatible = "pwm-backlight"; + pwms = <&pwm 1 5000000 PWM_POLARITY_INVERTED>; + brightness-levels = <0 5 12 16 32 64 128 255>; + default-brightness-level = <5>; + power-supply = <&vcc_sys_lcd>; + }; }; &adc { @@ -171,11 +201,31 @@ assigned-clock-rates = <0>, <176000000>; }; +&fimd { + pinctrl-0 = <&lcd_clk &lcd_data24>; + pinctrl-names = "default"; + status = "okay"; + ports { + #address-cells = <1>; + #size-cells = <0>; + port@3 { + reg = <3>; + rga_lvds: endpoint { + remote-endpoint = <&lcd_ep>; + }; + }; + }; +}; + &hsotg { dr_mode = "peripheral"; status = "okay"; }; +&i2c_3 { + status = "okay"; +}; + &i2c_4 { samsung,i2c-sda-delay = <100>; samsung,i2c-slave-addr = <0x10>; @@ -215,9 +265,9 @@ &pwm { status = "okay"; - pinctrl-0 = <&pwm0_out>; + pinctrl-0 = <&pwm0_out &pwm1_out>; pinctrl-names = "default"; - samsung,pwm-outputs = <0>; + samsung,pwm-outputs = <0>, <1>; }; &sdhci_2 {