Skip to content

Commit 0883686

Browse files
committed
arm64: dts: apple: j413: Model SDZ GPIO as a regulator
Signed-off-by: Hector Martin <marcan@marcan.st>
1 parent 22ab51c commit 0883686

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

arch/arm64/boot/dts/apple/t8112-j413.dts

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,22 @@
9595
};
9696
};
9797

98+
/* Virtual regulator representing the shared shutdown GPIO */
99+
/ {
100+
speaker_sdz: fixed-regulator-sn012776-sdz {
101+
compatible = "regulator-fixed";
102+
regulator-name = "sn012776-sdz";
103+
startup-delay-us = <5000>;
104+
gpios = <&pinctrl_ap 88 GPIO_ACTIVE_HIGH>;
105+
enable-active-high;
106+
};
107+
};
108+
98109
&i2c1 {
99110
speaker_left_woof: codec@38 {
100111
compatible = "ti,sn012776", "ti,tas2764";
101112
reg = <0x38>;
102-
shutdown-gpios = <&pinctrl_ap 88 GPIO_ACTIVE_HIGH>;
113+
SDZ-supply = <&speaker_sdz>;
103114
#sound-dai-cells = <0>;
104115
sound-name-prefix = "Left Woofer";
105116
interrupts-extended = <&pinctrl_ap 11 IRQ_TYPE_LEVEL_LOW>;
@@ -111,7 +122,7 @@
111122
speaker_left_tweet: codec@39 {
112123
compatible = "ti,sn012776", "ti,tas2764";
113124
reg = <0x39>;
114-
shutdown-gpios = <&pinctrl_ap 88 GPIO_ACTIVE_HIGH>;
125+
SDZ-supply = <&speaker_sdz>;
115126
#sound-dai-cells = <0>;
116127
sound-name-prefix = "Left Tweeter";
117128
interrupts-extended = <&pinctrl_ap 11 IRQ_TYPE_LEVEL_LOW>;
@@ -124,7 +135,7 @@
124135
speaker_right_woof: codec@3b {
125136
compatible = "ti,sn012776", "ti,tas2764";
126137
reg = <0x3b>;
127-
shutdown-gpios = <&pinctrl_ap 88 GPIO_ACTIVE_HIGH>;
138+
SDZ-supply = <&speaker_sdz>;
128139
#sound-dai-cells = <0>;
129140
sound-name-prefix = "Right Woofer";
130141
interrupts-extended = <&pinctrl_ap 11 IRQ_TYPE_LEVEL_LOW>;
@@ -136,7 +147,7 @@
136147
speaker_right_tweet: codec@3c {
137148
compatible = "ti,sn012776", "ti,tas2764";
138149
reg = <0x3c>;
139-
shutdown-gpios = <&pinctrl_ap 88 GPIO_ACTIVE_HIGH>;
150+
SDZ-supply = <&speaker_sdz>;
140151
#sound-dai-cells = <0>;
141152
sound-name-prefix = "Right Tweeter";
142153
interrupts-extended = <&pinctrl_ap 11 IRQ_TYPE_LEVEL_LOW>;

0 commit comments

Comments
 (0)