From patchwork Thu Aug 3 12:56:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Collamati X-Patchwork-Id: 13339955 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29BCAC04A94 for ; Thu, 3 Aug 2023 12:56:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235637AbjHCM4o (ORCPT ); Thu, 3 Aug 2023 08:56:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235399AbjHCM4n (ORCPT ); Thu, 3 Aug 2023 08:56:43 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6831E1BFA; Thu, 3 Aug 2023 05:56:42 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-99bc512526cso136363766b.1; Thu, 03 Aug 2023 05:56:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691067401; x=1691672201; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=URREHQ1r+MSAWUHUkSxrrs5y2J4iL4+n921gyyB66cM=; b=XKu5o9NWoW7m4U7yG+xAbDn5ABmuj1fG0pgYD4xZYZzG+txUiv0G4L+2aK1kc3Leck TnRX0su/NtLDMucmylP84PDlJ4ap16wRRizKxi2ROiHjQEXQ35ZkHEjeRuoGZdmUnXmS SnfVeGbz10iOtsd8HtRiifhAlJUzZh4cjoKo1WL/bLIvS+jT6D2zWEYwZreHSq5LJxIu cP7WxrIi7oLzqUuv+FY8MDg/G4gqQgNd2AaNgBrZ+bffyCdcxV6+dXWocazSci2egi7J uEVDjiaWK3STdvhApwOajgUuTqX2GxD98+aR4qHKPe/j/1/TP4rvTbSfY9zw1iPr3i4V cbxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691067401; x=1691672201; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=URREHQ1r+MSAWUHUkSxrrs5y2J4iL4+n921gyyB66cM=; b=Hn43Xp9RqarEnHemBOSVKQnBnMBE0LdudypObgiP0abgn5ZVY6hWDWHjwvavXUUkqG MflI1dA99/o20DOACFXX3rvdWzM3lUwdLDQrpne/8eKQjIIC6b+gNM1UZ2RoUZyTj1Sb uP43Fd4X/uV1Xm2NECgduFerhE2uBLkqEmRtfjYN5zUyyK9Le1v94HlhbovOKcfNl/3D z+bhZ6tsX8k0SRDX784F4AqQpIDAjgpPHrXwokt1kAb2hLzmRJAK5AL1PQGz+7IWZEM6 XwUJvpg3clMmTFecupA6KGgvEejPsD5+5a2OVaqEZveuefKnuOu9vwf3WgGjMxCu/9tz BeGg== X-Gm-Message-State: ABy/qLZClG9UTkJt0Owi98zQ6kwH+Y8e6oXOJu8XvpOPUB0hdjs3qbSY 86iJg5BBUhrhiDxSruCcKSM= X-Google-Smtp-Source: APBJJlFrWUU9vzzPxPAo/SXdGKz0XYLIlcaE++tyyvcWxmQS0q6f/EfX5c+Vzb0iYUANdZMEOacoRw== X-Received: by 2002:a17:906:24f:b0:96f:1f79:c0a6 with SMTP id 15-20020a170906024f00b0096f1f79c0a6mr8351705ejl.70.1691067400758; Thu, 03 Aug 2023 05:56:40 -0700 (PDT) Received: from colla-nuc.fritz.box (host-79-26-241-62.retail.telecomitalia.it. [79.26.241.62]) by smtp.gmail.com with ESMTPSA id i22-20020a17090685d600b00992ed412c74sm10399376ejy.88.2023.08.03.05.56.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 05:56:40 -0700 (PDT) Received: from colla-nuc.fritz.box (localhost [127.0.0.1]) by colla-nuc.fritz.box (8.15.2/8.15.2/Debian-22ubuntu3) with ESMTP id 373Cud8j207736; Thu, 3 Aug 2023 14:56:39 +0200 Received: (from colla@localhost) by colla-nuc.fritz.box (8.15.2/8.15.2/Submit) id 373Cuda4207735; Thu, 3 Aug 2023 14:56:39 +0200 From: Andrea Collamati To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrea Collamati Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/2] dt-bindings: iio: dac: add mcp4728.yaml Date: Thu, 3 Aug 2023 14:56:34 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Add documentation for MCP4728 Signed-off-by: Andrea Collamati Reviewed-by: Conor Dooley --- .../bindings/iio/dac/microchip,mcp4728.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/dac/microchip,mcp4728.yaml diff --git a/Documentation/devicetree/bindings/iio/dac/microchip,mcp4728.yaml b/Documentation/devicetree/bindings/iio/dac/microchip,mcp4728.yaml new file mode 100644 index 000000000000..99831d7f1c16 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/microchip,mcp4728.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- + +$id: http://devicetree.org/schemas/iio/dac/microchip,mcp4728.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip MCP4728 DAC + +maintainers: + - Andrea Collamati + +description: | + MCP4728 is a quad channel, 12-bit voltage output + Digital-to-Analog Converter with non-volatile + memory and I2C compatible Serial Interface. + https://www.microchip.com/en-us/product/mcp4728 + +properties: + compatible: + const: microchip,mcp4728 + + reg: + maxItems: 1 + + vdd-supply: + description: | + Provides both power and acts as the reference supply on the MCP4728 + when Internal Vref is not selected. + +required: + - compatible + - reg + - vdd-supply + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + dac@60 { + compatible = "microchip,mcp4728"; + reg = <0x60>; + vdd-supply = <&vdac_vdd>; + }; + };