Skip to content

Commit 2145054

Browse files
arm64: dts: qcom: msm8916-samsung-fortuna: Move SM5504 from rossa and refactor MUIC
MUIC varies on fortuna/rossa devices, which could be either SM5502 or SM5504. Move SM5504 from msm8916-samsung-rossa-common to msm8916-samsung-fortuna-common and refactor MUIC. Disable MUIC by default in msm8916-samsung-fortuna-common, and explicitly specify them in each fortuna/rossa board. Signed-off-by: Raymond Hackley <raymondhackley@protonmail.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260223220514.2556033-2-wonderfulshrinemaidenofparadise@postmarketos.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 3aa9971 commit 2145054

6 files changed

Lines changed: 88 additions & 32 deletions

arch/arm64/boot/dts/qcom/msm8216-samsung-fortuna3g.dts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,28 @@
1616
constant-charge-voltage-max-microvolt = <4350000>;
1717
};
1818

19+
&charger {
20+
richtek,usb-connector = <&usb_con_sm5502>;
21+
status = "okay";
22+
};
23+
24+
&muic_sm5502 {
25+
status = "okay";
26+
};
27+
1928
&st_accel {
2029
status = "okay";
2130
};
2231

2332
&st_magn {
2433
status = "okay";
2534
};
35+
36+
&usb {
37+
extcon = <&muic_sm5502>, <&muic_sm5502>;
38+
status = "okay";
39+
};
40+
41+
&usb_hs_phy {
42+
extcon = <&muic_sm5502>;
43+
};

arch/arm64/boot/dts/qcom/msm8916-samsung-fortuna-common.dtsi

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,31 @@
144144
&blsp_i2c1 {
145145
status = "okay";
146146

147-
muic: extcon@25 {
147+
/* MUIC/extcon varies depending on model variant */
148+
muic_sm5504: extcon@14 {
149+
compatible = "siliconmitus,sm5504-muic";
150+
reg = <0x14>;
151+
interrupts-extended = <&tlmm 12 IRQ_TYPE_EDGE_FALLING>;
152+
pinctrl-0 = <&muic_int_default>;
153+
pinctrl-names = "default";
154+
status = "disabled";
155+
156+
usb_con_sm5504: connector {
157+
compatible = "usb-b-connector";
158+
label = "micro-USB";
159+
type = "micro";
160+
};
161+
};
162+
163+
muic_sm5502: extcon@25 {
148164
compatible = "siliconmitus,sm5502-muic";
149165
reg = <0x25>;
150166
interrupts-extended = <&tlmm 12 IRQ_TYPE_EDGE_FALLING>;
151167
pinctrl-0 = <&muic_int_default>;
152168
pinctrl-names = "default";
169+
status = "disabled";
153170

154-
usb_con: connector {
171+
usb_con_sm5502: connector {
155172
compatible = "usb-b-connector";
156173
label = "micro-USB";
157174
type = "micro";
@@ -298,7 +315,7 @@
298315
charger: charger {
299316
compatible = "richtek,rt5033-charger";
300317
monitored-battery = <&battery>;
301-
richtek,usb-connector = <&usb_con>;
318+
status = "disabled";
302319
};
303320
};
304321
};
@@ -348,15 +365,6 @@
348365
"AMIC3", "MIC BIAS External1";
349366
};
350367

351-
&usb {
352-
extcon = <&muic>, <&muic>;
353-
status = "okay";
354-
};
355-
356-
&usb_hs_phy {
357-
extcon = <&muic>;
358-
};
359-
360368
&venus {
361369
status = "okay";
362370
};

arch/arm64/boot/dts/qcom/msm8916-samsung-gprimeltecan.dts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
charger: charger {
8787
compatible = "richtek,rt5033-charger";
8888
monitored-battery = <&battery>;
89-
richtek,usb-connector = <&usb_con>;
89+
richtek,usb-connector = <&usb_con_sm5502>;
9090
};
9191
};
9292
};
@@ -95,3 +95,16 @@
9595
/* Firmware for gprimeltecan needs more space */
9696
reg = <0x0 0x86800000 0x0 0x5400000>;
9797
};
98+
99+
&muic_sm5502 {
100+
status = "okay";
101+
};
102+
103+
&usb {
104+
extcon = <&muic_sm5502>, <&muic_sm5502>;
105+
status = "okay";
106+
};
107+
108+
&usb_hs_phy {
109+
extcon = <&muic_sm5502>;
110+
};

arch/arm64/boot/dts/qcom/msm8916-samsung-grandprimelte.dts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,25 @@
2424
status = "okay";
2525
};
2626

27+
&charger {
28+
richtek,usb-connector = <&usb_con_sm5502>;
29+
status = "okay";
30+
};
31+
2732
&mpss_mem {
2833
/* Firmware for grandprimelte needs more space */
2934
reg = <0x0 0x86800000 0x0 0x5400000>;
3035
};
36+
37+
&muic_sm5502 {
38+
status = "okay";
39+
};
40+
41+
&usb {
42+
extcon = <&muic_sm5502>, <&muic_sm5502>;
43+
status = "okay";
44+
};
45+
46+
&usb_hs_phy {
47+
extcon = <&muic_sm5502>;
48+
};

arch/arm64/boot/dts/qcom/msm8916-samsung-rossa-common.dtsi

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,9 @@
22

33
#include "msm8916-samsung-fortuna-common.dtsi"
44

5-
/* SM5504 MUIC instead of SM5502 */
6-
/delete-node/ &muic;
7-
85
/* IST3038 instead of Zinitix BT541 */
96
/delete-node/ &touchscreen;
107

11-
&blsp_i2c1 {
12-
muic: extcon@14 {
13-
compatible = "siliconmitus,sm5504-muic";
14-
reg = <0x14>;
15-
interrupts-extended = <&tlmm 12 IRQ_TYPE_EDGE_FALLING>;
16-
pinctrl-0 = <&muic_int_default>;
17-
pinctrl-names = "default";
18-
19-
usb_con: connector {
20-
compatible = "usb-b-connector";
21-
label = "micro-USB";
22-
type = "micro";
23-
};
24-
};
25-
};
26-
278
&blsp_i2c5 {
289
touchscreen: touchscreen@50 {
2910
compatible = "imagis,ist3038";

arch/arm64/boot/dts/qcom/msm8916-samsung-rossa.dts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,25 @@
1616
constant-charge-voltage-max-microvolt = <4400000>;
1717
};
1818

19+
&charger {
20+
richtek,usb-connector = <&usb_con_sm5504>;
21+
status = "okay";
22+
};
23+
1924
&mpss_mem {
2025
/* Firmware for rossa needs more space */
2126
reg = <0x0 0x86800000 0x0 0x5800000>;
2227
};
28+
29+
&muic_sm5504 {
30+
status = "okay";
31+
};
32+
33+
&usb {
34+
extcon = <&muic_sm5504>, <&muic_sm5504>;
35+
status = "okay";
36+
};
37+
38+
&usb_hs_phy {
39+
extcon = <&muic_sm5504>;
40+
};

0 commit comments

Comments
 (0)