Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3053349pxb; Fri, 5 Nov 2021 09:01:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx66ElzAB5yGgF1esq4kWb0VNhMUUfSJy67j/h1TUXyMAeMFzjNAM7jPqzllnLQZpGH1dA/ X-Received: by 2002:a05:6e02:174e:: with SMTP id y14mr32840302ill.89.1636128095149; Fri, 05 Nov 2021 09:01:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636128095; cv=none; d=google.com; s=arc-20160816; b=kyqsDvulRSvOzFMAdgqw6v2Wo5az7CUQjLICLs+bqWVl0wlWgHDGJM357/rHYtMaLN CY/64D+cehhDKhNcYZcMsJZKfg7bVNIrgY6uPK8IJgj3RBkV6HGLpFQmcmCCaUlROa9Z w+iNAjOex8YcTYs9oAhRiIulNs+VaZ2c7Liko7DxdrtVLYb16kSR6OD5Ifb6mCzn5BcI /36sENkJ26nBzpSwJ9kY2k/SlBdpjorH+23kBbzMFd5ndzwcwpDNMbbupOdfsFohQSSE QZfOo/yBY9n/RSm/cyL88q7GCbO0fbWdTFKJFkM8DwOzSMSD64zjJg+FT3r8XITLupCL 13CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=pbQzZErbcR+ZrGn2gEiMUH+L+M5Fl24XuEjknB4u/tE=; b=0T7XnRZ06/yM4bBCWyBFGsCdyXXTyFyfobHLB+G/VEe22FAdVE3fGAhRyGtOpPvE4c y03ozBXQgZPREM6GWASSA6/HRj2ZENS3fGvTv8Frir8D+y7E0ni78xJWW+6Zb3sgR8sm yta4SziiIXAdfd5yL1+eoDyB4jJxsWafpSeZUmTf5mQcdwq8BG2YGDF9fkvibspeHlhu 0q//iDRu8X78t4LDw4tlhZVp2rdPHYXuoUdHy1sJSvTyEi8yfEKuBZHSqDM8YRKYeZ1k cqyV1dQWGQgd5lhmShecGvDeXDXickO8XSzbdudKCGOibkwKBvWg0pyRYPGpPKFeCv+R PESQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o3si16423916iov.84.2021.11.05.09.01.14; Fri, 05 Nov 2021 09:01:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232555AbhKELc3 (ORCPT + 99 others); Fri, 5 Nov 2021 07:32:29 -0400 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:63938 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbhKELcW (ORCPT ); Fri, 5 Nov 2021 07:32:22 -0400 Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 1A50YGhb007874; Fri, 5 Nov 2021 07:29:42 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3c4t6b2u5t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 05 Nov 2021 07:29:42 -0400 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 1A5BTfAn019442 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 5 Nov 2021 07:29:41 -0400 Received: from ASHBCASHYB5.ad.analog.com (10.64.17.133) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.858.5; Fri, 5 Nov 2021 07:29:40 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBCASHYB5.ad.analog.com (10.64.17.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.858.5; Fri, 5 Nov 2021 07:29:40 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.858.5 via Frontend Transport; Fri, 5 Nov 2021 07:29:40 -0400 Received: from amiclaus-VirtualBox.ad.analog.com (AMICLAUS-L02.ad.analog.com [10.48.65.181]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 1A5BTbjx016952; Fri, 5 Nov 2021 07:29:37 -0400 From: Antoniu Miclaus To: , , , , CC: Antoniu Miclaus Subject: [PATCH 0/2] Add support for AD7293 Power Amplifier Date: Fri, 5 Nov 2021 13:29:27 +0200 Message-ID: <20211105112930.122017-1-antoniu.miclaus@analog.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: JiLlUyfTLdd5xIzMY4Hs5WPpXy1oQaPc X-Proofpoint-ORIG-GUID: JiLlUyfTLdd5xIzMY4Hs5WPpXy1oQaPc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-11-05_01,2021-11-03_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 clxscore=1015 malwarescore=0 mlxlogscore=989 suspectscore=0 bulkscore=0 mlxscore=0 spamscore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2111050067 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The AD7293 is a Power Amplifier drain current controller containing functionality for general-purpose monitoring and control of current, voltage, and temperature, integrated into a single chip solution with an SPI-compatible interface. Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/AD7293.pdf This series of patches provide an initial implementation of the driver with access from the userspace to the: - ADC channels (read raw values, set range, set offset) - DAC channels (set code, set offset) - Temperature sensing (read raw values, set offset) - Current sensing (read raw, set offset, set gain) Antoniu Miclaus (2): iio:amplifiers:ad7293: add support for AD7293 dt-bindings:iio:amplifiers: add ad7293 doc .../bindings/iio/amplifiers/adi,ad7293.yaml | 49 ++ drivers/iio/amplifiers/Kconfig | 11 + drivers/iio/amplifiers/Makefile | 1 + drivers/iio/amplifiers/ad7293.c | 794 ++++++++++++++++++ 4 files changed, 855 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/amplifiers/adi,ad7293.yaml create mode 100644 drivers/iio/amplifiers/ad7293.c -- 2.33.1