Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754495AbcL3PDV (ORCPT ); Fri, 30 Dec 2016 10:03:21 -0500 Received: from saturn.retrosnub.co.uk ([178.18.118.26]:51575 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754467AbcL3PDS (ORCPT ); Fri, 30 Dec 2016 10:03:18 -0500 Subject: Re: [PATCH 1/2] devicetree: power: add bindings for GPIO-driven power switches To: Lars-Peter Clausen , Geert Uytterhoeven , Rob Herring References: <1481494905-18037-1-git-send-email-bgolaszewski@baylibre.com> <1481494905-18037-2-git-send-email-bgolaszewski@baylibre.com> <20161213192712.gbaw4t4awayybnta@rob-hp-laptop> <505b7c02-e7dd-b0a5-8009-dca9101b0dd4@metafoo.de> Cc: Bartosz Golaszewski , Hartmut Knaack , Peter Meerwald-Stadler , Mark Rutland , "linux-iio@vger.kernel.org" , linux-devicetree , LKML , Kevin Hilman , Patrick Titiano , Neil Armstrong , Linus Walleij , Alexandre Courbot , linux-gpio , Sebastian Reichel , linux-pm , Mark Brown , Liam Girdwood From: Jonathan Cameron Message-ID: <5bbedbb7-2391-c927-deab-75fd9fffe7f6@kernel.org> Date: Fri, 30 Dec 2016 15:03:06 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <505b7c02-e7dd-b0a5-8009-dca9101b0dd4@metafoo.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1467 Lines: 34 On 23/12/16 11:40, Lars-Peter Clausen wrote: > On 12/23/2016 10:07 AM, Geert Uytterhoeven wrote: >> BTW, I'm not an IIO expert, but from my limited knowledge, it looks like "O" >> support in IIO is limited to DACs? > > Depends on what you categorize as DACs. There are also > potentiometer/rheostat drivers. They are kind of like DACs but the unit you > control are ohm, rather than current or voltage. Though they are still in staging there are also things like function generators. I've been mulling doing a driver for the st-powerstep01 parts as well which is a smart stepper motor controller. At that level we'd need to start describing the connected stepper motors in DT :) Whole chunk of API to define to do that though - might well take longer than writing the driver. So in practice yeah - dac like things, but then on the input side they are almost all really ADCs with some funny analog stuff on the front end ;) Arguably switches are 1 bit DACs ;) The distinction here is whether 'what is passing through' the device is knowable. So regulators and your power switch are well described. A relay less so unless we know what load it is switching... + it's IIO. We are open to almost anything as long as we aren't stepping on any toes! Jonathan > -- > To unsubscribe from this list: send the line "unsubscribe linux-iio" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >