Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3050898pxj; Mon, 10 May 2021 17:29:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw803MXitQIehpI0vuyNE8v495KkihrpvsEhtxPYCJi2YcZKWT2uPJ1vmORyfjvRvzNDTN4 X-Received: by 2002:a92:c746:: with SMTP id y6mr24532045ilp.30.1620692956189; Mon, 10 May 2021 17:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620692956; cv=none; d=google.com; s=arc-20160816; b=FmTiRn2IUiC6kHHv/MsrklOhlhLZR2dWebYdtLB1FX3SXvHwo+BiuVOLcAmnVso2mP C1Rl8v53mEAosWkI9FUuk+rPFTmUCoSl+8U/OGeBdphxH0iIIUllDvos0V3heboQ/i1I aL4ZKpZQXrQrcEKd01K2OsENxfq1IY74UwXjX4OcO+99YX7/jHVB6XF9uxF/Ot/HrOqQ +CRTK6yWAQ4e7TSGiOd4Y3RY99KjxjxApAho+04bzeGSI+KECsQiT/X2xDqbw5cHPIAf 3sKaFLr7qxdBcOQ4Iiab+NJ5mtXooeqa3g7aFl7SAHJHcMu393HKvHGsfiFnYXqma7uj M+qg== 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=XfNCJS0J1R5pS7m2V6fiQfkPuO1DnqhnIItaA8kq/rn5E3TGzak/F0tTsICJd343T3 HFQ7ZuA3knB3MUNbyqe/vKqflzCsH4FdZRBMCyIxHjzjQx7mqTatUuPuhSH4s1oTC4Rh ws8EsojvsscIErQVONiDp63kxgktg2eCE0T5729cxofD4+aq7S+DzV73FZZiV4A65vZJ Sdm/e7WU2De6bLTFNU2GoilUEiQSW9MdAAIOnaoDv/ALon6nxdcI+TmLWsYyUVcxRkGQ a6GacCaWMXEwTznK/i22SiQFAHhdwNVRQICvLfSHEzrGEZj4jiat97ij6IpDPmg9cj/J fmtg== 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 c188si10448742iof.9.2021.05.10.17.29.03; Mon, 10 May 2021 17:29:16 -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 S231286AbhEKA2Z (ORCPT + 99 others); Mon, 10 May 2021 20:28:25 -0400 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:9537 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230436AbhEKA2Q (ORCPT ); Mon, 10 May 2021 20:28:16 -0400 Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-02.qualcomm.com with ESMTP; 10 May 2021 17:27:10 -0700 X-QCInternal: smtphost Received: from gurus-linux.qualcomm.com ([10.46.162.81]) by ironmsg03-sd.qualcomm.com with ESMTP; 10 May 2021 17:27:10 -0700 Received: by gurus-linux.qualcomm.com (Postfix, from userid 383780) id 423241F2B2; Mon, 10 May 2021 17:27:10 -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 v4 2/3] dt-bindings: mfd: pm8008: Add bindings Date: Mon, 10 May 2021 17:27:07 -0700 Message-Id: <1b252357a72afea20e620e0268bcb6ff1e55e8d2.1620690653.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