Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757224AbcJGPag (ORCPT ); Fri, 7 Oct 2016 11:30:36 -0400 Received: from mail-db5eur01on0124.outbound.protection.outlook.com ([104.47.2.124]:55529 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934758AbcJGPaJ (ORCPT ); Fri, 7 Oct 2016 11:30:09 -0400 X-Greylist: delayed 3872 seconds by postgrey-1.27 at vger.kernel.org; Fri, 07 Oct 2016 11:30:08 EDT Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=bhuvanchandra.dv@toradex.com; From: Bhuvanchandra DV To: , CC: , , , , , , , , , , Bhuvanchandra DV Subject: [PATCH v3 6/6] arm: dts: imx7-colibri: Use enable-gpios for BL_ON Date: Fri, 7 Oct 2016 20:41:29 +0530 Message-ID: <20161007151129.6043-7-bhuvanchandra.dv@toradex.com> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20161007151129.6043-1-bhuvanchandra.dv@toradex.com> References: <20161007151129.6043-1-bhuvanchandra.dv@toradex.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.115.243.34] X-ClientProxiedBy: BM1PR01CA0062.INDPRD01.PROD.OUTLOOK.COM (10.163.199.34) To VI1PR05MB1407.eurprd05.prod.outlook.com (10.162.125.156) X-MS-Office365-Filtering-Correlation-Id: d8863135-360e-4688-df03-08d3eec49f25 X-Microsoft-Exchange-Diagnostics: 1;VI1PR05MB1407;2:zDJa03lSwm387Vox9r8UEEH74kQEJ4KMDEP3W3RGpKl+iIM370mOI2ObYPtzb6bnDeTocp1aycb2NETtK8sUwCdVtp/sKkWcO3QSmX1FHlxTip8JCo31ItvG2TT7gRCpRGOjHPkG8GcjWetbL/nIz61qZGlXj2tHluyi3BBvsO35rmhvecauAyzSKifkbYwP2PsbyFUcQigCDAmbKjfzRA==;3:ybPFezKvIt79lRir26Qa29Mvhu0oPlYim/b+vJr61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bL3/Yvg8zw+sk6RywiIFXFRzrmZHqEIZOGRbAUCttrgEsVQljQhU6WB2HUlPqCcnA9vx4cokjZSHfB0vv1hXesWOSX1zOd/bCBnWSLdQkJZ0IxjGkCA0r3+WXKOfsYhk5Ims+mT1hGrJh7pwJu9kXDiYtByqgmwJkHXcZkzrw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);SRVR:VI1PR05MB1407;BCL:0;PCL:0;RULEID:;SRVR:VI1PR05MB1407; X-Microsoft-Exchange-Diagnostics: 1;VI1PR05MB1407;4:X2MbJhBYdaBesqKPfoAka9fIEK5DwJNAnleOj6X+nqe/ORc35RnX/oaiiG3JasByTypJqYnLzb1fUBvT1A+iUxApPKod/Y09OI5MYc8nLeO/3FlEOHWq0p2XLZ8/YNYPKH5HWS776oJ01xtCqONrSLBwOfzPhwf3VpuMdHBocL8jL2M7TWnCPA3/2weuog9TtXmL0SaFSGJW28nKdYGBRd1ipf2vShgxE2BYzSisZRXYHFPI1bEECdTldmZ2U4tWRdcIGMKrQesYSA6uc5XiyLkKwLYzcXElVFxRX2jnl/tHHVTsma/GeQQNcms+XHAxulFmad8uhBtD4/PyWwF39ZtM4tb87s64cKDFoM/QnigXfkYS9Hu8lSmeN9yjdTmdeQzrO9DAugfIpuoZSDDqkA== X-Forefront-PRVS: 0088C92887 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(4001430100002)(5001770100001)(97736004)(77096005)(68736007)(107886002)(48376002)(86362001)(189998001)(4326007)(81166006)(81156014)(8676002)(36756003)(92566002)(2906002)(6116002)(50226002)(5003940100001)(50466002)(69596002)(586003)(1076002)(3846002)(33646002)(76176999)(50986999)(101416001)(2950100002)(47776003)(42186005)(66066001)(7416002)(8666005)(7736002)(305945005)(5660300001)(19580405001)(19580395003)(7846002)(53416004)(105586002)(229853001)(106356001)(7059030);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR05MB1407;H:tdx-in-nb-0014.toradex.int;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;VI1PR05MB1407;23:nZAm1kAj0xldHzCffKDZM2Xkz/ffv+TVICw+bEtL1?= =?us-ascii?Q?nR3rPuDDCo5lTppvEL0NWx/cPRqGw85iQVCrtPmyOR99pofL2COMtUkF4KOr?= =?us-ascii?Q?rlwL3GEOvCBQyhlnlT6lzGj4V5OLGWVkXWuERLoZ8icdBhkYs6kyFg3qLPyq?= =?us-ascii?Q?1A8zElgn0g30qFu3d5M7NVwJvI8YIPl/FzNk2dBt1YZi6HZIz24woyqUY0hd?= =?us-ascii?Q?7oY9GD8W2jVvrdb3bfwDJpvjVrAoacMMtWKJ40sa1AMUcxyj1fO1kdO/TOql?= =?us-ascii?Q?QTwNblSb3rs61IMa8YcJLUjFbapr96YPWSzILwJvQyyjDy0oI0keIhrGDfCx?= =?us-ascii?Q?7vcqP+nQT7EUslcw8peBz8+4vb8xV/zJu4WA6KetLHNkOQYmMobKeP1NAD47?= =?us-ascii?Q?KhP20L2z18jDLpY6A3f1vjQl5J8PrtG1OucbCM+LEHOZn4XQm5ogvb/Zi3qh?= =?us-ascii?Q?grvSsR7GomT3AF6jAIMK0AhYTsBQttayQ2wYVZGKY1bOFyZyrteTNMkuPwnu?= =?us-ascii?Q?kh2ZhZ+d0jhzJeaFlOe7L6VGYUa+LwbePYohAG3GHbqEqoFeZsnehS8ouarC?= =?us-ascii?Q?hZx4ee88tRVpOZsBKHCmQq6ZBCtLPC+x7FfyEPIcY57740QY17k45/X37URs?= =?us-ascii?Q?uZSjEFvp8UK6XtaWO/wWok69SpID6Tj5TL/evMU2EQhdICCfLAntJIUns449?= =?us-ascii?Q?h+TlccWh5IJfoRMm8iBzNQLzZbZwydOHNdyhWY4qZT3oAhJp/6mBAekgOZhI?= =?us-ascii?Q?VRoipfROqYa/d08Py0dBFMKitDwc8IZC5X1Kr+eJ7SaN3omDiTNuACAThqgV?= =?us-ascii?Q?vzKTIoUTUFDrI4+ly+2bTOTgTbD5bLVfSglf3I0bdYceJPmI8hZiN4TOXdhi?= =?us-ascii?Q?LGhib05kjBnjKTV3zh6dKloqUm+bb2kpH7Ng6s492sKwl/FglcZemmwzJ22L?= =?us-ascii?Q?jlok+C4Yy6UkHhhX98xTVkcXxYjZwwm69SbpXUsqLbfV9Bc1k04yOpQpa8s+?= =?us-ascii?Q?9bw7mbQmrDHNzkWyTXvYE3YbRr4olZXRZLAuVjKW2/8iP26TknJUPaX8K8ka?= =?us-ascii?Q?yElWeQwfzfb4q2lvtUUOJ9DURlw3JTTB3VxjRKEKv6aCcF0+/O8uicA19A6B?= =?us-ascii?Q?1PgCqzeWbeENDHd7sH+QaNGqgEiDy0We7fmtHRqwzUMS39pe/Wf7cyatBpNW?= =?us-ascii?Q?7LRwOPvaiikYl5+HRk9N+xQ9acjz/SC03i9S17uYkvQyLYx4M5/voy0vJ5EG?= =?us-ascii?Q?JB7Avs4Fsip8eMbWdA=3D?= X-Microsoft-Exchange-Diagnostics: 1;VI1PR05MB1407;6:5UbNPrgZD1rP31GykMZ1UF19ODNBCbG69AK2D1xuW+L1BlS1giZ+byOba2zlEKIu/+CX/hpugZz6BoZD1OyceAynrtF77/A13WZUohivIX6+F7NLESck9iGaljuOsebfuk7TybFT6TyFJqT06uGb0s1+FkCPX9OMS+V0IT3LGPSUDs0d7GLqDWmKcBrPH2Zc9V5D+h6seMevoraBY8UUuTAT09ELmBXLaka0Zh60/24PT92JoNWPcY7kweh8xHkHIrIwrx1kjugSHDgXS8fFjOgsnb3Q43W1/NMv5Nrw1FbygHBRvSfRvPRGw3rQufM3;5:eaqYBXsozDUvGSUSngHSwljQ0xhDgSw2+pv79mQI2g38qvJQG4eJ16eySWEGo+rACJ/AXABTJggMx5rJf3AgGwh50TjYKhiNr9F+GofQeEDRtQVaP8HZWWcsqeH7TxS3U1haza4pYMVf1tcC9uSVWNOG/eqfAU9AbnsVfnEh19w=;24:rAZVvSMT9dmtQyZ5BMCgnqYXktGx2ylKuyY6mwUbKJv7FIkIjSbjP1ucaQ4cS53dZy8O+grO+T/17HpCSxNzvnljx9f+a6Krdzo5g1sG9OM=;7:eh+t5Pat/EDn5XNWLG1kJbSaMN2uhIt5tEK1yG+Ww4oNvqNZF0+lCXTZ3td8qNDRHVLc8pGQROvJMgrXpXcRf/G1WnNzl02yBnBe706vxghuq3kFvhVWc8ba+KQa9Pn6IKCf98/m5ipbQUaeIeUmC3knjKJQQR++msGjX3zNYXnDGcqPCT162ZMQTZd0S8GZqhU6mZDdAntWH5ackHbUAu5MlKwhzuAJiNXCYROEYhF9/ICDEEQCgxBnuPkdZjEMPzblQ6py1Y5jJ/KCL8WApfl81Fz2xatCskx9sE83xq0Wmty4qR5Xtz8C5Syo+yMZybhrvYNV5NWvSEQ3sj6ARA== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2016 15:14:21.5451 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB1407 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1353 Lines: 45 Use pwm-backlight driver 'enable-gpios' property for backlight on/off control. Signed-off-by: Bhuvanchandra DV --- arch/arm/boot/dts/imx7-colibri.dtsi | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/arch/arm/boot/dts/imx7-colibri.dtsi index 2af5e3e..ce5edb5 100644 --- a/arch/arm/boot/dts/imx7-colibri.dtsi +++ b/arch/arm/boot/dts/imx7-colibri.dtsi @@ -43,7 +43,10 @@ / { bl: backlight { compatible = "pwm-backlight"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio_bl_on>; pwms = <&pwm1 0 5000000 0>; + enable-gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; }; reg_module_3v3: regulator-module-3v3 { @@ -356,7 +359,6 @@ fsl,pins = < MX7D_PAD_ECSPI2_SS0__GPIO4_IO23 0x14 /* SODIMM 65 */ MX7D_PAD_SD1_CD_B__GPIO5_IO0 0x14 /* SODIMM 69 */ - MX7D_PAD_SD1_WP__GPIO5_IO1 0x14 /* SODIMM 71 */ MX7D_PAD_I2C4_SDA__GPIO4_IO15 0x14 /* SODIMM 75 */ MX7D_PAD_ECSPI1_MISO__GPIO4_IO18 0x14 /* SODIMM 79 */ MX7D_PAD_I2C3_SCL__GPIO4_IO12 0x14 /* SODIMM 81 */ @@ -388,6 +390,12 @@ >; }; + pinctrl_gpio_bl_on: gpio-bl-on { + fsl,pins = < + MX7D_PAD_SD1_WP__GPIO5_IO1 0x14 + >; + }; + pinctrl_i2c1_int: i2c1-int-grp { /* PMIC / TOUCH */ fsl,pins = < MX7D_PAD_GPIO1_IO13__GPIO1_IO13 0x79 -- 2.10.0