Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp74950lqj; Sat, 1 Jun 2024 08:33:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXI03fRpfi4nczhOKKPIxQfg8sdGiIqmRu5ucf4ZbTSGzGY3LWhRgIsu2bIHZjuig0IWRL6k5fr6NmcpfH5jQ71grz2jmvn6E7VoKMYkg== X-Google-Smtp-Source: AGHT+IHSp/tbL+YZdGhZjmv/MeIV+nmHRLRcJodewONhIl4MjmMe1v0FfPBJB4mF/gc+TjqLpGFW X-Received: by 2002:a05:622a:1aa0:b0:43a:f9ea:1fbd with SMTP id d75a77b69052e-43ff526ffe7mr48389541cf.18.1717255985035; Sat, 01 Jun 2024 08:33:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717255985; cv=pass; d=google.com; s=arc-20160816; b=RaQ+IraaXlUth3W2uQxI2postHY4BO9KiKE3VQsXv6GjDjk0BdGZnL2DpAkzu8Hhb4 S7byqDEzB3Yqr3SP2119ClZzunhkQEgyF30WROBkVbJkIC2keN2cbZFegh1waW74stHK rnfd4M1mNh4OtoN4EDRmTNohGPukhO+8aY9F/d/Ulvor/9roadFUYwMiRUfdPPynfboS JpW/BtZOquCNOKbbmDuOnkLna6R5Glv8mnKeDL2dE+N8TcCvGVKUj14HNR5oZXnsaK7c 57QussXCOcYuXeH5irF7bU2NrIPOQf2luZVbShEGxcu//vVcL9QPws7GdNTgdf4V69A4 dKjA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=l1AFRxEyRCAg+MdspwJSv1aPO94LzeCd6LCBLhdlZkg=; fh=UiRalcB7BKX6L1GB6xaoJK8s1UjPvkWduV3rWHVwOYQ=; b=OcgT/DrMNMA7Lxr8gLIsEfRYMsCb5c+hix1Yl4Z3S2hABFDkNB9dOQfk3j+etkNz/I j5NyqV0wvtWmptTPUMoLaFDEitAcB4QKMXaq1YzDPWqakH1dqhU62idiU/5J70iURKoo kw7ACZAsy+gaWf+hRqoKKbpsQuhEGd/IobyId1/zSDZKW28YpjuHeknrXt7icrAv+I8S g+bqkL8JVD8IYxXG7DRvqJp8zSujJRxuw9FT6+gLbjYNh1ZZeIjgqgvd5qnmlUrpmP9q d3GL1R0pVXz2T8TJP3zZ1yGd2CbFizqatIjeBOEVMav1JVv98+4IS8bUDuSMwAPR7i78 1z6A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tYYYK70Y; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197934-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197934-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43ff25b5598si47275081cf.726.2024.06.01.08.33.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jun 2024 08:33:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197934-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tYYYK70Y; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197934-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197934-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id AE26F1C20C1B for ; Sat, 1 Jun 2024 15:33:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45A5D152E0E; Sat, 1 Jun 2024 15:32:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tYYYK70Y" 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 4797017BD9; Sat, 1 Jun 2024 15:32:56 +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=1717255976; cv=none; b=MONFW2YVGJAjKX7mxWNm/pZf8gdIeKrFNGyQXFWqMcfRiEMHUxX/UQ0mcqv1GVe5xD3nmHgc+5JjndjFozWSg/1/nETA/VHbr+h4rrKoAFyEwUL2V4+v6Au9F77GjCCGkFqo5SeHDo9YC08+kWXmWVxktxJhZz465OdfRJbD0S0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717255976; c=relaxed/simple; bh=4FoTUy/jB2ewyL/BKItSSopy5nZtqbaENV3Zmn4IIPo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=HQT0dC+b1UCPpFFzwvKxFfyFNwELMxFuaNXGZHbjtm4HqwwIiX1uDrpgrjEBgvDbqAQfa7YRg6Darzuw0bHS+pgtkvr/f8P+0WYP3u1LeBpBG0gcMzcFKh7tn5ZE6B7il8RfzHtVzhSsHROuf9O8eByu8BF4H6WYQAk4zbBlsN0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tYYYK70Y; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D616C116B1; Sat, 1 Jun 2024 15:32:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717255975; bh=4FoTUy/jB2ewyL/BKItSSopy5nZtqbaENV3Zmn4IIPo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=tYYYK70Y1VfxXdhu8HJtcbzI9ZeIrOMGIcxacypG0pty+n750VXmCTkKtlqXNdcL8 cBULeL3QxhweboRE8QnJI8c6Ow8u1575EB87Rl9ybjik4e9w1VVy4zJ+9Dw67PpBrY dje19reIi5Z+ldsxCDGxzNQ6ObYl/bg4p20cKBbJU0EYDYb8ZXgjhE5ZvNoXFbN+9T n6qRuLKuCwhdN0MeOHomJgax/9qsE1/LYQqfaa6WIgaSIPkbrt9MZZM0qR1XrT9Eyx KZ1xQvuRIZ58vzLgv6V4EqWBuwN1hfNiDtFC4P2C/JeJW3W8coFLR9oQr9KSoiUwGW 4rXpMfC3DhCEA== Message-ID: Date: Sat, 1 Jun 2024 17:32:48 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 1/4] dt-bindings: iio: adc: Add MediaTek MT6359 PMIC AUXADC To: AngeloGioacchino Del Regno , jic23@kernel.org Cc: lars@metafoo.de, robh@kernel.org, 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, kernel@collabora.com References: <20240530093410.112716-1-angelogioacchino.delregno@collabora.com> <20240530093410.112716-2-angelogioacchino.delregno@collabora.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDx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s7VDEa4/HlbaSJo 7FgndGw1kWmkeL6oQh7wBvYll2buKod4qYntmNKEicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20240530093410.112716-2-angelogioacchino.delregno@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 30/05/2024 11:34, 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. > > Signed-off-by: AngeloGioacchino Del Regno > --- > .../iio/adc/mediatek,mt6359-auxadc.yaml | 43 +++++++++++++++++++ > .../iio/adc/mediatek,mt6357-auxadc.h | 21 +++++++++ > .../iio/adc/mediatek,mt6358-auxadc.h | 22 ++++++++++ > .../iio/adc/mediatek,mt6359-auxadc.h | 22 ++++++++++ > 4 files changed, 108 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..dd6c331905cf > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/mediatek,mt6359-auxadc.yaml > @@ -0,0 +1,43 @@ > +# 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 > + > +additionalProperties: false If there is going to be a re-spin, please move this below required: block. > + > +required: > + - compatible > + - "#io-channel-cells" > + > +examples: > + - | > + pmic { > + pmic_adc: adc { > + compatible = "mediatek,mt6359-auxadc"; > + #io-channel-cells = <1>; > + }; This suggests that you should grow (make complete) the parent PMIC example. Actually having this as a separate node is not really needed. Why it cannot be just part of the MFD/parent node? Best regards, Krzysztof