Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp453051pxu; Fri, 23 Oct 2020 05:26:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycYrskFcPknPQyFvOJ9nXZZe83L20qnr9g8WOJ6BxZiDx8KPa7b+RdHqHTbGtd65X+SucW X-Received: by 2002:aa7:c256:: with SMTP id y22mr1926092edo.108.1603456001496; Fri, 23 Oct 2020 05:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603456001; cv=none; d=google.com; s=arc-20160816; b=PhkLZx7wOIPStLVihvwl1fIfRi8oK7PF/HIHwywGuwlcZv9Zo8hh4bG1+Jm4iDPlGc OQ5PeLr4JBjrhk3YdjO3g9RmOIWZii9/ZFU+GPGcT2GrenW2xWng3y7/gHqnH0CJJz3a ruvvnBhjjegzJ2UEvQbJNOEuIuH2Ld6RJr6xWTjzucg0PbbuoaHy/pHMVSYJg7YaW40E XVjhU07R2IY6CBM+whCGa1TDwcnWayIlwPRHKinTj66gpomZHsJTtxLCEALQz8XRlDHe 3gBQA92j0AcJX6BZbaXE0EppJlcj+GNQ+sd/eUCIJtC6TU5CrUVOS9eSe8cZaGSm6llJ +miw== 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=9v0wxraRI+n7xFiU5iHRaE73VxDVBlnXoLQUvQ3pVzs=; b=SfHeh86Y3z9Br/fsBZKQ+SeFg/NF4TXrXdfqdxaKQEo+4GtOAk6uX8HJK5Kxm7EmuA TjzVVcj/xypf0eVW0mTYwvqX0n1OFPjGB3GUy67hz5MEJFjphET317K9StCkuzipBAAT vrgar9aNpbzvWtCV8NbJ/JcHM4vfW/sgHwa5G4KZn6MMtl66/xrt58/MksnHHE7aw3/a gExAFymYfhwtsPOvXlhWHOTBom9Hj2/Q6ouzPXOb56G1cMuWYOuhLKWJf8nWQ9s+HlXF TU5zb273DVwe7DqQk9+PWuqaMAswCqjQdYPtUT0ybkbOkK9b90NGEeVBNl0/XKjtKX3F ImVw== 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 j7si604557edy.250.2020.10.23.05.26.19; Fri, 23 Oct 2020 05:26:41 -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 S372365AbgJVVfs (ORCPT + 99 others); Thu, 22 Oct 2020 17:35:48 -0400 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:54994 "EHLO alexa-out-sd-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S372343AbgJVVfq (ORCPT ); Thu, 22 Oct 2020 17:35:46 -0400 Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-01.qualcomm.com with ESMTP; 22 Oct 2020 14:35:46 -0700 X-QCInternal: smtphost Received: from gurus-linux.qualcomm.com ([10.46.162.81]) by ironmsg04-sd.qualcomm.com with ESMTP; 22 Oct 2020 14:35:45 -0700 Received: by gurus-linux.qualcomm.com (Postfix, from userid 383780) id 6B31119BC; Thu, 22 Oct 2020 14:35:45 -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: [PATCH v2 2/3] dt-bindings: mfd: Add QCOM PM8008 MFD bindings Date: Thu, 22 Oct 2020 14:35:41 -0700 Message-Id: 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 | 102 +++++++++++++++++++++ 1 file changed, 102 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..31d7b68 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/qcom,pm8008-irqchip.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/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: + items: + - const: qcom,pm8008-irqchip + + reg: + maxItems: 1 + + interrupt-names: + items: + - const: pm8008 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + "#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: + "^.*@[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: + - | + #include + 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