Skip to content

Commit

Permalink
arm: dts: apple: Update Apple M1 device trees
Browse files Browse the repository at this point in the history
This synchronizes the device trees with those that are in the
process of being upstreamed into Linux. These now match the
current state of the device trees on the asahi branch of the
Asahi Linux github repository.

Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
  • Loading branch information
kettenis committed Feb 19, 2022
1 parent 1a68d0a commit 0a50f5d
Show file tree
Hide file tree
Showing 7 changed files with 340 additions and 81 deletions.
10 changes: 2 additions & 8 deletions arch/arm/dts/t8103-j274.dts
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,17 @@
};

&i2c1 {
clock-frequency = <50000>;

speaker_amp: codec@31 {
compatible = "ti,tas5770l", "ti,tas2770";
reg = <0x31>;
reset-gpios = <&pinctrl_ap 181 GPIO_ACTIVE_HIGH>;
#sound-dai-cells = <0>;
};
};
};

&i2c2 {
status = "okay";

clock-frequency = <50000>;

jack_codec: codec@48 {
compatible = "cirrus,cs42l83", "cirrus,cs42l42";
reg = <0x48>;
Expand All @@ -93,7 +89,6 @@
simple-audio-card,dai-link@0 {
reg = <0>;
format = "left_j";
tdm-slot-width = <32>;
mclk-fs = <64>;

link0_cpu: cpu {
Expand All @@ -108,12 +103,11 @@
};

simple-audio-card,dai-link@1 {
reg = <1>;
bitclock-inversion;
frame-inversion;
reg = <1>;
format = "i2s";
mclk-fs = <64>;
tdm-slot-width = <32>;

link1_cpu: cpu {
sound-dai = <&mca 2>;
Expand Down
1 change: 0 additions & 1 deletion arch/arm/dts/t8103-j293.dts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@

&i2c2 {
status = "okay";
clock-frequency = <50000>;

jack_codec: codec@48 {
compatible = "cirrus,cs42l83", "cirrus,cs42l42";
Expand Down
2 changes: 0 additions & 2 deletions arch/arm/dts/t8103-j313.dts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@
/delete-node/ &port02;

&i2c3 {
clock-frequency = <50000>;

jack_codec: codec@48 {
compatible = "cirrus,cs42l83", "cirrus,cs42l42";
reg = <0x48>;
Expand Down
2 changes: 0 additions & 2 deletions arch/arm/dts/t8103-j456.dts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@
};

&i2c1 {
clock-frequency = <50000>;

jack_codec: codec@48 {
compatible = "cirrus,cs42l83", "cirrus,cs42l42";
reg = <0x48>;
Expand Down
2 changes: 0 additions & 2 deletions arch/arm/dts/t8103-j457.dts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@
/delete-node/ &port01;

&i2c1 {
clock-frequency = <50000>;

jack_codec: codec@48 {
compatible = "cirrus,cs42l83", "cirrus,cs42l42";
reg = <0x48>;
Expand Down
13 changes: 1 addition & 12 deletions arch/arm/dts/t8103-jxxx.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* Copyright The Asahi Linux Contributors
*/

#include <dt-bindings/spmi/spmi.h>

/ {
aliases {
serial0 = &serial0;
Expand Down Expand Up @@ -123,7 +121,7 @@
*/
&port00 {
bus-range = <1 1>;
pwren-gpios = <&smc 13 0>;
pwren-gpios = <&smc_gpio 13 GPIO_ACTIVE_HIGH>;
wifi0: network@0,0 {
compatible = "pci14e4,4425";
reg = <0x10000 0x0 0x0 0x0 0x0>;
Expand All @@ -132,12 +130,3 @@
apple,antenna-sku = "XX";
};
};

&spmi {
status = "okay";

pmu@f {
compatible = "apple,sera-pmu";
reg = <0xf SPMI_USID>;
};
};

0 comments on commit 0a50f5d

Please sign in to comment.