Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/sys/contrib/device-tree/Bindings/extcon/qcom,pm8941-misc.txt
48375 views
1
Qualcomm's PM8941 USB ID Extcon device
2
3
Some Qualcomm PMICs have a "misc" module that can be used to detect when
4
the USB ID pin has been pulled low or high.
5
6
PROPERTIES
7
8
- compatible:
9
Usage: required
10
Value type: <string>
11
Definition: Should contain "qcom,pm8941-misc";
12
13
- reg:
14
Usage: required
15
Value type: <u32>
16
Definition: Should contain the offset to the misc address space
17
18
- interrupts:
19
Usage: required
20
Value type: <prop-encoded-array>
21
Definition: Should contain the usb id interrupt
22
23
- interrupt-names:
24
Usage: required
25
Value type: <stringlist>
26
Definition: Should contain the string "usb_id" for the usb id interrupt
27
28
Example:
29
30
pmic {
31
usb_id: misc@900 {
32
compatible = "qcom,pm8941-misc";
33
reg = <0x900>;
34
interrupts = <0x0 0x9 0 IRQ_TYPE_EDGE_BOTH>;
35
interrupt-names = "usb_id";
36
};
37
}
38
39
usb-controller {
40
extcon = <&usb_id>;
41
};
42
43