Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1135457rdg; Fri, 13 Oct 2023 11:12:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH8bSALfNd6JYYFg/gvqnN3rUVw++w4FeifKyJAA6tkmRmYSSsgC76DaJ6kU90baKyK9rBM X-Received: by 2002:a17:902:bb84:b0:1c6:2161:b171 with SMTP id m4-20020a170902bb8400b001c62161b171mr22597585pls.4.1697220736526; Fri, 13 Oct 2023 11:12:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697220736; cv=none; d=google.com; s=arc-20160816; b=zCw8cT9tXRF/RMDFl9brqIfFl+KJX/qG/axedP7Li13XBdCRVkTc9SWjdQ6Apiojie koRNWL1pQQJrPg72piPxNCrQfDML6gIsONb3BrLNaVNL7HrfckPFrew7vkC8yLvqFWKl 7AXyQ9opaolG3lxC/pWB0CNLA0YB9gMlPuA8S28hgL9Ldvqu6idsWt+UZBxpMa9cpztj hAhafass/vIhlMu809JPmuYX3/qH2Y2ejnCe3b9BTyWKR7S0wDDsz6jrVTBZaXufWKi3 v4YWydRDiVrCjfOwWtaaKv9J4E0lJaybmGapgqSDFs9Pr41Tt6xB+VIEB7kL1dxwIB20 1uPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=F3Ot4Vhks/8afuI7/WtJ+1XjBHgcBKcr9rvr41m6D0o=; fh=3AS6YxnZYwAiw1IcaiVhvqZCjjQWBco8sVZpmjuSku4=; b=EOAni19YUza7LdjPtFND4E/SMpXw2SVVFWbaSdT04rTLAdVZL/RIzHjaokVgyDscOV uZfL1rc5pSDvx0ev2MwMnDahGXizLaxJWonOcMjL24IYnQCH03kXYZotYhTWaIPWi396 V1d6Ylf9htyC4SsZvLpmpfF8/UpwIYH2IsKByjRZ/rPcHYsvW24tqfHwHqTUEpXNkz5H z1oYoj12xtsDJ4jVZai/niF98jca52Usb/+9ZDG44Nu2Wk+YtqviSm1gdFXG8WahpFHs bztKzgXRB/SOzJfU0r1mFE28Q0QzCkGzLg2DmfaDU9WjK/Jr5nNBlFVxFZZlA0TxMl31 1PHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bpe0KFYD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id y23-20020a17090264d700b001c72c893ac9si4867986pli.104.2023.10.13.11.12.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 11:12:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bpe0KFYD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 6EE69832518E; Fri, 13 Oct 2023 11:12:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230260AbjJMSMI (ORCPT + 99 others); Fri, 13 Oct 2023 14:12:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229958AbjJMSMG (ORCPT ); Fri, 13 Oct 2023 14:12:06 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9855E6; Fri, 13 Oct 2023 11:12:04 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8423FC433C7; Fri, 13 Oct 2023 18:12:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697220724; bh=GEg5YuIE8UF4NZRdoKQgB/R137hqA2LKlhnXmjOkreI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bpe0KFYD/DtoQg62xNTpUaMVBbmI9Mayf6s+q6MsC9a9V94yYmRGN1QCeYkxtQLid gNCIrFGjMnlaKnosvA8QmBmrPjzft3qEyCRefCksLkMFqVw7aZQbCOz+X0Gnb5wfjE Ejc4q+8iBdLA281w/cxT4b1G9izV1vQDQXnUefjvrLx8MT062EcVsXxYDrZEtDe6ED zekBpXCt8pV64AyVgPjuKbIU4ZnJtJjuZDgeo4uBEvK/7fIIq3qFre9lKRuQ41i4eX amEgkzk+4nKklKstVQidFKkkdBEdJ0GpPJdHfRFh3ZsylaQ/p7zbSkxqXqhFlb0ukO JaMLSOFc/+zFQ== Date: Fri, 13 Oct 2023 19:12:18 +0100 From: Jonathan Cameron To: Krzysztof Kozlowski Cc: Jonathan Cameron , Ivan Mikhaylov , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v5 1/2] dt-bindings: adc: provide max34408/9 device tree binding document Message-ID: <20231013191218.26cbe06a@jic23-huawei> In-Reply-To: <9996a912-7b4e-4247-bb8a-716782fbcc2a@linaro.org> References: <20231007234838.8748-1-fr0st61te@gmail.com> <20231007234838.8748-2-fr0st61te@gmail.com> <20231010154042.2ef667b2@jic23-huawei> <383064a5b0863a4a616cd60cff8d4bc18e397fd7.camel@gmail.com> <20231012084052.504ac930@jic23-huawei> <20231013091952.00002573@Huawei.com> <2eafa89c-7c95-4bc1-85cb-a6d7417dcea8@linaro.org> <20231013100930.000043b2@Huawei.com> <9996a912-7b4e-4247-bb8a-716782fbcc2a@linaro.org> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 13 Oct 2023 11:12:14 -0700 (PDT) On Fri, 13 Oct 2023 11:53:33 +0200 Krzysztof Kozlowski wrote: > On 13/10/2023 11:09, Jonathan Cameron wrote: > >>>>>>>> +=C2=A0 shtdn-enable-gpios:=C2=A0 =20 > >>>>>>> > >>>>>>> I guess the review crossed with you sending v5.=C2=A0 There is so= me > >>>>>>> feedback on v4 you need > >>>>>>> to address here.=C2=A0 =20 > >>>>>> > >>>>>> Jonathan, I thought I did, I've changed ena to powerdown-gpios from > >>>>>> Krzysztof's comments but about this one pin I'm still not sure, it > >>>>>> looks like *-enable-gpios (like in *-enable-gpios pins in > >>>>>> iio/frequency/adi,adf4377.yaml) pin or is it not? Or maybe any > >>>>>> other > >>>>>> suggestions about naming of this one? > >>>>>> > >>>>>> Thanks. =20 > >>>>> > >>>>> shutdown-gpios and make the sense (active high / low) such that > >>>>> setting > >>>>> it results in teh device being shut down. > >>>>> Or treat it as an enable and enable-gpios > >>>>> > >>>>> Something that indicates both shutdown and enable is confusing ;) > >>>>> > >>>>> Jonathan =20 > >>>> > >>>> > >>>> Jonathan, then I make these changes: > >>>> > >>>> powerdown-gpios: -> output-enable: =20 > >>> Needs to retain the gpios bit as we want the standard gpio stuff to p= ick > >>> them up. I'm not that keen on output-enable-gpios though. The activi= ty > >>> here is very much 'shutdown because of error or not enabled' I think. > >>> So perhaps we flip the sense and document that it needs to be active = low? > >>> =20 > >>>> shtdn-enable-gpios: -> enable-gpios: > >>>> > >>>> Is it ok? =20 > >>> > >>> Conor, Rob, Krzysztof - you probably have a better insight into this = than > >>> I do. > >>> =20 > >> > >> "enable-gpios" are for turning on a specific feature, not powering > >> on/off entire device. For example to enable regulator output. > >> > >> "powerdown-gpios" are for turning device on/off. > >> > >> I don't know what do you have in your device. =20 > > Ok. Sounds like that what is enable-gpios above should be shutdown-gpio= s. =20 >=20 > shutdown-gpios sounds exactly the same as powerdown-gpios and it is > already used in exactly same context. Oops. Yup. powerdown-gpios seems appropriate. >=20 > > The other case is a device output indicating whether the device is > > shutdown. That can happen because it was told to do so (via the other = gpio), > > or because it is in an error state. What's a good naming convention for= that? =20 >=20 > There is no convention and I did not see such case so far. > powerdown-status-gpios? powerdown-state-gpios? Either seems reasonable. Thanks, J >=20 >=20 >=20 > Best regards, > Krzysztof >=20