diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2015-12-14 10:37:13 +0000 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2015-12-15 09:57:52 +0900 |
commit | 36e2693b68562d4b984b841c041ffa76370e9b7f (patch) | |
tree | a5db24987a09b1b99b052cec1fced18e107cb486 /Documentation/devicetree/bindings/extcon | |
parent | cb0eac8fd1a3180ce260a8dca01584bc5495a8e8 (diff) | |
download | blackbird-op-linux-36e2693b68562d4b984b841c041ffa76370e9b7f.tar.gz blackbird-op-linux-36e2693b68562d4b984b841c041ffa76370e9b7f.zip |
extcon: arizona: Add DT binding examples
Add an example for all elements of the Arizona extcon device tree
binding.
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'Documentation/devicetree/bindings/extcon')
-rw-r--r-- | Documentation/devicetree/bindings/extcon/extcon-arizona.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/extcon/extcon-arizona.txt b/Documentation/devicetree/bindings/extcon/extcon-arizona.txt index fd9b898d2d7d..e27341f8a4c7 100644 --- a/Documentation/devicetree/bindings/extcon/extcon-arizona.txt +++ b/Documentation/devicetree/bindings/extcon/extcon-arizona.txt @@ -47,3 +47,29 @@ Optional properties: The third cell represents the value of the micd-pol-gpio pin. - wlf,gpsw : Settings for the general purpose switch + +Example: + +codec: wm8280@0 { + compatible = "wlf,wm8280"; + reg = <0>; + ... + + wlf,use-jd2; + wlf,use-jd2-nopull; + wlf,jd-invert; + + wlf,micd-software-compare; + wlf,micd-detect-debounce = <0>; + wlf,micd-pol-gpio = <&codec 2 0>; + wlf,micd-rate = <ARIZONA_MICD_TIME_8MS>; + wlf,micd-dbtime = <4>; + wlf,micd-timeout-ms = <100>; + wlf,micd-force-micbias; + wlf,micd-configs = < + 0 1 0 /* MICDET1 MICBIAS1 GPIO=low */ + 1 2 1 /* MICDET2 MICBIAS2 GPIO=high */ + >; + + wlf,gpsw = <0>; +}; |