~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/mfd/qcom,pm8008.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Qualcomm Technologies, Inc. PM8008 PMIC
  8 
  9 maintainers:
 10   - Guru Das Srinagesh <quic_gurus@quicinc.com>
 11 
 12 description: |
 13   Qualcomm Technologies, Inc. PM8008 is a dedicated camera PMIC that integrates
 14   all the necessary power management, housekeeping, and interface support
 15   functions into a single IC.
 16 
 17 properties:
 18   compatible:
 19     const: qcom,pm8008
 20 
 21   reg:
 22     maxItems: 1
 23 
 24   interrupts:
 25     maxItems: 1
 26 
 27   reset-gpios:
 28     maxItems: 1
 29 
 30   vdd-l1-l2-supply: true
 31   vdd-l3-l4-supply: true
 32   vdd-l5-supply: true
 33   vdd-l6-supply: true
 34   vdd-l7-supply: true
 35 
 36   gpio-controller: true
 37 
 38   "#gpio-cells":
 39     const: 2
 40 
 41   gpio-ranges:
 42     maxItems: 1
 43 
 44   interrupt-controller: true
 45 
 46   "#interrupt-cells":
 47     const: 2
 48 
 49   "#thermal-sensor-cells":
 50     const: 0
 51 
 52   pinctrl:
 53     type: object
 54     additionalProperties: false
 55     patternProperties:
 56       "-state$":
 57         type: object
 58 
 59         allOf:
 60           - $ref: /schemas/pinctrl/pinmux-node.yaml
 61           - $ref: /schemas/pinctrl/pincfg-node.yaml
 62 
 63         properties:
 64           pins:
 65             items:
 66               pattern: "^gpio[12]$"
 67 
 68           function:
 69             items:
 70               - enum:
 71                   - normal
 72 
 73         required:
 74           - pins
 75           - function
 76 
 77         additionalProperties: false
 78 
 79   regulators:
 80     type: object
 81     additionalProperties: false
 82     patternProperties:
 83       "^ldo[1-7]$":
 84         type: object
 85         $ref: /schemas/regulator/regulator.yaml#
 86         unevaluatedProperties: false
 87 
 88 required:
 89   - compatible
 90   - reg
 91   - interrupts
 92   - vdd-l1-l2-supply
 93   - vdd-l3-l4-supply
 94   - vdd-l5-supply
 95   - vdd-l6-supply
 96   - vdd-l7-supply
 97   - gpio-controller
 98   - "#gpio-cells"
 99   - gpio-ranges
100   - interrupt-controller
101   - "#interrupt-cells"
102   - "#thermal-sensor-cells"
103 
104 additionalProperties: false
105 
106 examples:
107   - |
108     #include <dt-bindings/gpio/gpio.h>
109     #include <dt-bindings/interrupt-controller/irq.h>
110 
111     i2c {
112       #address-cells = <1>;
113       #size-cells = <0>;
114 
115       pm8008: pmic@8 {
116         compatible = "qcom,pm8008";
117         reg = <0x8>;
118 
119         interrupt-parent = <&tlmm>;
120         interrupts = <32 IRQ_TYPE_EDGE_RISING>;
121 
122         reset-gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
123 
124         vdd-l1-l2-supply = <&vreg_s8b_1p2>;
125         vdd-l3-l4-supply = <&vreg_s1b_1p8>;
126         vdd-l5-supply = <&vreg_bob>;
127         vdd-l6-supply = <&vreg_bob>;
128         vdd-l7-supply = <&vreg_bob>;
129 
130         gpio-controller;
131         #gpio-cells = <2>;
132         gpio-ranges = <&pm8008 0 0 2>;
133 
134         interrupt-controller;
135         #interrupt-cells = <2>;
136 
137         #thermal-sensor-cells = <0>;
138 
139         pinctrl {
140           gpio-keys-state {
141             pins = "gpio1";
142             function = "normal";
143           };
144         };
145 
146         regulators {
147           ldo1 {
148             regulator-name = "vreg_l1";
149             regulator-min-microvolt = <950000>;
150             regulator-max-microvolt = <1300000>;
151           };
152         };
153       };
154     };
155 
156 ...

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php