From patchwork Thu Jul 20 15:40:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Collamati X-Patchwork-Id: 13320702 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 8FDF2EB64DA for ; Thu, 20 Jul 2023 15:40:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232696AbjGTPkV (ORCPT ); Thu, 20 Jul 2023 11:40:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231651AbjGTPkU (ORCPT ); Thu, 20 Jul 2023 11:40:20 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C92B3CE; Thu, 20 Jul 2023 08:40:19 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-51f90f713b2so1344412a12.1; Thu, 20 Jul 2023 08:40:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689867618; x=1690472418; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=6JI0piZU5sNjEYOXtdBH6ZjBT6nk63W7wJyW7LaZcAw=; b=d220ek6DDrJpviwj2v3MvP4MDu1DRqLVXv7KbJKRsH9ksrVGRfjy8BteOLK2WGAEXU gGJdaqAA+DfiKQjgmX7o/GpiiA1jjlsxxwUgKtL4/Wz+ToTaJRdcIimvBWc8kkJtAGQH qlk0OWRRZMYIYVvP0wpgpGmGG43TuvpVVZT/+UgzoBTrbKV6yg1L7LCoakvBpg1LSOgP 98JMbdwhQ0VDFjpG5CKnIa2RUQizLtMkVIWZD8IhT6uEaIFJ+MawXN4/V1M67YelZGeV ts0bCZt5hUr3Yr3TLBQqUuvzFGYTJQf53AHHJvjR6yr2OmD9OR049O44JFiDIVHFB2Wi FIIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689867618; x=1690472418; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6JI0piZU5sNjEYOXtdBH6ZjBT6nk63W7wJyW7LaZcAw=; b=S1ZNi8gmwIolJ0H0x1tesUR7JcnVURD2yd6l5iu40uzxkx49OOsI/WLTrpXzTCEus7 K018eKOQFoYndpgsYyevaNgow0YDORYhlQDVrSzLGOJVXmdQSX744oNcuZ032OEV3OJn FBW5Ap7MU20ZD1fygQO3yIj7ICr/pCwGeL6iEVEi6dRRpVfnP7WEFlMZDaVq7z74+XQp sJ9qxuIvU4AexgZoCHH0gnxc9u5BEEvT5PLla+OvvjJOx9ozTKQ3K6SAYxgEBRJWh3uj Dl8GMLV89XHJA9HjgK4eATnLXn/zselH2v7O4tK7duPH6u8qBd0QIAUcd7XtpR+Covbt CtQQ== X-Gm-Message-State: ABy/qLYdB3sw6Zj5106gUJ9+c2pO2OgmMKTEQi5c6oibcrBoCP6on9y2 2mLLEX7PUB9hP6Kmm62rlgmShR35E680kA== X-Google-Smtp-Source: APBJJlE5f16VHOvYjpCJqnm4n99jMhq4cr3qZiNnRezHz9n5zHWVOF2ucs2oReoDIUaIDB77reDuhA== X-Received: by 2002:a17:906:113:b0:991:d5ad:f1a7 with SMTP id 19-20020a170906011300b00991d5adf1a7mr5646390eje.51.1689867618106; Thu, 20 Jul 2023 08:40:18 -0700 (PDT) Received: from colla-nuc.fritz.box (host-95-237-109-246.retail.telecomitalia.it. [95.237.109.246]) by smtp.gmail.com with ESMTPSA id qx4-20020a170906fcc400b00987e2f84768sm869484ejb.0.2023.07.20.08.40.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jul 2023 08:40:17 -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 36KFeGIJ119642; Thu, 20 Jul 2023 17:40:16 +0200 Received: (from colla@localhost) by colla-nuc.fritz.box (8.15.2/8.15.2/Submit) id 36KFeGPf119641; Thu, 20 Jul 2023 17:40:16 +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: =?utf-8?q?=5BPATCH_v3_0/2=5D_add_MCP4728_I2C_DAC_driver=E2=80=8B?= Date: Thu, 20 Jul 2023 17:40:01 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Changes v2->v3: - fix wrong i2c_device_id array indentation - removed double blank line in Kconfig - added description in dt-bindings - use uppercase letters for device name Changes v1->v2: - fix mcp4728_remove prototype - improve indentation - various fixes suggested by checkscript.pl - removed unused of_device_id.data field - removed unuseful mcp4728_data.id field - various fixes suggested by dt_binding_check Andrea Collamati (2): dt-bindings: iio: dac: add mcp4728.yaml iio: add MCP4728 I2C DAC driver .../bindings/iio/dac/microchip,mcp4728.yaml | 48 ++ drivers/iio/dac/Kconfig | 11 + drivers/iio/dac/Makefile | 1 + drivers/iio/dac/mcp4728.c | 638 ++++++++++++++++++ 4 files changed, 698 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/dac/microchip,mcp4728.yaml create mode 100644 drivers/iio/dac/mcp4728.c