From patchwork Tue Jan 2 09:02:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10140123 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 16FE060362 for ; Tue, 2 Jan 2018 09:08:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A92828A51 for ; Tue, 2 Jan 2018 09:08:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F21B628A75; Tue, 2 Jan 2018 09:08:31 +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 7877D28A51 for ; Tue, 2 Jan 2018 09:08:31 +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=aGXnRWm5ZxIOofIr9buoFqxcIqSBrnzCxvqlZ65gykI=; b=pXYF4cuOE6z1vr35JD9lPJh4ge rPfSZ5qXl5o7A8PtDhCNoWiKfBV+VV6B5NSSkGkRDbpc2518HnWCibNOxpQ6qgCJ3zAwargVrYlEJ f1BGvxVnzqYiSRYTZ90aSM2PDHXOaBhl7RYsl6LEwn51CDh0uzibPtAmAdWj5mhfjcMssi4y6DB5P yDIjI9cyB993FxdJ4dMwP45p3XD2R6NC967YqYPxSlIM4fwwgSFs9LdLuAC1N/AlJXJixgmz0g6MC sc4KhlgUbGMsX2D+BYUoE5OzzY6SXYnD75DAaYHR5xsnbn19h+FKCIO073PNHgTGBRqOXsEZBOIgd RomqcjSg==; 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 1eWIYd-00057G-CM; Tue, 02 Jan 2018 09:08:27 +0000 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eWIY5-0004n8-Oz for linux-arm-kernel@lists.infradead.org; Tue, 02 Jan 2018 09:07:55 +0000 Received: by mail-pg0-x242.google.com with SMTP id 21so1543824pgg.3 for ; Tue, 02 Jan 2018 01:07:43 -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=BkPrE8gKVgK0JNalE2MFzqn2Pdl5nFDNUCT4S+7HJgA=; b=YjoYDp+HZoa+0lu6rtS0QJU3U3yXJRhu/yxbJ53XMtfV76wQ1ki7AsAbK3LcYKfZMy lSPBP4ThkNtf4e5vxi9b6a23sFOKTUvsMfNgtYMSKVdXkxw0PTnLtfQ/qo0Zf0dTr/vP 0X4eEvcnMe2JvoPoBDNRz0wfCiPu6Bz5ExQ0+3g6g1HCHwRzziJYSTUXDbKgcucbV7Oy 38NudTYv/JmUHbYPmCMwc3Q0QXtpL0zjYPLW2ZXP5g0jK59g0v3GEj23PQzm41AkLq1S Rym4W2j/9NMU1BtGeOXimB5sQEWxmNWUi/dzaGOOidNYJlX0A35fZgD2tk2p5BvegrzR BU7Q== 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=BkPrE8gKVgK0JNalE2MFzqn2Pdl5nFDNUCT4S+7HJgA=; b=awiY/nydzWa0soLdoUlK4zzhTf7rDhVxDa6txtLjSpVw9BHUU9MlMY1ClSB1lt6M2b S7shcJsQQG9gbUsfTXqPKMHfmEHo8S/38bk+yvUTrtgi+0exAUoPKT0QaY9rAu4sJ2Xa knhzANgfLjwuynfo5Luh6TDJPuoUyhj9D508nJ4LCPFpbWmek2Aix8lYhh2L6kkYjRpm J5oGSp9BTim0SuoD7UHNmwae7dbENJW2dasdR8rR/yECxxtkeze1/J8VsosYf7/fN5VS 2YLzP03V+VgjuQhBtT+WPf4eL2tIR3QwFc689TSalPPWxE1zkyKg6RJ2UdfV/sOzdtiC cgiA== X-Gm-Message-State: AKGB3mIa9o3mTMF4CX04xnMnr23I+cF6VMYQwj/+yk18UGJCKs+g0E5n NxNhNDN9w84R8BtHlai6obfgHQ== X-Google-Smtp-Source: ACJfBotXeLaFPZ5vkMImMXTbZ+DXyHhjRWRpeCI9CepVEKRzeyIA0gNoJiEBzaEyklJodhkObkJ+BQ== X-Received: by 10.99.143.87 with SMTP id r23mr38485398pgn.188.1514884063041; Tue, 02 Jan 2018 01:07:43 -0800 (PST) Received: from localhost.localdomain ([115.97.180.212]) by smtp.gmail.com with ESMTPSA id l80sm91840884pfb.124.2018.01.02.01.07.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Jan 2018 01:07:42 -0800 (PST) From: Jagan Teki To: Shawn Guo Subject: [PATCH 2/5] ARM: dts: imx6q-icore: Switch LVDS timings from panel-simple Date: Tue, 2 Jan 2018 14:32:15 +0530 Message-Id: <1514883738-16297-2-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514883738-16297-1-git-send-email-jagan@amarulasolutions.com> References: <1514883738-16297-1-git-send-email-jagan@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180102_010753_819845_0D6152BC X-CRM114-Status: GOOD ( 10.27 ) 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 --- 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>;