From 01ef533a3828bcc3bfd85b319d17e0b347cd5847 Mon Sep 17 00:00:00 2001 From: Michael Abood Date: Sun, 26 Jun 2022 16:11:33 -0400 Subject: [PATCH] arm64: dts: qcom: samsung-gtelwifiue: Add MUIC Support samsung-gtelwifiue uses the SM5703 IC as a MUIC. This adds support for that. Signed-off-by: Michael Abood --- .../dts/qcom/apq8016-samsung-gtelwifiue.dts | 33 ++++++++++++++----- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts b/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts index f154b4546f0d750..1a4d28f95a5a1ec 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts +++ b/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts @@ -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"; @@ -156,10 +171,6 @@ linux,code = ; }; -&pm8916_usbin { - status = "okay"; -}; - &lpass { status = "okay"; }; @@ -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 { @@ -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";