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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/sound/samsung,midas-audio.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/samsung,midas-audio.yaml (Architecture i386) and /Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml (Architecture ppc)


  1 # SPDX-License-Identifier: (GPL-2.0-only OR BS      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/samsu      4 $id: http://devicetree.org/schemas/sound/samsung,midas-audio.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Samsung Midas audio complex with WM1811      7 title: Samsung Midas audio complex with WM1811 codec
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Sylwester Nawrocki <s.nawrocki@samsung.com>     10   - Sylwester Nawrocki <s.nawrocki@samsung.com>
 11                                                    11 
 12 allOf:                                             12 allOf:
 13   - $ref: sound-card-common.yaml#                  13   - $ref: sound-card-common.yaml#
 14                                                    14 
 15 properties:                                        15 properties:
 16   compatible:                                      16   compatible:
 17     const: samsung,midas-audio                     17     const: samsung,midas-audio
 18                                                    18 
 19   cpu:                                             19   cpu:
 20     type: object                                   20     type: object
 21     additionalProperties: false                    21     additionalProperties: false
 22     properties:                                    22     properties:
 23       sound-dai:                                   23       sound-dai:
 24         maxItems: 1                                24         maxItems: 1
 25         description: phandle to the I2S contro     25         description: phandle to the I2S controller
 26     required:                                      26     required:
 27       - sound-dai                                  27       - sound-dai
 28                                                    28 
 29   codec:                                           29   codec:
 30     type: object                                   30     type: object
 31     additionalProperties: false                    31     additionalProperties: false
 32     properties:                                    32     properties:
 33       sound-dai:                                   33       sound-dai:
 34         maxItems: 1                                34         maxItems: 1
 35         description: phandle to the WM1811 COD     35         description: phandle to the WM1811 CODEC
 36     required:                                      36     required:
 37       - sound-dai                                  37       - sound-dai
 38                                                    38 
 39   samsung,audio-routing:                           39   samsung,audio-routing:
 40     deprecated: true                               40     deprecated: true
 41     $ref: /schemas/types.yaml#/definitions/non     41     $ref: /schemas/types.yaml#/definitions/non-unique-string-array
 42     description: |                                 42     description: |
 43       List of the connections between audio co     43       List of the connections between audio components; each entry is
 44       a pair of strings, the first being the c     44       a pair of strings, the first being the connection's sink, the second
 45       being the connection's source; valid nam     45       being the connection's source; valid names for sources and sinks are
 46       the WM1811's pins (as documented in its      46       the WM1811's pins (as documented in its binding), and the jacks
 47       on the board: HP, SPK, Main Mic, Sub Mic     47       on the board: HP, SPK, Main Mic, Sub Mic, Headset Mic.
 48       Deprecated, use audio-routing.               48       Deprecated, use audio-routing.
 49                                                    49 
 50   mic-bias-supply:                                 50   mic-bias-supply:
 51     description: Supply for the micbias on the     51     description: Supply for the micbias on the Main microphone
 52                                                    52 
 53   submic-bias-supply:                              53   submic-bias-supply:
 54     description: Supply for the micbias on the     54     description: Supply for the micbias on the Sub microphone
 55                                                    55 
 56   headset-mic-bias-supply:                         56   headset-mic-bias-supply:
 57     description: Supply for the micbias on the     57     description: Supply for the micbias on the Headset microphone
 58                                                    58 
 59   fm-sel-gpios:                                    59   fm-sel-gpios:
 60     maxItems: 1                                    60     maxItems: 1
 61     description: GPIO pin for FM selection         61     description: GPIO pin for FM selection
 62                                                    62 
 63   lineout-sel-gpios:                               63   lineout-sel-gpios:
 64     maxItems: 1                                    64     maxItems: 1
 65     description: GPIO pin for line out selecti     65     description: GPIO pin for line out selection
 66                                                    66 
 67   headset-detect-gpios:                            67   headset-detect-gpios:
 68     maxItems: 1                                    68     maxItems: 1
 69     description: GPIO for detection of headset     69     description: GPIO for detection of headset insertion
 70                                                    70 
 71   headset-key-gpios:                               71   headset-key-gpios:
 72     maxItems: 1                                    72     maxItems: 1
 73     description: GPIO for detection of headset     73     description: GPIO for detection of headset key press
 74                                                    74 
 75   io-channels:                                     75   io-channels:
 76     maxItems: 1                                    76     maxItems: 1
 77     description: IO channel to read micbias vo     77     description: IO channel to read micbias voltage for headset detection
 78                                                    78 
 79   io-channel-names:                                79   io-channel-names:
 80     const: headset-detect                          80     const: headset-detect
 81                                                    81 
 82   samsung,headset-4pole-threshold-microvolt:       82   samsung,headset-4pole-threshold-microvolt:
 83     minItems: 2                                    83     minItems: 2
 84     maxItems: 2                                    84     maxItems: 2
 85     description:                                   85     description:
 86       Array containing minimum and maximum IO      86       Array containing minimum and maximum IO channel value for 4-pole
 87       (with microphone/button) headsets. If th     87       (with microphone/button) headsets. If the IO channel value is
 88       outside of this range, a 3-pole headset      88       outside of this range, a 3-pole headset is assumed.
 89                                                    89 
 90   samsung,headset-button-threshold-microvolt:      90   samsung,headset-button-threshold-microvolt:
 91     minItems: 3                                    91     minItems: 3
 92     maxItems: 3                                    92     maxItems: 3
 93     description: |                                 93     description: |
 94       Array of minimum (inclusive) IO channel      94       Array of minimum (inclusive) IO channel values for headset button
 95       detection, in order: "Media", "Volume Up     95       detection, in order: "Media", "Volume Up" and "Volume Down".
 96                                                    96 
 97 required:                                          97 required:
 98   - compatible                                     98   - compatible
 99   - cpu                                            99   - cpu
100   - codec                                         100   - codec
101   - audio-routing                                 101   - audio-routing
102   - mic-bias-supply                               102   - mic-bias-supply
103   - submic-bias-supply                            103   - submic-bias-supply
104                                                   104 
105 unevaluatedProperties: false                      105 unevaluatedProperties: false
106                                                   106 
107 examples:                                         107 examples:
108   - |                                             108   - |
109     #include <dt-bindings/gpio/gpio.h>            109     #include <dt-bindings/gpio/gpio.h>
110                                                   110 
111     sound {                                       111     sound {
112         compatible = "samsung,midas-audio";       112         compatible = "samsung,midas-audio";
113         model = "Midas";                          113         model = "Midas";
114                                                   114 
115         fm-sel-gpios = <&gpaa0 3 GPIO_ACTIVE_H    115         fm-sel-gpios = <&gpaa0 3 GPIO_ACTIVE_HIGH>;
116                                                   116 
117         mic-bias-supply = <&mic_bias_reg>;        117         mic-bias-supply = <&mic_bias_reg>;
118         submic-bias-supply = <&submic_bias_reg    118         submic-bias-supply = <&submic_bias_reg>;
119                                                   119 
120         audio-routing =                           120         audio-routing =
121                 "HP", "HPOUT1L",                  121                 "HP", "HPOUT1L",
122                 "HP", "HPOUT1R",                  122                 "HP", "HPOUT1R",
123                                                   123 
124                 "SPK", "SPKOUTLN",                124                 "SPK", "SPKOUTLN",
125                 "SPK", "SPKOUTLP",                125                 "SPK", "SPKOUTLP",
126                 "SPK", "SPKOUTRN",                126                 "SPK", "SPKOUTRN",
127                 "SPK", "SPKOUTRP",                127                 "SPK", "SPKOUTRP",
128                                                   128 
129                 "RCV", "HPOUT2N",                 129                 "RCV", "HPOUT2N",
130                 "RCV", "HPOUT2P",                 130                 "RCV", "HPOUT2P",
131                                                   131 
132                 "IN1LP", "Main Mic",              132                 "IN1LP", "Main Mic",
133                 "IN1LN", "Main Mic",              133                 "IN1LN", "Main Mic",
134                 "IN1RP", "Sub Mic",               134                 "IN1RP", "Sub Mic",
135                 "IN1LP", "Sub Mic";               135                 "IN1LP", "Sub Mic";
136                                                   136 
137         cpu {                                     137         cpu {
138             sound-dai = <&i2s0>;                  138             sound-dai = <&i2s0>;
139         };                                        139         };
140                                                   140 
141         codec {                                   141         codec {
142             sound-dai = <&wm1811>;                142             sound-dai = <&wm1811>;
143         };                                        143         };
144                                                   144 
145     };                                            145     };
                                                      

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