Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3219817imu; Sat, 24 Nov 2018 00:24:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/XvXsr+Q6L4Hxc2hR+uSfm3AQ86/Ohpl3SnACH5uy/wS/KI/h9tVXOj9XDwhCByj7ANfkrJ X-Received: by 2002:a17:902:a40f:: with SMTP id p15mr19473394plq.286.1543047841320; Sat, 24 Nov 2018 00:24:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543047841; cv=none; d=google.com; s=arc-20160816; b=az28mPMwEukcgysFBxExZ+m8pzFBwUaEAJlbzyeqKSqmbCzqATvWPqUExxZrbbfDdz 4GF3QD8DgYGF7VuSoF2nlGGb8XDMP0Dwra7+Ub8iUj/Sgwei3/XkmVtozxhlMTymIkRD 65N2azcIxsu64HJW/M0ei3N5VsNhENx6eShuHRHeBudscGCyNRomYNqHKxtaLwB9CzRa dJ/s2tHQubtarD2doVSaXyStUSPxjV4mmsJl5fc/1ckmk4xwsiTAw7uk5DF4ncJP/X+g F2tcDsqaCL9m9DOSB72WjXtoQ0Coz64OUY2Ex7kKxJuQFmn4BGjVnpQhzEDBfV6o3aKc Pt+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=dYEl8FaWLZz9SG703wDbmpkrJzxOUY9VOHrB/HhHPeM=; b=qFj6lOcZtUf2oyWYDnxqAiO3c9ZC+jIltp+Mp6e/gy0eZ0/3X0vyN6G2ocWogkaFOw ZXy+8wQsiasBYe+TOePkErM4XEHeM+I/ygSA0vELyKJGFK09Xc+NMMcq9D6/Z93HYK2f yEFQT7+cYuihqpVysNZJjkhTqyhoPbW34K+QHDypGAzlemGXP0ADw4xKSvWwef5WlQ6a rhzw6x6Qz2heIzJwpwRFOXl/FagbD7tWI0m3HdSifoIjZfpqlF2R5P1+y0Y7alr3oPuR T8AsLghP95H3QJPbsjk/oAv5spZ6cMsBG57IiSmhI14VBAVZ0e81qBx+J6d2XHTUShb/ GHXw== 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 w12si32562120pfn.212.2018.11.24.00.23.46; Sat, 24 Nov 2018 00:24:01 -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; 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 S2409331AbeKWVJX (ORCPT + 99 others); Fri, 23 Nov 2018 16:09:23 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:33815 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393918AbeKWVJX (ORCPT ); Fri, 23 Nov 2018 16:09:23 -0500 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gQ8eZ-0002MM-Ga; Fri, 23 Nov 2018 11:25:39 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1gQ8eY-000770-Ou; Fri, 23 Nov 2018 11:25:38 +0100 Date: Fri, 23 Nov 2018 11:25:38 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: =?iso-8859-1?Q?Cl=E9ment_P=E9ron?= Cc: Thierry Reding , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] pwm: kconfig: enable kona pwm to be built for cygnus arch Message-ID: <20181123102538.7gpabj7idmuraaid@pengutronix.de> References: <20181121123508.25119-1-peron.clem@gmail.com> <20181122200536.ndgrxuxealtovngy@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Cl?ment, On Fri, Nov 23, 2018 at 10:31:18AM +0100, Cl?ment P?ron wrote: > On Thu, 22 Nov 2018 at 21:05, Uwe Kleine-K?nig > wrote: > > Related to this driver I have a set of questions: If the disable > > callback completed, does the hardware still drive the pin? If yes, would > > it be possible to disable the pin driver such that the pin gets high-Z? > > If yes, how? > > The output pin type is configured with the bit "21:16 PWMOUT_TYPE RW > default 0x3F" in the Control register > PWM_CONTROL_TYPE_SHIFT macro in the driver > Datasheets says : "When set to 1 the PWM Output signal will have a > push/pull type.When set to 0 the PWM Output signal will have an open > drain output type.Recommend to leave it push/pull type." > > In the driver we actually set push/pull mode for all channels : > /* Set push/pull for all channels */ > for (chan = 0; chan < kp->chip.npwm; chan++) > value |= (1 << PWM_CONTROL_TYPE_SHIFT(chan)); So if disabling the output driver was part of the requirements for .disable the bcm-kona driver could not implement this for both inverted and uninverted PWMs. (At least not without resorting to pinmuxing.) Thanks Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |