Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1824907imm; Thu, 23 Aug 2018 09:19:55 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzBUoV4cgMVCO2/z62fxaZtmN0m+Vh4Ul/etW0ZkSBu+ElMM4q2o790bsoVkqi8DV+we7yc X-Received: by 2002:a63:c60:: with SMTP id 32-v6mr24067278pgm.155.1535041195672; Thu, 23 Aug 2018 09:19:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535041195; cv=none; d=google.com; s=arc-20160816; b=ILMgemcJIc0S9Vg9eGN8LR8d3UJ/3W96vgZpGvXO20sFyt0qdGxf5hwuuSx/Fk3ON0 G3xCuKFjizL9//7sld94vTuPuGK+M9tnM22E4C4/1WzY4tyyp97oT1aD3fLwhpRTE1jS Yc6wEmF1j/viNocZHV91u/sn8tyBu2mWP6bbP5T3NQnPjTGgQSS5i8DNEIdYfi0IPFtQ GdJ6UF9InQerJsXEj09Dk35LUIclps7xRpAqrM7WU1fSrinYtP+idFi+Tr7/WE6b7u7z FobZsVyVnsaClYV4RUS6oLfbPJi7NlTWmJTq3z+hdBLjQb08kbGyOgOHUDH3aH2bVgzG EVAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=Wm9FH6YuWjNng3rHFwQVWdL836q3nEfNN69Tki/WwrU=; b=1JxlJyAFeVO8X2gMbH3vrwufQ8z9TtQZuyc13GTDNbL+vsHkWXxsuG2iUWE4ExkK3M dsmtiLfex4FzC74I6fMeOQbFfPsLUpPNJoLkLBDp7ugoxqjjS15s4B+uNp3zKU6gRG+P nYmhQ0H3XbzPrniy2fKCDOtpNuUBevGpfz9Ghliv1INw8GcvhbjE9IpgfSpYYuZ/Rkzh Dl9dovYYVCpTps6Re1vn0rZl7fVE2BIDMHEVXpr0OKkVXtjZ4P6hmjn+k9vrINDvEqDz tR7GQR3+eL1EGNp7q1hFeR4btXMY+HMO3zfYLT3qLSkVcp243XjNI6pxDD/KgGkMYb4Z 9i9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ysoft.com header.s=selector1 header.b=cy4xGECK; 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=ysoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si4542946pld.408.2018.08.23.09.19.40; Thu, 23 Aug 2018 09:19:55 -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; dkim=pass header.i=@ysoft.com header.s=selector1 header.b=cy4xGECK; 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=ysoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729921AbeHWQIU (ORCPT + 99 others); Thu, 23 Aug 2018 12:08:20 -0400 Received: from mail-eopbgr30048.outbound.protection.outlook.com ([40.107.3.48]:54440 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729511AbeHWQIT (ORCPT ); Thu, 23 Aug 2018 12:08:19 -0400 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=Wm9FH6YuWjNng3rHFwQVWdL836q3nEfNN69Tki/WwrU=; b=cy4xGECKnlAfMWs+d83yGHjSlI4m8+GwFuPjkrSgor30GbFhRYNzD7Pf13iV1FkWmSrSkyJVWJ5wIZ/IWw062lgtoYKKd5/HUWpz8SpjoXRaMbVPB3OHyNNwWrWciSmJn+AhnVdEcsSK/fLhnl4OmYAdK+FFYI3mzOn0SBFXMJA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Michal.Vokac@ysoft.com; Received: from [10.1.8.111] (89.24.100.190) by AM6PR04MB4661.eurprd04.prod.outlook.com (2603:10a6:20b:1b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1059.21; Thu, 23 Aug 2018 12:38:25 +0000 Subject: Re: [RFC PATCH 1/2] dt-bindings: pwm: imx: Allow switching PWM output between PWM and GPIO To: =?UTF-8?Q?Lothar_Wa=c3=9fmann?= Cc: Thierry Reding , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, Lukasz Majewski , Fabio Estevam References: <1534862333-27950-1-git-send-email-michal.vokac@ysoft.com> <1534862333-27950-2-git-send-email-michal.vokac@ysoft.com> <20180822081436.13d8f55b@ipc1.ka-ro> <175003bc-eae7-1b30-ebfe-b56ffc58705e@ysoft.com> <20180822131758.162d5351@ipc1.ka-ro> <18b4a847-bc59-4450-331a-0b17f27c97a8@ysoft.com> <20180822161036.4d69bdc1@ipc1.ka-ro> <5b13d21c-f83f-49b0-eedd-9a4995dbd469@ysoft.com> <20180823131816.741c09cc@ipc1.ka-ro> From: =?UTF-8?B?TWljaGFsIFZva8OhxI0=?= Message-ID: <5a5c419a-b08f-f913-01ad-715e28164731@ysoft.com> Date: Thu, 23 Aug 2018 14:38:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180823131816.741c09cc@ipc1.ka-ro> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [89.24.100.190] X-ClientProxiedBy: AM6PR0502CA0072.eurprd05.prod.outlook.com (2603:10a6:20b:56::49) To AM6PR04MB4661.eurprd04.prod.outlook.com (2603:10a6:20b:1b::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a582cf57-962b-4e8a-d382-08d608f55270 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:AM6PR04MB4661; X-Microsoft-Exchange-Diagnostics: 1;AM6PR04MB4661;3:hEIPI4rtAS5g0SPXYZMrfbm5QOmPp9gOsNSz8DmJLpsh96/vqk0xTLgqM9p0fP8pMj6vTET/K395pP4iCa5/PwQslnyU7NJ5UeIn8VuuTWO1LoOXqymSZXFlNN+jWF+eZZviUkPWsQSsrJMHfSdboIuRLIpxqueh67k/oEQWWtfc6rc0XYbpAp4VAFXzpHLQaQBfc6Y48XfNH4BrrGA8Sw19coMGg+yryRSZp+im2Rmqok2nw+gqNv/h4v2JC0Im;25:Xl+lpqdV5/b8JDXeLlOqZj8YokBec2Gq/UfFNtcTEkEFIn5IkkhuPE/T0G25BbB+hPYFCEWSU8zSUJNYty0Oh8XpodWrmBR9Qb4mbnIVylu3G91JJgts9+CDoC1UMDSBtqR2Re7Y6lw6nouFP3GbL0b2ZOBxg82AOOVIjtfZP30I6pQxa4OO91xZKsd6gUsgJNXnc90Z44GXCYdCMtaTCEuwmgxlJaLmLn0IolsXD+m6STttPANhqGdZbBwhETW+745DUSxfpPCeosfUuFjbi1aZWOFkgcN9mvm+9T2OAaXLcYuM7YqBrUavEJb6iFTXGQk5hom/ieIuvTHXUm4H1w==;31:1TpBoqZbbJoBWgkda1rqY5Y/N9Hx7jIg09gBO1gaVtnj/NbVPl63Kj63h5ueZubF0XcJc211tEhenoXaXjXL6bKz3IV/njWf/X5+XlEUK5h89tQnmG2KKXBt41yFd85eRoSKYbjgMfg3szteTsGkKzks6TnMZqEZtO5LNuRFYPBd4xkj9AuKE/xMbaC0eDANyS1pDyV+pmsKDIcnVSPTq8zEPmm+e8NZweYm+O5lT0w= X-MS-TrafficTypeDiagnostic: AM6PR04MB4661: X-Microsoft-Exchange-Diagnostics: 1;AM6PR04MB4661;20:RdPYY3binj8m8sbdmkvWRy9Py27Xk5EwfBSJqvac3oqtQoCoirI8UYJ3fCQgzf2rgkktE3YVjtxQNdzaFh49g0WgF3CM6Fn9ynR60wHgOuzmjhCWgZqLAVFLmOMhVdK2NWcMnWC+m01zJr4xAJl60tzEOOgpEhI+LJLq4MNctxnK1/+TIM0qyA0ihst0H0gVHp276DfRRawypdiPS5IrbGSz/yJK3I2uzDzgoEWk/3Eyti1uHtZyBB65Ln22qt6p;4:Xnl8AhnCZIkq2ebMjV4xCELP8uC/6nrhNk4IL1SVJGrdxBP78ZQy0etuuFXzOnRUWEZHNtGJmeTBQDIsqvfKrp7rVHGs5HVtQ42TxQSAJPXnbV3IeFxAGY49ZkG9z3HG9CDWv04BEsy0EMYFKJlhJhCFs68c6qx5gAad+Yz1VJQyotZPKbp8T/RUlrqJhq+wP/WMW6VB52bpDpetC/q5x8JltnVwcO24CwpIQF2GfwROqMagZdw/WNm8hn27hVg1N9dRsHR/UuSakYLgrzeGdA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231311)(944501410)(52105095)(10201501046)(3002001)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016);SRVR:AM6PR04MB4661;BCL:0;PCL:0;RULEID:;SRVR:AM6PR04MB4661; X-Forefront-PRVS: 0773BB46AC X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(39850400004)(376002)(366004)(346002)(136003)(396003)(51744003)(57704003)(51444003)(189003)(199004)(85182001)(345774005)(16576012)(86362001)(316002)(6246003)(31686004)(2870700001)(39060400002)(52146003)(6916009)(23676004)(76176011)(52116002)(4326008)(67846002)(7736002)(2486003)(25786009)(2906002)(50466002)(106356001)(305945005)(31696002)(77096007)(6666003)(105586002)(54906003)(72206003)(58126008)(8676002)(47776003)(36756003)(217873002)(81166006)(2616005)(65806001)(68736007)(8936002)(476003)(5024004)(81156014)(486006)(53936002)(6116002)(66066001)(93886005)(6486002)(65956001)(478600001)(26005)(14444005)(53546011)(956004)(97736004)(229853002)(386003)(446003)(64126003)(65826007)(3846002)(5660300001)(11346002)(16526019)(186003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR04MB4661;H:[10.1.8.111];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: ysoft.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTZQUjA0TUI0NjYxOzIzOlUzZTloZHdPOTNVUnE0bEtKVXlxaDQzbFlL?= =?utf-8?B?QnkzTHdDM1A2V3h5UXJTRThIcStyQ2xRcW1jY05OL0VpTTR3K3lFVWgrVEwy?= =?utf-8?B?OWlPNVZDbUE5NHEwZjFVWll2Sjd3M3c2dFlkZDBTeXJDRGtMZEFiVmpQUWJD?= =?utf-8?B?dGw1MERZQ25qMVpNTXErejJ4Z2Y5QnFVQzcxYUlMZzRYcVowVzZiRXcyRkdj?= =?utf-8?B?VkVjWkdRYjhzUE9VRWxXSFlxZFpUYXF1UkU0MnZCNUNvc0Z6UFRPVEZLMU4y?= =?utf-8?B?M3ZNbmhiUlBuTWkwS1NRSFlrdjNiaFBIUlRlMUVWaUNEUGFNWHNFOFRZa09B?= =?utf-8?B?NjViWDV6MC9zK0g0UW5Y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+iAvxcUME4kqthXPRUyou/2cC53tZCMEzw0kf4VQWM560Kae8UDBeRD14DCQuJtwGKcIAwereuB2Up/gkCUhOhiDgJsFGTjiuDYT576pIcFImuyo/HVIkZ0BnUyQaUn5DaV7rqXuUrKXtdNPPrY+5k=;7:x8tKiFcvXfpMN3z6nqAbligdYJVM3SRUS0Mk+EG1QmwYE5saVMboR51CQCpfWvfDcf1MzlL8Grra/24F3lxtLTjgSNVT4cB7L9+/iZ4tFRQR9J6rpY/FGF0aFrCIecUuvJtY+NBfqpUti/LsRCivMGkzSwuc+GXV4pqszjqISggHR769BN1V4HKFIKwxjj27OAkLsjGpNl5VrbvqCG92hjoQIfH501comFAjC3hDY14zGf+CoKC6wmhOPRMaapVy SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ysoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2018 12:38:25.9237 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a582cf57-962b-4e8a-d382-08d608f55270 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b5839965-430f-4be2-b282-d7a3149f2b37 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4661 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23.8.2018 13:18, Lothar Waßmann wrote: > Michal Vokáč wrote: >> On 22.8.2018 16:10, Lothar Waßmann wrote: >>> My use case is attaching different displays to the same baseboard, >>> where some displays have the brightness control pin inverted with >>> respect to the others. It's easy to change the compatible string for >>> the simple-panel driver and the PWM polarity setting for the >>> pwm-backlight driver from U-Boot according to the display model, but >>> it's not so easy, to edit the pinctrl settings from pull-up to >>> pull-down or vice versa. >> >> OK, I got it. Though that is something different than having two clients, >> right? >> >> You do not actually need to change the pinctrl pull-up/down configuration >> in bootloader. You define the two pinctrl groups as I suggested in the >> example. Or more precisely, you add a new pinctrl group where the PWM >> output pad is configured as a GPIO with pull-up. You add this group to >> all your common device trees. This does no harm as the group is not used >> yet. >> >> In bootloader you detect the type of the panel. Normal PWM polarity? OK, >> do nothing and boot. Inverted PWM polarity? Set the pinctrl-names property >> to "default", "pwm". Set the pinctrl-0 property to point to the GPIO group >> and set pinctrl-1 property to point to the old PWM group. >> >> E.g. something like: >> >> => fdt set /soc/aips-bus@2000000/pwm@2080000 pinctrl-names default pwm >> => fdt get value gpio-phandle /soc/aips-bus@2000000/iomuxc@20e0000/pwm1grp-gpio phandle >> => fdt get value pwm-phandle /soc/aips-bus@2000000/iomuxc@20e0000/pwm1grp-pwm phandle >> => fdt set /soc/aips-bus@2000000/pwm@2080000 pinctrl-0 ${gpio-phandle} >> => fdt set /soc/aips-bus@2000000/pwm@2080000 pinctrl-1 ${pwm-phandle} >> >> Will this work for you? >> > This would probably work, but it's quite ugly. > I'd still prefer to set the pin output state to the desired level > rather than relying on the chip internal pullup/pulldown facility. You mean like actively setting the pin HIGH or LOW using gpiod_set_value_cansleep()? I also used that in my very first prototype. But even for that you still need to define the second GPIO pinctrl group and select it before you can set the GPIO value. I think because this is all meant to be used only with inverted PWM output you naturally configure the GPIO with pull-up. So you do not need to actively drive the pin. Is your concern that the 22k pull-up may not be strong enough for any connected circuit? IMO the whole point of totally disabling the PWM is to save some power. So I will go with just the pull-up. In your case you also need additional xxxx-gpios property that describes the GPIO. Actually here you have one more option to invert the logic as you can specify the GPIO as GPIO_ACTIVE_LOW or GPIO_ACTIVE_HIGH. For inverted PWM output you should use GPIO_ACIVE_LOW. In your case you will need to tweak that in the bootloader also. The final DT fow inverted PWM for backlight will look like this: backlight { compatible = "pwm-backlight"; pwms = <&pwm1 0 500000 PWM_POLARITY_INVERTED>; brightness-levels = <0 32 64 128 255>; default-brightness-level = <32>; num-interpolated-steps = <8>; power-supply = <&sw2_reg>; status = "okay"; }; &pwm1 { #pwm-cells = <3>; pinctrl-names = "default", "pwm"; pinctrl-0 = <&pinctrl_backlight_gpio>; pinctrl-1 = <&pinctrl_backlight_pwm>; pwm-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; status = "disabled"; }; &iomuxc { pinctrl_backlight_gpio: pwm1grp-gpio { fsl,pins = < MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x8 >; }; pinctrl_backlight_pwm: pwm1grp-pwm { fsl,pins = < MX6QDL_PAD_GPIO_9__PWM1_OUT 0x8 >; }; }; I think that for further effective discussion we need to wait for some comments from PWM maintainers. The main questions still remain: - Is it acceptable to use pinctrl from the PWM driver in the first place? - If so, is it acceptable to allow to use the approach where GPIO is used as the default state and we switch to "pwm" when needed? This produces the cleanest inverted PWM signal. - If not, we will use the "gpio" state as the second optional one and use it when clients disable PWM. - In both cases, can we rely on internal the pull-up facility or do we need to actively drive the pin? Thank you for your time! Michal