From patchwork Sun Feb 4 17:49:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10199411 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 C72C060318 for ; Sun, 4 Feb 2018 17:55:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C00022843C for ; Sun, 4 Feb 2018 17:55:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B49332859F; Sun, 4 Feb 2018 17:55:39 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, 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 4128B2843C for ; Sun, 4 Feb 2018 17:55:39 +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=JpyDXNNSKT78hc/BbDmQzN+DT59W/bXgwF9ftRxHCYA=; b=vAPREOdy+m0YuOnXDXAEUQtVsi 0QVuPnqIKTRHaI9/PteJDmkWyLv1FlZMwOfKgrxswun+1+CyIvWoWCViCybRg9Cfbq/IcRfZ5iY1E 5fwE6kz823VDM7bW9Cc7/4nL8WcyvOfeA0PRHrP1Qgu90vIuYZQoEjb3rmdCiBA5i0+cVTgWjMKsv qqTZsN5KhfejqxBUhw/WmRd7DDQlxIp2pxKJf3VzkHhh01BgoJp1AnGSVic8/IlQsUm7b/xlDlF7g sHP2Ky6eusXWWaz9iKM394f8/Mq7KU6JwWav1THuqQPW1ke5+G8iuKH+c3neRpaho54/GP6/nEo+5 KpebEfng==; 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 1eiOVs-0002aC-IF; Sun, 04 Feb 2018 17:55:36 +0000 Received: from mail-pl0-x243.google.com ([2607:f8b0:400e:c01::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eiOVL-0000jx-I4 for linux-arm-kernel@lists.infradead.org; Sun, 04 Feb 2018 17:55:09 +0000 Received: by mail-pl0-x243.google.com with SMTP id q17so8003769pll.1 for ; Sun, 04 Feb 2018 09:54:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hFdHAvBVAnwXMMM63XmBkjbJQCq2K7zWuS6Y2ZoCB3c=; b=NYdw7bDO1Ub4bm576pxM+LZIp/OvUykjfuPZ1uEFELLirZoK8s4hMELZ6uKd+r08xy 05zkALudYVBBoYyMYXGm5+zlCwQorT0FOKIyotMPI0EwmXiNlFh+FTM6ad33Uv4bbaaz fka76vuwq7HzfMax4LKlILlnrREzxhx3wII9RbhWtAYC1AYgb8R1HG5sg0+RkQULcYMx d0UFRPIKJUkx3neHzcWuVsrC6Acwl520W1iJPEZaB7dgfyaVHwvwpID7sFooN+RSXpDZ 7Q9+eoq7aWawDT4BjQflGspv/A1JuVcdrJiA2AHfxZCNGCjOfsfoHf0JleUG6EGwcZ9W 9NDA== 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=hFdHAvBVAnwXMMM63XmBkjbJQCq2K7zWuS6Y2ZoCB3c=; b=f08IpJiDzu1Oz52h8ZMhO+vh6M7VwOK6BlMwuVAjlMUNXT1Puj6C/+E8c72sjx5Nzw 9ZSJ+zlrODJwBvRAG1JLXLZrJ5mBnh3VZIrj7t2YHPWanyF39sCs6SA/lyDdL0e7dFVV 22DTJhn75bqRFIL6q8OQLYMheH6wm3Kk11NpO57KZ4V66dkYqLxFA3BAhQwTS5wqjM3f 6vpNJDDWJdtFypShFgxeHRR5q9HD3C3EzoSYMbXmPXaI/CdD27cbjmhKGGcEq8rnbBWi Qtm9H43N1TVyeQ4RKdpQXR5OOcjTu61/3DgZbapfbx5alMxfCL8LBmgbObsiNPHMbdJO xvaQ== X-Gm-Message-State: AKwxytfwb62yntx7jEeJrs9IJ2dFkMK5lmf47MGXdbAG4fnFPZTMs8Ed jacs4stKUieJhvG7NwZIosw= X-Google-Smtp-Source: AH8x225ph7moTE4IPGTwanR2f7u1n3WC/kg+F/gS2Z3cYXw/kazDR6gQ4F3/750Q6LAb1J+DEnVMeg== X-Received: by 2002:a17:902:bf0a:: with SMTP id bi10-v6mr35278151plb.181.1517766891415; Sun, 04 Feb 2018 09:54:51 -0800 (PST) Received: from localhost.localdomain ([115.97.187.51]) by smtp.gmail.com with ESMTPSA id u86sm13113279pfa.102.2018.02.04.09.54.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 04 Feb 2018 09:54:50 -0800 (PST) From: Jagan Teki X-Google-Original-From: Jagan Teki To: Shawn Guo Subject: [PATCH v3 2/7] ARM: dts: imx6q-icore: Switch LVDS timings from panel-simple Date: Sun, 4 Feb 2018 23:19:26 +0530 Message-Id: <1517766571-409-3-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517766571-409-1-git-send-email-jagan@amarulasolutions.com> References: <1517766571-409-1-git-send-email-jagan@amarulasolutions.com> 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 , David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Thierry Reding , 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 v3, 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>;