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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/sound/realtek,rt5677.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 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/sound/realtek,rt5677.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: RT5677 audio CODEC
  8 
  9 maintainers:
 10   - Animesh Agarwal <animeshagarwal28@gmail.com>
 11 
 12 description: |
 13   This device supports I2C only.
 14 
 15   Pins on the device (for linking into audio routes):
 16     * IN1P
 17     * IN1N
 18     * IN2P
 19     * IN2N
 20     * MICBIAS1
 21     * DMIC1
 22     * DMIC2
 23     * DMIC3
 24     * DMIC4
 25     * LOUT1
 26     * LOUT2
 27     * LOUT3
 28 
 29 allOf:
 30   - $ref: dai-common.yaml#
 31 
 32 properties:
 33   compatible:
 34     const: realtek,rt5677
 35 
 36   reg:
 37     maxItems: 1
 38 
 39   interrupts:
 40     maxItems: 1
 41 
 42   gpio-controller: true
 43 
 44   '#gpio-cells':
 45     const: 2
 46 
 47   realtek,pow-ldo2-gpio:
 48     maxItems: 1
 49     description: CODEC's POW_LDO2 pin.
 50 
 51   realtek,reset-gpio:
 52     maxItems: 1
 53     description: CODEC's RESET pin. Active low.
 54 
 55   realtek,gpio-config:
 56     description: |
 57       Array of six 8bit elements that configures GPIO.
 58       0 - floating (reset value)
 59       1 - pull down
 60       2 - pull up
 61     $ref: /schemas/types.yaml#/definitions/uint32-array
 62     minItems: 6
 63     maxItems: 6
 64     items:
 65       maximum: 2
 66 
 67   realtek,jd1-gpio:
 68     $ref: /schemas/types.yaml#/definitions/uint32
 69     enum:
 70       - 0 # OFF
 71       - 1 # GPIO1 for jd1.
 72       - 2 # GPIO2 for jd1.
 73       - 3 # GPIO3 for jd1.
 74     description: Configures GPIO Mic Jack detection 1.
 75 
 76   realtek,jd2-gpio:
 77     $ref: /schemas/types.yaml#/definitions/uint32
 78     enum:
 79       - 0 # OFF
 80       - 1 # GPIO4 for jd2.
 81       - 2 # GPIO5 for jd2.
 82       - 3 # GPIO6 for jd2.
 83     description: Configures GPIO Mic Jack detection 2.
 84 
 85   realtek,jd3-gpio:
 86     $ref: /schemas/types.yaml#/definitions/uint32
 87     enum:
 88       - 0 # OFF
 89       - 1 # GPIO4 for jd3.
 90       - 2 # GPIO5 for jd3.
 91       - 3 # GPIO6 for jd3.
 92     description: Configures GPIO Mic Jack detection 3.
 93 
 94 patternProperties:
 95   '^realtek,in[1-2]-differential$':
 96     type: boolean
 97     description: Indicate MIC1/2 input are differential, rather than
 98       single-ended.
 99 
100   '^realtek,lout[1-3]-differential$':
101     type: boolean
102     description: Indicate LOUT1/2/3 outputs are differential, rather than
103       single-ended.
104 
105 required:
106   - compatible
107   - reg
108   - interrupts
109   - gpio-controller
110   - '#gpio-cells'
111 
112 unevaluatedProperties: false
113 
114 examples:
115   - |
116     #include <dt-bindings/gpio/gpio.h>
117     #include <dt-bindings/interrupt-controller/irq.h>
118 
119     i2c {
120         #address-cells = <1>;
121         #size-cells = <0>;
122 
123         codec@2c {
124             compatible = "realtek,rt5677";
125             reg = <0x2c>;
126             interrupt-parent = <&gpio>;
127             interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
128             gpio-controller;
129             #gpio-cells = <2>;
130             realtek,pow-ldo2-gpio = <&gpio 3 GPIO_ACTIVE_HIGH>;
131             realtek,reset-gpio = <&gpio 3 GPIO_ACTIVE_LOW>;
132             realtek,in1-differential;
133             realtek,gpio-config = <0 0 0 0 0 2>;
134         };
135     };

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