Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2577052pxb; Tue, 13 Apr 2021 05:28:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzs08mRI2esSBXvm53Z8NMxClC+Mzgrlq6f1SCjdswLAS6YedzrOOBOOUbH1iU5OfjG1uiX X-Received: by 2002:a17:906:6d48:: with SMTP id a8mr12939631ejt.92.1618316887349; Tue, 13 Apr 2021 05:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618316887; cv=none; d=google.com; s=arc-20160816; b=TQ9IwV4UVkUlNWY99U0IMxGX9DkJuE09UkaId1SHvIUwZUkuL1vO4a2W4HuB7ciJO0 WDgW0+fO2ztB6jXjHRuTSy5/YmM+BosICLVv9Xuwat2TCmwKVgau219lAt6LLKL0AuSI BPkB5Z/SKgfLakkxpcAAl2kpnJ6ApjNtsqV12iFM1Ru2NGOJcAAJIylWd/m/+u7aS902 fQ4TXcvp/DshFNZjGY12/ytr9CDAf4yxBlopdMKU2ibEwrUnbBDaw/3cSJZ33GticYvE r8wXvbC+2G3rkkTu58UjoIQt85MVLe8NA/TNYAuCBScAHcIYaCJEs2RUjiZt9V07MkHb wa6Q== 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=0QoQh9FEHAgypSKb+25iHJnIuEM7mzAZgqtQRxX66N0=; b=WTpo1QXio3VwW39mmH5uoC9lH+3WJy12xbRW2yGH3V4tRu/d7tRgAtKmYbzUmErqLn LEgwijML7elj/NGvYX1tbUoOKtE4jXwGMht5WvdSv6fdbCUjTYncIxSmVFps7MWdWP2Q iKh+TNf+XqxvVzu63Lje3pc/+SSa9t3IKED51YFZoOUhBOToKzQw/b2b9+Z2m4uFOatw kWFTcZtRwe7JkPW1+kQIjzW49xCeUE/y5gJnquFq0B0+mchb6d1Cn8IAS3Hi3x55pTWw bltkMMtbRgb4OfQ/zZ80wqFnTtOJXXzLLj6esr1cu9a+FsUTOzz/UKXFEXgASrWH6T70 diFw== 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 s25si9039166eju.111.2021.04.13.05.27.43; Tue, 13 Apr 2021 05:28:07 -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 S241309AbhDMCAw (ORCPT + 99 others); Mon, 12 Apr 2021 22:00:52 -0400 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:1890 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240307AbhDMCAt (ORCPT ); Mon, 12 Apr 2021 22:00:49 -0400 Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-02.qualcomm.com with ESMTP; 12 Apr 2021 19:00:30 -0700 X-QCInternal: smtphost Received: from gurus-linux.qualcomm.com (HELO gurus-linux.localdomain) ([10.46.162.81]) by ironmsg05-sd.qualcomm.com with ESMTP; 12 Apr 2021 19:00:29 -0700 Received: by gurus-linux.localdomain (Postfix, from userid 383780) id 537B71B37; Mon, 12 Apr 2021 19:00:29 -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 v3 2/3] dt-bindings: mfd: pm8008: Add bindings Date: Mon, 12 Apr 2021 19:00:26 -0700 Message-Id: <3e126ba39cff60a66095911ceec08575dd658410.1618278453.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 bindings for the Qualcomm Technologies, Inc. PM8008 MFD driver. Signed-off-by: Guru Das Srinagesh --- .../devicetree/bindings/mfd/qcom,pm8008.yaml | 121 +++++++++++++++++++++ 1 file changed, 121 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..7799368 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml @@ -0,0 +1,121 @@ +# 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 + +patternProperties: + "^gpio@[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 + + "#interrupt-cells": + const: 2 + + "#gpio-cells": + const: 2 + + required: + - compatible + - reg + - gpio-controller + - interrupt-controller + - "#gpio-cells" + - "#interrupt-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,pm8008"; + reg = <0x8>; + #address-cells = <1>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <2>; + + interrupt-parent = <&tlmm>; + interrupts = <32 IRQ_TYPE_EDGE_RISING>; + + gpio@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