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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/sound/realtek,rt5659.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,rt5659.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: RT5659/RT5658 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) for RT5659/RT5658:
 16     * DMIC L1
 17     * DMIC R1
 18     * DMIC L2
 19     * DMIC R2
 20     * IN1P
 21     * IN1N
 22     * IN2P
 23     * IN2N
 24     * IN3P
 25     * IN3N
 26     * IN4P
 27     * IN4N
 28     * HPOL
 29     * HPOR
 30     * SPOL
 31     * SPOR
 32     * LOUTL
 33     * LOUTR
 34     * MONOOUT
 35     * PDML
 36     * PDMR
 37     * SPDIF
 38 
 39 allOf:
 40   - $ref: dai-common.yaml#
 41 
 42 properties:
 43   compatible:
 44     enum:
 45       - realtek,rt5659
 46       - realtek,rt5658
 47 
 48   reg:
 49     maxItems: 1
 50 
 51   interrupts:
 52     maxItems: 1
 53 
 54   clocks:
 55     maxItems: 1
 56 
 57   clock-names:
 58     const: mclk
 59 
 60   realtek,dmic1-data-pin:
 61     $ref: /schemas/types.yaml#/definitions/uint32
 62     enum:
 63       - 0 # dmic1 is not used
 64       - 1 # using IN2N pin as dmic1 data pin
 65       - 2 # using GPIO5 pin as dmic1 data pin
 66       - 3 # using GPIO9 pin as dmic1 data pin
 67       - 4 # using GPIO11 pin as dmic1 data pin
 68     description: Specify which pin to be used as DMIC1 data pin.
 69     default: 0
 70 
 71   realtek,dmic2-data-pin:
 72     $ref: /schemas/types.yaml#/definitions/uint32
 73     enum:
 74       - 0 # dmic2 is not used
 75       - 1 # using IN2P pin as dmic2 data pin
 76       - 2 # using GPIO6 pin as dmic2 data pin
 77       - 3 # using GPIO10 pin as dmic2 data pin
 78       - 4 # using GPIO12 pin as dmic2 data pin
 79     description: Specify which pin to be used as DMIC2 data pin.
 80     default: 0
 81 
 82   realtek,jd-src:
 83     $ref: /schemas/types.yaml#/definitions/uint32
 84     enum:
 85       - 0 # No JD is used
 86       - 1 # using JD3 as JD source
 87       - 2 # JD source for Intel HDA header
 88     description: Specify which JD source be used.
 89     default: 0
 90 
 91   realtek,ldo1-en-gpios:
 92     maxItems: 1
 93     description: CODEC's LDO1_EN pin.
 94 
 95   realtek,reset-gpios:
 96     maxItems: 1
 97     description: CODEC's RESET pin.
 98 
 99   ports:
100     $ref: /schemas/graph.yaml#/properties/ports
101 
102   port:
103     $ref: audio-graph-port.yaml#
104     unevaluatedProperties: false
105 
106 required:
107   - compatible
108   - reg
109   - interrupts
110 
111 unevaluatedProperties: false
112 
113 examples:
114   - |
115     #include <dt-bindings/gpio/gpio.h>
116     #include <dt-bindings/interrupt-controller/irq.h>
117 
118     i2c {
119         #address-cells = <1>;
120         #size-cells = <0>;
121 
122         codec@1b {
123             compatible = "realtek,rt5659";
124             reg = <0x1b>;
125             interrupt-parent = <&gpio>;
126             interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
127             realtek,ldo1-en-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
128         };
129     };

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