From patchwork Thu Jan 4 06:12:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10143925 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 A97DC6034B for ; Thu, 4 Jan 2018 06:16:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B16E28414 for ; Thu, 4 Jan 2018 06:16:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8FE6A28420; Thu, 4 Jan 2018 06:16:00 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1E60328414 for ; Thu, 4 Jan 2018 06:15:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=NnFcJs6FEIyJV4mkkiHCfExP6eChfDf1U820b7ix85E=; b=Fxr/5+K3nWhL/hggUgLJHzLn26 GmfBl1b9rYxApI+M81LttQkq+vdOHT3Gi8IqhF2AwkExnG7oqasXcgkWaRYs9LvULV9e4/dAnbgMH XId/XQ8+plBGPME7EFO+5aLsqRBfnws1rtKa/3d1OzvKq6LRtJTZ+H68ywDVAFae7NHqVMc9YhNSP NDt5rrq6szQdY4AgowmCiR/rv2ayTN6ytB3YaYcL+J5XNgoQ2vN83Rwda4WnFa3XtDGblXQjplmTB 0ZqhvVH41t4bOsH8v9Q6zMkwqSq+xx8hEjl7STnYuQPpLdVQFaV61dOm7zdN256dcBXDJSyUVG3S1 kZ/qO0aQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eWyol-00032a-G7; Thu, 04 Jan 2018 06:15:55 +0000 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eWynm-00023Q-Np for linux-arm-kernel@lists.infradead.org; Thu, 04 Jan 2018 06:15:00 +0000 Received: by mail-pl0-x242.google.com with SMTP id d21so534113pll.1 for ; Wed, 03 Jan 2018 22:14:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=r2jYOtwDn1DKutQC6hiqi+W6p1dYMoiuoF9iHoCyugU=; b=GHLdr/FItxm1CWD15y6sYiY0nurVnkcwWTHhczd+YIGz5jB3O2jSwjuwc7q3sxUikW BBPnWYlzFw7zwdqtyQ6/EIe+yso58F+xWMgpq2IbS0sYjH9UhiHS2q69dXQFREqxutFK k1RtyqhVwmLmGpgZgnyCMONGleX4UNSP/1Oh3Wi3OEFZ+xxtYJ8nQB7Mn79ltWnm06Ms i8M2W09jaM4sD8DjV6oR2pRgGvhQjJRLAiGOEx6YtNVOWBmZ86jW5A9yD0/rm7+kbuFe Gqzi8shqVkbvNUZtwkVsIqPuUs/9N/exoCUPVXXvJT46d4FG+JqYyZ0F3gHK9Q/OiOvE fv1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=r2jYOtwDn1DKutQC6hiqi+W6p1dYMoiuoF9iHoCyugU=; b=Py2kRi0KEwj0hDnBKXlx99e8GXTa6hdNrLztmIJslsAgb4s8RjPbVmq6H0sg5FXDLC EzvcCi/P5CBfy6HIywPxBaAdLFx4esqGyumHFwR4akmuAXW7Rr1vIbw1Sci+N1PknTSa Vngsm2HECs9SDGWOOfD+bBBPT+vXMzdACbWNbfsOzMh1iwGDDe5Z0JOzMFsqU0rVGSGz 89zX+9Vh2LbAoan02N+aPRgjPLs1qQdeGBD/aAIAdZNIwSvkC/5j4fJV5Iyv2PN2FZNA wlTmz3L4YlgsHQRgKiWNISI/x4ScZOFxg0AkO2YrHy08ASXvEHnihXYkahfih99mRMYC clBQ== X-Gm-Message-State: AKGB3mK8LpsCjJ6qRG4URwclgSsRLkcgllASrUeKIxSEieC9TqHSxEgc 8Tdp08MI6Nv/N2I+fc/42UH/Fw== X-Google-Smtp-Source: ACJfBov1LzaKZbYDvezH55qqyO57jVkmMsXjp39Rv8w7iGS5pLGHO4fJUv0XNLCf/HFOd8Y5Mj6C9Q== X-Received: by 10.84.233.207 with SMTP id m15mr3598831pln.424.1515046483548; Wed, 03 Jan 2018 22:14:43 -0800 (PST) Received: from localhost.localdomain ([115.97.180.212]) by smtp.gmail.com with ESMTPSA id y5sm5921514pfa.128.2018.01.03.22.14.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Jan 2018 22:14:43 -0800 (PST) From: Jagan Teki To: Shawn Guo Subject: [PATCH v2 2/7] ARM: dts: imx6q-icore: Switch LVDS timings from panel-simple Date: Thu, 4 Jan 2018 11:42:20 +0530 Message-Id: <1515046345-15881-3-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515046345-15881-1-git-send-email-jagan@amarulasolutions.com> References: <1515046345-15881-1-git-send-email-jagan@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180103_221455_062345_F42EC8AE X-CRM114-Status: GOOD ( 10.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Matteo Lisi , linux-kernel@vger.kernel.org, Jagan Teki , Sascha Hauer , Fabio Estevam , Michael Trimarchi , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Switch to use ampire,am-800480aytzqw-00h LVDS timings from panel-simple instead hard coding the same in dts. Signed-off-by: Jagan Teki --- Changes for v2: - none arch/arm/boot/dts/imx6q-icore.dts | 31 +++++++++++++++++-------------- arch/arm/boot/dts/imx6qdl-icore.dtsi | 2 +- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/arch/arm/boot/dts/imx6q-icore.dts b/arch/arm/boot/dts/imx6q-icore.dts index 5613dd9..c8e464e 100644 --- a/arch/arm/boot/dts/imx6q-icore.dts +++ b/arch/arm/boot/dts/imx6q-icore.dts @@ -48,6 +48,17 @@ / { model = "Engicam i.CoreM6 Quad/Dual Starter Kit"; compatible = "engicam,imx6-icore", "fsl,imx6q"; + + panel { + compatible = "ampire,am-800480aytzqw-00h"; + backlight = <&backlight_lvds>; + + port { + panel_in: endpoint { + remote-endpoint = <&lvds0_out>; + }; + }; + }; }; &can1 { @@ -71,22 +82,14 @@ status = "okay"; lvds-channel@0 { - fsl,data-mapping = "spwg"; - fsl,data-width = <18>; + reg = <0>; status = "okay"; - display-timings { - native-mode = <&timing0>; - timing0: timing0 { - clock-frequency = <60000000>; - hactive = <800>; - vactive = <480>; - hback-porch = <30>; - hfront-porch = <30>; - vback-porch = <5>; - vfront-porch = <5>; - hsync-len = <64>; - vsync-len = <20>; + port@4 { + reg = <4>; + + lvds0_out: endpoint { + remote-endpoint = <&panel_in>; }; }; }; diff --git a/arch/arm/boot/dts/imx6qdl-icore.dtsi b/arch/arm/boot/dts/imx6qdl-icore.dtsi index a1b469c..5fd9e00 100644 --- a/arch/arm/boot/dts/imx6qdl-icore.dtsi +++ b/arch/arm/boot/dts/imx6qdl-icore.dtsi @@ -49,7 +49,7 @@ reg = <0x10000000 0x80000000>; }; - backlight { + backlight_lvds: backlight-lvds { compatible = "pwm-backlight"; pwms = <&pwm3 0 100000>; brightness-levels = <0 4 8 16 32 64 128 255>;