From mboxrd@z Thu Jan 1 00:00:00 1970 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 DE484306B12; Fri, 5 Sep 2025 17:52:54 +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=1757094776; cv=none; b=Z1HlyJIE+Ptge3bA4HVzt6w6F+Cb/hWcnBARsKmuw2vX5ueehRp5OMBeVIX4ApXo59UV0m3HD9EuzQBwYq5y5t/45KVPZOcUrsjEO0Icd+HvtVhRDo9vGAgKl4klH5ZeXEYFSwIs+5ODFt9oH52/IzC6ZZNMhuF8YJ21FoHheds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757094776; c=relaxed/simple; bh=IJtObEWpiLPMjQekK9obEf61YS9ij6JQAfy2pMSQMPE=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=a49wuvU1LZmhqhFtRgB+GGvlOUA0yRnzk6bGzdGTR1kyeINybfFFeGHHbrucgX39NzQuQXX3/wdMRWXna5oJkCU62hLPzYanyj+ojbSg1SLBPzxG6Xwg8x6eT/7hr5hoOO0MSaWaQf9XQszBoBq9lP/qIA3VcfB/GfkdUIHsj3Q= 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=FEaPe/hZ; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="FEaPe/hZ" Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 585DrHAt031272; Fri, 5 Sep 2025 11:53:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h=cc :content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=DKIM; bh=LrmIc/v0AASjQQ/lqZEv4EstG2a zFtLZr04gfZV6lQw=; b=FEaPe/hZBNb5xsuSHk3QwI9nHD3DCRT82s9naO2Fqik 9+AFggIIJa1Nu+bqJrAWgKJKhXWEoLFCi7UyT3u33HaSz0Yyr7cQ3NLcWCv10rC1 3MI6+rB9AF526nKsPJHHFSp1zrQnAOie85BOqh/shjEvOQGlBx+cTiCIg1r26Sij aW2/Nk2gtSgKB4LAhJhwF1Hwa8n9OwMI06kYHUKQqv1Foh/op67FNDttUlwd9qsT iCA9KQSaAhDQGfF8lsUgDRx/uA2jc/s8JySzK8ghLLCoQSJ5xB+UycslScCwK95H LUdsL547j3GoOBqusJYjXWhMfQZvAxsUwnY11tTyBKw== Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 48ypq4up8k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 05 Sep 2025 11:53:06 -0400 (EDT) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 585Fr5Mq053254 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 5 Sep 2025 11:53:05 -0400 Received: from ASHBCASHYB5.ad.analog.com (10.64.17.133) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Fri, 5 Sep 2025 11:53:05 -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.1748.10; Fri, 5 Sep 2025 11:53:05 -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.1748.10 via Frontend Transport; Fri, 5 Sep 2025 11:53:05 -0400 Received: from JSANTO12-L01.ad.analog.com ([10.65.60.206]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 585Fqp1O020473; Fri, 5 Sep 2025 11:52:53 -0400 From: Jonathan Santos To: , , CC: Jonathan Santos , , , , , , , , , , Subject: [PATCH v3 0/4] Add support for ADAQ776x-1 ADC Family Date: Fri, 5 Sep 2025 06:48:59 -0300 Message-ID: X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: TXGafzvLlGnU5NDzRU3_PJmR72-dPRlN X-Proofpoint-GUID: TXGafzvLlGnU5NDzRU3_PJmR72-dPRlN X-Authority-Analysis: v=2.4 cv=LrKSymdc c=1 sm=1 tr=0 ts=68bb0762 cx=c_pps a=3WNzaoukacrqR9RwcOSAdA==:117 a=3WNzaoukacrqR9RwcOSAdA==:17 a=yJojWOMRYYMA:10 a=VwQbUJbxAAAA:8 a=gAnH3GRIAAAA:8 a=grXmcW2ECOK5zeps9zwA:9 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTA1MDAxNiBTYWx0ZWRfX7XsKwpkYs7pA IYVCu5RTzV6SjKlyYu2Jt+lof78lhdB0elz8HSZrzv4zkM3w7KZJF+vz1BzCMc4jQO3btf678Vg n8keE5JXPhc8tkvzGy6/C1c7DJ/LgU5URADJWLPks0NN2hx9O3nIYQnyPRdACxCkXs4mRD0T3Ru 7hGUd+RHjyeTn1svO/vpTpBFIWpd/4hvE7Xw2Gpc+IEK6lAdK171kWJBBOSBbVqEdE6NkHCR1L+ DyNxrImi67ONLD29wTpeLOh4814BrYHIaVHT3OKjt9Dnhejc5rEQibB5ZTn2te/3Al6xOZ+9IMi BXMCC6Y891FAvz86i0u0BcH8G+NX+zYC/PU5SwpqVnt9NSIjbimfsPXhowVxMaAIiybLc0CGYR5 hUmA22OD X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-05_05,2025-09-04_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 impostorscore=0 clxscore=1015 phishscore=0 adultscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2507300000 definitions=main-2509050016 This adds support for the ADAQ7767-1, ADAQ7768-1 and ADAQ7769-1 devices. The ADAQ7768-1 and ADAQ7769-1 integrate a programmable gain amplifier (PGA) with 7 and 8 gain options, respectively. The ADAQ7767-1 and ADAQ7769-1 also feature a 3-pin selectable Anti-aliasing filter (AAF) gain. --- Changes in v3: * Renamed adi,gain-milli to adi,aaf-gain-bp. Now it represents basis points (one hundredth of a percent). * ad7768_channel_masks removed along with available_masks element in ad7768_chip_info struct. It does not add anything for single channels, so not needed, at least for now. * New patch adding 64-bit fractional number types to math.h. * Moved aaf gain parsing to its own function, and now returning after warning to avoid setting a variable when it shouldn't (avoid confusion). * ad7768_set_pga_gain(): removed the pgia enable check, relying on the regmap cache. * Addressed other review comments, see individual patches. Changes in v2: * adi,aaf-gain property renamed to adi,gain-milli. Default value added. * fixed some commit messages. * Added 'select RATIONAL' to Kconfig. * Added lock to protect PGA value access. * rewrote AAF gain check and replaced error returns with warnings. * Addressed other review comments, see individual patches. * Link to v1: https://lore.kernel.org/linux-iio/cover.1754617360.git.Jonathan.Santos@analog.com/T/#t --- Jonathan Santos (4): dt-bindings: iio: adc: ad7768-1: add new supported parts iio: adc: ad7768-1: introduce chip info for future multidevice support math.h: Add 64-bit fractional numbers types iio: adc: ad7768-1: add support for ADAQ776x-1 ADC Family .../bindings/iio/adc/adi,ad7768-1.yaml | 44 ++- drivers/iio/adc/Kconfig | 1 + drivers/iio/adc/ad7768-1.c | 359 ++++++++++++++++-- include/linux/math.h | 2 + 4 files changed, 377 insertions(+), 29 deletions(-) base-commit: 91812d3843409c235f336f32f1c37ddc790f1e03 -- 2.34.1