^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) CS53L30 audio CODEC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) - compatible : "cirrus,cs53l30"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) - reg : the I2C address of the device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) - VA-supply, VP-supply : power supplies for the device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) as covered in Documentation/devicetree/bindings/regulator/regulator.txt.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) - reset-gpios : a GPIO spec for the reset pin.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) - mute-gpios : a GPIO spec for the MUTE pin. The active state can be either
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) GPIO_ACTIVE_HIGH or GPIO_ACTIVE_LOW, which would be handled
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) by the driver automatically.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) - cirrus,micbias-lvl : Set the output voltage level on the MICBIAS Pin.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 0 = Hi-Z
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 1 = 1.80 V
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 2 = 2.75 V
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) - cirrus,use-sdout2 : This is a boolean property. If present, it indicates
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) the hardware design connects both SDOUT1 and SDOUT2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) pins to output data. Otherwise, it indicates that
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) only SDOUT1 is connected for data output.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) * CS53l30 supports 4-channel data output in the same
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) * frame using two different ways:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) * 1) Normal I2S mode on two data pins -- each SDOUT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) * carries 2-channel data in the same time.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) * 2) TDM mode on one signle data pin -- SDOUT1 carries
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) * 4-channel data per frame.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) codec: cs53l30@48 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) compatible = "cirrus,cs53l30";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) reg = <0x48>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) reset-gpios = <&gpio 54 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) VA-supply = <&cs53l30_va>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) VP-supply = <&cs53l30_vp>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) };