Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2094522imu; Fri, 14 Dec 2018 05:47:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/VgcZoKDRER4HaWtBUxA+yjjqyUoYIR+O2RH8/vaZ8clpkH6m7POv7IJbZCLCWGocQZvV84 X-Received: by 2002:a65:5286:: with SMTP id y6mr2766865pgp.439.1544795236732; Fri, 14 Dec 2018 05:47:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544795236; cv=none; d=google.com; s=arc-20160816; b=CPUBQnGBTRLoXeBMDNOiMeOZcQkejH8hdj70h9YDGp9kzmzP8t9dPWrS1b5xJKxJZS 6bnsxVRh+6deS6elz/vzE6Pp3cZvLCD6WCnZ2OCEQNVQHHc9bK6mWyQK5kvgifgJLlpB YOVFQ2eucLJaOiLilbqqX1p1CLBFg7or4puOqZMacXSMbvscWPcPxw6y9lPehe3bk+gb toVC5cXHlkjUwKmGVVpJwEcpXAr9092stza3piORfrx8BIqzenP7q5SatsGfk7LSklw1 XIVBoLNa4yzceHrr26mubHjNcJqu9BsqGuBO0DGwuYG7BDihUpaq/73Y6jifDCMG4QMH 35og== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=GlndrkBzZjCVmciAqDDBHx6kfwbZc1gOvwHDalX+ngc=; b=Fc43gO32Dfm20qg2sXp4SaIk66Z/kq0qPFDh1cdsp44GioCHqh8YoLjzPt0xHEnIop hq1zVoRrILcSeGMsigfXd60XFEuhA3Dgoje81LxijjQQk0+XRhz+LO+tcrn0JGFqt9gy spjq/zz0e1sriMx+3D75Y/rlp24b6N38JaF0f/L3+6jpXd0vbBcEGQE7uSHoMXbOCx8n 1CrQPysrbjZDeetEvohCa4nHQz2nxgQG3juKep/e0s8Fj313PCmxb7WIHAKYFEPE6PXH YGIsXe5J48v9WqvEJZ2tZUCUsWgYcxhBZrUjUpcwUE/+OE6QWl5guUow+/e/rmeUhNcZ GnRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=exVl699G; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cc17si4370171plb.265.2018.12.14.05.47.01; Fri, 14 Dec 2018 05:47:16 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=exVl699G; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730005AbeLNNpe (ORCPT + 99 others); Fri, 14 Dec 2018 08:45:34 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:38450 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729804AbeLNNpd (ORCPT ); Fri, 14 Dec 2018 08:45:33 -0500 Received: by mail-lf1-f67.google.com with SMTP id p86so4300140lfg.5 for ; Fri, 14 Dec 2018 05:45:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=GlndrkBzZjCVmciAqDDBHx6kfwbZc1gOvwHDalX+ngc=; b=exVl699GEmlm8oldWKL1LwuPt9yeIRT5y4UVH5XP6+T5T28nMeP/XJao+5u0XA7joU WfaoBlMsnve4VzsvzDDy/yoN3UIdKpz2etl/JsP7q1ULAZxV8EpVEihOLUGkaFrGkNVg eguNwf/0mx7Mr4sdng8Z9hRGHO6QpoWNMkILQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=GlndrkBzZjCVmciAqDDBHx6kfwbZc1gOvwHDalX+ngc=; b=dwnfYbze20eG37Cj36dnldz4ozLe80eOyYaWBH84PqaqZCioAuM72fEKH0nT7uvpYc xO+iRtwO4bSVglCXJ+RvmUgh11cfkrsewDNFamVELp0gOKZM2a4dNzj7z8JYS2fROxVn 09tsMip+ryFuB2jiOAkaCzkDd0yw3aBnqN7A3I9zpkZX9X4bvyKb0ek5GxG/cqo76dhG CLgQBxpORiEkKIgdPga79SgG6G5x15OJKDDoMZHFlH/TRPExJ5SkJ3WG6H0odzS9mjqB gm3Ng8sE25jf5BEEv/rao6ktnmECNlMNOb1YpKs/ne1gKiRNnF1qoA61gjaaH+aNb/Li xQjw== X-Gm-Message-State: AA+aEWbQ0AoUyVWTQp/uJ894jLLCOS0xa19YVkn5CSdVXu5IcChs/cxt 2pU2ENPwAJogWotkeOTHfIyGYbzW3azKj+Tj4Xn5+fUUMDY= X-Received: by 2002:a19:c801:: with SMTP id y1mr1813468lff.53.1544795131474; Fri, 14 Dec 2018 05:45:31 -0800 (PST) MIME-Version: 1.0 References: <1544103655-104466-1-git-send-email-michal.vokac@ysoft.com> <1544103655-104466-2-git-send-email-michal.vokac@ysoft.com> In-Reply-To: <1544103655-104466-2-git-send-email-michal.vokac@ysoft.com> From: Linus Walleij Date: Fri, 14 Dec 2018 14:45:18 +0100 Message-ID: Subject: Re: [RFC PATCH v3 1/2] dt-bindings: pwm: imx: Allow switching PWM output between PWM and GPIO To: Michal.Vokac@ysoft.com Cc: "thierry.reding@gmail.com" , Rob Herring , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-pwm@vger.kernel.org, "linux-kernel@vger.kernel.org" , l.majewski@majess.pl, Fabio Estevam , =?UTF-8?Q?Lothar_Wa=C3=9Fmann?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 6, 2018 at 2:41 PM Vok=C3=A1=C4=8D Michal wrote: > Output of the PWM block on i.MX SoCs is always low when the block is > disabled. This can cause issues when inverted PWM polarity is needed. > With inverted polarity a duty cycle =3D 0% corresponds to high level on > the output. Now, when PWM is disabled its output instantly goes low > which corresponds to duty cycle =3D 100%. > > To get a truly inverted PWM output two pinctrl states of the PWM pin > can be used. Configure the pin to GPIO function when PWM is disabled > and switch back to PWM function whenever non-zero duty cycle is needed. > > Signed-off-by: Michal Vok=C3=A1=C4=8D > --- > Changes in v3: > - Slightly different description of the pinctrl and pwm-gpio. This looks good to me. Acked-by: Linus Walleij Yours, Linus Walleij