Skip to content

Commit 4f2e8c8

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

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>;
@@ -119,7 +130,7 @@
119130
speaker_left_front: codec@32 {
120131
compatible = "ti,tas5770l", "ti,tas2770";
121132
reg = <0x32>;
122-
shutdown-gpios = <&pinctrl_ap 181 GPIO_ACTIVE_HIGH>;
133+
SDZ-supply = <&speaker_sdz>;
123134
#sound-dai-cells = <0>;
124135
sound-name-prefix = "Left Front";
125136
interrupts-extended = <&pinctrl_ap 182 IRQ_TYPE_LEVEL_LOW>;
@@ -148,7 +159,7 @@
148159
speaker_right_rear: codec@34 {
149160
compatible = "ti,tas5770l", "ti,tas2770";
150161
reg = <0x34>;
151-
shutdown-gpios = <&pinctrl_ap 181 GPIO_ACTIVE_HIGH>;
162+
SDZ-supply = <&speaker_sdz>;
152163
#sound-dai-cells = <0>;
153164
sound-name-prefix = "Right Rear";
154165
interrupts-extended = <&pinctrl_ap 182 IRQ_TYPE_LEVEL_LOW>;
@@ -159,7 +170,7 @@
159170
speaker_right_front: codec@35 {
160171
compatible = "ti,tas5770l", "ti,tas2770";
161172
reg = <0x35>;
162-
shutdown-gpios = <&pinctrl_ap 181 GPIO_ACTIVE_HIGH>;
173+
SDZ-supply = <&speaker_sdz>;
163174
#sound-dai-cells = <0>;
164175
sound-name-prefix = "Right Front";
165176
interrupts-extended = <&pinctrl_ap 182 IRQ_TYPE_LEVEL_LOW>;

0 commit comments

Comments
 (0)