Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5084011pxu; Wed, 21 Oct 2020 12:55:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqibxjzK8uL7gIRy7xNMSCIqxLrK6slumx8+YeuqKl+Cn+mX1917xmf4SSV4wFAak8WmPU X-Received: by 2002:a05:6402:1d2c:: with SMTP id dh12mr3783487edb.256.1603310136104; Wed, 21 Oct 2020 12:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603310136; cv=none; d=google.com; s=arc-20160816; b=JWLrVZwBjpqVFqqnm5SL+Pm0T1GT4yUu9u7xZwghkmUULjGV27/atSFcHzXpoS97nf iYsMzBzT+dMasrSRcp7Bz8kZEbgt9YTJbTzsWSjyZV5CfQO7F8L/yKR3X7z0CxMrNd2Q CRDdn/rQEHTQrEupWT1YaAwaevumsb1w4IjKKwVg0EfliS3cFdsdUk2vm8DPSvNUkJm+ 2jpyBWcWVMCvHBINGQzEKY13ah11AEEecy9QPGvBdSPnndLPxvoDbHaIYKjB4kOQswEe P6DYv2vEvaUK4JXm8mghC6cd8W/Vw4vCQWppPan4LKNyDYRjWSG0XgCk7vRoS7PtPG0z 1luQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:references:in-reply-to :message-id:date:subject:cc:to:from; bh=a/NmAAZFjjrJtBtufSNNHmfYXZFUh0nhCn3xxFCAm4U=; b=jNXIXM0K+Z8s2Cy6wcJEWs+yBc2hmTeMl78x2rymZNpAnPyp6JtXj7pY3xVwtcHaax UkhI5RBdPDOxyeKNzT5Z4y0HvGZ+5sD0DyjPPiaZervwIcQJiFgknsnfF/pHHFegjDPx LQIRKnIZhzTGIG8MQje6IyPN4eLvEQSAuuLPGzcFnNoA05/YdjQiTZq1qgdIoS87XV5/ F+o8+gWgrGLFblM7C5ICSPVIGDdWdkTY7VOUrCw2gNz4Blrt0wt2+m1OURmbQCjcw73z 8JJlbD1GKEPbmpJJwOwkbog8KsKTk2fKX8+vBeog4A0VDS9JNcH5jxVeKLqFY4pSa/6B D9Nw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z27si669010edi.577.2020.10.21.12.55.13; Wed, 21 Oct 2020 12:55:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439117AbgJTWeC (ORCPT + 99 others); Tue, 20 Oct 2020 18:34:02 -0400 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:59963 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439083AbgJTWdz (ORCPT ); Tue, 20 Oct 2020 18:33:55 -0400 Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-02.qualcomm.com with ESMTP; 20 Oct 2020 15:33:53 -0700 X-QCInternal: smtphost Received: from gurus-linux.qualcomm.com ([10.46.162.81]) by ironmsg-SD-alpha.qualcomm.com with ESMTP; 20 Oct 2020 15:33:53 -0700 Received: by gurus-linux.qualcomm.com (Postfix, from userid 383780) id A6546194C; Tue, 20 Oct 2020 15:33:53 -0700 (PDT) From: Guru Das Srinagesh To: Mark Brown , Markus Elfring , Lee Jones , Rob Herring Cc: Bjorn Andersson , Greg KH , Guenter Roeck , Joe Perches , Subbaraman Narayanamurthy , David Collins , Anirudh Ghayal , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Guru Das Srinagesh Subject: [RFC PATCH RESEND v1 2/3] dt-bindings: mfd: Add QCOM PM8008 MFD bindings Date: Tue, 20 Oct 2020 15:33:42 -0700 Message-Id: <7a89811f36fe858756daa62f1162d18da7e79a73.1603232320.git.gurus@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device tree bindings for the driver for Qualcomm Technology Inc.'s PM8008 MFD PMIC. Signed-off-by: Guru Das Srinagesh --- .../bindings/mfd/qcom,pm8008-irqchip.yaml | 103 +++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/qcom,pm8008-irqchip.yaml diff --git a/Documentation/devicetree/bindings/mfd/qcom,pm8008-irqchip.yaml b/Documentation/devicetree/bindings/mfd/qcom,pm8008-irqchip.yaml new file mode 100644 index 0000000..296ff85 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/qcom,pm8008-irqchip.yaml @@ -0,0 +1,103 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/qcom/qcom,pm8008-irqchip.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. PM8008 Multi-Function Device PMIC + +maintainers: + - Guru Das Srinagesh + +description: | + PM8008 is a PMIC that contains 7 LDOs, 2 GPIOs, temperature monitoring, and + can be interfaced over I2C. + +properties: + compatible: + const: qcom,pm8008-irqchip + + reg: + maxItems: 1 + + interrupt-names: + const: pm8008 + + interrupts: + maxItems: 1 + + interrupt-controller: + type: boolean + + "#address-cells": + const: 1 + description: + Must be specified if child nodes are specified. + + "#size-cells": + const: 0 + description: + Must be specified if child nodes are specified. + + "#interrupt-cells": + const: 2 + description: + The first cell is the IRQ number, the second cell is the IRQ trigger flag. + +patternProperties: + "^.*[a-zA-Z][a-zA-Z0-9,+\\-._]{0,63}@[0-9a-f]+$": + type: object + # Each peripheral in PM8008 must be represented as a child node with an + # optional label for referencing as phandle elsewhere. This is optional. + properties: + compatible: + description: + The compatible string for the peripheral's driver. + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + required: + - compatible + - reg + - interrupts + +required: + - compatible + - reg + - interrupts + - "#interrupt-cells" + +additionalProperties: false + +examples: + - | + &qupv3_se13_i2c { + #address-cells = <1>; + #size-cells = <0>; + + pm8008i@8 { + compatible = "qcom,pm8008-irqchip"; + reg = <0x8>; + #address-cells = <1>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <2>; + + interrupt-names = "pm8008"; + interrupt-parent = <&tlmm>; + interrupts = <32 IRQ_TYPE_EDGE_RISING>; + + pm8008_tz: qcom,temp-alarm@2400 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0x2400>; + interrupts = <0x5 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + }; + }; + +... -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project