arm64: dts: qcom: sm8250-edo: Add dual CS35L41 amps
authorKonrad Dybcio <konrad.dybcio@somainline.org>
Tue, 22 Feb 2022 01:48:05 +0000 (02:48 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 12 Apr 2022 19:22:05 +0000 (14:22 -0500)
Add nodes for dual Cirrus Logic CS35L41 audio amps connected via I2C.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220222014806.22446-1-konrad.dybcio@somainline.org
arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi

index d63f7a9..e819b5b 100644 (file)
        status = "okay";
        clock-frequency = <1000000>;
 
-       /* Dual Cirrus Logic CS35L41 amps @ 40, 41 */
+       cs35l41_l: cs35l41@40 {
+               compatible = "cirrus,cs35l41";
+               reg = <0x40>;
+               interrupt-parent = <&tlmm>;
+               interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+               reset-gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>;
+               cirrus,boost-peak-milliamp = <4000>;
+               cirrus,boost-ind-nanohenry = <1000>;
+               cirrus,boost-cap-microfarad = <15>;
+               cirrus,asp-sdout-hiz = <3>;
+               cirrus,gpio2-src-select = <2>;
+               cirrus,gpio2-output-enable;
+               #sound-dai-cells = <1>;
+       };
+
+       cs35l41_r: cs35l41@41 {
+               compatible = "cirrus,cs35l41";
+               reg = <0x41>;
+               interrupt-parent = <&tlmm>;
+               interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+               reset-gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>;
+               cirrus,boost-peak-milliamp = <4000>;
+               cirrus,boost-ind-nanohenry = <1000>;
+               cirrus,boost-cap-microfarad = <15>;
+               cirrus,asp-sdout-hiz = <3>;
+               cirrus,gpio2-src-select = <2>;
+               cirrus,gpio2-output-enable;
+               #sound-dai-cells = <1>;
+       };
 };
 
 &i2c5 {