From patchwork Wed Jan 9 08:39:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGFsIFZva8OhxI0=?= X-Patchwork-Id: 10753625 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 026ED91E for ; Wed, 9 Jan 2019 08:40:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E801F28F7D for ; Wed, 9 Jan 2019 08:40:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB53428F81; Wed, 9 Jan 2019 08:40:12 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FROM_EXCESS_BASE64,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 783B128F7D for ; Wed, 9 Jan 2019 08:40:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730053AbfAIIkH (ORCPT ); Wed, 9 Jan 2019 03:40:07 -0500 Received: from mail-eopbgr60057.outbound.protection.outlook.com ([40.107.6.57]:32372 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729852AbfAIIjq (ORCPT ); Wed, 9 Jan 2019 03:39:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ysoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6B4ieJwoPAJFbd1qkl5Bu8MaWRgqtrOLFoL+ZrWaGbI=; b=AEEsKklV+xwMpnHIsnennOuOyCevNkorfCjuGMtVif46ex8c3r0cqSSsBhtZpPlPZk/IUfv2zxFwz91vx+CQjS4YSKt6QhRK4Kz7/NgwrxaWJiVyW+mBi00LBWhnfxScbAnKD9qOOBtj9bf6CDpRz91Ib59BNOwHZOgjVKV3wQQ= Received: from AM0PR0402MB3716.eurprd04.prod.outlook.com (52.133.38.156) by AM0PR0402MB3780.eurprd04.prod.outlook.com (52.133.39.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1495.9; Wed, 9 Jan 2019 08:39:42 +0000 Received: from AM0PR0402MB3716.eurprd04.prod.outlook.com ([fe80::3cc1:26a4:94be:1d72]) by AM0PR0402MB3716.eurprd04.prod.outlook.com ([fe80::3cc1:26a4:94be:1d72%5]) with mapi id 15.20.1495.011; Wed, 9 Jan 2019 08:39:42 +0000 From: =?utf-8?b?Vm9rw6HEjSBNaWNoYWw=?= To: Bartlomiej Zolnierkiewicz CC: Rob Herring , Shawn Guo , Fabio Estevam , Alexandre Belloni , Maxime Ripard , "linux-fbdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , =?utf-8?b?Vm9r?= =?utf-8?b?w6HEjSBNaWNoYWw=?= Subject: =?utf-8?q?=5BRESEND=C2=A0PATCH_v2_1/4=5D_dt-bindings=3A_display=3A_?= =?utf-8?q?ssd1307fb=3A_Remove_reset-active-low_from_examples?= Thread-Topic: =?utf-8?q?=5BRESEND=C2=A0PATCH_v2_1/4=5D_dt-bindings=3A_displa?= =?utf-8?q?y=3A_ssd1307fb=3A_Remove_reset-active-low_from_examples?= Thread-Index: AQHUp/bdjPljmMcHhEmWoWKyLx2qKg== Date: Wed, 9 Jan 2019 08:39:42 +0000 Message-ID: <1547023165-111798-2-git-send-email-michal.vokac@ysoft.com> References: <1547023165-111798-1-git-send-email-michal.vokac@ysoft.com> In-Reply-To: <1547023165-111798-1-git-send-email-michal.vokac@ysoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM5P190CA0022.EURP190.PROD.OUTLOOK.COM (2603:10a6:206:14::35) To AM0PR0402MB3716.eurprd04.prod.outlook.com (2603:10a6:208:d::28) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.1.4 x-originating-ip: [89.24.100.190] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM0PR0402MB3780;6:rI1bnynPAE3H/SS0Rv7zTLbx7OR2g9oKVTZhQO9rxuujmhHoHShQ3B9F9323y2CKSoOxHLMJXcbzQnWd6z6Pu9IR4GK1C2BsbG7FaVaresiyBeAf3CGtnqjootbBFiG7nWjSEWSmuGEwzqCdr2ShyDAhweUonnFqMpXIzLCCP2urfjqH71Ec23SIYnszMDXLVpc3QQKYcRDEDpbO8Ur+CdUvX6Lt42fLlMJ6VqDxdqf2IFBdfyj6ZopMU0wzlmhbtOkmAzLKYUE4PhY+X7mW1GJOdYD+JRyqJDFgJ8a+zJP6aWc5eDhoPq4WsiAAfLbacNIi5V/dMFbF9pbvgyOK3Yz6oynydUUqPNBx1Z7go5E55BalEa0oadpRJjOdekw1p1y6roVoM10JgvqUM1bEC2qFkDdaaUSSm3aw0JPpmldjf0YPifrd36FW0gaq9FpAC4ASOmibH/s/aJPW6jtPiA==;5:x8NKn5fLANBWjA9JNa/uN83iMGczZKtQDzVVKPmT3QEkA7uDAHzqmOUsPU2iwknqiL6n75nW4d3HBwuYvc/TU44GvmoiNFfpmegQzhoFE6leeitxKSEmH/+bmiBiCmUeb2xoJE3inBIMff0+6P0OOn9pi2uQ0y/wjkQNQECchEYqBfC36mdhC/b3G1Piz9rs7NIhDFFfpKzWinNokzk9XQ==;7:ZOkn0a+UZoPBNgKYVeW/YhdAKDtGN4Y3ixR0hPEhmEuyeimjeEAxHfYRLIafOT7i8PFpmrKsagc+QvW6/07DuuXa/xQ6L4RPEew+NIY8Q+3iRWEipo0GLkljW4q4PyK3GkLYLohLm6cwoT/R+dRMMA== x-ms-office365-filtering-correlation-id: 5c26dd0c-3e31-43ed-f039-08d6760dff50 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(2017052603328)(7153060)(7193020);SRVR:AM0PR0402MB3780; x-ms-traffictypediagnostic: AM0PR0402MB3780: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(3230021)(908002)(999002)(5005026)(6040522)(8220060)(2401047)(8121501046)(3002001)(3231475)(944501520)(52105112)(93006095)(93001095)(10201501046)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201708071742011)(7699051)(76991095);SRVR:AM0PR0402MB3780;BCL:0;PCL:0;RULEID:;SRVR:AM0PR0402MB3780; x-forefront-prvs: 0912297777 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(366004)(376002)(346002)(136003)(39850400004)(199004)(189003)(53936002)(5660300001)(66066001)(8936002)(6512007)(72206003)(6916009)(25786009)(4326008)(256004)(36756003)(107886003)(106356001)(6116002)(14454004)(6436002)(105586002)(81156014)(81166006)(97736004)(486006)(6486002)(3846002)(50226002)(2906002)(305945005)(7736002)(86362001)(85182001)(11346002)(478600001)(446003)(476003)(2616005)(68736007)(6346003)(76176011)(102836004)(99286004)(386003)(6506007)(186003)(71190400001)(54906003)(71200400001)(316002)(52116002)(26005);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR0402MB3780;H:AM0PR0402MB3716.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: ysoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michal.Vokac@ysoft.com; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 2QVlfrmoDOiE8P81Kfota3MscchadjU4AM9MU9y5LoJwkJm9zLLc0qs+7pVjNL8Cut01HHfP3/oZrQ+tKovrvoxnuybifK44HCfFTrBibcJCnfrnLy6O3MYbt3h3UP1PiroLkD5xVbMHhHf8YzUlbUanpCVHdgLNMAMNPjE1pLo70Q6OoFuDG0jZvUxhDTF42EZ9HKJi95bzQJOfoQf/q3ZXAG34/cvD3IFXU2ciST1TxdqchkUbb3BWTd6jw7GA72TFYWy1pcRrMKN2jWdYdQHfKBRH2KTEiPWU+hX3nCYJY6ExIjZDW6wyUg1GwU6a spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-ID: MIME-Version: 1.0 X-OriginatorOrg: ysoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c26dd0c-3e31-43ed-f039-08d6760dff50 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jan 2019 08:39:40.5900 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b5839965-430f-4be2-b282-d7a3149f2b37 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0402MB3780 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The reset-active-low property has been removed brom the binding a while ago. So remove it from the examples as well. Fixes: 519b4db ("fbdev: ssd1307fb: Remove reset-active-low from the DT binding document") Reviewed-by: Rob Herring Reviewed-by: Alexandre Belloni Signed-off-by: Michal Vokáč --- Changes in v2 resend: - Add R-by from Alexandre. Changes from v1: - Add R-by from Rob Documentation/devicetree/bindings/display/ssd1307fb.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/Documentation/devicetree/bindings/display/ssd1307fb.txt b/Documentation/devicetree/bindings/display/ssd1307fb.txt index 209d931..b67f8ca 100644 --- a/Documentation/devicetree/bindings/display/ssd1307fb.txt +++ b/Documentation/devicetree/bindings/display/ssd1307fb.txt @@ -36,7 +36,6 @@ ssd1307: oled@3c { reg = <0x3c>; pwms = <&pwm 4 3000>; reset-gpios = <&gpio2 7>; - reset-active-low; }; ssd1306: oled@3c { @@ -44,7 +43,6 @@ ssd1306: oled@3c { reg = <0x3c>; pwms = <&pwm 4 3000>; reset-gpios = <&gpio2 7>; - reset-active-low; solomon,com-lrremap; solomon,com-invdir; solomon,com-offset = <32>; From patchwork Wed Jan 9 08:39:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGFsIFZva8OhxI0=?= X-Patchwork-Id: 10753621 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5E4A517FB for ; Wed, 9 Jan 2019 08:40:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E0BA28F7D for ; Wed, 9 Jan 2019 08:40:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4288A28F8F; Wed, 9 Jan 2019 08:40:06 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FROM_EXCESS_BASE64,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D51028F81 for ; Wed, 9 Jan 2019 08:40:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729977AbfAIIjt (ORCPT ); Wed, 9 Jan 2019 03:39:49 -0500 Received: from mail-eopbgr60057.outbound.protection.outlook.com ([40.107.6.57]:32372 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729961AbfAIIjs (ORCPT ); Wed, 9 Jan 2019 03:39:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ysoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nqvU8BnmRaMcrVR1oeNZsOt+k4MFifh83VAGiGK7ybk=; b=TXHIYrtD8AhMW6ywoZ29VhTzzz3h+SmDTsrVLSIMSjzYDUAXFkgR81m/IqU1KbXPxa/K0NFbk72EZFaKxpZ3OJrHZsLRYQMk2zf9B3OFMmjO9jhTSyNi/B6eaZpd0Vgtr2A4NzHM5XveOGs0MBA6Ws3HDVIQ5AzGrAW9D70Bz3c= Received: from AM0PR0402MB3716.eurprd04.prod.outlook.com (52.133.38.156) by AM0PR0402MB3780.eurprd04.prod.outlook.com (52.133.39.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1495.9; Wed, 9 Jan 2019 08:39:44 +0000 Received: from AM0PR0402MB3716.eurprd04.prod.outlook.com ([fe80::3cc1:26a4:94be:1d72]) by AM0PR0402MB3716.eurprd04.prod.outlook.com ([fe80::3cc1:26a4:94be:1d72%5]) with mapi id 15.20.1495.011; Wed, 9 Jan 2019 08:39:44 +0000 From: =?utf-8?b?Vm9rw6HEjSBNaWNoYWw=?= To: Bartlomiej Zolnierkiewicz CC: Rob Herring , Shawn Guo , Fabio Estevam , Alexandre Belloni , Maxime Ripard , "linux-fbdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , =?utf-8?b?Vm9r?= =?utf-8?b?w6HEjSBNaWNoYWw=?= Subject: =?utf-8?q?=5BRESEND=C2=A0PATCH_v2_2/4=5D_video=3A_ssd1307fb=3A_Do_n?= =?utf-8?q?ot_hard_code_active-low_reset_sequence?= Thread-Topic: =?utf-8?q?=5BRESEND=C2=A0PATCH_v2_2/4=5D_video=3A_ssd1307fb=3A?= =?utf-8?q?_Do_not_hard_code_active-low_reset_sequence?= Thread-Index: AQHUp/betDnBWtNTUUWMBKo5MZ8O0A== Date: Wed, 9 Jan 2019 08:39:44 +0000 Message-ID: <1547023165-111798-3-git-send-email-michal.vokac@ysoft.com> References: <1547023165-111798-1-git-send-email-michal.vokac@ysoft.com> In-Reply-To: <1547023165-111798-1-git-send-email-michal.vokac@ysoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM5P190CA0022.EURP190.PROD.OUTLOOK.COM (2603:10a6:206:14::35) To AM0PR0402MB3716.eurprd04.prod.outlook.com (2603:10a6:208:d::28) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.1.4 x-originating-ip: [89.24.100.190] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM0PR0402MB3780;6:BHI6z7+QgrXZGFiCpQzSm6wIhqT81EVjPk3aeB7cHI4CMtf0yMVFyjb1i0bTsMliRB5+ca3fZn9C0oL979ry7U9IH5uQpMtcqaCBFooAf1Ty6cku0S3IubuIbtO1H0m3MI88K+b6batrW4LYaSnqTIT7z98a/yvV2rmYlgl3b72CSQyt5aiAbyMWV9Q3rQq/0WIvmgrAKTjPX+kvYD2vE/eRvxfxtMkFZ2HBMsvLlPV5bodokDjv5+j2OICZx5cQDuOPFgOM8fwTIuqKZYp63CswN4OMcmLTcv3BPK27xTWhHf+c/DjO8Tjs46DJRM2Q1ea5vSFFpMAdwBV0XFU773KIL81jdmzOJnyOVNtLDJajTxM0G9DC5qNf2FEF1HfFd99L8BuHFgoPbB9fhWwBJpsWuBxGFv4iu9JckNWZU30iDx7hT0H3UEQRfp+SX7J1MwVSH66W/EgN4WIGAtuiBA==;5:VuXmrJw7Gu0XAoYNDAEZfa5H4QMo+xeAUR3xnOt7lJNmrKE/E+59H8UuupRGAeyW85H6gsEgjNGpuNvdl8FIzm3kv6qACGOpZI54tdikob0leOAaBufBZw5zqjX52i9GnHdHBovc6LqwDFK3BG6275zyaJo3Z9bCwDY3K+Qo+dwKpNDAF9fnDusU6G4f8cXh2sRiQJrb4M/h6fEw/0HJMg==;7:XZ/p7LSaRK+RX+a7oaxW5Mwdi1elIMRvllVRqgA/5+lswZuYrcDiM5LXbjyFjKRyMU4LOi7CcjmovwxsPW3uYlnZY2BWDDh5rE4duAoYWje+ji13mqSrFlci4eelQJnQOMtK4+vAwp0taGccqFlGhg== x-ms-office365-filtering-correlation-id: 2c38734b-368a-4ffa-e61e-08d6760e0048 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(2017052603328)(7153060)(7193020);SRVR:AM0PR0402MB3780; x-ms-traffictypediagnostic: AM0PR0402MB3780: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(3230021)(908002)(999002)(5005026)(6040522)(8220060)(2401047)(8121501046)(3002001)(3231475)(944501520)(52105112)(93006095)(93001095)(10201501046)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201708071742011)(7699051)(76991095);SRVR:AM0PR0402MB3780;BCL:0;PCL:0;RULEID:;SRVR:AM0PR0402MB3780; x-forefront-prvs: 0912297777 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(366004)(376002)(346002)(136003)(39850400004)(199004)(189003)(53936002)(5660300001)(66066001)(8936002)(6512007)(72206003)(6916009)(25786009)(4326008)(256004)(36756003)(107886003)(106356001)(6116002)(14454004)(6436002)(105586002)(81156014)(81166006)(97736004)(486006)(6486002)(3846002)(50226002)(2906002)(305945005)(7736002)(86362001)(85182001)(11346002)(478600001)(446003)(476003)(2616005)(68736007)(6346003)(76176011)(102836004)(99286004)(386003)(6506007)(186003)(71190400001)(54906003)(71200400001)(316002)(52116002)(26005);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR0402MB3780;H:AM0PR0402MB3716.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: ysoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michal.Vokac@ysoft.com; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 3ggBOROBxg4abfyIMfYNILf2Pxa8PY6df3b7qhBJOk2+A0sJaNPCfqLxrVOKiJThDj4+ih/fbG4wp4h80KbeACdLo1ahbo25NEj2sofgSKZ5odFQKfwkkexVhJf6CUpE2vXoLM3Cq1c4S6bqHFJKAo5wmK1qaTFIEGyQui9WrYyOpS77G4mbcxOeTlT3r+l5vG3yMruBq39o+iC7HLwCVncspz0MMXCqCQYxFHrRVkhUH/biNvOi7oQmN2bkZ2XnbNFViRYElOA7DSP1Zr23hvQE1oq5wNPawkGfSIRVgZPnZfG8U96yzWTbeGinV5Tb spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-ID: <55014C793112604A8E08782E07D2EB97@eurprd04.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: ysoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2c38734b-368a-4ffa-e61e-08d6760e0048 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jan 2019 08:39:42.2307 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b5839965-430f-4be2-b282-d7a3149f2b37 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0402MB3780 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The SSD130x OLED display reset signal is active low. Now the reset sequence is implemented in such a way that users are forced to define reset-gpios as GPIO_ACTIVE_HIGH in DT to make the reset work. Do not hard code the active-low sequence into the driver but instead allow the user to specify the gpio as GPIO_ACTIVE_LOW to reflect the real world. Reviewed-by: Rob Herring Reviewed-by: Alexandre Belloni Signed-off-by: Michal Vokáč --- Changes in v2 resend: - Add R-by from Alexandre. Changes from v1: - Add R-by from Rob drivers/video/fbdev/ssd1307fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index 4061a20..3b361bc 100644 --- a/drivers/video/fbdev/ssd1307fb.c +++ b/drivers/video/fbdev/ssd1307fb.c @@ -667,10 +667,10 @@ static int ssd1307fb_probe(struct i2c_client *client, if (par->reset) { /* Reset the screen */ - gpiod_set_value_cansleep(par->reset, 0); - udelay(4); gpiod_set_value_cansleep(par->reset, 1); udelay(4); + gpiod_set_value_cansleep(par->reset, 0); + udelay(4); } if (par->vbat_reg) { From patchwork Wed Jan 9 08:39:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGFsIFZva8OhxI0=?= X-Patchwork-Id: 10753623 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3F0C391E for ; Wed, 9 Jan 2019 08:40:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F9BC28F7D for ; Wed, 9 Jan 2019 08:40:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 23BFE28F82; Wed, 9 Jan 2019 08:40:07 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FROM_EXCESS_BASE64,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C2AF28F7F for ; Wed, 9 Jan 2019 08:40:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729961AbfAIIjv (ORCPT ); Wed, 9 Jan 2019 03:39:51 -0500 Received: from mail-eopbgr60057.outbound.protection.outlook.com ([40.107.6.57]:32372 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729702AbfAIIju (ORCPT ); Wed, 9 Jan 2019 03:39:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ysoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9X5WufLdl6C4xDXT7zUD87Hlzq6ddiSdwW5IIH9z2RI=; b=XWbdkg+5c+hnPjsCSM5rf0C809Nh0EnViQ8iuhUtytplmk7/5OrQq7fpsI8l8dBC6kOvl0U5Ef2b40W9/G5bIoaYdwbF4hnWIityz6a2VEqpmrUFoxvpMNtADwEDlVddZgxABOWx1lgb6ZyXdigTxiaiZbZb/144v4TdLf6aft8= Received: from AM0PR0402MB3716.eurprd04.prod.outlook.com (52.133.38.156) by AM0PR0402MB3780.eurprd04.prod.outlook.com (52.133.39.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1495.9; Wed, 9 Jan 2019 08:39:45 +0000 Received: from AM0PR0402MB3716.eurprd04.prod.outlook.com ([fe80::3cc1:26a4:94be:1d72]) by AM0PR0402MB3716.eurprd04.prod.outlook.com ([fe80::3cc1:26a4:94be:1d72%5]) with mapi id 15.20.1495.011; Wed, 9 Jan 2019 08:39:45 +0000 From: =?utf-8?b?Vm9rw6HEjSBNaWNoYWw=?= To: Bartlomiej Zolnierkiewicz CC: Rob Herring , Shawn Guo , Fabio Estevam , Alexandre Belloni , Maxime Ripard , "linux-fbdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , =?utf-8?b?Vm9r?= =?utf-8?b?w6HEjSBNaWNoYWw=?= Subject: =?utf-8?q?=5BRESEND=C2=A0PATCH_v2_3/4=5D_ARM=3A_dts=3A_imx28-cfa100?= =?utf-8?q?36=3A_Fix_the_reset_gpio_signal_polarity?= Thread-Topic: =?utf-8?q?=5BRESEND=C2=A0PATCH_v2_3/4=5D_ARM=3A_dts=3A_imx28-c?= =?utf-8?q?fa10036=3A_Fix_the_reset_gpio_signal_polarity?= Thread-Index: AQHUp/bfZySPJuWB2EyT3HhF7tbjsQ== Date: Wed, 9 Jan 2019 08:39:45 +0000 Message-ID: <1547023165-111798-4-git-send-email-michal.vokac@ysoft.com> References: <1547023165-111798-1-git-send-email-michal.vokac@ysoft.com> In-Reply-To: <1547023165-111798-1-git-send-email-michal.vokac@ysoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM5P190CA0022.EURP190.PROD.OUTLOOK.COM (2603:10a6:206:14::35) To AM0PR0402MB3716.eurprd04.prod.outlook.com (2603:10a6:208:d::28) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.1.4 x-originating-ip: [89.24.100.190] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM0PR0402MB3780;6:OoTFPoC1cjIDKvg+J9ADnkhVdUFFcyWLCqhSy4ioLpgCU9nR2/adCLVniRp+GkFcf19nuSeZUzcH2XI2gJqicPmWN7RI1OxdrqzkHTBYoUojieke+MwSyea2hIOOVg0ZjA1ugFjDrO9RlDsdo5CgloqSx6LoqvKAnEJX6vKUDeKcFyhrFWHGuNXml1tJZK1R69rPTqRLXjSSW+2W8K00KG/i25V45DDOUEpapAnQ5aZyJg4e1MKyJEfKI/EtIOEsK4lkmu+Zgq9s1Z9q41t6Nj0rvUpxGfpyl5R4UdQfKZkqE5GRH0s+U4828z1rZWO3QOdkW+dfu7xtlFEiaX+V8kCEzdAZr4cvVomVRyoQeIDT9Vb+G1BO5FfTy8HR8qndrWMM7xq1ABXEe+fdKJzlPhL0eN/MiBYRH9ElLkJ1Q0S9pNk4X0xT7ucQwXf9F6OdAyQjW+MhKsLXp9oHgXp/qg==;5:zn6Byl+e0VZ+6CqxQaOFgTojpRxe0tNnLqVKHh2I/BzhfW22UVUGB54AQwiJtn8Ub0H4td/WYUV7mybR1tJJ6qKTvrUk/HexU1RoelCzLBsmukc+2TLqQBkBRfR6PX4eZLgrv0VZfRr19IP69EpywpAp5atJt5w3rLA3eEUZ1RTrYETg0HGd6dm6c6gLPrb4+maK8sZxRPoYiUujIeINEg==;7:KXP8w94XnBaPbgXVCBz8D6AVFK7xgSFoqwYLN1KNLjg89FgWikYgeNtxketm4FMJQeG4sn5OUoA7i1OOCF98agwd2OKWEkjv73UaL4dsThOq0FdDfXOvrC68ysVvFnLqfdf67C/f1XJVa1jEQvSTmg== x-ms-office365-filtering-correlation-id: 4ed3795e-036d-4dc5-74a1-08d6760e01ba x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(2017052603328)(7153060)(7193020);SRVR:AM0PR0402MB3780; x-ms-traffictypediagnostic: AM0PR0402MB3780: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(3230021)(908002)(999002)(5005026)(6040522)(8220060)(2401047)(8121501046)(3002001)(3231475)(944501520)(52105112)(93006095)(93001095)(10201501046)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201708071742011)(7699051)(76991095);SRVR:AM0PR0402MB3780;BCL:0;PCL:0;RULEID:;SRVR:AM0PR0402MB3780; x-forefront-prvs: 0912297777 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(366004)(376002)(346002)(136003)(39850400004)(199004)(189003)(53936002)(5660300001)(66066001)(8936002)(6512007)(72206003)(6916009)(25786009)(4326008)(14444005)(256004)(36756003)(107886003)(106356001)(6116002)(14454004)(6436002)(105586002)(81156014)(81166006)(97736004)(486006)(6486002)(3846002)(50226002)(2906002)(305945005)(7736002)(86362001)(85182001)(11346002)(478600001)(446003)(476003)(2616005)(68736007)(6346003)(76176011)(102836004)(99286004)(386003)(6506007)(186003)(71190400001)(54906003)(71200400001)(316002)(52116002)(26005);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR0402MB3780;H:AM0PR0402MB3716.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: ysoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michal.Vokac@ysoft.com; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: K0Gs/pJ7qMmquzdI5aZUHCTY5O5EvbCHqdfP4zbzORp6fxj4XPNkrKpvhcoP8uYgg1X4KrEYnBgmzN7wemw4dB26JBoojuYi41luyWSMuKqauGjtekx+Vo8SOoBAmlE6qBgnmfqZ8R2YctWg9BdH/dO7/liybo3B5BV/zNfnIoenTv7SQjPaXRQOB1QxlMbpHclsFdu/RuSFQMvGGe8g1ZbzCEefW/7nTxm7YS1ylDZa2Bm8T4fYyA2A+k8u8pQBQn7aWe6kojhfucRezYJ7lIIQdgJIrZWtaShve1i4qqRkbFIKEQiI6sIJjOSsjD8L spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-ID: <59CB9D9C49917343B72AD630C19E9533@eurprd04.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: ysoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4ed3795e-036d-4dc5-74a1-08d6760e01ba X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jan 2019 08:39:44.6526 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b5839965-430f-4be2-b282-d7a3149f2b37 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0402MB3780 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The reset signal of the SSD1306 OLED display is actually active-low. Adapt the DT to reflect the real world. Reviewed-by: Rob Herring Acked-by: Alexandre Belloni Signed-off-by: Michal Vokáč --- Changes in v2 resend: - Add Acked-by from Alexandre. Changes from v1: - Add R-by from Rob arch/arm/boot/dts/imx28-cfa10036.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx28-cfa10036.dts b/arch/arm/boot/dts/imx28-cfa10036.dts index d3e3622..de48b58 100644 --- a/arch/arm/boot/dts/imx28-cfa10036.dts +++ b/arch/arm/boot/dts/imx28-cfa10036.dts @@ -11,6 +11,7 @@ /dts-v1/; #include "imx28.dtsi" +#include / { model = "Crystalfontz CFA-10036 Board"; @@ -96,7 +97,7 @@ pinctrl-names = "default"; pinctrl-0 = <&ssd1306_cfa10036>; reg = <0x3c>; - reset-gpios = <&gpio2 7 0>; + reset-gpios = <&gpio2 7 GPIO_ACTIVE_LOW>; solomon,height = <32>; solomon,width = <128>; solomon,page-offset = <0>; From patchwork Wed Jan 9 08:39:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGFsIFZva8OhxI0=?= X-Patchwork-Id: 10753619 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 14FB317E1 for ; Wed, 9 Jan 2019 08:40:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 024F028F7D for ; Wed, 9 Jan 2019 08:40:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6D6C28F8D; Wed, 9 Jan 2019 08:40:05 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FROM_EXCESS_BASE64,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 658F828F7D for ; Wed, 9 Jan 2019 08:40:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729702AbfAIIj4 (ORCPT ); Wed, 9 Jan 2019 03:39:56 -0500 Received: from mail-eopbgr60057.outbound.protection.outlook.com ([40.107.6.57]:32372 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730003AbfAIIjx (ORCPT ); Wed, 9 Jan 2019 03:39:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ysoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yZ213LF2TEZgcy9lw1delmrhUGR8P3/CHyIBa1ZYhP0=; b=kMD+teN8Furmaj5VsAOB9zZN2LQca9KjnbSlRchG1I07CQNoBjTHGimZZ90bnVMSJvZjPmsIselaSbYzZDpEKs9jjKLxjiUsDj4bWnCi2S5LlLzJ5OCcxznAx3rlNOEqra8cU/uyFnouITHFFuiWBV0cuTjgEbc+3+s8UsnKv8U= Received: from AM0PR0402MB3716.eurprd04.prod.outlook.com (52.133.38.156) by AM0PR0402MB3780.eurprd04.prod.outlook.com (52.133.39.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1495.9; Wed, 9 Jan 2019 08:39:46 +0000 Received: from AM0PR0402MB3716.eurprd04.prod.outlook.com ([fe80::3cc1:26a4:94be:1d72]) by AM0PR0402MB3716.eurprd04.prod.outlook.com ([fe80::3cc1:26a4:94be:1d72%5]) with mapi id 15.20.1495.011; Wed, 9 Jan 2019 08:39:46 +0000 From: =?utf-8?b?Vm9rw6HEjSBNaWNoYWw=?= To: Bartlomiej Zolnierkiewicz CC: Rob Herring , Shawn Guo , Fabio Estevam , Alexandre Belloni , Maxime Ripard , "linux-fbdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , =?utf-8?b?Vm9r?= =?utf-8?b?w6HEjSBNaWNoYWw=?= Subject: =?utf-8?q?=5BRESEND=C2=A0PATCH_v2_4/4=5D_ARM=3A_mxs=3A_cfa10036=3A_?= =?utf-8?q?Fixup_OLED_display_reset_polarity?= Thread-Topic: =?utf-8?q?=5BRESEND=C2=A0PATCH_v2_4/4=5D_ARM=3A_mxs=3A_cfa1003?= =?utf-8?q?6=3A_Fixup_OLED_display_reset_polarity?= Thread-Index: AQHUp/bge8VKpB9zqEWIZtatzCOaLQ== Date: Wed, 9 Jan 2019 08:39:46 +0000 Message-ID: <1547023165-111798-5-git-send-email-michal.vokac@ysoft.com> References: <1547023165-111798-1-git-send-email-michal.vokac@ysoft.com> In-Reply-To: <1547023165-111798-1-git-send-email-michal.vokac@ysoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM5P190CA0022.EURP190.PROD.OUTLOOK.COM (2603:10a6:206:14::35) To AM0PR0402MB3716.eurprd04.prod.outlook.com (2603:10a6:208:d::28) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.1.4 x-originating-ip: [89.24.100.190] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM0PR0402MB3780;6:+1KK/T5IrjA3kSDneTfJMcJ8llg+vNueElubFBgDaRU1hJAxUbyWpkva4eC+FGz24FZ+CUJnr8491ACErWeGdX4GmfXgUGzqhmHHw8oP89qpgMoNpTnEx1mHNev0COzQsK4L0FlGwBvvoaZtP7wGfekcT3HsZ5Su2ueUlsgGx1rnvfOlkNAxo4d11k11Y3zVOONsBB2K7SwBwWW7FHetBcp0Uoir+9icZ4UzlT48Xq2ZGjySZx0YgVtUueWb9WWibJCK38LxN0JzRh4hWfmoU9+w2BMSoFqfQ0VTieYewWn2KB87CwV/P1Iy5oO8ao6U5XssaxrRJJmbQy3I7z2EqF0fixtJV9tDhfCjya6yMHrTJKfP8CZEcPDKvUzCE1jcA2Dskn6h0XysYvH2/8i/wyCIca+7ozPNS55f/ylorCt/h0em92uyWve6SlpJI7DVikmX6W43Py5xp8PRP9p2ow==;5:xy4d20VD/hNnPUs98TsEsMHmXEGShE5KHFoR4Yl6rOpa5rm1VS/l9c/Fvw2XDgmmJyTQQG03teJJ0v1RFi+nRV9d+6beGNCNBy64ufkABOxd8HlJwYIE7uRqqBksvuS9JN5gXmplUayKdqTB2qDDFMi1zYgGKfgW5MfiTz+67z3L+LpsYVA8rKDY56dc8GbLDeW6IypVfu80vuFjjLXRbg==;7:MacNuKv2DwLCg0a7T4SnlALL6vHdYJRFjq5hc2Joocgk6nwUuKmCyxmj1y+De203frnEFAImdnAtu3cn+RprfMAQbcI9w+nJA4BmbfVd7+fF9uFjL6x851EMslvaId2+nLHTn9NfE68mY9Yv/WzbIQ== x-ms-office365-filtering-correlation-id: 4c8c846b-5d90-48e3-45ed-08d6760e026d x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(2017052603328)(7153060)(7193020);SRVR:AM0PR0402MB3780; x-ms-traffictypediagnostic: AM0PR0402MB3780: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(3230021)(908002)(999002)(5005026)(6040522)(8220060)(2401047)(8121501046)(3002001)(3231475)(944501520)(52105112)(93006095)(93001095)(10201501046)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201708071742011)(7699051)(76991095);SRVR:AM0PR0402MB3780;BCL:0;PCL:0;RULEID:;SRVR:AM0PR0402MB3780; x-forefront-prvs: 0912297777 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(366004)(376002)(346002)(136003)(39850400004)(199004)(189003)(53936002)(5660300001)(66066001)(8936002)(6512007)(72206003)(6916009)(25786009)(4326008)(14444005)(256004)(36756003)(107886003)(106356001)(6116002)(14454004)(6436002)(105586002)(81156014)(81166006)(97736004)(486006)(6486002)(3846002)(50226002)(2906002)(305945005)(7736002)(86362001)(85182001)(11346002)(478600001)(446003)(476003)(2616005)(68736007)(6346003)(76176011)(102836004)(99286004)(386003)(6506007)(186003)(71190400001)(54906003)(71200400001)(316002)(52116002)(26005);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR0402MB3780;H:AM0PR0402MB3716.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: ysoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michal.Vokac@ysoft.com; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: YORqYMc6aGiS2xQPxL3MuzBNmhsgO6NIU0lOGad3euMJlbiBpCs6LzbSECj07zP4tNZaNkmHg0lymBNV0OM5us6mOahJE0JUO7l1pM7W2IkwOVariCVGIUzmggqG+VVxpCRMlpE9Pymv25dWQeWeD7o9ZDIfzLJOBLgAB/OrnM2LVpWTL9fYrquLWxumhpinDq4wnD43E/Bmc4ZJnwUjkwdWuhXkBgO69GJ2jGzC77V5tAtE91P4XFONVj4c9KgtV5vvK9/XoS1ombyNf3i8fjz11GqsoLFm/gg0TmBuV3hayB/cYW+OE05jya1/CoNq spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-ID: MIME-Version: 1.0 X-OriginatorOrg: ysoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c8c846b-5d90-48e3-45ed-08d6760e026d X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jan 2019 08:39:45.7620 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b5839965-430f-4be2-b282-d7a3149f2b37 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0402MB3780 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There was a bug in reset signal generation in ssd1307fb OLED driver. The display needs an active-low reset signal but the driver produced the correct sequence only if the GPIO used for reset was specified as GPIO_ACTIVE_HIGH. Now as the OLED driver is fixed it is also necessarry to implement a fixup for all current users of the old DT ABI. There is only one in-tree user and that is the Crystalfontz CFA-10036 board. In case this board is booting and GPIO_ACTIVE_HIGH is used for reset we override it to GPIO_ACTIVE_LOW. Reviewed-by: Rob Herring Signed-off-by: Michal Vokáč --- Changes from v1: - Add R-by from Rob - Use of_property_read_variable_u32_array to read the GPIO specifier array instead of reading it manualy in for cycle. (Rob) arch/arm/mach-mxs/mach-mxs.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm/mach-mxs/mach-mxs.c b/arch/arm/mach-mxs/mach-mxs.c index 1c6062d..50038d6 100644 --- a/arch/arm/mach-mxs/mach-mxs.c +++ b/arch/arm/mach-mxs/mach-mxs.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -268,9 +269,52 @@ static void __init apx4devkit_init(void) apx4devkit_phy_fixup); } +#define OLED_RESET_GPIO_LEN 3 +#define OLED_RESET_GPIO_SIZE (OLED_RESET_GPIO_LEN * sizeof(u32)) + +static void __init crystalfontz_oled_reset_fixup(void) +{ + struct property *newgpio; + struct device_node *np; + u32 *gpiospec; + int ret; + + np = of_find_compatible_node(NULL, NULL, "solomon,ssd1306fb-i2c"); + if (!np) + return; + + newgpio = kzalloc(sizeof(*newgpio) + OLED_RESET_GPIO_SIZE, GFP_KERNEL); + if (!newgpio) + return; + + newgpio->value = newgpio + 1; + newgpio->length = OLED_RESET_GPIO_SIZE; + newgpio->name = kstrdup("reset-gpios", GFP_KERNEL); + if (!newgpio->name) { + kfree(newgpio); + return; + } + + gpiospec = newgpio->value; + ret = of_property_read_variable_u32_array(np, "reset-gpios", gpiospec, + OLED_RESET_GPIO_LEN, 0); + + if (ret < 0) { + kfree(newgpio); + return; + } + + if (!(gpiospec[2] & OF_GPIO_ACTIVE_LOW)) { + gpiospec[2] |= OF_GPIO_ACTIVE_LOW; + cpu_to_be32_array(gpiospec, gpiospec, OLED_RESET_GPIO_LEN); + of_update_property(np, newgpio); + } +} + static void __init crystalfontz_init(void) { update_fec_mac_prop(OUI_CRYSTALFONTZ); + crystalfontz_oled_reset_fixup(); } static void __init duckbill_init(void)