Skip to content

Commit d60f72d

Browse files
marcanjannau
authored andcommitted
arm64: dts: apple: j293: Model SDZ GPIO as a regulator
Signed-off-by: Hector Martin <marcan@marcan.st>
1 parent 3af64c3 commit d60f72d

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

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

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,22 @@
104104
};
105105
};
106106

107+
/* Virtual regulator representing the shared shutdown GPIO */
108+
/ {
109+
speaker_sdz: fixed-regulator-tas5770-sdz {
110+
compatible = "regulator-fixed";
111+
regulator-name = "tas5770-sdz";
112+
startup-delay-us = <5000>;
113+
gpios = <&pinctrl_ap 181 GPIO_ACTIVE_HIGH>;
114+
enable-active-high;
115+
};
116+
};
117+
107118
&i2c1 {
108119
speaker_left_rear: codec@31 {
109120
compatible = "ti,tas5770l", "ti,tas2770";
110121
reg = <0x31>;
111-
shutdown-gpios = <&pinctrl_ap 181 GPIO_ACTIVE_HIGH>;
122+
SDZ-supply = <&speaker_sdz>;
112123
#sound-dai-cells = <0>;
113124
sound-name-prefix = "Left Rear";
114125
interrupts-extended = <&pinctrl_ap 182 IRQ_TYPE_LEVEL_LOW>;
@@ -120,7 +131,7 @@
120131
speaker_left_front: codec@32 {
121132
compatible = "ti,tas5770l", "ti,tas2770";
122133
reg = <0x32>;
123-
shutdown-gpios = <&pinctrl_ap 181 GPIO_ACTIVE_HIGH>;
134+
SDZ-supply = <&speaker_sdz>;
124135
#sound-dai-cells = <0>;
125136
sound-name-prefix = "Left Front";
126137
interrupts-extended = <&pinctrl_ap 182 IRQ_TYPE_LEVEL_LOW>;
@@ -150,7 +161,7 @@
150161
speaker_right_rear: codec@34 {
151162
compatible = "ti,tas5770l", "ti,tas2770";
152163
reg = <0x34>;
153-
shutdown-gpios = <&pinctrl_ap 181 GPIO_ACTIVE_HIGH>;
164+
SDZ-supply = <&speaker_sdz>;
154165
#sound-dai-cells = <0>;
155166
sound-name-prefix = "Right Rear";
156167
interrupts-extended = <&pinctrl_ap 182 IRQ_TYPE_LEVEL_LOW>;
@@ -162,7 +173,7 @@
162173
speaker_right_front: codec@35 {
163174
compatible = "ti,tas5770l", "ti,tas2770";
164175
reg = <0x35>;
165-
shutdown-gpios = <&pinctrl_ap 181 GPIO_ACTIVE_HIGH>;
176+
SDZ-supply = <&speaker_sdz>;
166177
#sound-dai-cells = <0>;
167178
sound-name-prefix = "Right Front";
168179
interrupts-extended = <&pinctrl_ap 182 IRQ_TYPE_LEVEL_LOW>;

0 commit comments

Comments
 (0)