Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1815696imm; Thu, 23 Aug 2018 09:11:13 -0700 (PDT) X-Google-Smtp-Source: AA+uWPybT99Q0Hg6C0VsQHkpzaqCUe1HXezT0PONSN60j3uQ2eD6lofwjaAOknEFZp5pAk/VCrJW X-Received: by 2002:a17:902:d917:: with SMTP id c23-v6mr24209207plz.65.1535040673300; Thu, 23 Aug 2018 09:11:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535040673; cv=none; d=google.com; s=arc-20160816; b=er90eERtytR79N+M2oyRpywE5bzJvN5wCPC/fCstUX0BmjOnhKU0umldEzn2HYltJ2 qZtpXJpstFBXuUYoh+hye5tEDFrE/EeAFJRumOwJA3EYkonEEU8rChb/qVNaO5Ww/xVw 9nOKW72t+z6uW5MEtDT+wexLSLJzgbjko73IUPqL+C6a1zhdgJgTkmpha8lxDR9kNMRe Krr6VXSExMEFnVmna8Mhxbux3s6h9Fhamu5bgvqlYa9QhzmGbKr0Z2D+qFJ/XrIXEnhY DO3BnG6SOIay3WCz+zRKk1qYjjG0XkRDY9gSq7sAeOravONgBux2NUgRuFCjn4ZL9Xxf cbMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=DuWd919BqtW5n2LNd7dBnlsnh0OH2RVXvDvnz/GqzX4=; b=F11zXqPoDYi1wknMIQkfPumUt/7vYnEmifOhm3pSZd479ZGQeouoWw8qdV/ACR0atQ Oxejm2T9ztOlkfWJWahZRYuQ/6wojAFBuvQlVcd0Nbnd9K7qQZKWZKLZb9YldkQmBu7Z qF+3jjHz21OC+GtpYMmnIXnfRbWg9FB+prle8zoNrZnhCK2qvZQo8mCa0IoZaMas0eSo yZ1hcdvwLZe4G/8dubBYXr+xdvyS0e51Jlrw8Z9+hABiw7zeLIU6nfoTUlanxdCDKz1K rCmmXzc96YqgjE0efAdJBhlpveCg5jq9H3xa9RF+hGNHUL5RQ3/KphWD8brGzulGlr65 I7+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3-v6si4671246pgm.479.2018.08.23.09.10.57; Thu, 23 Aug 2018 09:11:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731414AbeHWOsx convert rfc822-to-8bit (ORCPT + 99 others); Thu, 23 Aug 2018 10:48:53 -0400 Received: from smtprelay07.ispgateway.de ([134.119.228.104]:20987 "EHLO smtprelay07.ispgateway.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729260AbeHWOsx (ORCPT ); Thu, 23 Aug 2018 10:48:53 -0400 Received: from [89.1.81.74] (helo=ipc1.ka-ro) by smtprelay07.ispgateway.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1fsneK-000539-I7; Thu, 23 Aug 2018 13:19:36 +0200 Date: Thu, 23 Aug 2018 13:19:35 +0200 From: Lothar =?UTF-8?B?V2HDn21hbm4=?= To: Lukasz Majewski Cc: Michal =?UTF-8?B?Vm9rw6HEjQ==?= , Thierry Reding , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, Fabio Estevam Subject: Re: [RFC PATCH 1/2] dt-bindings: pwm: imx: Allow switching PWM output between PWM and GPIO Message-ID: <20180823131935.1eae184f@ipc1.ka-ro> In-Reply-To: <20180823123759.68b78e9f@jawa> References: <1534862333-27950-1-git-send-email-michal.vokac@ysoft.com> <1534862333-27950-2-git-send-email-michal.vokac@ysoft.com> <20180823123759.68b78e9f@jawa> Organization: Ka-Ro electronics GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Df-Sender: bHdAa2Fyby1lbGVjdHJvbmljcy5kZQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Lukasz Majewski wrote: > Hi Michal, > > > Output of the PWM block of i.MX SoCs is always zero volts when the > > block is disabled. This can caue issues when inverted PWM polarity is > > needed. With inverted polarity a duty cycle = 0% corresponds to solid > > high level on the output. If the PWM is dissabled its output > > instantly goes to solid zero which corresponds to duty cycle = 100%. > > > > To have a trully inverted PWM output configure the PWM pad as a GPIO > > with pull-up. Then switch the pad to PWM output whenever non-zero > > duty cycle is needed. > > Just to ask - Is your display equipped with power supply enable/disable > pin? > > As fair as I remember the trick to avoid flickering the display > was to disable the display (enable-gpio property) and set the PWM PIN > as GPIO to high in u-boot. > Unfortunately there are both types of displays. Some with an ENABLE pin, some without. Lothar Waßmann -- ___________________________________________________________ Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10 Geschäftsführer: Matthias Kaussen Handelsregistereintrag: Amtsgericht Aachen, HRB 4996 www.karo-electronics.de | info@karo-electronics.de ___________________________________________________________