Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2445490pxv; Sat, 3 Jul 2021 08:59:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBTCstkmZm5LWbG+qeeFUUQ7eUGdGb/R8HClGbSz4LoP9/Mi3rSPm9h5M0NyZsYelkLPTG X-Received: by 2002:a17:906:940b:: with SMTP id q11mr5349404ejx.79.1625327998281; Sat, 03 Jul 2021 08:59:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625327998; cv=none; d=google.com; s=arc-20160816; b=wnDfQ5gyFPDu3DtlgFPI9vTwOuf5fhHXDQ0BH04YfPGCjp0+YtUcmOG04OX8UpFcRh G9WpGx5OfhuZOE555G8vjr/iQxowaJT9qNkse08VjarT0Ijtj6F/H6wdBU2wQ/tfJFYD 4tzwiIlfu5+2HsFuodFOxFL7BpQJIcCNJA92kMDsrab/hox+7rxpFoPtH+MIvUhFi4ns 8cu/xnrrFES2SxRY49/2lXZfwwZqoj4y5E4LzWzkYatSBMlE7TLF4a46lb6A7D4J5HdQ ROP0jvZvinCDjkiTfVJsMQ6lhoagTVUUq7sCRRDyKCfPnVEBsShpdueiZrJLg6RA9Qsp eTlQ== 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; bh=wN/bRf4i1vbiP/O0010pDPQfk8ED/PjPmYrfTPxSVa0=; b=OoaBphCvFtW53MqCEZC7WL6Q/y62H+RmBsEBZ6iE0txgHx1OOrwnMSbQMUDzCxkMMt G5GlUm169Qvw9nMGW+RFN2tE27nejGhR6aPMY5E9V+DnO7jr2nuG6h1wWzZfxi+7skN3 7LFg8z1Bs/FMEzylZyJuTmX7jOtompeTORaByc2koXll9Og1h/e2aPcQr4vKQEXT9Igm m224cbooaffflWoRHXt1DIAIk6PWgEZFv5Usop/W3s9ZjbPDEIdXoAe4OlDKRkR4tXsI y4ukIjocyND7oiEzarNUzVRYdywycvFFHMJ+dxURiKuuKPThz2YUKMpWy+A8Lh7qLIgx jhCg== 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 hr24si7153848ejc.277.2021.07.03.08.59.32; Sat, 03 Jul 2021 08:59:58 -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 S229999AbhGCQAF (ORCPT + 99 others); Sat, 3 Jul 2021 12:00:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:39436 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229818AbhGCQAE (ORCPT ); Sat, 3 Jul 2021 12:00:04 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CE91561628; Sat, 3 Jul 2021 15:57:26 +0000 (UTC) Date: Sat, 3 Jul 2021 16:59:50 +0100 From: Jonathan Cameron To: Andreas Kemnade Cc: lee.jones@linaro.org, robh+dt@kernel.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 0/4] mfd: rn5t618: Extend ADC support Message-ID: <20210703165950.6e2aeb89@jic23-huawei> In-Reply-To: <20210703084224.31623-1-andreas@kemnade.info> References: <20210703084224.31623-1-andreas@kemnade.info> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 3 Jul 2021 10:42:20 +0200 Andreas Kemnade wrote: > Add devicetree support so that consumers can reference the channels > via devicetree, especially the power subdevice can make use of that > to provide voltage_now properties. Does the mapping vary from board to board? Often these mappings are internal to the chip so might as well be provided hard coded in the relevant drivers rather than via DT. See drivers that have iio_map structure arrays. > > Andreas Kemnade (4): > dt-bindings: mfd: ricoh,rn5t618: ADC related nodes and properties > mfd: rn5t618: Add of compatibles for ADC and power > iio: rn5t618: Add devicetree support > power: supply: rn5t618: Add voltage_now property > > .../bindings/mfd/ricoh,rn5t618.yaml | 53 ++++++++++++++++++ > drivers/iio/adc/rn5t618-adc.c | 14 ++++- > drivers/mfd/rn5t618.c | 6 +- > drivers/power/supply/rn5t618_power.c | 56 +++++++++++++++++++ > 4 files changed, 126 insertions(+), 3 deletions(-) >