Skip to content

Commit 56d47c2

Browse files
committed
arm64: dts: apple: j313: Model SDZ GPIO as a regulator
Signed-off-by: Hector Martin <marcan@marcan.st>
1 parent 4f2e8c8 commit 56d47c2

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

arch/arm64/boot/dts/apple/t8103-j313.dts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,22 @@
8484
};
8585
};
8686

87+
/* Virtual regulator representing the shared shutdown GPIO */
88+
/ {
89+
speaker_sdz: fixed-regulator-tas5770-sdz {
90+
compatible = "regulator-fixed";
91+
regulator-name = "tas5770-sdz";
92+
startup-delay-us = <5000>;
93+
gpios = <&pinctrl_ap 181 GPIO_ACTIVE_HIGH>;
94+
enable-active-high;
95+
};
96+
};
97+
8798
&i2c1 {
8899
speaker_left: codec@31 {
89100
compatible = "ti,tas5770l", "ti,tas2770";
90101
reg = <0x31>;
91-
shutdown-gpios = <&pinctrl_ap 181 GPIO_ACTIVE_HIGH>;
102+
SDZ-supply = <&speaker_sdz>;
92103
#sound-dai-cells = <0>;
93104
sound-name-prefix = "Left";
94105
interrupts-extended = <&pinctrl_ap 182 IRQ_TYPE_LEVEL_LOW>;
@@ -102,7 +113,7 @@
102113
speaker_right: codec@34 {
103114
compatible = "ti,tas5770l", "ti,tas2770";
104115
reg = <0x34>;
105-
shutdown-gpios = <&pinctrl_ap 181 GPIO_ACTIVE_HIGH>;
116+
SDZ-supply = <&speaker_sdz>;
106117
#sound-dai-cells = <0>;
107118
sound-name-prefix = "Right";
108119
interrupts-extended = <&pinctrl_ap 182 IRQ_TYPE_LEVEL_LOW>;

0 commit comments

Comments
 (0)