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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/sound/qcom,pm8916-wcd-analog-codec.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 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/sound/qcom,pm8916-wcd-analog-codec.yaml (Architecture i386) and /Documentation/devicetree/bindings/sound/qcom,pm8916-wcd-analog-codec.yaml (Architecture m68k)


  1 # SPDX-License-Identifier: GPL-2.0-only OR BSD      1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/sound/qcom,      4 $id: http://devicetree.org/schemas/sound/qcom,pm8916-wcd-analog-codec.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Qualcomm PM8916 WCD Analog Audio Codec       7 title: Qualcomm PM8916 WCD Analog Audio Codec
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Konrad Dybcio <konradybcio@kernel.org>          10   - Konrad Dybcio <konradybcio@kernel.org>
 11                                                    11 
 12 description:                                       12 description:
 13   The analog WCD audio codec found on Qualcomm     13   The analog WCD audio codec found on Qualcomm PM8916 PMIC.
 14                                                    14 
 15 properties:                                        15 properties:
 16   compatible:                                      16   compatible:
 17     const: qcom,pm8916-wcd-analog-codec            17     const: qcom,pm8916-wcd-analog-codec
 18                                                    18 
 19   reg:                                             19   reg:
 20     maxItems: 1                                    20     maxItems: 1
 21                                                    21 
 22   interrupts:                                      22   interrupts:
 23     maxItems: 14                                   23     maxItems: 14
 24                                                    24 
 25   interrupt-names:                                 25   interrupt-names:
 26     items:                                         26     items:
 27       - const: cdc_spk_cnp_int                     27       - const: cdc_spk_cnp_int
 28       - const: cdc_spk_clip_int                    28       - const: cdc_spk_clip_int
 29       - const: cdc_spk_ocp_int                     29       - const: cdc_spk_ocp_int
 30       - const: mbhc_ins_rem_det1                   30       - const: mbhc_ins_rem_det1
 31       - const: mbhc_but_rel_det                    31       - const: mbhc_but_rel_det
 32       - const: mbhc_but_press_det                  32       - const: mbhc_but_press_det
 33       - const: mbhc_ins_rem_det                    33       - const: mbhc_ins_rem_det
 34       - const: mbhc_switch_int                     34       - const: mbhc_switch_int
 35       - const: cdc_ear_ocp_int                     35       - const: cdc_ear_ocp_int
 36       - const: cdc_hphr_ocp_int                    36       - const: cdc_hphr_ocp_int
 37       - const: cdc_hphl_ocp_det                    37       - const: cdc_hphl_ocp_det
 38       - const: cdc_ear_cnp_int                     38       - const: cdc_ear_cnp_int
 39       - const: cdc_hphr_cnp_int                    39       - const: cdc_hphr_cnp_int
 40       - const: cdc_hphl_cnp_int                    40       - const: cdc_hphl_cnp_int
 41                                                    41 
 42   vdd-cdc-io-supply:                               42   vdd-cdc-io-supply:
 43     description: 1.8V buck supply                  43     description: 1.8V buck supply
 44                                                    44 
 45   vdd-cdc-tx-rx-cx-supply:                         45   vdd-cdc-tx-rx-cx-supply:
 46     description: 1.8V SIDO buck supply             46     description: 1.8V SIDO buck supply
 47                                                    47 
 48   vdd-micbias-supply:                              48   vdd-micbias-supply:
 49     description: micbias supply                    49     description: micbias supply
 50                                                    50 
 51   qcom,mbhc-vthreshold-low:                        51   qcom,mbhc-vthreshold-low:
 52     $ref: /schemas/types.yaml#/definitions/uin     52     $ref: /schemas/types.yaml#/definitions/uint32-array
 53     description:                                   53     description:
 54       Array of 5 threshold voltages in mV for      54       Array of 5 threshold voltages in mV for 5-button detection on
 55       headset when MBHC is powered by an inter     55       headset when MBHC is powered by an internal current source.
 56     minItems: 5                                    56     minItems: 5
 57     maxItems: 5                                    57     maxItems: 5
 58                                                    58 
 59   qcom,mbhc-vthreshold-high:                       59   qcom,mbhc-vthreshold-high:
 60     $ref: /schemas/types.yaml#/definitions/uin     60     $ref: /schemas/types.yaml#/definitions/uint32-array
 61     description:                                   61     description:
 62       Array of 5 threshold voltages in mV for      62       Array of 5 threshold voltages in mV for 5-button detection on
 63       headset when MBHC is powered from micbia     63       headset when MBHC is powered from micbias.
 64     minItems: 5                                    64     minItems: 5
 65     maxItems: 5                                    65     maxItems: 5
 66                                                    66 
 67   qcom,micbias-lvl:                                67   qcom,micbias-lvl:
 68     $ref: /schemas/types.yaml#/definitions/uin     68     $ref: /schemas/types.yaml#/definitions/uint32
 69     description:                                   69     description:
 70       Voltage (mV) for Mic Bias                    70       Voltage (mV) for Mic Bias
 71                                                    71 
 72   qcom,hphl-jack-type-normally-open:               72   qcom,hphl-jack-type-normally-open:
 73     type: boolean                                  73     type: boolean
 74     description:                                   74     description:
 75       True if the HPHL pin on the jack is NO (     75       True if the HPHL pin on the jack is NO (Normally Open), false if it's
 76       NC (Normally Closed).                        76       NC (Normally Closed).
 77                                                    77 
 78   qcom,gnd-jack-type-normally-open:                78   qcom,gnd-jack-type-normally-open:
 79     type: boolean                                  79     type: boolean
 80     description:                                   80     description:
 81       True if the GND pin on the jack is NO (N     81       True if the GND pin on the jack is NO (Normally Open), false if it's
 82       NC (Normally Closed).                        82       NC (Normally Closed).
 83                                                    83 
 84   qcom,micbias1-ext-cap:                           84   qcom,micbias1-ext-cap:
 85     type: boolean                                  85     type: boolean
 86     description:                                   86     description:
 87       True if micbias1 has an external capacit     87       True if micbias1 has an external capacitor.
 88                                                    88 
 89   qcom,micbias2-ext-cap:                           89   qcom,micbias2-ext-cap:
 90     type: boolean                                  90     type: boolean
 91     description:                                   91     description:
 92       True if micbias2 has an external capacit     92       True if micbias2 has an external capacitor.
 93                                                    93 
 94   "#sound-dai-cells":                              94   "#sound-dai-cells":
 95     const: 1                                       95     const: 1
 96                                                    96 
 97 required:                                          97 required:
 98   - compatible                                     98   - compatible
 99   - reg                                            99   - reg
100                                                   100 
101 additionalProperties: false                       101 additionalProperties: false
102                                                   102 
103 examples:                                         103 examples:
104   - |                                             104   - |
105     #include <dt-bindings/interrupt-controller    105     #include <dt-bindings/interrupt-controller/irq.h>
106     #include <dt-bindings/spmi/spmi.h>            106     #include <dt-bindings/spmi/spmi.h>
107                                                   107 
108     pmic@1 {                                      108     pmic@1 {
109       compatible = "qcom,pm8916", "qcom,spmi-p    109       compatible = "qcom,pm8916", "qcom,spmi-pmic";
110       reg = <0x1 SPMI_USID>;                      110       reg = <0x1 SPMI_USID>;
111       #address-cells = <1>;                       111       #address-cells = <1>;
112       #size-cells = <0>;                          112       #size-cells = <0>;
113                                                   113 
114       audio-codec@f000 {                          114       audio-codec@f000 {
115         compatible = "qcom,pm8916-wcd-analog-c    115         compatible = "qcom,pm8916-wcd-analog-codec";
116         reg = <0xf000>;                           116         reg = <0xf000>;
117         qcom,mbhc-vthreshold-low = <75 150 237    117         qcom,mbhc-vthreshold-low = <75 150 237 450 500>;
118         qcom,mbhc-vthreshold-high = <75 150 23    118         qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
119         interrupt-parent = <&spmi_bus>;           119         interrupt-parent = <&spmi_bus>;
120         interrupts = <0x1 0xf0 0x0 IRQ_TYPE_NO    120         interrupts = <0x1 0xf0 0x0 IRQ_TYPE_NONE>,
121               <0x1 0xf0 0x1 IRQ_TYPE_NONE>,       121               <0x1 0xf0 0x1 IRQ_TYPE_NONE>,
122               <0x1 0xf0 0x2 IRQ_TYPE_NONE>,       122               <0x1 0xf0 0x2 IRQ_TYPE_NONE>,
123               <0x1 0xf0 0x3 IRQ_TYPE_NONE>,       123               <0x1 0xf0 0x3 IRQ_TYPE_NONE>,
124               <0x1 0xf0 0x4 IRQ_TYPE_NONE>,       124               <0x1 0xf0 0x4 IRQ_TYPE_NONE>,
125               <0x1 0xf0 0x5 IRQ_TYPE_NONE>,       125               <0x1 0xf0 0x5 IRQ_TYPE_NONE>,
126               <0x1 0xf0 0x6 IRQ_TYPE_NONE>,       126               <0x1 0xf0 0x6 IRQ_TYPE_NONE>,
127               <0x1 0xf0 0x7 IRQ_TYPE_NONE>,       127               <0x1 0xf0 0x7 IRQ_TYPE_NONE>,
128               <0x1 0xf1 0x0 IRQ_TYPE_NONE>,       128               <0x1 0xf1 0x0 IRQ_TYPE_NONE>,
129               <0x1 0xf1 0x1 IRQ_TYPE_NONE>,       129               <0x1 0xf1 0x1 IRQ_TYPE_NONE>,
130               <0x1 0xf1 0x2 IRQ_TYPE_NONE>,       130               <0x1 0xf1 0x2 IRQ_TYPE_NONE>,
131               <0x1 0xf1 0x3 IRQ_TYPE_NONE>,       131               <0x1 0xf1 0x3 IRQ_TYPE_NONE>,
132               <0x1 0xf1 0x4 IRQ_TYPE_NONE>,       132               <0x1 0xf1 0x4 IRQ_TYPE_NONE>,
133               <0x1 0xf1 0x5 IRQ_TYPE_NONE>;       133               <0x1 0xf1 0x5 IRQ_TYPE_NONE>;
134         interrupt-names = "cdc_spk_cnp_int",      134         interrupt-names = "cdc_spk_cnp_int",
135                           "cdc_spk_clip_int",     135                           "cdc_spk_clip_int",
136                           "cdc_spk_ocp_int",      136                           "cdc_spk_ocp_int",
137                           "mbhc_ins_rem_det1",    137                           "mbhc_ins_rem_det1",
138                           "mbhc_but_rel_det",     138                           "mbhc_but_rel_det",
139                           "mbhc_but_press_det"    139                           "mbhc_but_press_det",
140                           "mbhc_ins_rem_det",     140                           "mbhc_ins_rem_det",
141                           "mbhc_switch_int",      141                           "mbhc_switch_int",
142                           "cdc_ear_ocp_int",      142                           "cdc_ear_ocp_int",
143                           "cdc_hphr_ocp_int",     143                           "cdc_hphr_ocp_int",
144                           "cdc_hphl_ocp_det",     144                           "cdc_hphl_ocp_det",
145                           "cdc_ear_cnp_int",      145                           "cdc_ear_cnp_int",
146                           "cdc_hphr_cnp_int",     146                           "cdc_hphr_cnp_int",
147                           "cdc_hphl_cnp_int";     147                           "cdc_hphl_cnp_int";
148         vdd-cdc-io-supply = <&pm8916_l5>;         148         vdd-cdc-io-supply = <&pm8916_l5>;
149         vdd-cdc-tx-rx-cx-supply = <&pm8916_l5>    149         vdd-cdc-tx-rx-cx-supply = <&pm8916_l5>;
150         vdd-micbias-supply = <&pm8916_l13>;       150         vdd-micbias-supply = <&pm8916_l13>;
151         #sound-dai-cells = <1>;                   151         #sound-dai-cells = <1>;
152       };                                          152       };
153     };                                            153     };
                                                      

~ [ 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