Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3032455pxv; Mon, 12 Jul 2021 07:45:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0mVQMTPeLcNDveAXYZzAYoDEj81hd+xh0TU1wEJKbZqm2ikoc4sGc2ynLLVHm29SHJsdL X-Received: by 2002:a17:906:3555:: with SMTP id s21mr33522371eja.394.1626101131921; Mon, 12 Jul 2021 07:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626101131; cv=none; d=google.com; s=arc-20160816; b=fM5Jz2CW7X4uQ/04nw6ECeBAzS9wWIfrbiJ7JxttwzxWz8VIPUw4UKzgmpiBjBaJvN JWyxOi6Ld/A+JKoB/YOuHqAYBLmbb0SLD/8ZELv4uFrFdsntjmYavJP8juI887k4IQTR BgjBAlj3OlevvVjHiStRhFsmsZsdsjh9ndzoOwEuLQoxVN/zvC+AhghunbykSWGMmS8i uyrgbSaJfkfttXpZj9avPWOhkYGqySEH+gaUWRVgjcFsWypga5fC2pvSZUCSP6hR3Sw+ 7dl7e7viAUAW9IgJUXK/Y+XVf6qj2GO5Hz6fANPUcu0buCtC2d/fjLPIydHxxqiZaQc0 AK0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=np4XRmePldXERnfmJAreepqhvPuNElEqZd5QybFo6Tg=; b=XcgnbffWI12VRGeeKZfRwePkz0HRLENzlvCOc4Bsi93qVCxGp0Pty36wQhY2jLtmLT hF0pD0/nnwApB4ILk+9CRZ+5DxX4VsubX0czVDkjq9m9fUEn0UkpMkHh43tQDkYqfmWd prHLjuF/bzsHtqsN0FFafH7k73+pPxpZrTZvbmNM3cnq6mCf4zWefhw0/js3JG1D1cA8 KyOvofxpZPGawFPnfd8PcSsxGt0iuPoSws6CTe8HpAa21qLd6A1CnY6XbWFR9aGOCqU2 hS9eRlLdaHJgOlSULLkOknsBsmOVSY7UUsrt8UNgbhtBI6lHkGYfcreOldJrFYJaLevP rNVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h17si2898917edb.547.2021.07.12.07.45.07; Mon, 12 Jul 2021 07:45:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235188AbhGLOok (ORCPT + 99 others); Mon, 12 Jul 2021 10:44:40 -0400 Received: from mail-io1-f51.google.com ([209.85.166.51]:35359 "EHLO mail-io1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231194AbhGLOok (ORCPT ); Mon, 12 Jul 2021 10:44:40 -0400 Received: by mail-io1-f51.google.com with SMTP id d9so22931677ioo.2; Mon, 12 Jul 2021 07:41:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=np4XRmePldXERnfmJAreepqhvPuNElEqZd5QybFo6Tg=; b=TgrwANPo7DVZUf3xqW1umfvME2XeLDT8Pcrtd0KCuQcF0Rz7nSqXoAxmL5nmE8EgFV LxNL1iXfYFgeo6gSNFyG5DSedWGJYU0pEN+H0vI1FNV9pld3QT9b/Yj0ggXL1yedHFPF Yhjq33PCgwtvWmfwd3KMVr6o1bFltONUYqn5cQ6Kjo7gL29ZKWymve+xIxTLbaTtCBSC zpZG+2/HF9tfWugxR0uu/YzONEecggT7IxWmJmtLIgWRpY6Ggl+xyjMK/9mzz8VBxwkJ WfxoAP27TZajilTA9wbF77rtXpM9f+X4VovDY0L5+1HkVfBxCpmjbzeZoa8a64CyI6Wx gLOg== X-Gm-Message-State: AOAM531aR+gjKjC/rly04ABVnT8lsnaG4Oz+MlHJ5myXGaDs07DORLTp akd8pIISBgX4MfxfJzrK/w== X-Received: by 2002:a6b:3b08:: with SMTP id i8mr30784452ioa.153.1626100910569; Mon, 12 Jul 2021 07:41:50 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id d8sm4951277ilq.88.2021.07.12.07.41.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 07:41:49 -0700 (PDT) Received: (nullmailer pid 1894651 invoked by uid 1000); Mon, 12 Jul 2021 14:41:47 -0000 Date: Mon, 12 Jul 2021 08:41:47 -0600 From: Rob Herring To: Jonathan Cameron Cc: Andreas Kemnade , lee.jones@linaro.org, lars@metafoo.de, sre@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-pm@vger.kernel.org, leonard.crestez@nxp.com, letux-kernel@openphoenux.org Subject: Re: [PATCH 1/4] dt-bindings: mfd: ricoh,rn5t618: ADC related nodes and properties Message-ID: <20210712144147.GA1886650@robh.at.kernel.org> References: <20210703084224.31623-1-andreas@kemnade.info> <20210703084224.31623-2-andreas@kemnade.info> <20210703170245.1d310342@jic23-huawei> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210703170245.1d310342@jic23-huawei> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 03, 2021 at 05:02:45PM +0100, Jonathan Cameron wrote: > On Sat, 3 Jul 2021 10:42:21 +0200 > Andreas Kemnade wrote: > > > Add ADC related nodes and properties. This will allow to wire > > up ADC channels to consumers, especially to measure input voltages > > by the power subdevice. > > > > Signed-off-by: Andreas Kemnade > > --- > > .../bindings/mfd/ricoh,rn5t618.yaml | 53 +++++++++++++++++++ > > 1 file changed, 53 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/mfd/ricoh,rn5t618.yaml b/Documentation/devicetree/bindings/mfd/ricoh,rn5t618.yaml > > index 032a7fb0b4a7..185f87a14a54 100644 > > --- a/Documentation/devicetree/bindings/mfd/ricoh,rn5t618.yaml > > +++ b/Documentation/devicetree/bindings/mfd/ricoh,rn5t618.yaml > > @@ -73,6 +73,48 @@ properties: > > description: | > > See Documentation/devicetree/bindings/power/power-controller.txt > > > > + adc: > > + type: object > > + > > + properties: > > + compatible: > > + enum: > > + - ricoh,rn5t618-adc > > + - ricoh,rc5t619-adc > > + > > + "#io-channel-cells": > > + const: 1 > > + > > + additionalProperties: false > > + > > + required: > > + - compatible > > + - "#io-channel-cells" > > Strictly required? If not used below (where it is optional) > then why do we require the ADC driver to provided the services? > > I don't mind you leave it as it is though if you prefer - it doesn't > do any harm! The device is either a provider or it is not regardless of whether there's a consumer, so I prefer this to be required. Also, if a consumer is in an overlay, then it is easier if we can rely on #io-channel-cells being present already. Rob