Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp51027pxb; Fri, 9 Apr 2021 17:57:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8u0TM0iTnvhxHrus4rT4Rvl5H8h46id/yxyFKb74wEUi0qsKxm79qEtT16UjpX4JaCp+D X-Received: by 2002:a17:906:fa07:: with SMTP id lo7mr2346175ejb.321.1618016228647; Fri, 09 Apr 2021 17:57:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618016228; cv=none; d=google.com; s=arc-20160816; b=ZiYb24Lx+GD7tPK7Pj/h3ZTFA4EN1hfeeh7+KnwGvLd0SXGc/9psBRkvL+hh1AegXA ccV2W2fVY6OUAjN6ZmVIm4x8MP6gg7aNJDUOxK5u5swZd1IjVxbE28VBCJgPy9VO64CF y1yEdKTFddRQan0eWt1IIdKImdqqurlhqVEOkB+xnQb2iIRnj0fPfJXydvpV5Ln8bsGR jCD7aH9lS9o5vgds5SxxpAlSKa9eZoW87IY92Dcao5SbkeHjtjRh9GMhKpMbOzzveY4M mHS/7Vwie7aliHZzImBDvjIivnnv50ezqljrjsZ+0+y2u3stioe+88GkKaR+gLYDlTjV g0wQ== 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=Bir0KIOl9KiHFRLQ2+OXAjmM30EH1QpHfCJpeEtPUpM=; b=ewv2UnD3RQYeFd/tkNBqi0ydM04lPmt2NawIlL60IVNRx0Xg7VhwMHLu3rvxqOGfJg EYgs375GWLrkbPzZnBsuvxYVZG4lt0C3CohMLXIfaPmCC6xP8K32PG+sSPVGMkxAINyj dB98UUqyZt3jy4TFoCx9kJmp0e8RdzdbAy0YWD2+uXXgFqwr9B6SWORIt+Q3OFzkt1iS g40mN6bArMyCiSbiQo43xPwr0A5YyUAnkxlnNBHRepsUv2QkCOmA14fNOPA7sMp+/R9w DG1YeLJF/Fk/Maw7ktZkMA+WxAGZrGxs4bGc5p6Y1ibQZsWAw6AycBijOm+u4rtzBnVq j+pA== 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 s22si3104643eds.598.2021.04.09.17.56.45; Fri, 09 Apr 2021 17:57:08 -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 S235390AbhDJAzk (ORCPT + 99 others); Fri, 9 Apr 2021 20:55:40 -0400 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:4438 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235358AbhDJAz2 (ORCPT ); Fri, 9 Apr 2021 20:55:28 -0400 Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-02.qualcomm.com with ESMTP; 09 Apr 2021 17:55:12 -0700 X-QCInternal: smtphost Received: from gurus-linux.qualcomm.com (HELO gurus-linux.localdomain) ([10.46.162.81]) by ironmsg03-sd.qualcomm.com with ESMTP; 09 Apr 2021 17:55:04 -0700 Received: by gurus-linux.localdomain (Postfix, from userid 383780) id E73931AAE; Fri, 9 Apr 2021 17:55:02 -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 v2 2/3] dt-bindings: mfd: pm8008: Add bindings Date: Fri, 9 Apr 2021 17:55:01 -0700 Message-Id: <787cb004e6e7db766f68cb7ace9028c37085088a.1618015804.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 | 119 +++++++++++++++++++++ 1 file changed, 119 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..0cafa98 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml @@ -0,0 +1,119 @@ +# 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: + "^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 + + "#interrupt-cells": + const: 2 + + "#gpio-cells": + const: 2 + + required: + - compatible + - reg + - gpio-controller + - interrupt-controller + - "#gpio-cells" + - "#interrupt-cells" + +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>; + + 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