Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4171710pxu; Tue, 20 Oct 2020 09:52:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKcoRo4jwpMgvpu5Gm/WwyoGk130XJzaSjvZSEjwhYuRQWEwy0s5u+JZW2RLY8MlpuofwU X-Received: by 2002:a17:906:a002:: with SMTP id p2mr3907750ejy.399.1603212776727; Tue, 20 Oct 2020 09:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603212776; cv=none; d=google.com; s=arc-20160816; b=JrVbBIXx9T/dFszGBCM/26mwlciVnR32Zaxx45PT/ezCcsEvlhPhbGRMiqkIdn7Ict K61BG2qhhCLG0CRO8A1dnb5Mo5xGzMLH2RX0lHlFwN2Zyz68fGR3aZSgDBidE+0XYRr8 SxVwAyDY5fogX7oJoN9VJNabOTr4/d6R2pPjRsPATiOTce2jfbADj2s4H7ZQCsE0UhJI ZyOmBwtVVrZR7rZmgfq5t+K0LjFhbW0iE7kEMt7iJ1lCTtIHfP38Wc8m91V+zT73HCwn EOEH3ZguRwkwJpjjCwN4j8W4ay8TpseKTEGOTfR/K8YAm9tRcZtvFQv2xM31a+hQ4UX5 F8+Q== 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=ahJcgUHPPnnTmIXkLnK1gYp2HwAk14lS55hBkzPR/gsyWepevdNmrYZTSKLqLzIN0r K/SVQtrIKlv5Jw3k/dAvuLofeLClIHfybZApx9XNGZDnphcO/mPqvpSRGejQ8OglSmrK nXihatIK8ljlYEbqs28D/CX2j16gUh9q/Htk9ldLBCdLJlc/eh1yIYXnI2ZWqnEJGnrB hPoD28zs1BNzNI2RlfSQWrDApT89oVOepy457J1BWdCk/YXjGu1aKxvZHqSEoF/clFb1 uW22DZoWc56BE0j87IZQ9vPaj4ApwP9gFD6MU6Jz++LxnRu3LBfc8X4CJwjGK93Qv+rU +v6Q== 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 h26si1553901ejd.572.2020.10.20.09.52.34; Tue, 20 Oct 2020 09:52:56 -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 S2388931AbgJSXRq (ORCPT + 99 others); Mon, 19 Oct 2020 19:17:46 -0400 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:22179 "EHLO alexa-out-sd-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388869AbgJSXRo (ORCPT ); Mon, 19 Oct 2020 19:17:44 -0400 Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-01.qualcomm.com with ESMTP; 19 Oct 2020 16:17:43 -0700 X-QCInternal: smtphost Received: from gurus-linux.qualcomm.com ([10.46.162.81]) by ironmsg05-sd.qualcomm.com with ESMTP; 19 Oct 2020 16:17:43 -0700 Received: by gurus-linux.qualcomm.com (Postfix, from userid 383780) id 1E38C199F; Mon, 19 Oct 2020 16:17:43 -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, Guru Das Srinagesh Subject: [RFC PATCH RESEND v1 2/3] dt-bindings: mfd: Add QCOM PM8008 MFD bindings Date: Mon, 19 Oct 2020 16:17:32 -0700 Message-Id: <7a89811f36fe858756daa62f1162d18da7e79a73.1603148363.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