Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp308358lqo; Thu, 9 May 2024 23:42:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFT60Ow/rXbLM1ymEfiUCeifuB68zY/SniZWaDjjISC7eZw1hbEqtzTcP5aXUXxPh8il4BTfDOM++lgwtJfyae81OS8AtNXb7L8EbsMg== X-Google-Smtp-Source: AGHT+IGqUZCBCAb8XCA1SoBvPnd9i6VN30Z33R4GfPx6rl8puwPo6p8Ht/PcF9Y4WTyoNSUsuoPe X-Received: by 2002:a50:aa94:0:b0:56d:faa2:7aca with SMTP id 4fb4d7f45d1cf-5734d5c0fccmr1215610a12.17.1715323345522; Thu, 09 May 2024 23:42:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715323345; cv=pass; d=google.com; s=arc-20160816; b=ziaUOva8Edkt/fqdRNXgEQ1IUqFspgE9kxAikdrBTX2v8256h79CfHUUbSnPVNiUo1 9hrMIYyQeVZ7ktwGkF9ltqeHY6897h403ddBi8Fz592qllTFWs5wwqrAp4JXO4DkCMDJ jk7g6CGggp77Q34EbrUUlqf4YatMpQyJ2D9rXRLSf4s9m+mD16KcsdRwyLiyBwaMREif qCfwLX56VhBbGxLjkBBIEmnXlyjyXfSezLla1GEiTk22bE7GnbhOBjFCgpKRMXEYexsN WqQyvHNFzRI+AqJC5VBxgOZzw9nWF8Lbyak+W2ovkn+6Od4tI6BXQy7GVf64K41T0L5U CWRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=kVni+v16C442TfQ6e1EmMu0EwQbjLzJZQSp6aTqUDI8=; fh=a9ZpJOB83ICHJHlT2qq+fqZL6Q3hCZOLVexbUXrUBNA=; b=wiqeTa3v+1S59vwukEXckums5EXkvQHw8j2scFxOznlw/d9W6QfTYPfQU1JHBkcI/T tDO8eEEhmyNVqolNDhxrIlAL2DaFPPBxErvQpsPFfAldRRlc5gmo3nj0sUrqnK2XBh8R 4uQDZ9787MJ4lKh28n+j12uNCLU8TzHGxfgrXbL17YpPdkBQubyzfgt2WWblff1uzvkf 4mcN9rFL1Uv/IpVhVdU5U8VCSRqXJnD2PUq+qivFuHLPIB0vIOsZV05z2cGYr/bpvY05 K/LRpYZToUX2mmbokDZj9SJXwCmhrvK22inPW8NsHZBd4dPFsubgiEoVvzCfxlYD9SJi nmVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@analog.com header.s=DKIM header.b=uW1RJp4o; arc=pass (i=1 spf=pass spfdomain=analog.com dkim=pass dkdomain=analog.com dmarc=pass fromdomain=analog.com); spf=pass (google.com: domain of linux-kernel+bounces-175339-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175339-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733beacd6bsi1542710a12.122.2024.05.09.23.42.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 23:42:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175339-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=@analog.com header.s=DKIM header.b=uW1RJp4o; arc=pass (i=1 spf=pass spfdomain=analog.com dkim=pass dkdomain=analog.com dmarc=pass fromdomain=analog.com); spf=pass (google.com: domain of linux-kernel+bounces-175339-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175339-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=analog.com 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 100B31F228DB for ; Fri, 10 May 2024 06:42:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1254A13BC0C; Fri, 10 May 2024 06:41:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="uW1RJp4o" Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) (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 CD8B81A2C0E; Fri, 10 May 2024 06:41:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.135.77 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715323317; cv=none; b=hydDow8OwDKbHZGkPipZto20a9q+hsSM/8pRB9oOjjRCIOqbtAoafqgozKhUSnc1r19Xe8kez0v6psUlsZ50r4t0fqWxhC6vgVEGynu6C6jfFQyRs9fkJ9SOpSBSKrWQTJh4PLvv2f6V0Jp7m1aMl0Pw2SxmuG6DhBs/yjBIiHY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715323317; c=relaxed/simple; bh=zHw5rmsy7qKm+z8qwjnC5Xt6TIYGmbIqlRzkdS4jp2Y=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=tGhxAEu1CuiARzDMx8w3K3APHOCoOJgJ8D2S0G0gqsulowYaAXIs9zLS9ZCUHWLd9Jy1Px7syovhXoS6933bw5gYFRGt3W8lzzzp4XYHt3y3vydeysS80Zp6W68TwnNWUgKvXPDRjPy6kCWYvgIzDW11gA0EQZkMJ/NE/GT2ZKI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=analog.com; spf=pass smtp.mailfrom=analog.com; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b=uW1RJp4o; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=analog.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=analog.com Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44A4dBKK006983; Fri, 10 May 2024 02:41:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h= from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=DKIM; bh=kVni+v16C442TfQ6e1EmMu0Ew QbjLzJZQSp6aTqUDI8=; b=uW1RJp4osExmx4dk9fVw96mCbfLxzMikFa1E8Z6/V Xva1MkJJ7+AgVKQUl2p79P1yxK6Wxypu1MjrFo8WR9bpZE8hD5zENjCrKnkFXbVS JS+0luQi8LMw1RHQp35hgvAH7gh6KcXYArYdZqvZ2R8fs8RFxJC751jfJ9Aq3b57 npoP+A9tZCBj3UWpoP9XhivOydXUkpH2X2TW/YXDTRrq5N8wjxoxqM8YvZhbqqXN bKa2RPHaZKUXZ4Nzqp5MJhkoMn1iDWKoviKIwWvKKeWdnCZWGI+/Cbh81juc5bLr Te5G16FnOSUglyl73CwCvAC2j+aXaxs7eljfU/7hY7Ufg== Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3y16xt1c5c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 May 2024 02:41:18 -0400 (EDT) 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 44A6fHsv051476 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 10 May 2024 02:41:17 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) 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.986.14; Fri, 10 May 2024 02:41:16 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Fri, 10 May 2024 02:41:16 -0400 Received: from MTINACO-L03.ad.analog.com (MTINACO-L03.ad.analog.com [10.117.116.80]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 44A6ewwb001379; Fri, 10 May 2024 02:41:00 -0400 From: Mariel Tinaco To: , , CC: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Michael Hennerich , Marcelo Schmitt , Dimitri Fedrau , Guenter Roeck Subject: [PATCH 0/2] add AD8460 DAC driver Date: Fri, 10 May 2024 14:40:51 +0800 Message-ID: <20240510064053.278257-1-Mariel.Tinaco@analog.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: lT5dUnIKRTt949X5kgeiLUUb5vZVrppF X-Proofpoint-ORIG-GUID: lT5dUnIKRTt949X5kgeiLUUb5vZVrppF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-10_04,2024-05-10_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 mlxlogscore=999 phishscore=0 clxscore=1011 impostorscore=0 malwarescore=0 mlxscore=0 adultscore=0 bulkscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405100046 The AD8460 is a 14-bit, high power +-40V 1A, high-speed DAC, with dual digital input modes, programmable supply current and fault monitoring and protection settings for output current, output voltage and junction temperature. The fault monitoring and shutdown protection features were supported in the earlier versions of the IIO driver but was scrapped due to uncertainties if the functionalities belong to the IIO driver. However, it would be best to implement it for the device's quality of life. I'd like to know if it's better suited as a stand-alone HWMON driver. The following are the configurable and readable parameters through SPI that could be implemented on the HWMON driver: * An enable bit to arm/protect the device on overcurrent, overvoltage or overtemperature events. The device is shut down upon detection. * A configurable range/threshold for voltage, current and temperature that raises alarm when exceeded while the device is armed. * Flags that can be polled to raise alarm upon detection of overcurrent, overvoltage or overtemperature events, and apply additional protective measures. * Programmable quiescent current (optional) * Thermal monitoring is done by measuring voltage on TMP pin (unlikely to be included) Mariel Tinaco (2): dt-bindings: iio: dac: add docs for ad8460 iio: dac: support the ad8460 Waveform DAC .../bindings/iio/dac/adi,ad8460.yaml | 67 ++ MAINTAINERS | 8 + drivers/iio/dac/Kconfig | 13 + drivers/iio/dac/Makefile | 1 + drivers/iio/dac/ad8460.c | 652 ++++++++++++++++++ 5 files changed, 741 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/dac/adi,ad8460.yaml create mode 100644 drivers/iio/dac/ad8460.c base-commit: 9900e7a54764998ba3a22f06ec629f7b5fe0b422 -- 2.34.1