Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp28125rdb; Mon, 22 Jan 2024 10:48:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpeFOxYaEOhYBEZE7St20w01zydbIlLnlGUF5evQbpXWvHv4WXIPQaQhWdXOU75WselT7w X-Received: by 2002:a05:6402:3c3:b0:55c:4f20:3098 with SMTP id t3-20020a05640203c300b0055c4f203098mr200745edw.49.1705949339491; Mon, 22 Jan 2024 10:48:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705949339; cv=pass; d=google.com; s=arc-20160816; b=HLWQadomNlokDsu7+GLTna+w64NiDSkj136dCwKRWjC0SEQflbS2RKsU65rXKnPjp6 qBzvYswodQd5qaBH/Dgtcmx5P9ViIURs3IC6MgrSvHyb415p0lQkECzNphOnXzPFE+Lo UVaCyRlMvZjz2QK3l2RxG3RqrW4kqSOpu+RBzAyDo26uxI7xiqToUszARGZY9b0/fImv l31qTpHlPXWlwhsMhvcf7DseqN/CAk6mrlVTuwzBd9YrA2/26fpzgKAJ8E9U+J+c9qHy Dr3t46k+mNgFDfXZSonV+7GhHZ6TNbbGxKPMT54n5M8KNeH3gM/G5H2OsPOH2MhDJVV/ 6CMQ== 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=nUNDocYIvtQpUg/QTAvJ/TZozw2vXSq23eJC+mZ3HAA=; fh=89/uMDrOVS2gh+XZdnNJzw6s6/NUZ5aJ4BYOLRyBEWU=; b=OtR6xl7TF0uQa9FEAT6gyIsT3B4mc4FJdLiOZtVrb7+Lue7DEL2cIKG1pl092clJFw Ai+X/7aZryBNcaYfxjE3cWVXtUxO/KzbMaJqNXCGG5ul9ibNWTleb1RQ7L4H2nQKx5wu ti7Odhxppxa1B/pnNZHROflH9SdC4oIMjtzD0/hO9xqBM555OYwtWHY7Lh2CjrDYxO8N yHwp5FGaZacncQqS2WizW5h1IOuec/F9DJMpwUYZUwA5zIA+0ITW7+VQU/M5yh/3JW7K jfa2mDmSlQbLjZ8QuUuQUUUhOM69bLYN/hv/a2KwXAybDL2lOSu2u6K6QHh6IYBFIxkM uALA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JFH6ERSa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33951-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33951-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n7-20020a056402434700b0055c58611c04si738531edc.161.2024.01.22.10.48.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 10:48:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33951-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JFH6ERSa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33951-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33951-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1D15E1F280C3 for ; Mon, 22 Jan 2024 18:48:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C539F40C06; Mon, 22 Jan 2024 18:15:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JFH6ERSa" 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 D00213E474; Mon, 22 Jan 2024 18:15:12 +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=1705947312; cv=none; b=ox3NRb0LSUwJo308mZ6SVAp4VDGTADYU65DoMSL9fUNPPL4KSvdAyqvhuEb24MOjqxwbuvymAq4WcQX67SxWyEHINecTjCwcNTcOEJDYAjHt4FhhSC+0GWY5Fl6yekdo+OHMzZAgcJ69IO0kFf2TFmchJRQRuReTVdxC+2N9hL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705947312; c=relaxed/simple; bh=5C6exGsza/X9DUjMWBVUbMQ8kIAdM/dB4GnTMkspNvg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ABdTO+hevpqrU46SddQBuAnx/RVNeUysT7JsdgK3j+k3uq1wbR/u55iJ1zgP6dPXZCCdA/odbhbjlj6RQZwXQGbUoMjQqeRFlAn8KdSj16vjFfFkzOfwwhTG29x+GbuR8qb2pkIPaSI4gwT9Eg3qy72Uvoa5libcA3PI1y2cNnU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JFH6ERSa; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7914C433F1; Mon, 22 Jan 2024 18:15:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705947312; bh=5C6exGsza/X9DUjMWBVUbMQ8kIAdM/dB4GnTMkspNvg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JFH6ERSazTj7JSLmqipaSOie1Xtw42+N/ydXvMtTYFTdI/xdEmwl8spUQrD9xEteI sJbHLiw+QOjxZU5e4ldpPhlW7guyekXTNG/U2KFDuhwUqTSoiMCAjsB1oNMenhqwG3 vxAJVbKuQPkxuclBO7fm1OmmcpMAUmSB72t68Y9DpEJ/rIQrvggqjGDAR71AxjbN5W yn45wlO9Zcjv4p2RhIkV+FmCfp1I1T7qgPKngZGfM4QtJ+r5fQqbWOCPiEWz6OALVh e+wgfqn9Vr2LbO/XqpfJf0JNrl3ETT6/5usALK9UfgSatJMVABZVYyOD0GYgJ81RGA Dv8QWnwfvLxAw== Date: Mon, 22 Jan 2024 18:15:07 +0000 From: Conor Dooley To: marius.cristea@microchip.com Cc: jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, jdelvare@suse.com, linux@roeck-us.net, linux-hwmon@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/2] dt-bindings: iio: adc: adding support for PAC193X Message-ID: <20240122-fernlike-resolute-b16772806147@spud> References: <20240122084712.11507-1-marius.cristea@microchip.com> <20240122084712.11507-2-marius.cristea@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qi0TL78qGZaNp8GQ" Content-Disposition: inline In-Reply-To: <20240122084712.11507-2-marius.cristea@microchip.com> --qi0TL78qGZaNp8GQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Marius, On Mon, Jan 22, 2024 at 10:47:11AM +0200, marius.cristea@microchip.com wrot= e: > From: Marius Cristea >=20 > This is the device tree schema for iio driver for > Microchip PAC193X series of Power Monitors with Accumulator. >=20 > Signed-off-by: Marius Cristea I like how this is looking now. I have two minor comments that if you resend for some other reason you could change, but otherwise: Reviewed-by: Conor Dooley > --- > .../bindings/iio/adc/microchip,pac1934.yaml | 120 ++++++++++++++++++ > 1 file changed, 120 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/microchip,p= ac1934.yaml >=20 > diff --git a/Documentation/devicetree/bindings/iio/adc/microchip,pac1934.= yaml b/Documentation/devicetree/bindings/iio/adc/microchip,pac1934.yaml > new file mode 100644 > index 000000000000..cd9cb2a71566 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/microchip,pac1934.yaml > @@ -0,0 +1,120 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/adc/microchip,pac1934.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Microchip PAC1934 Power Monitors with Accumulator > + > +maintainers: > + - Marius Cristea > + > +description: | > + This device is part of the Microchip family of Power Monitors with > + Accumulator. > + The datasheet for PAC1931, PAC1932, PAC1933 and PAC1934 can be found h= ere: > + https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/Produ= ctDocuments/DataSheets/PAC1931-Family-Data-Sheet-DS20005850E.pdf > + > +properties: > + compatible: > + enum: > + - microchip,pac1931 > + - microchip,pac1932 > + - microchip,pac1933 > + - microchip,pac1934 > + > + reg: > + maxItems: 1 > + > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 0 > + > + interrupts: > + maxItems: 1 > + > + slow-io-gpios: > + description: | This... > + A GPIO used to trigger a change is sampling rate (lowering the chi= p power > + consumption). If configured in SLOW mode, if this pin is forced hi= gh, > + sampling rate is forced to eight samples/second. When it is forced= low, > + the sampling rate is 1024 samples/second unless a different sample= rate > + has been programmed. > + > +patternProperties: > + "^channel@[1-4]+$": > + type: object > + $ref: adc.yaml > + description: | =2E..and this... > + Represents the external channels which are connected to the ADC. > + > + properties: > + reg: > + items: > + minimum: 1 > + maximum: 4 > + > + shunt-resistor-micro-ohms: > + description: | =2E..and this | are not needed here as you have no formatting to preserve. > + Value in micro Ohms of the shunt resistor connected between > + the SENSE+ and SENSE- inputs, across which the current is meas= ured. > + Value is needed to compute the scaling of the measured current. > + > + required: > + - reg > + - shunt-resistor-micro-ohms > + > + unevaluatedProperties: false > + > +required: > + - compatible > + - reg > + - "#address-cells" > + - "#size-cells" > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + pac193x: power-monitor@10 { This "pac193x" label is not used and should be removed. Thanks, Conor. > + compatible =3D "microchip,pac1934"; > + reg =3D <0x10>; > + > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + channel@1 { > + reg =3D <0x1>; > + shunt-resistor-micro-ohms =3D <24900000>; > + label =3D "CPU"; > + }; > + > + channel@2 { > + reg =3D <0x2>; > + shunt-resistor-micro-ohms =3D <49900000>; > + label =3D "GPU"; > + }; > + > + channel@3 { > + reg =3D <0x3>; > + shunt-resistor-micro-ohms =3D <75000000>; > + label =3D "MEM"; > + bipolar; > + }; > + > + channel@4 { > + reg =3D <0x4>; > + shunt-resistor-micro-ohms =3D <100000000>; > + label =3D "NET"; > + bipolar; > + }; > + }; > + }; > + > +... > --=20 > 2.34.1 >=20 --qi0TL78qGZaNp8GQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZa6wqwAKCRB4tDGHoIJi 0q6hAP0QD1uLecPK8JtF9dahFAlvXtAIK2MF/bEG/+d2xCVPwAD+NitieK6tvevt VhVPZLPjU6FN4abGu0j2yODLo75rmQg= =CcoM -----END PGP SIGNATURE----- --qi0TL78qGZaNp8GQ--