From patchwork Mon Dec 26 22:38:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sahin, Okan" X-Patchwork-Id: 36711 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1117331wrt; Mon, 26 Dec 2022 14:41:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXthFp2aCYo1mLbWOkUukQTyBBwaEDazUIQLFtX4S+8p5Bq5/8oVRlA3aAx0lqRlDGe4kt2B X-Received: by 2002:a17:907:c084:b0:7c1:22a6:818f with SMTP id st4-20020a170907c08400b007c122a6818fmr16730053ejc.25.1672094516057; Mon, 26 Dec 2022 14:41:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672094516; cv=none; d=google.com; s=arc-20160816; b=Q65XuR9KmRVprDLY/+NJbEpbW1u+C9IBqpxKu0ldjf1iQcFFzjfTMpGRoSHLaYrVDa +BBFCYJCFcp5u2/TroLtepNMiwZqzvIhociwRRtyOBYyw7rLtxe8qhFBEhUcC7CXgTOu 0fU/DN0zDeOp+ll0JyD8gx3kbnhcnUKHd17ghh3da1EOInNjf8mOzf/YxAKqJ3RDRUqC GYQ83HLBouU7/8rf6w0Yu1GAXOXFqfkfPKTZetjP/AnQxPDpDlMtxM66AMue8TApJnRq UyK+nMO2cKb+rgq5X9e3+B7U0wJ7be2+PpnKI2zEGuyXzrYco8onBikqKUSV8BbejqIt 0OUg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ag1I/tTfkeExwDs9P0sPgO9xdQrnEPRunzR/d0j+Z2A=; b=usDpnao5wEhG3qpeaVXcFxm4Wpv+qmW46rxl+y0jGAJxoEVKeeRQMN46nMdhqAjoEw u+D27q/NN9YHIsppJleaLOIjEBIqWGaT6vEwfgyavVbsMQPP7VV+dBFQv9f6KFtl6kLJ gW8b6BxwIfiE23HRPgtapcswdVXm2/RPFKd+frpiUe/fS6V7RATFGLQ0feI0cJjhplQ1 rnB374DcunzpcVl54KlV8ydbdU+2xz5Imkmdhxvp1SAn/ZRW8wRJgNgQvHlClOcJtlmg FRGOLncuCOlVSE4gcjT/sk1hW7muBYNoiF6AnO2gbBCKkppFXoE221sDI5JrWcvqszP1 +VDA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s19-20020a170906455300b00780636887fesi7744891ejq.797.2022.12.26.14.41.32; Mon, 26 Dec 2022 14:41:56 -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 S232388AbiLZWlN (ORCPT + 99 others); Mon, 26 Dec 2022 17:41:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232376AbiLZWkf (ORCPT ); Mon, 26 Dec 2022 17:40:35 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 489CF5F67; Mon, 26 Dec 2022 14:39:23 -0800 (PST) Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BQK62kc009495; Mon, 26 Dec 2022 17:39:20 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3mnv5cahe4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Dec 2022 17:39:20 -0500 Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 2BQMdJTk055654 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 26 Dec 2022 17:39:19 -0500 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.986.14; Mon, 26 Dec 2022 17:39:18 -0500 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.986.14; Mon, 26 Dec 2022 17:39:17 -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:39:17 -0500 Received: from okan.localdomain ([10.158.19.61]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 2BQMcuAb032340; Mon, 26 Dec 2022 17:39:10 -0500 From: Okan Sahin To: CC: Lee Jones , Rob Herring , "Krzysztof Kozlowski" , "open list:MAXIM MAX77541 PMIC MFD DRIVER" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Subject: [PATCH v2 2/5] dt-bindings: mfd: adi,max77541.yaml Add MAX77541 bindings Date: Tue, 27 Dec 2022 01:38:36 +0300 Message-ID: <20221226223839.103460-3-okan.sahin@analog.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221226223839.103460-1-okan.sahin@analog.com> References: <20221226223839.103460-1-okan.sahin@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: 39KPduhRzZY_0iWLJ4eAxzfjYYY6AZxx X-Proofpoint-ORIG-GUID: 39KPduhRzZY_0iWLJ4eAxzfjYYY6AZxx 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 malwarescore=0 impostorscore=0 priorityscore=1501 mlxscore=0 spamscore=0 bulkscore=0 phishscore=0 mlxlogscore=999 suspectscore=0 lowpriorityscore=0 clxscore=1011 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2212260192 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753318179121864340?= X-GMAIL-MSGID: =?utf-8?q?1753318179121864340?= The bindings for MAX77541 MFD driver. It also includes MAX77540 driver whose regmap is covered by MAX77541. Signed-off-by: Okan Sahin --- .../devicetree/bindings/mfd/adi,max77541.yaml | 102 ++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 103 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/adi,max77541.yaml diff --git a/Documentation/devicetree/bindings/mfd/adi,max77541.yaml b/Documentation/devicetree/bindings/mfd/adi,max77541.yaml new file mode 100644 index 000000000000..50f93cb0bb66 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/adi,max77541.yaml @@ -0,0 +1,102 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/adi,max77541.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MAX77540/MAX77541 PMIC from ADI. + +maintainers: + - Okan Sahin + +description: | + MAX77540 is a Power Management IC with 2 buck regulators. + + MAX77541 is a Power Management IC with 2 buck regulators and 1 ADC. + +properties: + compatible: + enum: + - adi,max77540 + - adi,max77541 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + regulators: + $ref: ../regulator/adi,max77541-regulator.yaml# + + adc: + type: object + additionalProperties: false + properties: + compatible: + const: adi,max77541-adc + + required: + - compatible + +required: + - compatible + - reg + - interrupts + +allOf: + - if: + properties: + compatible: + contains: + const: adi,max77540 + then: + properties: + regulator: + properties: + compatible: + const: adi,max77540-regulator + else: + properties: + regulator: + properties: + compatible: + const: adi,max77541-regulator + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@69 { + compatible = "adi,max77541"; + reg = <0x69>; + interrupt-parent = <&gpio>; + interrupts = <16 IRQ_TYPE_EDGE_FALLING>; + + regulators { + BUCK1 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <5200000>; + regulator-boot-on; + regulator-always-on; + }; + BUCK2 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <5200000>; + regulator-boot-on; + regulator-always-on; + }; + }; + + adc { + compatible = "adi,max77541-adc"; + }; + }; + }; + diff --git a/MAINTAINERS b/MAINTAINERS index af94d06bb9f0..22f5a9c490e3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12501,6 +12501,7 @@ MAXIM MAX77541 PMIC MFD DRIVER M: Okan Sahin L: linux-kernel@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/mfd/adi,max77541.yaml F: drivers/mfd/max77541.c F: include/linux/mfd/max77541.h