|
| 1 | +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 | +%YAML 1.2 |
| 3 | +--- |
| 4 | +$id: http://devicetree.org/schemas/power/reset/qcom,pon.yaml# |
| 5 | +$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | + |
| 7 | +title: Qualcomm PON Device |
| 8 | + |
| 9 | +maintainers: |
| 10 | + |
| 11 | + |
| 12 | +description: | |
| 13 | + The Power On device for Qualcomm PM8xxx is MFD supporting pwrkey |
| 14 | + and resin along with the Android reboot-mode. |
| 15 | +
|
| 16 | + This DT node has pwrkey and resin as sub nodes. |
| 17 | +
|
| 18 | +allOf: |
| 19 | + - $ref: reboot-mode.yaml# |
| 20 | + |
| 21 | +properties: |
| 22 | + compatible: |
| 23 | + enum: |
| 24 | + - qcom,pm8916-pon |
| 25 | + - qcom,pms405-pon |
| 26 | + - qcom,pm8998-pon |
| 27 | + |
| 28 | + reg: |
| 29 | + maxItems: 1 |
| 30 | + |
| 31 | + pwrkey: |
| 32 | + type: object |
| 33 | + $ref: "../../input/qcom,pm8941-pwrkey.yaml#" |
| 34 | + |
| 35 | + resin: |
| 36 | + type: object |
| 37 | + $ref: "../../input/qcom,pm8941-pwrkey.yaml#" |
| 38 | + |
| 39 | +required: |
| 40 | + - compatible |
| 41 | + - reg |
| 42 | + |
| 43 | +unevaluatedProperties: false |
| 44 | + |
| 45 | +examples: |
| 46 | + - | |
| 47 | + #include <dt-bindings/interrupt-controller/irq.h> |
| 48 | + #include <dt-bindings/input/linux-event-codes.h> |
| 49 | + #include <dt-bindings/spmi/spmi.h> |
| 50 | + spmi_bus: spmi@c440000 { |
| 51 | + reg = <0x0c440000 0x1100>; |
| 52 | + #address-cells = <2>; |
| 53 | + #size-cells = <0>; |
| 54 | + pmk8350: pmic@0 { |
| 55 | + reg = <0x0 SPMI_USID>; |
| 56 | + #address-cells = <1>; |
| 57 | + #size-cells = <0>; |
| 58 | + pmk8350_pon: pon_hlos@1300 { |
| 59 | + reg = <0x1300>; |
| 60 | + compatible = "qcom,pm8998-pon"; |
| 61 | +
|
| 62 | + pwrkey { |
| 63 | + compatible = "qcom,pm8941-pwrkey"; |
| 64 | + interrupts = < 0x0 0x8 0 IRQ_TYPE_EDGE_BOTH >; |
| 65 | + debounce = <15625>; |
| 66 | + bias-pull-up; |
| 67 | + linux,code = <KEY_POWER>; |
| 68 | + }; |
| 69 | +
|
| 70 | + resin { |
| 71 | + compatible = "qcom,pm8941-resin"; |
| 72 | + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; |
| 73 | + debounce = <15625>; |
| 74 | + bias-pull-up; |
| 75 | + linux,code = <KEY_VOLUMEDOWN>; |
| 76 | + }; |
| 77 | + }; |
| 78 | + }; |
| 79 | + }; |
| 80 | +... |
0 commit comments