xref: /freebsd/sys/contrib/device-tree/Bindings/power/reset/qcom,pon.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotQualcomm PON Device
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThe Power On device for Qualcomm PM8xxx is MFD supporting pwrkey
4*c66ec88fSEmmanuel Vadotand resin along with the Android reboot-mode.
5*c66ec88fSEmmanuel Vadot
6*c66ec88fSEmmanuel VadotThis DT node has pwrkey and resin as sub nodes.
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel VadotRequired Properties:
9*c66ec88fSEmmanuel Vadot-compatible: Must be one of:
10*c66ec88fSEmmanuel Vadot	"qcom,pm8916-pon"
11*c66ec88fSEmmanuel Vadot	"qcom,pms405-pon"
12*c66ec88fSEmmanuel Vadot	"qcom,pm8998-pon"
13*c66ec88fSEmmanuel Vadot
14*c66ec88fSEmmanuel Vadot-reg: Specifies the physical address of the pon register
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel VadotOptional subnode:
17*c66ec88fSEmmanuel Vadot-pwrkey: Specifies the subnode pwrkey and should follow the
18*c66ec88fSEmmanuel Vadot qcom,pm8941-pwrkey.txt description.
19*c66ec88fSEmmanuel Vadot-resin: Specifies the subnode resin and should follow the
20*c66ec88fSEmmanuel Vadot qcom,pm8xxx-pwrkey.txt description.
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel VadotThe rest of the properties should follow the generic reboot-mode description
23*c66ec88fSEmmanuel Vadotfound in reboot-mode.txt
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel VadotExample:
26*c66ec88fSEmmanuel Vadot
27*c66ec88fSEmmanuel Vadot	pon@800 {
28*c66ec88fSEmmanuel Vadot		compatible = "qcom,pm8916-pon";
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel Vadot		reg = <0x800>;
31*c66ec88fSEmmanuel Vadot		mode-bootloader = <0x2>;
32*c66ec88fSEmmanuel Vadot		mode-recovery = <0x1>;
33*c66ec88fSEmmanuel Vadot
34*c66ec88fSEmmanuel Vadot		pwrkey {
35*c66ec88fSEmmanuel Vadot			compatible = "qcom,pm8941-pwrkey";
36*c66ec88fSEmmanuel Vadot			interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
37*c66ec88fSEmmanuel Vadot			debounce = <15625>;
38*c66ec88fSEmmanuel Vadot			bias-pull-up;
39*c66ec88fSEmmanuel Vadot			linux,code = <KEY_POWER>;
40*c66ec88fSEmmanuel Vadot		};
41*c66ec88fSEmmanuel Vadot
42*c66ec88fSEmmanuel Vadot		resin {
43*c66ec88fSEmmanuel Vadot			compatible = "qcom,pm8941-resin";
44*c66ec88fSEmmanuel Vadot			interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
45*c66ec88fSEmmanuel Vadot			debounce = <15625>;
46*c66ec88fSEmmanuel Vadot			bias-pull-up;
47*c66ec88fSEmmanuel Vadot			linux,code = <KEY_VOLUMEDOWN>;
48*c66ec88fSEmmanuel Vadot		};
49*c66ec88fSEmmanuel Vadot	};
50