Skip to content

Commit

Permalink
arm64: dts: qcom: samsung-gtelwifiue: Add MUIC Support
Browse files Browse the repository at this point in the history
samsung-gtelwifiue uses the SM5703 IC as a MUIC. This adds
support for that.

Signed-off-by: Michael Abood <[email protected]>
  • Loading branch information
person4268 committed Jun 27, 2022
1 parent 3e4aeaa commit 01ef533
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,21 @@
};
};

&blsp_i2c1 {
status = "okay";

muic: extcon@25 {
compatible = "siliconmitus,sm5703-muic";
reg = <0x25>;

interrupt-parent = <&msmgpio>;
interrupts = <12 IRQ_TYPE_EDGE_FALLING>;

pinctrl-names = "default";
pinctrl-0 = <&muic_int_default>;
};
};

&blsp_i2c2 {
status = "okay";

Expand Down Expand Up @@ -156,10 +171,6 @@
linux,code = <KEY_VOLUMEDOWN>;
};

&pm8916_usbin {
status = "okay";
};

&lpass {
status = "okay";
};
Expand Down Expand Up @@ -232,13 +243,11 @@

&usb {
status = "okay";
dr_mode = "peripheral";
extcon = <&pm8916_usbin>;
extcon = <&muic>, <&muic>;
};

&usb_hs_phy {
// FIXME: Replace with SM5703 MUIC when driver is available
extcon = <&pm8916_usbin>;
extcon = <&muic>;
};

&wcd_codec {
Expand Down Expand Up @@ -380,6 +389,14 @@
bias-pull-up;
};

muic_int_default: muic-int-default {
pins = "gpio12";
function = "gpio";

drive-strength = <2>;
bias-disable;
};

reg_lcd_en_default: reg-lcd-en-default {
pins = "gpio8";
function = "gpio";
Expand Down

0 comments on commit 01ef533

Please sign in to comment.