From nobody Thu Apr 2 00:08:13 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC60A36309B; Wed, 1 Apr 2026 20:32:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775075534; cv=none; b=QRvmVOiOafdomp4HDzKZBJg/PrfO2a9/1nenJaQHF4vxqDeZ9yPr9h1lONehN2g8CwBq9Sq6pFFFGCo8+jvmaFQO7zf68518su74vnh7TOzuDhpVSdiOFjvG3NNXfyf8KKdfJzxOSlZK/x6k2MEdCKTdhAyROPe8mM2esQ8c7G8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775075534; c=relaxed/simple; bh=v0uZOaJ54lAg5lMftorfBK/jklJNEhA7r9GlBZCAK/U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AwMiJc6/oM8oMzZg9wwpuMZiHtkMys42ocii92wjgHZkKQenf7/HhzsxBGzJfVkUYyz0VdOS9aEkS0Q8eHPYKEDWe+a/bpU1ozN0Tws+82MgSJ4DAbdF9b7dM6bSViNoirNuaMjITNtdyw3ozjWbh5aPsVgFXGi7ZkAjInmqPZA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YIjzKQYA; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YIjzKQYA" Received: by smtp.kernel.org (Postfix) with ESMTPS id 635A9C2BCAF; Wed, 1 Apr 2026 20:32:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775075534; bh=v0uZOaJ54lAg5lMftorfBK/jklJNEhA7r9GlBZCAK/U=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=YIjzKQYAjui92npHHduZZMQlEbVrsoFuTN0zJIhKHKQe1QRxxPVGywwB/g4Qop/vP Zwsf/4EWJ9bVjTgFWsdkACRtvOIrxLtemTtdBvoBAUCoalxFLMRW6MgMWoH1rKT7C3 XB0+hGAqFRAbk5y9BwJm61f7+07y1oX+qC/nV59MI4DyR9fGSm/edH4s5uukAItZc2 NYVy5+ZvhLrD5m4zHcNc5XQ+ng3l00phYFWzrw5GrluRzyYQeSnHzqzGcliVARFTWK yBbpoRh04ZGaZrgEuchN2iWyZqJz9MCqG7GfgfezGAlqpXxo6CUpG2gwYe6Jun08q0 3luoFyTMbBlIA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5599FD35154; Wed, 1 Apr 2026 20:32:14 +0000 (UTC) From: Rudraksha Gupta via B4 Relay Date: Wed, 01 Apr 2026 13:32:13 -0700 Subject: [PATCH v3 1/4] ARM: dts: qcom: msm8960: expressatt: Sort node references and includes Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260401-expressatt_fuel_guage-v3-1-9674cfc0b5a2@gmail.com> References: <20260401-expressatt_fuel_guage-v3-0-9674cfc0b5a2@gmail.com> In-Reply-To: <20260401-expressatt_fuel_guage-v3-0-9674cfc0b5a2@gmail.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rudraksha Gupta X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1775075533; l=12047; i=guptarud@gmail.com; s=20240916; h=from:subject:message-id; bh=5nbF8uv4w0udRlmJ01uecytHbgghHrqiWUob940/otI=; b=YhGPyy4bFANR9YiWCi7ajd6ylcGqhquHLt8h5MIpQT2uYEMBd9sQSPmEqCsde4b6jy8VGH9mw Oq+n13F9En1ASe7soO1zsvnnNRA5pooxbY5li9bZQJR2bkICmQ4S97r X-Developer-Key: i=guptarud@gmail.com; a=ed25519; pk=ETrudRugWAtOpr0OhRiheQ1lXM4Kk4KGFnBySlKDi2I= X-Endpoint-Received: by B4 Relay for guptarud@gmail.com/20240916 with auth_id=211 X-Original-From: Rudraksha Gupta Reply-To: guptarud@gmail.com From: Rudraksha Gupta Reorganize the DTS file for consistency with other msm8960 board files. Assisted-by: Claude:claude-opus-4.6 Signed-off-by: Rudraksha Gupta --- .../dts/qcom/qcom-msm8960-samsung-expressatt.dts | 408 +++++++++++------= ---- 1 file changed, 207 insertions(+), 201 deletions(-) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts b/a= rch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts index 35514fd53e3d..0e6959f7af6f 100644 --- a/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts +++ b/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts @@ -1,13 +1,13 @@ // SPDX-License-Identifier: GPL-2.0 +#include +#include #include #include +#include #include =20 #include "qcom-msm8960.dtsi" #include "pm8921.dtsi" -#include -#include -#include =20 / { model =3D "Samsung Galaxy Express SGH-I437"; @@ -27,8 +27,8 @@ chosen { gpio-keys { compatible =3D "gpio-keys"; =20 - pinctrl-names =3D "default"; pinctrl-0 =3D <&gpio_keys_pin_a>; + pinctrl-names =3D "default"; =20 key-home { label =3D "Home"; @@ -54,58 +54,25 @@ key-volume-down { }; }; =20 - touchkey_enable: touchkey-enable { - compatible =3D "regulator-fixed"; - regulator-name =3D "touchkey_enable"; - gpio =3D <&tlmm 51 GPIO_ACTIVE_HIGH>; - enable-active-high; - regulator-boot-on; - }; - - vreg_flash: regulator-flash { - compatible =3D "regulator-fixed"; - regulator-name =3D "VREG_FLASH_3P3"; - regulator-min-microvolt =3D <3300000>; - regulator-max-microvolt =3D <3300000>; - gpio =3D <&pm8921_mpps 4 GPIO_ACTIVE_HIGH>; - enable-active-high; - pinctrl-0 =3D <&flash_led_unlock>; - pinctrl-names =3D "default"; - }; - - led-controller { - compatible =3D "richtek,rt8515"; - enf-gpios =3D <&tlmm 3 GPIO_ACTIVE_HIGH>; - vin-supply =3D <&vreg_flash>; - richtek,rfs-ohms =3D <16000>; - pinctrl-0 =3D <&cam_flash_en>; - pinctrl-names =3D "default"; - - led { - function =3D LED_FUNCTION_FLASH; - color =3D ; - flash-max-timeout-us =3D <250000>; - }; - }; - i2c-gpio-touchkey { compatible =3D "i2c-gpio"; #address-cells =3D <1>; #size-cells =3D <0>; sda-gpios =3D <&tlmm 71 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; scl-gpios =3D <&tlmm 72 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; - pinctrl-names =3D "default"; pinctrl-0 =3D <&touchkey_i2c_pins>; - status =3D "okay"; + pinctrl-names =3D "default"; i2c-gpio,delay-us =3D <2>; =20 + status =3D "okay"; + touchkey@20 { compatible =3D "coreriver,tc360-touchkey"; reg =3D <0x20>; =20 interrupts-extended =3D <&tlmm 52 IRQ_TYPE_EDGE_FALLING>; - pinctrl-names =3D "default"; pinctrl-0 =3D <&touchkey_irq_pin>; + pinctrl-names =3D "default"; =20 vddio-supply =3D <&touchkey_enable>; vdd-supply =3D <&pm8921_l29>; @@ -114,6 +81,52 @@ touchkey@20 { linux,keycodes =3D ; }; }; + + led-controller { + compatible =3D "richtek,rt8515"; + enf-gpios =3D <&tlmm 3 GPIO_ACTIVE_HIGH>; + vin-supply =3D <&vreg_flash>; + richtek,rfs-ohms =3D <16000>; + pinctrl-0 =3D <&cam_flash_en>; + pinctrl-names =3D "default"; + + led { + function =3D LED_FUNCTION_FLASH; + color =3D ; + flash-max-timeout-us =3D <250000>; + }; + }; + + vreg_flash: regulator-flash { + compatible =3D "regulator-fixed"; + regulator-name =3D "VREG_FLASH_3P3"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + gpio =3D <&pm8921_mpps 4 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-0 =3D <&flash_led_unlock>; + pinctrl-names =3D "default"; + }; + + touchkey_enable: touchkey-enable { + compatible =3D "regulator-fixed"; + regulator-name =3D "touchkey_enable"; + gpio =3D <&tlmm 51 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-boot-on; + }; +}; + +&gsbi1 { + qcom,mode =3D ; + pinctrl-0 =3D <&spi1_default>; + pinctrl-names =3D "default"; + + status =3D "okay"; +}; + +&gsbi1_spi { + status =3D "okay"; }; =20 &gsbi2 { @@ -141,51 +154,16 @@ light-sensor@39 { }; }; =20 -&gsbi5 { - qcom,mode =3D ; - status =3D "okay"; -}; - -&gsbi5_serial { - status =3D "okay"; -}; - -&sdcc1 { - vmmc-supply =3D <&pm8921_l5>; - status =3D "okay"; -}; - -&sdcc3 { - vmmc-supply =3D <&pm8921_l6>; - vqmmc-supply =3D <&pm8921_l7>; - - pinctrl-0 =3D <&sdcc3_default_state>; - pinctrl-1 =3D <&sdcc3_sleep_state>; - pinctrl-names =3D "default", "sleep"; - - status =3D "okay"; -}; - -&gsbi1 { - qcom,mode =3D ; - pinctrl-0 =3D <&spi1_default>; - pinctrl-names =3D "default"; - status =3D "okay"; -}; - -&gsbi1_spi { - status =3D "okay"; -}; - &gsbi3 { qcom,mode =3D ; + status =3D "okay"; }; =20 &gsbi3_i2c { status =3D "okay"; =20 - // Atmel mXT224S touchscreen + /* Atmel mXT224S touchscreen */ touchscreen@4a { compatible =3D "atmel,maxtouch"; reg =3D <0x4a>; @@ -193,93 +171,69 @@ touchscreen@4a { interrupts =3D <11 IRQ_TYPE_EDGE_FALLING>; vdda-supply =3D <&pm8921_lvs6>; vdd-supply =3D <&pm8921_l17>; - pinctrl-names =3D "default"; pinctrl-0 =3D <&touchscreen>; + pinctrl-names =3D "default"; }; }; =20 -&tlmm { - cam_flash_en: cam-flash-en-state { - pins =3D "gpio3"; - function =3D "gpio"; - drive-strength =3D <16>; - bias-pull-down; - }; +&gsbi5 { + qcom,mode =3D ; =20 - spi1_default: spi1-default-state { - mosi-pins { - pins =3D "gpio6"; - function =3D "gsbi1"; - drive-strength =3D <12>; - bias-disable; - }; + status =3D "okay"; +}; =20 - miso-pins { - pins =3D "gpio7"; - function =3D "gsbi1"; - drive-strength =3D <12>; - bias-disable; - }; +&gsbi5_serial { + status =3D "okay"; +}; =20 - cs-pins { - pins =3D "gpio8"; - function =3D "gsbi1"; - drive-strength =3D <12>; - bias-disable; - output-low; - }; +&gsbi7 { + qcom,mode =3D ; =20 - clk-pins { - pins =3D "gpio9"; - function =3D "gsbi1"; - drive-strength =3D <12>; - bias-disable; - }; - }; + status =3D "okay"; +}; =20 - gpio_keys_pin_a: gpio-keys-active-state { - pins =3D "gpio40", "gpio50", "gpio81"; - function =3D "gpio"; - drive-strength =3D <8>; - bias-disable; - }; +&gsbi7_i2c { + status =3D "okay"; =20 - touchscreen: touchscreen-int-state { - pins =3D "gpio11"; - function =3D "gpio"; - output-enable; - bias-disable; - drive-strength =3D <2>; + nfc@2b { + compatible =3D "nxp,pn544-i2c"; + reg =3D <0x2b>; + interrupts-extended =3D <&tlmm 106 IRQ_TYPE_EDGE_RISING>; + enable-gpios =3D <&pm8921_gpio 21 GPIO_ACTIVE_HIGH>; + firmware-gpios =3D <&tlmm 92 GPIO_ACTIVE_HIGH>; + + pinctrl-0 =3D <&nfc_default &nfc_enable>; + pinctrl-names =3D "default"; }; +}; =20 - nfc_default: nfc-default-state { - irq-pins { - pins =3D "gpio106"; - function =3D "gpio"; - drive-strength =3D <2>; - bias-pull-down; - }; +&gsbi12 { + qcom,mode =3D ; =20 - firmware-pins { - pins =3D "gpio92"; - function =3D "gpio"; - drive-strength =3D <2>; - bias-disable; - }; - }; + status =3D "okay"; +}; =20 - touchkey_i2c_pins: touchkey-i2c-state { - pins =3D "gpio71", "gpio72"; - function =3D "gpio"; - drive-strength =3D <2>; - bias-disable; +&gsbi12_i2c { + status =3D "okay"; + + accelerometer@18 { + compatible =3D "bosch,bma254"; + reg =3D <0x18>; + vdd-supply =3D <&pm8921_l9>; + vddio-supply =3D <&pm8921_lvs4>; + + mount-matrix =3D "-1", "0", "0", + "0", "-1", "0", + "0", "0", "1"; }; =20 - touchkey_irq_pin: touchkey-irq-state { - pins =3D "gpio52"; - function =3D "gpio"; - drive-strength =3D <2>; - bias-disable; + magnetometer@2e { + compatible =3D "yamaha,yas532"; + reg =3D <0x2e>; + vdd-supply =3D <&pm8921_l9>; + iovdd-supply =3D <&pm8921_lvs4>; + + /* TODO: Figure out Mount Matrix */ }; }; =20 @@ -288,18 +242,27 @@ &pm8921 { }; =20 &pm8921_gpio { + nfc_enable: nfc-enable-state { + pins =3D "gpio21"; + function =3D "normal"; + bias-disable; + qcom,drive-strength =3D ; + power-source =3D ; + }; + prox_sensor_int: prox-sensor-int-state { pins =3D "gpio6"; function =3D "normal"; input-enable; bias-disable; }; +}; =20 - nfc_enable: nfc-enable-state { - pins =3D "gpio21"; - function =3D "normal"; - bias-disable; - qcom,drive-strength =3D ; +&pm8921_mpps { + flash_led_unlock: flash-led-unlock-state { + pins =3D "mpp4"; + function =3D "digital"; + output-low; power-source =3D ; }; }; @@ -546,72 +509,115 @@ pm8921_ncp: ncp { }; }; =20 -&usb_hs1_phy { - v3p3-supply =3D <&pm8921_l3>; - v1p8-supply =3D <&pm8921_l4>; -}; +&sdcc1 { + vmmc-supply =3D <&pm8921_l5>; =20 -&usb1 { - dr_mode =3D "otg"; status =3D "okay"; }; =20 -&gsbi7 { - qcom,mode =3D ; +&sdcc3 { + vmmc-supply =3D <&pm8921_l6>; + vqmmc-supply =3D <&pm8921_l7>; + + pinctrl-0 =3D <&sdcc3_default_state>; + pinctrl-1 =3D <&sdcc3_sleep_state>; + pinctrl-names =3D "default", "sleep"; =20 status =3D "okay"; }; =20 -&gsbi7_i2c { - status =3D "okay"; +&tlmm { + cam_flash_en: cam-flash-en-state { + pins =3D "gpio3"; + function =3D "gpio"; + drive-strength =3D <16>; + bias-pull-down; + }; =20 - nfc@2b { - compatible =3D "nxp,pn544-i2c"; - reg =3D <0x2b>; - interrupts-extended =3D <&tlmm 106 IRQ_TYPE_EDGE_RISING>; - enable-gpios =3D <&pm8921_gpio 21 GPIO_ACTIVE_HIGH>; - firmware-gpios =3D <&tlmm 92 GPIO_ACTIVE_HIGH>; + spi1_default: spi1-default-state { + mosi-pins { + pins =3D "gpio6"; + function =3D "gsbi1"; + drive-strength =3D <12>; + bias-disable; + }; =20 - pinctrl-0 =3D <&nfc_default &nfc_enable>; - pinctrl-names =3D "default"; - }; -}; + miso-pins { + pins =3D "gpio7"; + function =3D "gsbi1"; + drive-strength =3D <12>; + bias-disable; + }; =20 -&gsbi12 { - qcom,mode =3D ; + cs-pins { + pins =3D "gpio8"; + function =3D "gsbi1"; + drive-strength =3D <12>; + bias-disable; + output-low; + }; =20 - status =3D "okay"; -}; + clk-pins { + pins =3D "gpio9"; + function =3D "gsbi1"; + drive-strength =3D <12>; + bias-disable; + }; + }; =20 -&gsbi12_i2c { - status =3D "okay"; + touchscreen: touchscreen-int-state { + pins =3D "gpio11"; + function =3D "gpio"; + output-enable; + bias-disable; + drive-strength =3D <2>; + }; =20 - accelerometer@18 { - compatible =3D "bosch,bma254"; - reg =3D <0x18>; - vdd-supply =3D <&pm8921_l9>; - vddio-supply =3D <&pm8921_lvs4>; + gpio_keys_pin_a: gpio-keys-active-state { + pins =3D "gpio40", "gpio50", "gpio81"; + function =3D "gpio"; + drive-strength =3D <8>; + bias-disable; + }; =20 - mount-matrix =3D "-1", "0", "0", - "0", "-1", "0", - "0", "0", "1"; + touchkey_irq_pin: touchkey-irq-state { + pins =3D "gpio52"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; }; =20 - magnetometer@2e { - compatible =3D "yamaha,yas532"; - reg =3D <0x2e>; - vdd-supply =3D <&pm8921_l9>; - iovdd-supply =3D <&pm8921_lvs4>; + touchkey_i2c_pins: touchkey-i2c-state { + pins =3D "gpio71", "gpio72"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; =20 - /* TODO: Figure out Mount Matrix */ + nfc_default: nfc-default-state { + firmware-pins { + pins =3D "gpio92"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; + + irq-pins { + pins =3D "gpio106"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-down; + }; }; }; =20 -&pm8921_mpps { - flash_led_unlock: flash-led-unlock-state { - pins =3D "mpp4"; - function =3D "digital"; - output-low; - power-source =3D ; - }; +&usb_hs1_phy { + v3p3-supply =3D <&pm8921_l3>; + v1p8-supply =3D <&pm8921_l4>; +}; + +&usb1 { + dr_mode =3D "otg"; + + status =3D "okay"; }; --=20 2.53.0 From nobody Thu Apr 2 00:08:13 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9FD783624C4; Wed, 1 Apr 2026 20:32:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775075534; cv=none; b=Skg5M3aOZWSOMbqY7gD4OctDFRCegYChBdVYrkVxHnUK45GXJFqpdB+FpPfniZiyONOTJPr4OKnIHUXhGjCRe1s+TpdxAqrXtDTDbEoJVzyp2FIobA6K/eSejoLUkWkJAMz8clfPrntxFPVqPP50s2Au5LbUPTgtcmqUL2thLGo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775075534; c=relaxed/simple; bh=452m8FHLQPVsDKFFpFV0J4unoJa1T/HptteCCz0jsx4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OjY6a2isz9sLfg0UvICAnoMhVofslLvxnln02yXekeit/HXgpfKsfZYyT0WgMtGtlziNMiDo+uf9EwnF7IBTKYmD+q+h6abIuKdhVwPFo0OHS8U2Lw3XLITvJXeO2xUygnsHoen02xT54WQt5VGavh2byVH4HWv8kPJFHespimM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XI55P+Gx; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XI55P+Gx" Received: by smtp.kernel.org (Postfix) with ESMTPS id 768E9C4CEF7; Wed, 1 Apr 2026 20:32:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775075534; bh=452m8FHLQPVsDKFFpFV0J4unoJa1T/HptteCCz0jsx4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=XI55P+GxTx1kx7OC5UNSzF5lPshMkLgN4vRGiJcxgpdCCY/7tZVZZvLAzJkO/GM5v kbngVRmPo5ML1r9YkGX6D2KZzoRto6sEdMg8NnsalvxXJm260yz/FA+2DnTSlo5WFV GP0AH0o62EI6/pN7fFdqrY4sxLlOU0Z7OkaAkaSR7H+n6QtlskDDcHKvNSCKWRUGDl zNCpCrOhb2IzOeMpgeku1QkMmbpd541kna2VoTEXFebOShxvu2pKRv5SKFi6D1j5Vg vgLk8BSqIfgZDlbzilNetFcm9ucQRx5EUFP4iQdHh1ANSuazOc7FyAF61y/PyIqQpR OJsI+UnVhstuA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 692C010FCACE; Wed, 1 Apr 2026 20:32:14 +0000 (UTC) From: Rudraksha Gupta via B4 Relay Date: Wed, 01 Apr 2026 13:32:14 -0700 Subject: [PATCH v3 2/4] ARM: dts: qcom: msm8960: Flatten I2C pinctrl state subnodes Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260401-expressatt_fuel_guage-v3-2-9674cfc0b5a2@gmail.com> References: <20260401-expressatt_fuel_guage-v3-0-9674cfc0b5a2@gmail.com> In-Reply-To: <20260401-expressatt_fuel_guage-v3-0-9674cfc0b5a2@gmail.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rudraksha Gupta X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1775075533; l=5002; i=guptarud@gmail.com; s=20240916; h=from:subject:message-id; bh=uGSuJpabkXo+b2760NIqVXSdmHC8oQgQfvmWmQRFFVI=; b=ONbsK8sMeCl2/DeiWXCNx3++3J1t0bEpuhnxGHZ+z2WYkYlihNnEdNlg3UrK5TWLoOpnYT4Hf t1HlT9312XbBNp/ccfGeNz7oCNG2nzZgMA7qhDwtbMQnqCVmt4ll55x X-Developer-Key: i=guptarud@gmail.com; a=ed25519; pk=ETrudRugWAtOpr0OhRiheQ1lXM4Kk4KGFnBySlKDi2I= X-Endpoint-Received: by B4 Relay for guptarud@gmail.com/20240916 with auth_id=211 X-Original-From: Rudraksha Gupta Reply-To: guptarud@gmail.com From: Rudraksha Gupta Remove unnecessary inner i2c*-pins {} wrapper nodes from the I2C pinctrl state definitions. Properties are moved directly under the -state {} node, consistent with modern DT style. Assisted-by: Claude:claude-opus-4.6 Signed-off-by: Rudraksha Gupta --- arch/arm/boot/dts/qcom/qcom-msm8960.dtsi | 140 +++++++++++++--------------= ---- 1 file changed, 56 insertions(+), 84 deletions(-) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi b/arch/arm/boot/dts/q= com/qcom-msm8960.dtsi index fd28401cebb5..6069fb925672 100644 --- a/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi +++ b/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi @@ -132,129 +132,101 @@ tlmm: pinctrl@800000 { #interrupt-cells =3D <2>; =20 i2c1_default_state: i2c1-default-state { - i2c1-pins { - pins =3D "gpio8", "gpio9"; - function =3D "gsbi1"; - drive-strength =3D <8>; - bias-disable; - }; + pins =3D "gpio8", "gpio9"; + function =3D "gsbi1"; + drive-strength =3D <8>; + bias-disable; }; =20 i2c1_sleep_state: i2c1-sleep-state { - i2c1-pins { - pins =3D "gpio8", "gpio9"; - function =3D "gpio"; - drive-strength =3D <2>; - bias-bus-hold; - }; + pins =3D "gpio8", "gpio9"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-bus-hold; }; =20 i2c2_default_state: i2c2-default-state { - i2c2-pins { - pins =3D "gpio12", "gpio13"; - function =3D "gsbi2"; - drive-strength =3D <8>; - bias-disable; - }; + pins =3D "gpio12", "gpio13"; + function =3D "gsbi2"; + drive-strength =3D <8>; + bias-disable; }; =20 i2c2_sleep_state: i2c2-sleep-state { - i2c2-pins { - pins =3D "gpio12", "gpio13"; - function =3D "gpio"; - drive-strength =3D <2>; - bias-bus-hold; - }; + pins =3D "gpio12", "gpio13"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-bus-hold; }; =20 i2c3_default_state: i2c3-default-state { - i2c3-pins { - pins =3D "gpio16", "gpio17"; - function =3D "gsbi3"; - drive-strength =3D <8>; - bias-disable; - }; + pins =3D "gpio16", "gpio17"; + function =3D "gsbi3"; + drive-strength =3D <8>; + bias-disable; }; =20 i2c3_sleep_state: i2c3-sleep-state { - i2c3-pins { - pins =3D "gpio16", "gpio17"; - function =3D "gpio"; - drive-strength =3D <2>; - bias-bus-hold; - }; + pins =3D "gpio16", "gpio17"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-bus-hold; }; =20 i2c7_default_state: i2c7-default-state { - i2c7-pins { - pins =3D "gpio32", "gpio33"; - function =3D "gsbi7"; - drive-strength =3D <8>; - bias-disable; - }; + pins =3D "gpio32", "gpio33"; + function =3D "gsbi7"; + drive-strength =3D <8>; + bias-disable; }; =20 i2c7_sleep_state: i2c7-sleep-state { - i2c7-pins { - pins =3D "gpio32", "gpio33"; - function =3D "gpio"; - drive-strength =3D <2>; - bias-bus-hold; - }; + pins =3D "gpio32", "gpio33"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-bus-hold; }; =20 i2c8_default_state: i2c8-default-state { - i2c8-pins { - pins =3D "gpio36", "gpio37"; - function =3D "gsbi8"; - drive-strength =3D <8>; - bias-disable; - }; + pins =3D "gpio36", "gpio37"; + function =3D "gsbi8"; + drive-strength =3D <8>; + bias-disable; }; =20 i2c8_sleep_state: i2c8-sleep-state { - i2c8-pins { - pins =3D "gpio36", "gpio37"; - function =3D "gpio"; - drive-strength =3D <2>; - bias-bus-hold; - }; + pins =3D "gpio36", "gpio37"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-bus-hold; }; =20 i2c10_default_state: i2c10-default-state { - i2c10-pins { - pins =3D "gpio73", "gpio74"; - function =3D "gsbi10"; - drive-strength =3D <8>; - bias-disable; - }; + pins =3D "gpio73", "gpio74"; + function =3D "gsbi10"; + drive-strength =3D <8>; + bias-disable; }; =20 i2c10_sleep_state: i2c10-sleep-state { - i2c10-pins { - pins =3D "gpio73", "gpio74"; - function =3D "gpio"; - drive-strength =3D <2>; - bias-bus-hold; - }; + pins =3D "gpio73", "gpio74"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-bus-hold; }; =20 i2c12_default_state: i2c12-default-state { - i2c12-pins { - pins =3D "gpio44", "gpio45"; - function =3D "gsbi12"; - drive-strength =3D <8>; - bias-disable; - }; + pins =3D "gpio44", "gpio45"; + function =3D "gsbi12"; + drive-strength =3D <8>; + bias-disable; }; =20 i2c12_sleep_state: i2c12-sleep-state { - i2c12-pins { - pins =3D "gpio44", "gpio45"; - function =3D "gpio"; - drive-strength =3D <2>; - bias-bus-hold; - }; + pins =3D "gpio44", "gpio45"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-bus-hold; }; =20 sdcc3_default_state: sdcc3-default-state { --=20 2.53.0 From nobody Thu Apr 2 00:08:13 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADBC33630A0; Wed, 1 Apr 2026 20:32:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775075534; cv=none; b=O1c7T7Y1o6OTWV0M8HNqCmhubz62VzvMIAWaemNNhJ095/7cCKb5WSVGScLfrTHfnvSQJ/gI8pB/05YMzetddOT4xMfvaeHOfmK9j+9IciqQDzFMtYlWRWYH6xz3q+0to7kklO/rlN+miIHtx/baNKTuRZueOnhrFEmBoLpI7Q4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775075534; c=relaxed/simple; bh=BhjX4uyPeeaD1j4TK8oIjoR7bWrbTgvxC9nfYp2K4Vg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AdKbKzSupLac8qHSEsxKaHkO0sQq78ppkJxFNEk2pmswJZ8mQdG22imLtkTI02E/HBoaZhCmNeFJHlrVASVejpjBKKiwjR9D6Zei79zBBnp5jmJZ0yqOU7g86eu3H2K2PgPJoAaDKVyDKYctXqO8FnNEY8Lp7M4fc6lZ8DnKIaQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Eka3qcdb; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Eka3qcdb" Received: by smtp.kernel.org (Postfix) with ESMTPS id 82DECC2BCB0; Wed, 1 Apr 2026 20:32:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775075534; bh=BhjX4uyPeeaD1j4TK8oIjoR7bWrbTgvxC9nfYp2K4Vg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Eka3qcdb8FG65mc9WEbe5t3yzmFAeFeHkgtFA40EDeyGdgTpET5F1GwUxXlNes7Ge LnTrcUoY887Qwv6V8cE++9xUvUBPHX6L9v0sthjvW1d/qDcPIdn6LRqk8+kXgs7cmi RruQJJ9GSWfTS4nmbPZWo8RbcNJDDR9WV/xjht5SsWuf2aBhhdd3WSGcPxgyNtNc5f WLshZf8Q236TZnY8Swc330tq/47SndZkm2x3uc5DdtMd45c3zDU5aPwnExMnQBZAcx NapSNBhDnPGKVdVRNA7E5nVyzIWQr+VVhGKYChlD3JQ7SuFm00EDxMXjsbpmTxQm82 9GJInnRwYefzg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7AB0910FCAD5; Wed, 1 Apr 2026 20:32:14 +0000 (UTC) From: Rudraksha Gupta via B4 Relay Date: Wed, 01 Apr 2026 13:32:15 -0700 Subject: [PATCH v3 3/4] ARM: dts: qcom: msm8960: Add GSBI5 I2C controller Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260401-expressatt_fuel_guage-v3-3-9674cfc0b5a2@gmail.com> References: <20260401-expressatt_fuel_guage-v3-0-9674cfc0b5a2@gmail.com> In-Reply-To: <20260401-expressatt_fuel_guage-v3-0-9674cfc0b5a2@gmail.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rudraksha Gupta , Konrad Dybcio X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1775075533; l=1769; i=guptarud@gmail.com; s=20240916; h=from:subject:message-id; bh=Gq2ZOsf1+PUrTIP7d32BgUfFC8VGna7SqX4ihp3Y+5c=; b=ENAUCLk3ske828CQibam5xXcn88ce3y2WOGib9+IkR+TeTg5FynzSB1m0mSPdAJDPaWv2aL/l qW1GKHys8LmCJOKqlekazU+8tExTTLH4/LHEU0fmp2odLLL26dMCfpa X-Developer-Key: i=guptarud@gmail.com; a=ed25519; pk=ETrudRugWAtOpr0OhRiheQ1lXM4Kk4KGFnBySlKDi2I= X-Endpoint-Received: by B4 Relay for guptarud@gmail.com/20240916 with auth_id=211 X-Original-From: Rudraksha Gupta Reply-To: guptarud@gmail.com From: Rudraksha Gupta Add the I2C controller node for GSBI5 (gpio24/gpio25) alongside its pinctrl default and sleep states. Assisted-by: Claude:claude-opus-4.6 Reviewed-by: Konrad Dybcio Signed-off-by: Rudraksha Gupta --- arch/arm/boot/dts/qcom/qcom-msm8960.dtsi | 31 ++++++++++++++++++++++++++++= +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi b/arch/arm/boot/dts/q= com/qcom-msm8960.dtsi index 6069fb925672..a427f0f41cd1 100644 --- a/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi +++ b/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi @@ -173,6 +173,20 @@ i2c3_sleep_state: i2c3-sleep-state { bias-bus-hold; }; =20 + i2c5_default_state: i2c5-default-state { + pins =3D "gpio24", "gpio25"; + function =3D "gsbi5"; + drive-strength =3D <8>; + bias-disable; + }; + + i2c5_sleep_state: i2c5-sleep-state { + pins =3D "gpio24", "gpio25"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-bus-hold; + }; + i2c7_default_state: i2c7-default-state { pins =3D "gpio32", "gpio33"; function =3D "gsbi7"; @@ -636,6 +650,23 @@ gsbi5_serial: serial@16440000 { =20 status =3D "disabled"; }; + + gsbi5_i2c: i2c@16480000 { + compatible =3D "qcom,i2c-qup-v1.1.1"; + reg =3D <0x16480000 0x1000>; + pinctrl-0 =3D <&i2c5_default_state>; + pinctrl-1 =3D <&i2c5_sleep_state>; + pinctrl-names =3D "default", "sleep"; + interrupts =3D ; + clocks =3D <&gcc GSBI5_QUP_CLK>, + <&gcc GSBI5_H_CLK>; + clock-names =3D "core", + "iface"; + #address-cells =3D <1>; + #size-cells =3D <0>; + + status =3D "disabled"; + }; }; =20 gsbi7: gsbi@16600000 { --=20 2.53.0 From nobody Thu Apr 2 00:08:13 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD393363C47; Wed, 1 Apr 2026 20:32:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775075534; cv=none; b=Ri8nSYzamuyH2w4cgHt374/c857DklP35zGVF7GWJqPeJzxFoBhUHSRnuC02OP2GaEsJIoYFWW33L6gGNq7U0SJWvIANdag765LEQQY5YQVvc678F/zZEJ071Np2eZOFpjnxmLu9v43lgdKflOI2JX1/mHa3Qb0RFQB2RoDGdsw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775075534; c=relaxed/simple; bh=jBsewHTghAIIn/wUMqhn7I3HEdWZ2HxsTOsAooxpTDw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SwT/VsxQilcqTzTCIx6VjgMx1GItNl+iggS7aIWJyMK2dbmm5MvMzjsxiNlY2EIVULVI7eoBceXoV5pGdDCLM8uqlUjvYcc65/EViqzqi0rUDfOEA5S/HiburTqqUKc6YsjoWsEsMY6/ZreXYJcO/+i92ZYfvC0P0XPeD6oimt0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Za3g2bWc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Za3g2bWc" Received: by smtp.kernel.org (Postfix) with ESMTPS id 96BEAC4AF12; Wed, 1 Apr 2026 20:32:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775075534; bh=jBsewHTghAIIn/wUMqhn7I3HEdWZ2HxsTOsAooxpTDw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Za3g2bWcnInyflFiripNysEfsYnK+m2T4NQzCOCKINQrlbKsEE0QOHxp+5RMznmP1 opGF+oU6HvVWnbAsvTN96/EGGawZok7eAxvfa/BLVezHnBuUjkXmy4fKQoycaPz9Vw /oxijF/RBwjzUePnuxmaIvGQOioUb/ZkbFktRW+kM6tZQi+edNQUawCbbgV1okjLor i9Tlx2eTYzGbYpNnr7QSLj7ZjuGhruxXJiJxUZ3GlZZ2EdPF73LfuLkoJHMGzI9Hfw U4pEpPkZj5KeGVF5nqH/kUs/o4sIZ3VI0qP3tOHDVpTyZXEY3fwUduO/vdmRzWgSqk 7joJeTHswcLMA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DDC610FCAD2; Wed, 1 Apr 2026 20:32:14 +0000 (UTC) From: Rudraksha Gupta via B4 Relay Date: Wed, 01 Apr 2026 13:32:16 -0700 Subject: [PATCH v3 4/4] ARM: dts: qcom: msm8960: expressatt: Add MAX17048 fuel gauge Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260401-expressatt_fuel_guage-v3-4-9674cfc0b5a2@gmail.com> References: <20260401-expressatt_fuel_guage-v3-0-9674cfc0b5a2@gmail.com> In-Reply-To: <20260401-expressatt_fuel_guage-v3-0-9674cfc0b5a2@gmail.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rudraksha Gupta , Dmitry Baryshkov , Konrad Dybcio X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1775075533; l=2748; i=guptarud@gmail.com; s=20240916; h=from:subject:message-id; bh=IonQhp2O6bu8eJNbRzvS3qlnrcCkSyJ1KwFHc6H2q3E=; b=Pdcp1JWN4eqttKlHzxOcnyf2fyTy1ZYVoNtr3gjw/2PNsqDxLNOAFRO8X03903ZgO0X0nmn1x gmONkSgnit+DIHLMZ74GPxb5UWn0XGgz7XsJlrIKHGYHIF5aHSqsc1M X-Developer-Key: i=guptarud@gmail.com; a=ed25519; pk=ETrudRugWAtOpr0OhRiheQ1lXM4Kk4KGFnBySlKDi2I= X-Endpoint-Received: by B4 Relay for guptarud@gmail.com/20240916 with auth_id=211 X-Original-From: Rudraksha Gupta Reply-To: guptarud@gmail.com From: Rudraksha Gupta Add MAX17048 fuel gauge support. Tested by comparing battery capacity readings between upstream (mainline max17040 driver) and downstream (Samsung max17048_fuelgauge driver) across a full discharge cycle. Upstream reads ~3% lower throughout. Both track the discharge curve correctly: Upstream: 95 92 88 87 86 87 83 82 80 68 60 55 50 45 40 35 30 20 16 10 1= 0 5 5 1 Downstream: 95 94 92 91 91 89 87 86 84 73 64 59 51 48 43 38 33 23 17 14 1= 2 8 6 3 Each pair of readings was collected by checking the upstream capacity first, then moving the battery to a second expressatt running downstream Android to check its capacity. The battery was then moved back to the upstream device for the next reading. This swap occasionally caused the upstream capacity to read slightly higher than the previous value (e.g. 86 -> 87). When this happened, the reading was retaken after the value settled. Link: https://github.com/LineageOS/android_kernel_samsung_d2/blob/stable/cm= -11.0-XNG3C/arch/arm/mach-msm/board-apexq-battery.c Link: https://github.com/LineageOS/android_kernel_samsung_d2/blob/stable/cm= -11.0-XNG3C/drivers/battery/Makefile#L5 Link: https://github.com/LineageOS/android_kernel_samsung_d2/blob/stable/cm= -11.0-XNG3C/arch/arm/mach-msm/Makefile#L308 Assisted-by: Claude:claude-opus-4.6 Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Signed-off-by: Rudraksha Gupta --- .../dts/qcom/qcom-msm8960-samsung-expressatt.dts | 23 ++++++++++++++++++= ++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts b/a= rch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts index 0e6959f7af6f..e4a5e49a43ec 100644 --- a/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts +++ b/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts @@ -186,6 +186,22 @@ &gsbi5_serial { status =3D "okay"; }; =20 +&gsbi5_i2c { + status =3D "okay"; + + fuel-gauge@36 { + compatible =3D "maxim,max17048"; + reg =3D <0x36>; + maxim,double-soc; + maxim,rcomp =3D /bits/ 8 <0x62>; + maxim,alert-low-soc-level =3D <2>; + interrupts-extended =3D <&tlmm 67 IRQ_TYPE_EDGE_FALLING>; + pinctrl-0 =3D <&fuelgauge_alert_pin>; + pinctrl-names =3D "default"; + wakeup-source; + }; +}; + &gsbi7 { qcom,mode =3D ; =20 @@ -587,6 +603,13 @@ touchkey_irq_pin: touchkey-irq-state { bias-disable; }; =20 + fuelgauge_alert_pin: fuelgauge-alert-state { + pins =3D "gpio67"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; + touchkey_i2c_pins: touchkey-i2c-state { pins =3D "gpio71", "gpio72"; function =3D "gpio"; --=20 2.53.0