Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1666835rdb; Sun, 19 Nov 2023 05:47:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGTwuD5SbYHA8xq803KjF8Gb/OysazjFYKzO83OExHVNF6GodByaotu9S0mPCixljUk22yT X-Received: by 2002:a05:6808:1915:b0:3b5:75ad:5b73 with SMTP id bf21-20020a056808191500b003b575ad5b73mr8341880oib.13.1700401677243; Sun, 19 Nov 2023 05:47:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700401677; cv=none; d=google.com; s=arc-20160816; b=B85CdFM/MIA1xIwRG8OpZtkHeDs/8ZQsBMVFnOA/2JYuoLsNMeZbXnpq5MLL+HL3WC ex0+Dc6N+TVbdxZT8WQBzeZMqwXJg9qQ2xm8dk8oKTHqExC1HUCcYRGjn9lImZMKhWoZ VU5W3RxRw75rUR7O3MZLiw29SnbjQ28tstPYEI1IW9rDWp+6TYB/WIgNkHnCTfoHPrMY 6zIarEUTAk9zUreMDb7kNHvxWyshhyUstIxyLoOnKBSQUeKu1c5UzKrv2dthPnxTYgCI sB6o9rQmHAUhi4gDcieSJ8GjFL/3oUcepepbgnLria3WI7S+SbjGBiEmpDDnGWRcWKzy kKZQ== 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:dkim-signature; bh=+4ryUjtV/PtMyREqVYcGbiS3MUIE7NThxGEvX1yG8Dw=; fh=coMnpCy+2Ge8g/r+4bunUN4O7cjH2CfiQd68dxiCl4g=; b=ho6+9ODI09p1IzMNKpe2ZedUzYm8PG9KDwzIlcBlcXqlb0fNKcul/7qY7PBD92/sm7 js2JYFCCkxVNQk4bHPyDcFhiBA7RG5JKJkIzGpB+uy9xsTrXPH3pSMHUw10hRbivxjYQ LbzNgwe29Jn63EU4cJu96BZBOFww32e2aKqU14u3tdqK5NaFi7w69R6w/EeZ5oPBfL5c cD9izVUPFlhH+7Z9h2HKx6mwfEVqUHfC2UX+6SSgOlCfc3VdNUr0FzDAd7iAqiHP3E1Z F9EtPCAfqCyKP43CROFVfFc4CgFyjVe2H39s/EgOA/f1MhrLZ52rISlYdL1h7IIwFIYc uUTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="pz/2EA2/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id h2-20020a056a00218200b006bceac424f7si6419289pfi.102.2023.11.19.05.47.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 05:47:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="pz/2EA2/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 93228807503A; Sun, 19 Nov 2023 05:47:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229703AbjKSNro (ORCPT + 99 others); Sun, 19 Nov 2023 08:47:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjKSNrm (ORCPT ); Sun, 19 Nov 2023 08:47:42 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F5EB8F for ; Sun, 19 Nov 2023 05:47:39 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61880C433C7; Sun, 19 Nov 2023 13:47:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700401658; bh=U1/crVe3cQalV1pEqgbYT0Du0EuyIuAjyAUdOqkkcSU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pz/2EA2/Cop43Hoq7PHwPpLlcgrslPh04hOYxhAs11kufyTELWKXFkMo8AvH4cDDH WJPOcsDP7hbVp4OtC8fs4M8W/VC1lw1zEj8pqiaFnn/QCSbX7Fd0rAsAHffXiOMJWN q6AL8FuU3Wr7MacoKEjDIAhVy1ApfwiGvQkcVfImxgRzc4kV8wizDRSypZt1KiAaVh gnb5KZQYrcZkVrHfKvq4Y0BLy6xJcpfO9MnvZo2jtP+a59UHuQEls3MPECpfglat48 tlY+BY0v05tiaEn5gvVfdajQWnPuVtMQ0liBXYHezZMJB9QfRQNbI6JC5C44Cd7B0G T7ay90OQDJVmw== Date: Sun, 19 Nov 2023 13:47:34 +0000 From: Conor Dooley To: Anshul Dalal Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Conor Dooley , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , linux-kernel-mentees@lists.linuxfoundation.org, Jonathan Cameron , Shuah Khan Subject: Re: [PATCH 1/2] dt-bindings: iio: dac: add MCP4821 Message-ID: <20231119-surpass-cheer-9dc3838b766f@spud> References: <20231117073040.685860-1-anshulusr@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Xr+UPjWgGaRG4h0+" Content-Disposition: inline In-Reply-To: <20231117073040.685860-1-anshulusr@gmail.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 19 Nov 2023 05:47:54 -0800 (PST) --Xr+UPjWgGaRG4h0+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 17, 2023 at 01:00:37PM +0530, Anshul Dalal wrote: > Adds support for MCP48xx series of DACs. >=20 > Datasheet: > [MCP48x1] https://ww1.microchip.com/downloads/en/DeviceDoc/22244B.pdf > [MCP48x2] https://ww1.microchip.com/downloads/en/DeviceDoc/20002249B.pdf >=20 > Signed-off-by: Anshul Dalal Reviewed-by: Conor Dooley Cheers, Conor. > --- > .../bindings/iio/dac/microchip,mcp4821.yaml | 63 +++++++++++++++++++ > 1 file changed, 63 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/dac/microchip,m= cp4821.yaml >=20 > diff --git a/Documentation/devicetree/bindings/iio/dac/microchip,mcp4821.= yaml b/Documentation/devicetree/bindings/iio/dac/microchip,mcp4821.yaml > new file mode 100644 > index 000000000000..904de15300bd > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/dac/microchip,mcp4821.yaml > @@ -0,0 +1,63 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/dac/microchip,mcp4821.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Microchip MCP4821 and similar DACs > + > +description: | > + Supports MCP48x1 (single channel) and MCP48x2 (dual channel) series of= DACs. > + Device supports simplex communication over SPI in Mode 0,1 and Mode 1,= 1. > + > + +---------+--------------+-------------+ > + | Device | Resolution | Channels | > + |---------|--------------|-------------| > + | MCP4801 | 8-bit | 1 | > + | MCP4811 | 10-bit | 1 | > + | MCP4821 | 12-bit | 1 | > + | MCP4802 | 8-bit | 2 | > + | MCP4812 | 10-bit | 2 | > + | MCP4822 | 12-bit | 2 | > + +---------+--------------+-------------+ > + > + Datasheet: > + MCP48x1: https://ww1.microchip.com/downloads/en/DeviceDoc/22244B.pdf > + MCP48x2: https://ww1.microchip.com/downloads/en/DeviceDoc/20002249B.= pdf > + > +maintainers: > + - Anshul Dalal > + > +properties: > + compatible: > + enum: > + - microchip,mcp4801 > + - microchip,mcp4811 > + - microchip,mcp4821 > + - microchip,mcp4802 > + - microchip,mcp4812 > + - microchip,mcp4822 > + > + reg: > + maxItems: 1 > + > + vdd-supply: true > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + spi { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + dac@0 { > + compatible =3D "microchip,mcp4821"; > + reg =3D <0>; > + vdd-supply =3D <&vdd_regulator>; > + }; > + }; > --=20 > 2.42.1 >=20 --Xr+UPjWgGaRG4h0+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZVoR9QAKCRB4tDGHoIJi 0p8QAQC38yhdhXb1PcvkIA/pVY7NY6OGkiJqdumywpDJyqsDRgD/XP0qyWMwaURl 9zBPIfcRCjAD7KXqB6d6YTYsZ5L1Jg8= =VZnd -----END PGP SIGNATURE----- --Xr+UPjWgGaRG4h0+--