From patchwork Wed Jun 20 10:41:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonard Crestez X-Patchwork-Id: 10476889 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 C884460230 for ; Wed, 20 Jun 2018 10:42:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B9F1128E19 for ; Wed, 20 Jun 2018 10:42:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE33F28E1C; Wed, 20 Jun 2018 10:42:26 +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=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 1E9D628E09 for ; Wed, 20 Jun 2018 10:42:26 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=oxaIIu+eUSw6nrBp2J5LQUUPjjgAyVQ+srQ8M8ZdTQY=; b=utE6XTW3yTi7wc vnOsNy5Buxb0b+Sy2SwXvR5Pl20t4GSNPqMIFoNbbVh92oiRkYgPDK3qmdAHvibbCxEsLfRcH9g1l ekn/ThHVae5SDwCHFEhendR5ZjvPMytdjO7AFY5Xl542I5QRPbUY5ftR95ASUCHOZGNE6h0bCnYOH OcsA9J13iRi6ib/+z5RIWVJLDmydMHFTVJYHdix+OB675uLczK/dGOeRPHp0X8r/AACeoPrKfZ42B FA+W4V5nE0JnVzd81ul/2ks/YxB6y/oYgHn25KPtd/kDnyF+VHHbwFmIFEIrm66iGlIVrnYQyvZNF rf8KzeY3GHQeshw+dPMw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVaZD-00066P-JN; Wed, 20 Jun 2018 10:42:23 +0000 Received: from mail-am5eur03on061f.outbound.protection.outlook.com ([2a01:111:f400:fe08::61f] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVaYt-0005s7-9z for linux-arm-kernel@lists.infradead.org; Wed, 20 Jun 2018 10:42:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2sVyDipDpm20IJrY2cxeAN/55B5qHW65fTzZpDbqME8=; b=MNq9iqMM+s3O5jXBRf/M0wPMoplAx0PTmj3HL+feid67k/+U7xLUjV6cnRHLq8eCQLHe2HOP6w6JP6mBwSkHnyCA3QOb4kAaGB9frPX6w3dbwNTrSz8mBIEkcshrQgWm/ion6JwAXNmW9gSrToDqqYLQdM3z1EHSDNUmx85FW/8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leonard.crestez@nxp.com; Received: from localhost.localdomain (95.76.156.53) by VI1PR04MB4304.eurprd04.prod.outlook.com (2603:10a6:803:3f::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.19; Wed, 20 Jun 2018 10:41:40 +0000 From: Leonard Crestez To: Marco Franchi , Fabio Estevam , Shawn Guo Subject: [PATCH] ARM: dts: imx7d-sdb: Restore pwm backlight support Date: Wed, 20 Jun 2018 13:41:16 +0300 Message-Id: X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [95.76.156.53] X-ClientProxiedBy: AM0PR0102CA0054.eurprd01.prod.exchangelabs.com (2603:10a6:208::31) To VI1PR04MB4304.eurprd04.prod.outlook.com (2603:10a6:803:3f::31) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8f68f2bc-f7d3-4b15-206f-08d5d69a6906 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB4304; X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB4304; 3:gWPOGGL6AKwGTZ9GArPBoadjRE3JN3QsPu20625AzZ9qoQfO2wwndFJp7XIohgHGJiB/4+wX1nhZzd6DRbGJFOjWvBDIq5PDSCxd0/rU1HttqviEY3q9t3T3DG+4kER0M0ZDj3SnuGLCFNL2XVtOaoCZvY3xdWEQ3ROeUo8xyADdUdZ0VwK8e38JsUjJLMZ2qzRL2c3DYLQIc4FHFyxUWHrN9eIW+zN3Ye4TQAig0CxC7Ww0ZJqX/8AxaZyC/WcF; 25:wMoeKfQwOPPHavVZug2omNKAfLkVG2hzPwJAQMlbsL0H7qacMr2DnIJa7EddfKc+sXNHYDRZz+tBQ9I8KudvFxt006bInkLyclGG+WEQviFswI16oxYbgZcyxYNd5JrAg/lW2UDSErasa4q+6tZ0z0jmhTjXMRH/RgBkmAkGYEz/bVggkTrHkbnZHMNIvzmfGZh9WE6HioyWJ8NK+5AzBDo2Jur6vTVjjPeH+q361/BkNP8xVBQ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oGiiB9dehzLAdjzDvw/PsSPyJcs3VXRi2ITE59eRVKvhUV00iAhuCEK3W9fYQD8A0p4UhUkldDahoEsBNBhNU9/v+A6q1od2UXTfMX8Dw/F7nxqp7B/i6ezSmx/yR+vXhuNxBjtAeJ78Hc2FqyvfuGbAPw46HkeSVfZVbi/7Hfr X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3231254)(944501410)(52105095)(3002001)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:VI1PR04MB4304; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB4304; X-Forefront-PRVS: 070912876F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(396003)(346002)(39380400002)(39860400002)(376002)(366004)(199004)(189003)(2906002)(6506007)(86362001)(118296001)(59450400001)(97736004)(305945005)(5660300001)(8676002)(6666003)(48376002)(7736002)(3846002)(50466002)(6116002)(81156014)(81166006)(26005)(8936002)(105586002)(106356001)(53936002)(68736007)(386003)(16526019)(1857600001)(51416003)(50226002)(2616005)(36756003)(956004)(52116002)(486006)(476003)(110136005)(16586007)(66066001)(316002)(47776003)(4326008)(25786009)(54906003)(6486002)(44832011)(478600001)(6512007)(414714003)(473944003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB4304; H:localhost.localdomain; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR04MB4304; 23:cfjihNamcMPR6rkYnzWFETCfniXd6Adk7BqbYZwHt?= =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yx6onkheb5Xz7WbUgNcviwjOMe9lKmLMiBkqi6gxdeSuYnjgcRxbOb47UiaAvP6RrhXtOr0erLo4JPC51HoDCNJIfVrtdbS6eaAC/nHnB1S2gLwSGwt1LV+tmzM+7mVkMuv9MU5/b76lTpSWz4nYZuQab+aYTz1HEE0NcC14RjpVbnhJha3atomvT6GN8EeuE8zJFxGWVRsECNvHk0tgGFZVC1l1JJRo24r/GjVgad+2rFr32Icr9e8zN9UbY1MzJAqjA6Maj4g==; 5:4MFa4VtjRfBYLGiB2NooHlRrd1TuPWylGx/TfAV7HowDCXKbSRAfu81FSdSMOiRMB6F3LSvQkkdJN37T2XRmRjRR+4+MWzEBbA/bTf3z0YehyAz0CYI1mtyNRmTxFVAaBpjfDBjqtT4aXgSXifDSO51j3WUdDisOasxEoBs/Eg8=; 24:dkUIUtIwNcAt90n1VSvcMuq58S4Xfg5CxX4CRYk/AoOsrRmZ58F118hdflVSnwAiwiJrEf1cNhhd5ir9xqypYeFzg/TAbsR7IssJaKevgF0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB4304; 7:vPUPOjdDz/JT8aOxD9xvmRoSTi/QJbtUSSlPvdNHmqHudvi/5wPgDxXisjc+KjuJcdJOBP0RFPokQ4nMTho6L/9M1GT6MV8PylYFs3R/hi/SukTTk1rKx1dUS9N+mBiu5fspbTLhGO2fDt8L3mtxNJRuf8cjH9MOH2iwybex6pgeko9gT3U6ZEjklQEjzuBDL3kpIebNMa+u6aGNALPxZ1M/K3Ohxq/3+E4VK08/188riCibIE5jLeEoTXybhOIC X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2018 10:41:40.7632 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8f68f2bc-f7d3-4b15-206f-08d5d69a6906 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4304 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180620_034203_658754_31353E3A X-CRM114-Status: GOOD ( 10.31 ) 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: Dong Aisheng , Liu Ying , linux-imx@nxp.com, kernel@pengutronix.de, Robert Chiras , linux-arm-kernel@lists.infradead.org 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 This was removed in commit 5eaeaccdaedb ("ARM: dts: imx7d-sdb: Pass 'enable-gpios' and 'power-supply' properties") with a note claiming that GPIO1_IO01 is connected to a pin labeled as "PWREN" on the connector. Despite that label this pin does actually work as a PWM controlling brightness. So restore pwm functionality. Signed-off-by: Leonard Crestez Reviewed-by: Fabio Estevam --- arch/arm/boot/dts/imx7d-sdb.dts | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) This was tested with the suggested LCD8000-43T, maybe there are other display options which don't have PWM and require that pin to be always enabled? This same LCD is also supported on imx6ul-14x14-evk with a similar backlight. diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts index 940849163104..bf6f21b984ca 100644 --- a/arch/arm/boot/dts/imx7d-sdb.dts +++ b/arch/arm/boot/dts/imx7d-sdb.dts @@ -114,14 +114,21 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; gpio = <&gpio2 14 GPIO_ACTIVE_LOW>; }; + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&pwm1 0 5000000 0>; + brightness-levels = <0 4 8 16 32 64 128 255>; + default-brightness-level = <6>; + status = "okay"; + }; + panel { compatible = "innolux,at043tn24"; - pinctrl-0 = <&pinctrl_backlight>; - enable-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; + backlight = <&backlight>; power-supply = <®_lcd_3v3>; port { panel_in: endpoint { remote-endpoint = <&display_out>; @@ -710,18 +717,24 @@ >; }; }; }; +&pwm1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm1>; + status = "okay"; +}; + &iomuxc_lpsr { pinctrl_wdog: wdoggrp { fsl,pins = < MX7D_PAD_LPSR_GPIO1_IO00__WDOG1_WDOG_B 0x74 >; }; - pinctrl_backlight: backlightgrp { + pinctrl_pwm1: pwm1grp { fsl,pins = < - MX7D_PAD_LPSR_GPIO1_IO01__GPIO1_IO1 0x110b0 + MX7D_PAD_LPSR_GPIO1_IO01__PWM1_OUT 0x30 >; }; };