Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp953746pxf; Thu, 8 Apr 2021 17:39:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGQ2I6YiGkm+2S+g38S7cJ2TcUdOo2C3cDdF92t/zYMUVrNMpzdNLRYx2oNNN1GJ7PS4cq X-Received: by 2002:a17:907:9858:: with SMTP id jj24mr13547834ejc.212.1617928796726; Thu, 08 Apr 2021 17:39:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617928796; cv=none; d=google.com; s=arc-20160816; b=wJ7gTPH/tGkZIZBjBlvwrHByt9jLwnriNXWM6bxMZakxtIH1Zy8XIpvJDrncA9QG6G 6sk22sIEHqa3cxUr2hvFTfwZjiZ2EV+fBOI6F6Sks2hhn90w5HnFQva2/ojKMHu3Z6mH qd4LtCR9wvebC3zyPrYNvi0GQ4GYSA2EJwbpeSIx0sExEOhKypD+1PmGObwa1lddBo+B vu/XkoveGtG+1Fmzhdejm75DTXAkUEEocsikkZjzEQ8Bs2kAbTLkJdnpYc6Gd384gwkb 4V79TIujN8jwYiLTmYohtJx0qhdlupTTB1HZ0cqJQmt+9Xqaos59v8xmD+dEz/R68NWy WX2w== 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=AJBv043K3SKWCcyhdPcrSBNShkzX/340dC9vaQ7PlKI=; b=rt0I4Tj9aw1vEoZsgmBvTFDlHCwUclNH+1oonzAnxaR34kwxFvu+cqKhndzCyp2ppW ignKvL00eS/1VkuW6o46JjDfQI1xI/C9cJPIWkooxA2qh9+mO1wBOGnZKcUQm/W4ucht BeEVMo5x7OnTNs8Cv9pV8tGAh3Qff0MWv1Q2ALj0sGBtnEIccXa9iB0nLlgV4Q9SYE4C QjeNWIi+rBuENn/wTKv1uZznk0rBfcx/OLFwr8L9PAdIL+EAcuD7Bgvg5Ualb/WerTH3 ZJE8L3RdxylrYz72WOy8Db7JTQ4sxfW74N+mgahIVLytFMskVtFciuthNiCoNblhJV8K 3OKQ== 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 i3si735107ejp.610.2021.04.08.17.39.33; Thu, 08 Apr 2021 17:39: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 S233096AbhDIAis (ORCPT + 99 others); Thu, 8 Apr 2021 20:38:48 -0400 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:59374 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232951AbhDIAip (ORCPT ); Thu, 8 Apr 2021 20:38:45 -0400 Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 08 Apr 2021 17:38:33 -0700 X-QCInternal: smtphost Received: from gurus-linux.qualcomm.com (HELO gurus-linux.localdomain) ([10.46.162.81]) by ironmsg01-sd.qualcomm.com with ESMTP; 08 Apr 2021 17:38:32 -0700 Received: by gurus-linux.localdomain (Postfix, from userid 383780) id E7BD71A71; Thu, 8 Apr 2021 17:38:32 -0700 (PDT) From: Guru Das Srinagesh To: Lee Jones , Rob Herring , devicetree@vger.kernel.org Cc: Mark Brown , linux-arm-msm , Bjorn Andersson , linux-kernel@vger.kernel.org, Guru Das Srinagesh Subject: [PATCH 2/3] dt-bindings: mfd: pm8008: Add bindings Date: Thu, 8 Apr 2021 17:38:30 -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 bindings for the Qualcomm Technologies, Inc. PM8008 MFD driver. Signed-off-by: Guru Das Srinagesh --- .../devicetree/bindings/mfd/qcom,pm8008.yaml | 120 +++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml diff --git a/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml new file mode 100644 index 0000000..3af78f8 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml @@ -0,0 +1,120 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/qcom,pm8008.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. PM8008 PMIC bindings + +maintainers: + - Guru Das Srinagesh + +description: | + Qualcomm Technologies, Inc. PM8008 is a dedicated camera PMIC that integrates + all the necessary power management, housekeeping, and interface support + functions into a single IC. + +properties: + compatible: + const: qcom,pm8008 + + reg: + description: + I2C slave address. + + maxItems: 1 + + interrupts: + maxItems: 1 + + description: Parent interrupt. + + "#interrupt-cells": + const: 2 + + description: | + The first cell is the IRQ number, the second cell is the IRQ trigger + flag. All interrupts are listed in include/dt-bindings/mfd/qcom-pm8008.h. + + interrupt-controller: true + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + "pinctrl@[0-9a-f]+$": + type: object + + description: | + The GPIO peripheral. This node may be specified twice, one for each GPIO. + + properties: + compatible: + const: qcom,pm8008-gpio + + reg: + description: Peripheral address of one of the two GPIO peripherals. + maxItems: 1 + + gpio-controller: true + + interrupt-controller: true + + "#address-cells": + const: 2 + + "#gpio-cells": + const: 2 + + required: + - compatible + - reg + - gpio-controller + - interrupt-controller + - "#gpio-cells" + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - "#address-cells" + - "#size-cells" + - "#interrupt-cells" + +additionalProperties: false + +examples: + - | + #include + #include + qupv3_se13_i2c { + #address-cells = <1>; + #size-cells = <0>; + pm8008i@8 { + compatible = "qcom,mfd-pm8008"; + reg = <0x8>; + #address-cells = <1>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <2>; + + interrupt-parent = <&tlmm>; + interrupts = <32 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "pm8008"; + + pinctrl@c000 { + compatible = "qcom,pm8008-gpio"; + reg = <0xc000>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + }; + +... -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project