Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2426918rwl; Mon, 26 Dec 2022 14:58:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXvO5Pnn1R3IvxMQBKKj/7oy26McOgaXMGnyvt4On8vVqT1a84mJ4Yh1AUJpFGdE9Uy8TCPB X-Received: by 2002:a05:6402:a55:b0:475:9918:37ce with SMTP id bt21-20020a0564020a5500b00475991837cemr17042688edb.13.1672095508683; Mon, 26 Dec 2022 14:58:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672095508; cv=none; d=google.com; s=arc-20160816; b=X3jDuai3nMNj6RegMEmTLcfAonINhUAQ9ocpyh/ONsVn0DBUYxcTjm2sMZzESDqSHV A1VgyiT5tjosPMrVqvdPtgsyS3nMsGP59vey6HSGJ9r9/Ch8mHPymaqxOqeH8D6OtgIz D17aDLdNztQU5zCWD7YRDquQTot4hFEG7pQwSXCQSBD9zLd5TmShkV5qO/kgJrm87/Hn wXpC+sv2LC3+t4FswMPReilIOxjA4h4G0155HPQww8gZDokBXcb+mS12ccIewpoPu4Rh 6qS7MJkHsMetyjM4GWCXKwYSFxC8yBlAeJq3u4RwlDKjXSz05T9dBk11QFdfDbSLKme+ TOZQ== 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=PhYSlNOcsJZhiZu084ruv3ckY8877AW0AAQbPFy7ZiM=; b=kzlDSnUQ4pVUN89rku2gNKdnofYGvN8pXeoJRCYokVRW0Z+6VEDWoBaAH4mRD+qqM3 zs5Hzmuu9kP574PZBzmecmyLTH/jRNhqBHImcwn0mBBt/xaw/U3jf1Hrb1acBtzrvzGI fQ52GeD8zEXYmVA7Aca6hTHpP3oyuALkmUw5VFyMSxCYfQ/J8O3dQPCGFm6b9Nne+5DM ycSPO73NIt/gGTbuhermu8UAr84S+C0hBB75nbDfu3ZHApH9/5ku8SCPrOu0EKc6thJJ uobOvSoDMqYSU15lBMe6ef3iKrfVCcXv6VH78FF/bsRCz7tZblX+c81ODy1CWZtUAk0T 2r0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a056402280700b0046b7410c015si11531863ede.18.2022.12.26.14.58.12; Mon, 26 Dec 2022 14:58:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232530AbiLZWwC (ORCPT + 67 others); Mon, 26 Dec 2022 17:52:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232591AbiLZWvw (ORCPT ); Mon, 26 Dec 2022 17:51:52 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A518270D; Mon, 26 Dec 2022 14:51:51 -0800 (PST) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BQIkpil020208; Mon, 26 Dec 2022 17:51:48 -0500 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3mny7a21a1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Dec 2022 17:51:48 -0500 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 2BQMplc1001067 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 26 Dec 2022 17:51:47 -0500 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) 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.986.14; Mon, 26 Dec 2022 17:51:46 -0500 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBCASHYB4.ad.analog.com (10.64.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Mon, 26 Dec 2022 17:51:46 -0500 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.986.14 via Frontend Transport; Mon, 26 Dec 2022 17:51:46 -0500 Received: from okan.localdomain ([10.158.19.61]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 2BQMpWj3032761; Mon, 26 Dec 2022 17:51:35 -0500 From: Okan Sahin To: CC: Liam Girdwood , Mark Brown , "Rob Herring" , Krzysztof Kozlowski , , Subject: [PATCH v2 0/5] Add MAX77541/MAX77540 PMIC Support Date: Tue, 27 Dec 2022 01:51:21 +0300 Message-ID: <20221226225123.105907-1-okan.sahin@analog.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: 4t3jV0QDdGBjTUW4Ij6vDr-WiHnAoj0E X-Proofpoint-GUID: 4t3jV0QDdGBjTUW4Ij6vDr-WiHnAoj0E X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-26_18,2022-12-23_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxscore=0 phishscore=0 lowpriorityscore=0 impostorscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 spamscore=0 bulkscore=0 malwarescore=0 mlxlogscore=874 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2212260193 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org MFD, regulator and ADC driver and related bindings for MAX77540/MAX77541. The patches are requeired to be applied in sequence. Changes in v2: * Patch 1: "drivers: mfd: Add MAX77541/MAX77540 PMIC Support" * Drop "this patch adds" from commit message. * Drop redundant blank lines. * Drop module version * Use definition for parameter of devm_mfd_add_devices(.., -1,..) * Use desc in chip_info to adding desc for different devices. * Add missing headers and forward declarations. * Drop unused elements from max77541_dev struct * Add chip_info into max77541_dev struct to identify different devices. * Patch 2: "dt-bindings: mfd: adi,max77541.yaml Add MAX77541 bindings" * Drop "this patch adds" from commit message. * Fix $ref path * Drop adc part under allOf * Keep only one example (more complex one) * Fix make dt_binding_check errors.(trailing space, No newline) * Patch 3: "drivers: regulator: Add MAX77541 Regulator Support" * Drop "this patch adds" from commit message. * Add trailing comma for required structs. * Fix wrong indentation. * Drop redundant blank lines. * Drop max77541_regulator_dev struct. * Use "regulator_desc *desc" for both regulator regarding to "max77541->id" * Patch 4: "dt-bindings: regulator: max77541-regulator.yaml Add MAX77541 Regulator bindings" * Drop "this patch adds" from commit message. * Chance filename (matching compatible), so adi,max77541-regulator.yaml * Fix make dt_binding_check errors.(trailing space, No newline) * Patch 5: "drivers: iio: adc: Add MAX77541 ADC Support" * Drop "this patch adds" from commit message. * Drop redundant blank lines. * Fix wrong include path. * Use switch instead of if-else for range setting in max77541_adc_scale * Move max77541_adc_range enum from max77541.h to here. * Use definition from units.h * Drop unused elements from max77541_adc_iio struct * Drop the .data from platform_device_id Okan Sahin (5): drivers: mfd: Add MAX77541/MAX77540 PMIC Support dt-bindings: mfd: adi,max77541.yaml Add MAX77541 bindings drivers: regulator: Add MAX77541 Regulator Support dt-bindings: regulator: adi,max77541-regulator.yaml Add MAX77541 Regulator bindings drivers: iio: adc: Add MAX77541 ADC Support .../devicetree/bindings/mfd/adi,max77541.yaml | 102 ++++++++ .../regulator/adi,max77541-regulator.yaml | 44 ++++ MAINTAINERS | 11 + drivers/iio/adc/Kconfig | 11 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/max77541-adc.c | 199 ++++++++++++++ drivers/mfd/Kconfig | 13 + drivers/mfd/Makefile | 1 + drivers/mfd/max77541.c | 244 ++++++++++++++++++ drivers/regulator/Kconfig | 9 + drivers/regulator/Makefile | 1 + drivers/regulator/max77541-regulator.c | 161 ++++++++++++ include/linux/mfd/max77541.h | 108 ++++++++ 13 files changed, 905 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/adi,max77541.yaml create mode 100644 Documentation/devicetree/bindings/regulator/adi,max77541-regulator.yaml create mode 100644 drivers/iio/adc/max77541-adc.c create mode 100644 drivers/mfd/max77541.c create mode 100644 drivers/regulator/max77541-regulator.c create mode 100644 include/linux/mfd/max77541.h -- 2.30.2