brintos

brintos / linux-shallow public Read only

0
0
Text · 2.9 KiB · 9ce23e5 Raw
136 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/sound/realtek,rt5677.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: RT5677 audio CODEC8 9maintainers:10  - Animesh Agarwal <animeshagarwal28@gmail.com>11 12description: |13  This device supports I2C only.14 15  Pins on the device (for linking into audio routes):16    * IN1P17    * IN1N18    * IN2P19    * IN2N20    * MICBIAS121    * DMIC122    * DMIC223    * DMIC324    * DMIC425    * LOUT126    * LOUT227    * LOUT328 29allOf:30  - $ref: dai-common.yaml#31 32properties:33  compatible:34    const: realtek,rt567735 36  reg:37    maxItems: 138 39  interrupts:40    maxItems: 141 42  gpio-controller: true43 44  '#gpio-cells':45    const: 246 47  realtek,pow-ldo2-gpio:48    maxItems: 149    description: CODEC's POW_LDO2 pin.50 51  realtek,reset-gpio:52    maxItems: 153    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 down60      2 - pull up61    $ref: /schemas/types.yaml#/definitions/uint32-array62    minItems: 663    maxItems: 664    items:65      maximum: 266 67  realtek,jd1-gpio:68    $ref: /schemas/types.yaml#/definitions/uint3269    enum:70      - 0 # OFF71      - 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/uint3278    enum:79      - 0 # OFF80      - 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/uint3287    enum:88      - 0 # OFF89      - 1 # GPIO4 for jd3.90      - 2 # GPIO5 for jd3.91      - 3 # GPIO6 for jd3.92    description: Configures GPIO Mic Jack detection 3.93 94patternProperties:95  '^realtek,in[1-2]-differential$':96    type: boolean97    description: Indicate MIC1/2 input are differential, rather than98      single-ended.99 100  '^realtek,lout[1-3]-differential$':101    type: boolean102    description: Indicate LOUT1/2/3 outputs are differential, rather than103      single-ended.104 105required:106  - compatible107  - reg108  - interrupts109  - gpio-controller110  - '#gpio-cells'111 112unevaluatedProperties: false113 114examples: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    };136