From patchwork Wed Feb 1 10:35:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sahin, Okan" X-Patchwork-Id: 51300 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp207855wrn; Wed, 1 Feb 2023 03:02:22 -0800 (PST) X-Google-Smtp-Source: AK7set9LwMzfFQMepiulAMVvXtH3jjMm/y2D6lfz6ucQ5WF3wxvKdvRjnYQW9HoudLmZlbjfU2yZ X-Received: by 2002:a50:fa89:0:b0:465:f6a9:cb7b with SMTP id w9-20020a50fa89000000b00465f6a9cb7bmr1672936edr.12.1675249342533; Wed, 01 Feb 2023 03:02:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675249342; cv=none; d=google.com; s=arc-20160816; b=G8pKHokZMula/XpxX97BMMzgZ+CclIIF0J1G2pyruu8GWbMmKowWpeb4+AAkD+7iY7 IsW3hOlWVoJKEmQaIRAmf5FhjAvVmbetpaZ2q3T3TJ85YY/n63u3lpXEJlBvdcNDFFUa 0bG08rd/mKLXH/Qq+v4wkzGc3oCDRfZemuvB0/OPC53vHzXU8zIasCzo192cBmx0cFF7 ggCghMHzOs3UtkInlujBWIYJRPc90kAQvOhBkSpGS9pfwFC0OXinBjwiEGTJZYlgOGj2 W+XKUI1HsB2oAI9dQuQBr9CbxcEV4RENdoXd894BwPiZH9yvYxJDwlQ7UkcLDK8r7ITN 8FQg== 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=5QYrgtfOBsReog0ykBhfZOGvoqGxm0Atlvop2ksU1Ps=; b=wOg5KaF8leNlowkrsge961GvM8DkMcxM+2G2GgZPJdo5ISxh1QKqsXiXGGSh8bTjRM Z1wzthmvxjLf3D1TOQdbGjvsXsItfujCLyQ0S3rDHJWtGzPX25z1aavXEvyC8xzG1ymP 2tgXPXUlz+OquvNz4WmciAH7EqefLF+I/Jc8XTPUrMpZcWJOOuBOA4dPQDov6fhxgBG2 1n92RCpksxBfBpDWMOg8SuCzyfphb6NNLuNJnif8Q19Vjb4Bg4CZAOk7G7rZOiqhDrLd FxRCSIwBVjeWosWxN/r9JGmDiyIurdFUCOffOe7R6rUJemFVayYGLJdIyfWp0TXQznnG GUDg== 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 a12-20020a50c30c000000b004a234e092d2si11201124edb.21.2023.02.01.03.01.56; Wed, 01 Feb 2023 03:02:22 -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 S232113AbjBAKlY (ORCPT + 99 others); Wed, 1 Feb 2023 05:41:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232065AbjBAKk5 (ORCPT ); Wed, 1 Feb 2023 05:40:57 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DC7A1C319; Wed, 1 Feb 2023 02:40:32 -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 3119uCuT011979; Wed, 1 Feb 2023 05:39:02 -0500 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3nfnvvg5qt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Feb 2023 05:39:01 -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 311AcsP1014210 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 1 Feb 2023 05:38:54 -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; Wed, 1 Feb 2023 05:38:53 -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; Wed, 1 Feb 2023 05:38:53 -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; Wed, 1 Feb 2023 05:38:52 -0500 Received: from okan.localdomain ([10.158.19.61]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 311AZiWc012011; Wed, 1 Feb 2023 05:38:35 -0500 From: Okan Sahin To: CC: Lee Jones , Rob Herring , "Krzysztof Kozlowski" , Liam Girdwood , Mark Brown , Jonathan Cameron , Lars-Peter Clausen , Andy Shevchenko , Geert Uytterhoeven , Marcus Folkesson , Ramona Bolboaca , Caleb Connolly , ChiYuan Huang , "William Breathitt Gray" , , , Subject: [PATCH v4 4/5] dt-bindings: mfd: Add ADI MAX77541/MAX77540 Date: Wed, 1 Feb 2023 13:35:17 +0300 Message-ID: <20230201103534.108136-5-okan.sahin@analog.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230201103534.108136-1-okan.sahin@analog.com> References: <20230201103534.108136-1-okan.sahin@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: -llCGumCoOD0icBLFg-OKCatxYGITZZX X-Proofpoint-ORIG-GUID: -llCGumCoOD0icBLFg-OKCatxYGITZZX X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-02-01_03,2023-01-31_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxlogscore=946 clxscore=1015 priorityscore=1501 lowpriorityscore=0 phishscore=0 impostorscore=0 bulkscore=0 spamscore=0 adultscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302010091 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?1756626254628545519?= X-GMAIL-MSGID: =?utf-8?q?1756626254628545519?= Add ADI MAX77541/MAX77540 devicetree document. Signed-off-by: Okan Sahin --- .../devicetree/bindings/mfd/adi,max77541.yaml | 87 +++++++++++++++++++ 1 file changed, 87 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..91d15e9ca2e3 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/adi,max77541.yaml @@ -0,0 +1,87 @@ +# 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: /schemas/regulator/adi,max77541-regulator.yaml# + +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; + }; + }; + }; + };