Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp48670lqt; Wed, 5 Jun 2024 16:56:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7UvypCRrg4Db/m3ZIlSiMwz3kuPkPq5VDLk50vhe8EjdE5EulfDa+pgwGVZzr05oU2OsyrMWHk56WWoTGZYqfTX9/UT9RW6ZGko8Ixw== X-Google-Smtp-Source: AGHT+IFMSjh0nMkww/ePrjzyDQVSo9DVe+IBmxLldqFe1NtAp/8Ps+iap9l12zhbtpu7iiAkCntr X-Received: by 2002:a05:6a20:9145:b0:1af:cbe1:8a4e with SMTP id adf61e73a8af0-1b2c568bbd2mr1366138637.23.1717631769349; Wed, 05 Jun 2024 16:56:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717631769; cv=pass; d=google.com; s=arc-20160816; b=wqwk6/z85ISnKBjILTxWU6mgdApolTIqlUpyZZnIwGTj0G1EKv5ITek/1jcv7S68W+ AsrMhvUBj/3s3atKRjyQ2QuP8DTDJ24Dj0IAe6/36NXQSGfNOIdkUxao1GU1u3NmUpvf jWaOAbuma7EadQcmv0kJ01hub0XIPDoewtBiUZs6hivUPbyzlfP3pmTbGVxrzVOdJkK5 GJPrEIJoGb6sugH+JCfNcx0/oMQGyIeogWC/hPsnosyXXLHQ5km68KlIlsfr4dtbDSoB uSLmF9OEiVepwxvU46FqWKvvII/1bnVQjgVV8XnEP7it8FzFMmIea9RvxB9SFGjKckEs YmhA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vk66Iju/xngc/XEIZLJNJZ9vlcxm48cJDJ/MVo2am+4=; fh=6aFlISw13pqQVnX497TBEpPnkWlKqxL4n8XpMTG7zh4=; b=IzZkFMDO8OwzC90YxYp6/r7Yv8ihW3REmf0cHCvATEEKfcZzy3ntpQegLuJTv9tWJg NWifZ99zx6GeTOdcRrb42qR76YXJYL9RJee3FIhxAd1fLw8GbCxgvua+1WsZZQnwg+qR 7aURagrGq/FT+OTsqPHpSREyC9opBhSLJ/dVkUFrJJ90WVANSsmj2x9cTXrQ6xOKQkuk JH46FGaVcTx9hN0SS2OLii2RUo+3r0wOegjbSPgKD40KMx38p70C//SdN0s2Iqlsak8R RkB7XLnf9d2rz8882BlAY71t5p2xe6nFc38l5C69Vlh25aW0dmjkYv0uxkEN1jPU2LbH KVyw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="BINy/SMU"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203434-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2197d2b4si161871a12.229.2024.06.05.16.56.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 16:56:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="BINy/SMU"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203434-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A1D3CB2249B for ; Wed, 5 Jun 2024 23:55:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47478168C09; Wed, 5 Jun 2024 23:52:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BINy/SMU" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6788316C69C; Wed, 5 Jun 2024 23:52:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717631562; cv=none; b=Ow3YmQi/9250NjL65XkI4rZkRYGYgpficM5mE++zK264sqByo0xaikAkUx/ow7HclbtVvcYOYRqvbhu8AwVu21hu0na9mZusO+OFUttKj73ZQl0+oQ1DSygN9HliInXY1yLkl2wxl/CQFckPCePJ99r2v9IJidEMwAp3Igpmy4s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717631562; c=relaxed/simple; bh=D40azPYuyjyFS271o7gUSoGXiWfbnmEKNZnN0GolfHs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lR5faAUnvi3qpx7xlyI5FHYkPGcyhPJ56T4JtuAhtQt2yGwikz5pHTDV8cSj7ZYcWu4DZaGiVjZOX4dHpIFvu740yZYfYisvQzeDe0KDHy4RMyqW8NhR7HVVfv/xs2mjSMGWMrRNimEzUq7dSWAiP+dURxOoKvOvJ1JatiVKxR0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BINy/SMU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 859B8C2BD11; Wed, 5 Jun 2024 23:52:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717631561; bh=D40azPYuyjyFS271o7gUSoGXiWfbnmEKNZnN0GolfHs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BINy/SMUuVd1h84CY5U+AbCTUyILx9goti7b30aQo5Q5BvQcS4JYjAU4IHTcR4dCF 9lKVnAAOyf6xsHTs0DSBK8hcRxMSq8BENGCOkHcq8RyhRlsvFz1RJvyV7/Dztsc/BW pJEcxTv5J1Nj4MjJqezZX2U52uB10zHESfmFTS8vNbeZ1BvGywkmQsnr6lFz5vdyRn DPgTuXCU9bhQfOihQ+eeT/rhVM5CK3fLP91daf5q2qdUutBaoMt4p5yimflWAWAGvx cYlpHnW8FEk1LbsUOnrOmLFheGUobQISH6CuLY71M0A+RAVIgGC7DCaVe31MWJO+nz 7w2RT3bfPB9BA== Date: Wed, 5 Jun 2024 17:52:39 -0600 From: Rob Herring To: AngeloGioacchino Del Regno Cc: jic23@kernel.org, lars@metafoo.de, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, lee@kernel.org, andy@kernel.org, nuno.sa@analog.com, bigunclemax@gmail.com, dlechner@baylibre.com, marius.cristea@microchip.com, marcelo.schmitt@analog.com, fr0st61te@gmail.com, mitrutzceclan@gmail.com, mike.looijmans@topic.nl, marcus.folkesson@gmail.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, andy.shevchenko@gmail.com, kernel@collabora.com Subject: Re: [PATCH v2 1/5] dt-bindings: iio: adc: Add MediaTek MT6359 PMIC AUXADC Message-ID: <20240605235239.GA3455504-robh@kernel.org> References: <20240604123008.327424-1-angelogioacchino.delregno@collabora.com> <20240604123008.327424-2-angelogioacchino.delregno@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240604123008.327424-2-angelogioacchino.delregno@collabora.com> On Tue, Jun 04, 2024 at 02:30:04PM +0200, AngeloGioacchino Del Regno wrote: > Add a new binding for the MT6350 Series (MT6357/8/9) PMIC AUXADC, > providing various ADC channels for both internal temperatures and > voltages, audio accessory detection (hp/mic/hp+mic and buttons, > usually on a 3.5mm jack) other than some basic battery statistics > on boards where the battery is managed by this PMIC. > > Also add the necessary dt-binding headers for devicetree consumers. > > Signed-off-by: AngeloGioacchino Del Regno > --- > .../iio/adc/mediatek,mt6359-auxadc.yaml | 33 +++++++++++++++++++ > .../iio/adc/mediatek,mt6357-auxadc.h | 21 ++++++++++++ > .../iio/adc/mediatek,mt6358-auxadc.h | 22 +++++++++++++ > .../iio/adc/mediatek,mt6359-auxadc.h | 22 +++++++++++++ > 4 files changed, 98 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/mediatek,mt6359-auxadc.yaml > create mode 100644 include/dt-bindings/iio/adc/mediatek,mt6357-auxadc.h > create mode 100644 include/dt-bindings/iio/adc/mediatek,mt6358-auxadc.h > create mode 100644 include/dt-bindings/iio/adc/mediatek,mt6359-auxadc.h > > diff --git a/Documentation/devicetree/bindings/iio/adc/mediatek,mt6359-auxadc.yaml b/Documentation/devicetree/bindings/iio/adc/mediatek,mt6359-auxadc.yaml > new file mode 100644 > index 000000000000..6497c416094d > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/mediatek,mt6359-auxadc.yaml > @@ -0,0 +1,33 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/adc/mediatek,mt6359-auxadc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek MT6350 series PMIC AUXADC > + > +maintainers: > + - AngeloGioacchino Del Regno > + > +description: > + The Auxiliary Analog/Digital Converter (AUXADC) is an ADC found > + in some MediaTek PMICs, performing various PMIC related measurements > + such as battery and PMIC internal voltage regulators temperatures, > + accessory detection resistance (usually, for a 3.5mm audio jack) > + other than voltages for various PMIC internal components. > + > +properties: > + compatible: > + enum: > + - mediatek,mt6357-auxadc > + - mediatek,mt6358-auxadc > + - mediatek,mt6359-auxadc > + > + "#io-channel-cells": > + const: 1 Why do you need a node here? Just add #io-channel-cells to the parent node. > + > +required: > + - compatible > + - "#io-channel-cells" > + > +additionalProperties: false