From patchwork Fri Apr 5 14:06:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 786766 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E60516D9D5; Fri, 5 Apr 2024 14:06:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.87.146.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712326018; cv=none; b=ODdM24iyG2lrlEDfa/WFbImZkPDHe6BjICSMbp1BlSbSXtaGt66Vj6PmVTorz9XU9Xhw49qjV1NlP07U2LhGSkUJxYpAiXCOlBwRa0NFSew0XqIZQlJJVdqKnOsbRa77LoGmswNPPLD3nv4nB/uyec0f3vv7FdJR4lAxQKVNL7w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712326018; c=relaxed/simple; bh=3fob+Z0dnkN1sC01UfIVQnDIKoZPCEYw5nkU8O/lkew=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=W6C1kO2CuONiNASg5K/oyPQRj3o628TjfHBSevjnnWXD7l5Dbz4SAn4rd0n17UAkeWPHKOUIswfycxZ9t3WLPnevEMrzUPEmm5tK+CwS+7Uq1e9x0pcOh+LBTIDFz27KcVpg3ak8jdpuMY87cQWhdMyfsS9B2OtNVMVlYZvkpHE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=trvn.ru; spf=pass smtp.mailfrom=trvn.ru; dkim=pass (2048-bit key) header.d=trvn.ru header.i=@trvn.ru header.b=MfETN8eb; arc=none smtp.client-ip=194.87.146.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=trvn.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=trvn.ru Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=trvn.ru header.i=@trvn.ru header.b="MfETN8eb" Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id E729A41984; Fri, 5 Apr 2024 19:06:45 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1712326006; bh=3fob+Z0dnkN1sC01UfIVQnDIKoZPCEYw5nkU8O/lkew=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=MfETN8ebDdefmeErUHwP10ldK8IqQRN5+C6FbPC07kG8Edul2DUO9LuUz3K5IQwkz KuMcSYFHNVE4K525pq7p1Vzi8tdn3ojjx9PAQZ0dlYLMheVK1UOQ7xRs4f7xJ6GDZg Kctxi2jMA1M6BH5GIBgdpIwxlQ04ayphwXF7d2VehTXXLPO87Div6/5qlp4cFBctsP 2y7kAIL99vyGoJkyRNLJhVuh82sB6VYAADUt1n7AcIKAIClTLgyo7AnLqtsU9oPh2C J9qJEGs6Cct5kiGAIs12UV08p3x4wW9actG8DCa/QL+JGF97W3+U4e+UZHGvH1QTIE efkQJof+/7vSA== From: Nikita Travkin Date: Fri, 05 Apr 2024 19:06:10 +0500 Subject: [PATCH 1/4] dt-bindings: arm: qcom: Add msm8916 based Motorola devices Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240405-msm8916-moto-init-v1-1-502b58176d34@trvn.ru> References: <20240405-msm8916-moto-init-v1-0-502b58176d34@trvn.ru> In-Reply-To: <20240405-msm8916-moto-init-v1-0-502b58176d34@trvn.ru> 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, Nikita Travkin X-Developer-Signature: v=1; a=openpgp-sha256; l=828; i=nikita@trvn.ru; h=from:subject:message-id; bh=3fob+Z0dnkN1sC01UfIVQnDIKoZPCEYw5nkU8O/lkew=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBmEAVzlEKbLSRWHSbaVwks1LvpvwzU+eqTVHtas 86BjfU2l/OJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZhAFcwAKCRBDHOzuKBm/ dRIPD/0RhTKtWcXGi5ofuqNVafPzcak7zzl9p+UpgjtZm/6YmKQ0+vnOAnSLHeqonbpjSZc/+95 OXKZweQVI4H37Zm1mxSrp3Ed4Hc8AFkNjT0RGbtLs1QWd/yoXCtQJeppjvXzxi2rAC1cURT9WlH Z0vf/jSkUJdzZ/ZT1P5GYnnRjBh/Dk9z+y/hGf/hH8xOcuuXHGQE0jfHX75PiKxKzneIEWf2kAG XQ/+ZCWsC0FiZWYQS4isdSi1FVr6kvJWL+u0psRpr8ChoAJD4Mc9IGuOw/JdfuQNUkfsp0eKHWs ByeYfRpQ123lEIQg01hL4YRWkpni/lf2qYRwsL6zQjG9xuySebZ6CTbYHqzXSUxOGJw+htTjDd3 aV1RO3cMc15YMvYr401uuW68uimhMh8Bi9W1HF8yN+7V1EuPltYUCqy6sKmANwiIQxc94i+7pH/ L71Q04vZsI4+uyk4BN6r2dPaydfmKyLVCVKxI/BIwfnsyijBb+IxoloyD+FYsgW7mmghycAOIS0 lg40liEW92W/USbsMN1JEU+L84HfMGCcs3kkNkQDKYG0T7F0IMwxaJyasSijVpTwF1EtvWu0hbG 7jWoxozkRdQnmvJHc+LXqzIpmiE40yY9XlU0SfAcHSE9KuFPGvYvXNfNI5nu8P065RZ98kkZLlx fr6IwjuuZ9S93qA== X-Developer-Key: i=nikita@trvn.ru; a=openpgp; fpr=C084AF54523FAA837E2EC547431CECEE2819BF75 Add compatible values for the msm8916 based Motorola smartphones. Signed-off-by: Nikita Travkin Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/qcom.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index 1646e5bd23d8..29ff7c833909 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -197,6 +197,9 @@ properties: - huawei,g7 - longcheer,l8910 - longcheer,l8150 + - motorola,harpia + - motorola,osprey + - motorola,surnia - qcom,msm8916-mtp - samsung,a3u-eur - samsung,a5u-eur From patchwork Fri Apr 5 14:06:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 786290 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E64B16E897; Fri, 5 Apr 2024 14:06:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.87.146.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712326018; cv=none; b=auke5NRY2uBgSJcrfWvIe/9wAwaTd1Y3JTyFLu0z2jwRJ9V5yGqYL7fuUpsj4TMojuPKbg27dWXyKW5u9dWQRNf7vTrGpsqJVtLiF1bSw7cGsBHaqIdGjJ86tne6Se0f5Kl60VeGEbbeQchotIF07KvPQm8RQvvK6JfRb35OEXI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712326018; c=relaxed/simple; bh=G0bI5qgE0LDd9BRpOvotX6PHxextPx4tUVg60loKqQs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZQZ44gvYX6KkKuyiOgCr6skQ+VBYo1UW+EH2ZDtE8b9KkN/Iy5meVtOqgwKkL+5ued4I8W7KoXYgdXigTOCiSm1OWFzJg6z1nfA82wkOMGuHxoh0uQeztyTDxIjIRDZlSVk8EpF3YD+yUgFVj5sw6kmzx7JtcT7g4Nz5SEeKafg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=trvn.ru; spf=pass smtp.mailfrom=trvn.ru; dkim=pass (2048-bit key) header.d=trvn.ru header.i=@trvn.ru header.b=ovDHE782; arc=none smtp.client-ip=194.87.146.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=trvn.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=trvn.ru Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=trvn.ru header.i=@trvn.ru header.b="ovDHE782" Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id 0ACB1419A4; Fri, 5 Apr 2024 19:06:47 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1712326007; bh=G0bI5qgE0LDd9BRpOvotX6PHxextPx4tUVg60loKqQs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ovDHE782byrwBdEs9Yb5QjBGYCP4TFbI1ICSq+EdP8cd659Fc3MbkdvErVjNnZ3wN 2SKfM+bd5IcpqTpGvEhDVmcdVmgr/tgRDdMzffQ6MVMWK3UCcxm/HVEWyo07sjZgGc 2ESLADxxC8FrdGsZPdMLrYYIs8TmapLf+hvtj2YvQGM+CO0XXy5kBXArQlhFuncfPY quoZ7/C/ybY3UfcX/bFc+H67O2iGN2ZYMnLdoZyfcv5Tu7YFWSrjZt00vsG/j6DHGs YmidiWT4h4KGCyUQhDpW/46Ytf7QN7pxKwk94S/xjeSe8ihEz0Bj6/Tbeq8Bqint5+ weUChFSnetEbA== From: Nikita Travkin Date: Fri, 05 Apr 2024 19:06:11 +0500 Subject: [PATCH 2/4] arm64: dts: qcom: Add device tree for Motorola Moto G4 Play (harpia) Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240405-msm8916-moto-init-v1-2-502b58176d34@trvn.ru> References: <20240405-msm8916-moto-init-v1-0-502b58176d34@trvn.ru> In-Reply-To: <20240405-msm8916-moto-init-v1-0-502b58176d34@trvn.ru> 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, Nikita Travkin , Ruby Iris Juric , Stephan Gerhold X-Developer-Signature: v=1; a=openpgp-sha256; l=7948; i=nikita@trvn.ru; h=from:subject:message-id; bh=XHxbrEfPHjc7xJ6t++ybqaZ7WD2SUjXw+v5KvKRthVs=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBmEAVzBoxy7MIpq3B8jeYEFsS+jDdolWshMg/fs EO5RC24YwWJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZhAFcwAKCRBDHOzuKBm/ dSFeEACAgb9ZH9uRCwhww15hjH/vovmgRlTEXLElQAZVq37+GhW2mPUrGb9EG27TgSMujyz92Lz UswLofkYVNt7P7IUW9dir2I4tVNVwacSDdqboY9UbSJurpJMcmLJ2aqE/wmXsHJJ0BK+FcvfLs9 IFsFud41I24/8m7LFZUl5FMwnjsb9YN7aiGax9U6+y4HLGjv8cZyyoWNz7Q6PGjZu6JmuSiqfpV oBZiap1Po3VL3pAWvaLkZCuH+26ygHtp3XPJqIFsPghh5kV1IqPhpRr86FlQ4l98l5Ug3uBVDiF MTsERKBkje8X8Og4O2cWsoky+XjiTOLq3a/Tf1QuerbyFIern6u4w87rK2Avg41wTVWwhJ9KW8P rz0BvTvhmHp1qjHuW/2Eacy6ffh0mkgDJSudrJ7PB+3COdIv6g4spkOW+Fl9xJthA2dgr+vupYn YGsFv2F9rWeJe8iSVyYyvjg+m7GXVSDQ0dwy5r0QDM/jF/BkfO311q7K1JzycD9PIz2/csGx0rq fhHVWPXcyYkxFVFLH+7NPSIB1t+WsgHsh8/GLYGE9fTm434HOGBBNo2yFCkg0ZwPztCHPZ+WT++ DYkB8Rb9B/5n0v9fsrEG/SwRdtG62FY8DzHwFKRRwbjHa3loxcLca7s+2LA4sl7Mi23ffZxWONZ 5812rk7moV2ui+A== X-Developer-Key: i=nikita@trvn.ru; a=openpgp; fpr=C084AF54523FAA837E2EC547431CECEE2819BF75 From: Ruby Iris Juric Motorola Moto G4 Play is an msm8916 based smartphone. Supported features: - eMMC and SD; - Buttons; - Touchscreen; - USB; - Fuel Gauge; - Sound; - Accelerometer. msm8916 Moto devices share significant portion of the design so the common parts are separated into a common dtsi. Signed-off-by: Ruby Iris Juric Signed-off-by: Stephan Gerhold [Nikita: Split up to common dtsi] Signed-off-by: Nikita Travkin Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/msm8916-motorola-common.dtsi | 161 +++++++++++++++++++++ .../boot/dts/qcom/msm8916-motorola-harpia.dts | 147 +++++++++++++++++++ 3 files changed, 309 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 7d40ec5e7d21..8d3fc7cb7a4d 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -31,6 +31,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-gplus-fl8005a.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-huawei-g7.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-longcheer-l8150.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-longcheer-l8910.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8916-motorola-harpia.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-mtp.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a3u-eur.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a5u-eur.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8916-motorola-common.dtsi b/arch/arm64/boot/dts/qcom/msm8916-motorola-common.dtsi new file mode 100644 index 000000000000..6a27d0ecd2ad --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-motorola-common.dtsi @@ -0,0 +1,161 @@ +// SPDX-License-Identifier: GPL-2.0-only + +#include "msm8916-pm8916.dtsi" +#include "msm8916-modem-qdsp6.dtsi" + +#include +#include +#include + +/ { + aliases { + mmc0 = &sdhc_1; /* eMMC */ + mmc1 = &sdhc_2; /* SD card */ + serial0 = &blsp_uart1; + }; + + chosen { + stdout-path = "serial0"; + }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-0 = <&gpio_keys_default>; + pinctrl-names = "default"; + + label = "GPIO Buttons"; + + volume-up-button { + label = "Volume Up"; + gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + }; + }; + + usb_id: usb-id { + compatible = "linux,extcon-usb-gpio"; + id-gpios = <&tlmm 91 GPIO_ACTIVE_HIGH>; + pinctrl-0 = <&usb_id_default>; + pinctrl-1 = <&usb_id_sleep>; + pinctrl-names = "default", "sleep"; + }; +}; + +&blsp_i2c2 { + status = "okay"; + + touchscreen: touchscreen@20 { + compatible = "syna,rmi4-i2c"; + reg = <0x20>; + #address-cells = <1>; + #size-cells = <0>; + + vio-supply = <&pm8916_l6>; + + syna,startup-delay-ms = <100>; + + rmi4-f01@1 { + reg = <1>; + syna,nosleep-mode = <1>; /* Allow sleeping */ + }; + + rmi4-f11@11 { + reg = <11>; + syna,sensor-type = <1>; /* Touchscreen */ + }; + }; +}; + +&blsp_uart1 { + status = "okay"; +}; + +&mpss_mem { + reg = <0x0 0x86800000 0x0 0x5500000>; +}; + +&pm8916_resin { + linux,code = ; + status = "okay"; +}; + +&pm8916_rpm_regulators { + pm8916_l16: l16 { + regulator-min-microvolt = <3100000>; + regulator-max-microvolt = <3300000>; + }; +}; + +&pm8916_vib { + status = "okay"; +}; + +&sdhc_1 { + status = "okay"; +}; + +&sdhc_2 { + status = "okay"; +}; + +&usb { + extcon = <&usb_id>, <&usb_id>; + status = "okay"; +}; + +&usb_hs_phy { + extcon = <&usb_id>; +}; + +&venus { + status = "okay"; +}; + +&venus_mem { + status = "okay"; +}; + +&wcnss { + status = "okay"; +}; + +&wcnss_iris { + compatible = "qcom,wcn3620"; +}; + +&wcnss_mem { + status = "okay"; +}; + +/* CTS/RTX are not used */ +&blsp_uart1_default { + pins = "gpio0", "gpio1"; +}; +&blsp_uart1_sleep { + pins = "gpio0", "gpio1"; +}; + +&tlmm { + gpio_keys_default: gpio-keys-default-state { + pins = "gpio107"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + + usb_id_default: usb-id-default-state { + pins = "gpio91"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; + + usb_id_sleep: usb-id-sleep-state { + pins = "gpio91"; + function = "gpio"; + drive-strength = <8>; + bias-disable; + }; +}; diff --git a/arch/arm64/boot/dts/qcom/msm8916-motorola-harpia.dts b/arch/arm64/boot/dts/qcom/msm8916-motorola-harpia.dts new file mode 100644 index 000000000000..8380451ebbf6 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-motorola-harpia.dts @@ -0,0 +1,147 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-motorola-common.dtsi" + +/ { + model = "Motorola Moto G4 Play"; + compatible = "motorola,harpia", "qcom,msm8916"; + chassis-type = "handset"; +}; + +&blsp_i2c1 { + status = "okay"; + + battery@36 { + compatible = "maxim,max17050"; + reg = <0x36>; + + interrupts-extended = <&tlmm 62 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-0 = <&battery_alert_default>; + pinctrl-names = "default"; + + maxim,rsns-microohm = <10000>; + maxim,over-heat-temp = <600>; + maxim,cold-temp = <(-200)>; + maxim,dead-volt = <3200>; + maxim,over-volt = <4500>; + }; + + /* charger@6b */ +}; + +&blsp_i2c4 { + status = "okay"; + + accelerometer@19 { + compatible = "bosch,bma253"; + reg = <0x19>; + + interrupts-extended = <&tlmm 115 IRQ_TYPE_EDGE_RISING>, + <&tlmm 119 IRQ_TYPE_EDGE_RISING>; + + vdd-supply = <&pm8916_l17>; + vddio-supply = <&pm8916_l6>; + + mount-matrix = "1", "0", "0", + "0", "-1", "0", + "0", "0", "1"; + + pinctrl-0 = <&accel_int_default>; + pinctrl-names = "default"; + }; + + /* proximity@49 */ +}; + +&pm8916_codec { + qcom,micbias-lvl = <2800>; + qcom,mbhc-vthreshold-low = <75 150 237 450 500>; + qcom,mbhc-vthreshold-high = <75 150 237 450 500>; + qcom,micbias1-ext-cap; +}; + +&pm8916_rpm_regulators { + pm8916_l17: l17 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; +}; + +&sdhc_2 { + pinctrl-0 = <&sdc2_default &sdc2_cd_default>; + pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>; + pinctrl-names = "default", "sleep"; + + cd-gpios = <&tlmm 118 GPIO_ACTIVE_LOW>; +}; + +&sound { + audio-routing = + "AMIC1", "MIC BIAS External1", + "AMIC2", "MIC BIAS Internal2", + "AMIC3", "MIC BIAS External1"; + + pinctrl-0 = <&cdc_pdm_default &headset_switch_supply_en + &headset_switch_in>; + pinctrl-1 = <&cdc_pdm_sleep &headset_switch_supply_en + &headset_switch_in>; + pinctrl-names = "default", "sleep"; +}; + +&touchscreen { + interrupts-extended = <&tlmm 13 IRQ_TYPE_EDGE_FALLING>; + + vdd-supply = <&pm8916_l16>; + + pinctrl-0 = <&ts_int_default>; + pinctrl-names = "default"; +}; + +&tlmm { + accel_int_default: accel-int-default-state { + pins = "gpio115", "gpio119"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + battery_alert_default: battery-alert-default-state { + pins = "gpio62"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + + headset_switch_in: headset-switch-in-state { + pins = "gpio112"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; + + headset_switch_supply_en: headset-switch-supply-en-state { + pins = "gpio111"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-high; + }; + + sdc2_cd_default: sdc2-cd-default-state { + pins = "gpio118"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + ts_int_default: ts-int-default-state { + pins = "gpio13"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; +}; From patchwork Fri Apr 5 14:06:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 786765 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 96C9716E894; Fri, 5 Apr 2024 14:06:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.87.146.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712326020; cv=none; b=DKjdZvh12svD6qe8DvYVGM+UwRF/iseD7gwZkt5LYdwnU35oATbnUP2s3lflsI74l4nsn9MSBJBUfxJ6/swaCjccbnMSJImlk3LW/gtyXhViPDJOttqnv5UCIoiNfr5KpEvFT6o0iz967NkUc/TV6Wm54WIUhxV9tsm1STv9xec= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712326020; c=relaxed/simple; bh=myeprIocEwJnt1Y+8P46ayf0z1f5oJlFug4gelU9BI4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pW0uBXUZHE6Ipm0umMOavCDaLKo9xcW9/XspNYLSmAcxdtg9oRhqNbDIQQ9jaoPr45TYBiV8Xldr/Bbzq7Bzb6lFMVDxT65UJrGwh9kPj95rfi3Pyhoaqsjbz50oKe0xKtyvgZ0LvmaMyzQVuz5PrAnj0PH9Ve/cSdT3vPES2Uo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=trvn.ru; spf=pass smtp.mailfrom=trvn.ru; dkim=pass (2048-bit key) header.d=trvn.ru header.i=@trvn.ru header.b=IvlCUuGe; arc=none smtp.client-ip=194.87.146.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=trvn.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=trvn.ru Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=trvn.ru header.i=@trvn.ru header.b="IvlCUuGe" Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id 4EA5041A4D; Fri, 5 Apr 2024 19:06:48 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1712326008; bh=myeprIocEwJnt1Y+8P46ayf0z1f5oJlFug4gelU9BI4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=IvlCUuGeadufUJ/6DeuxtziKSg1G7Tu+etneMxNP9zky33OBTZmlvt0ecFSwVLFPl AIOKUrB56mKXBtmPFrFJmDHVsAcIsg78dpuZKFtB3bf28Y/ZehNjHf7DGh9LfTj5jg 6p0/C2oR2/zw9cSUJbNwYXXyr9YEWRCN0JsS2QDQjDx1HWWrCHD+i+lFPy87Bu8bPo LdCiVeLjzvYynehg/ituTJfGs7rVAiGKbdEfyzCCE4Z2JCvlBKbqDeIavNYgXgzgyM xyVmyIuC/urCN4w1lG9yN7CNq7L3IeLnksA80Um2GzeZ7u7/lxvDFt+MGwkyLKt+nH l3vDqaONVvHCA== From: Nikita Travkin Date: Fri, 05 Apr 2024 19:06:12 +0500 Subject: [PATCH 3/4] arm64: dts: qcom: Add Motorola Moto E 2015 LTE (surnia) Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240405-msm8916-moto-init-v1-3-502b58176d34@trvn.ru> References: <20240405-msm8916-moto-init-v1-0-502b58176d34@trvn.ru> In-Reply-To: <20240405-msm8916-moto-init-v1-0-502b58176d34@trvn.ru> 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, Nikita Travkin , =?utf-8?b?V2lrdG9yIFN0cnrEmWJhxYJh?= , =?utf-8?q?Val?= =?utf-8?q?=C3=A9rie_Roux?= , Stephan Gerhold X-Developer-Signature: v=1; a=openpgp-sha256; l=3297; i=nikita@trvn.ru; h=from:subject:message-id; bh=O5advYnXYUZahl22INbfyk1zYJZUHbTDIKFIs+rPPD0=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBmEAVzceLAvKWU7a4AXv6PDEP2i/1IEMHfsmVMY eqQqt/0Q1iJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZhAFcwAKCRBDHOzuKBm/ dYimD/4sexl4vL8UfjfkYIb9EpVT8ucsqlYhxhUadY7X75hyH8YH4vweiOa2J3UvtoWql5cEKnG 7f0qqi+adEJX5Vd/SfrdMe4PwjSssGMuSkwBo6Dx+Hu0sadfARJ//p2gMV+CXibERnS5yQaAuOy a0YlhwU7uvBuWw56c57P0M6g02sXc+vV8jeNKmzOwUPbtpgsAIfUppRGuoqKTkkSJD99zGfYGle X+QgJbYFL726KnmGI8XO+6tiN6C6oSjHegX+vVDhdHb/i5Wz+01jjhAi2j4k1LlfbO3pixLiNUb 8FHwfWuI9Vlp63tnK9X5TKpfELoiBdE3FYbVjoaLZvGkQvOH8G10U03odnujYE44ujGSeBqsK1x CDkn3JmA6xQvk3/KvzWGo72h+AfWoEnCTZd8n8Kvnbp/+j6AdLIEDsMvtKx32FixZr//csQABJe jgXUwVLQqUz6lS170c+FBKmd7IMK2UmEB0/BqjFx04qRgj9/DozUuxc/fHu76EuNhpmFpS5s1Oj UAAz2Kp6Uz7cb8DodSYa7Y0y9g5HGq3cEl6HT0tK5x/0qI9CIyEEhQBWiFOed8eLJ7TjwXDR0qt gcXsEWajKA6tSo/KFcwzw1PQobkrpyEDfxsRL+QXwxd5pnpHzALgmQ8c0kY1OfVtIGdlSFfFaqx f111eMc5WRrIr1A== X-Developer-Key: i=nikita@trvn.ru; a=openpgp; fpr=C084AF54523FAA837E2EC547431CECEE2819BF75 From: Wiktor Strzębała Motorola Moto E 2015 LTE is an msm8916 based smartphone. Supported features: - eMMC and SD; - Buttons; - Touchscreen; - USB; - Fuel Gauge; - Sound. Signed-off-by: Wiktor Strzębała [Valérie: Sound and modem] Co-developed-by: Valérie Roux Signed-off-by: Valérie Roux Signed-off-by: Stephan Gerhold [Nikita: Use common dtsi] Signed-off-by: Nikita Travkin Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/msm8916-motorola-surnia.dts | 83 ++++++++++++++++++++++ 2 files changed, 84 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 8d3fc7cb7a4d..acf3ee316fba 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -32,6 +32,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-huawei-g7.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-longcheer-l8150.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-longcheer-l8910.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-motorola-harpia.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8916-motorola-surnia.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-mtp.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a3u-eur.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a5u-eur.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8916-motorola-surnia.dts b/arch/arm64/boot/dts/qcom/msm8916-motorola-surnia.dts new file mode 100644 index 000000000000..eecf78ba45bb --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-motorola-surnia.dts @@ -0,0 +1,83 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-motorola-common.dtsi" + +/ { + model = "Motorola Moto E 2015 LTE"; + compatible = "motorola,surnia", "qcom,msm8916"; + chassis-type = "handset"; +}; + +&blsp_i2c4 { + status = "okay"; + + battery@36 { + compatible = "maxim,max17050"; + reg = <0x36>; + + interrupts-extended = <&tlmm 12 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-0 = <&battery_alert_default>; + pinctrl-names = "default"; + + maxim,rsns-microohm = <10000>; + maxim,over-heat-temp = <600>; + maxim,cold-temp = <(-200)>; + maxim,dead-volt = <3200>; + maxim,over-volt = <4500>; + + }; +}; + +&pm8916_codec { + qcom,micbias1-ext-cap; + qcom,micbias2-ext-cap; +}; + +&sdhc_2 { + pinctrl-0 = <&sdc2_default &sdc2_cd_default>; + pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>; + pinctrl-names = "default", "sleep"; + + cd-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>; +}; + +&sound { + audio-routing = + "AMIC1", "MIC BIAS External1", + "AMIC3", "MIC BIAS External1"; +}; + +&touchscreen { + interrupts-extended = <&tlmm 21 IRQ_TYPE_EDGE_FALLING>; + + vdd-supply = <&pm8916_l16>; + + pinctrl-0 = <&ts_int_default>; + pinctrl-names = "default"; +}; + +&tlmm { + battery_alert_default: battery-alert-default-state { + pins = "gpio12"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + + sdc2_cd_default: sdc2-cd-default-state { + pins = "gpio25"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + ts_int_default: ts-int-default-state { + pins = "gpio21"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; +}; From patchwork Fri Apr 5 14:06:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 786288 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EEE1B16D32D; Fri, 5 Apr 2024 14:07:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.87.146.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712326029; cv=none; b=M8ttRK4jQPnPmb9KtB+ew0GMGp+otB6Av0ExesAqjvAqOidNF8OpQ3Nvqf51FofSmK5THeg/zMpNq6c8F8zYTlySu4S7Jm/1yuP2ESdDWGlbMuAlrF7mg0kXpkiyEghWvgXo29TiyR3ZLzIGyAunDDK82AY3ITppgLsTRr7jpZs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712326029; c=relaxed/simple; bh=zMX6/kEpKXg2JJqCO+hct8hxdYhd0CZBG7xGH54MWtU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VEnZrOA5oqqqgE66hmCdVKAFzr+UbQ7phfPc4ANW9NoeiTuc/ltlnyRmjFjX+2lrn/4yqx52Yahf8C8Ef1pXPV7KTywcSey25HG2zTExYlo6ZyfA+XahcPeTS/SG8emmY9CxcHu2RT5pef8jsvPyPiBj3MLr27ySXep5ncLXYdM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=trvn.ru; spf=pass smtp.mailfrom=trvn.ru; dkim=pass (2048-bit key) header.d=trvn.ru header.i=@trvn.ru header.b=a9DQzRfs; arc=none smtp.client-ip=194.87.146.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=trvn.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=trvn.ru Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=trvn.ru header.i=@trvn.ru header.b="a9DQzRfs" Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id F3BC741B3D; Fri, 5 Apr 2024 19:06:48 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1712326009; bh=zMX6/kEpKXg2JJqCO+hct8hxdYhd0CZBG7xGH54MWtU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=a9DQzRfsY7LMQCmzdye+cfdnte6tsZzMcE8sEOud3nFUYKnxifR5BD/GFMRN/zdrx o9UjKNDjCvo8O6c1vRvESPpirsGrAg4Tn7rVHg3oQJ1eOYq9uQK8Ttst9BkgHedbYI dAduAiCVQ5KAaK/fJS64Cq4TqkrO6w5gUhdZmLSJH5/iBYfnAs8K0mb4u92kbqz0So r79w4idU306K5j02Mozx1mUpN/O3UNAG63AC4D9P6HNaKibkj7mGF79Dr9kGbYZ6f6 mCZHO2axrrDaCqw865v790XuprbLVsrTEM9CVu1uMQ3v1bfSGMJGDTz+lhsVhFq85p 3NhmI5AKnB2AA== From: Nikita Travkin Date: Fri, 05 Apr 2024 19:06:13 +0500 Subject: [PATCH 4/4] arm64: dts: qcom: Add Motorola Moto G 2015 (osprey) Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240405-msm8916-moto-init-v1-4-502b58176d34@trvn.ru> References: <20240405-msm8916-moto-init-v1-0-502b58176d34@trvn.ru> In-Reply-To: <20240405-msm8916-moto-init-v1-0-502b58176d34@trvn.ru> 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, Nikita Travkin , Martijn Braam , Stephan Gerhold X-Developer-Signature: v=1; a=openpgp-sha256; l=3668; i=nikita@trvn.ru; h=from:subject:message-id; bh=1lxV4kmdpqmEPj0zA90yXKpvEuv1NFWQ2boCZ0RO+Q8=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBmEAVz9Gow7um2uy0HXK62Xn8smmZtA4BgR1cVp CypqEnMpdiJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZhAFcwAKCRBDHOzuKBm/ dTDyEACoM7nY2EUtgyBqauzrDYAM+62aHtdOoE0hNSE6Bkbf7MRBP8mtvFK07I9PW4PVv6kiuKl ZgC+C+hfNKXFIz4yZqN8EeNIZGjI3sox8NEU/bIktF4xmx0iFRIyxOv+gkPhXKcdzMYFDEZnucO NUOAJM3olx+eIOpKwJA7cg9nsaS3bNAMqD6nk+/kfrkUTiXfMH953Rx767+Oi8MImYgMExB5Us2 5XDB8Z9LOs62ZsrjhqoeaigWO6SFxbB4g/l2YBlr2dJFC1onzAuyfQQDq0rnv+/n+j9/2hiAaoZ nat4zaMF6hp50MpDQV08HdAuRyML4cvAufn0rzIlx980XdMGqx4fK0ZDt7jRTlGCMDM8SH9zxpS rw5Ljfn61mznLWqo9662qr3yNa7zLU4NJkJ/7ZeqC51RgpuoB5VFrsA/JMagUrVse5C9iQYmbx6 i61H9Bt2ts6+iilyRnIlJv/WPua8L+QGPkrjW9OqgyOvkBjHPXufM8CQ4kpll8yfM/1X+k7Nsas R+G2CtE4XRurCgXZZQSIuvhOn/O+0OqRa7zNRccltEeKBVYPnpUM6WWzCyLos1ojsN3rzdLkZGh jsktuv0ThFpBA3JFXDi3Utnvv7Wl+wbb5DcI8OStfbK10ENQ49LXaX9t5cyVkjwpF7r2/rvc1zT sERVPPdYGGkvQEA== X-Developer-Key: i=nikita@trvn.ru; a=openpgp; fpr=C084AF54523FAA837E2EC547431CECEE2819BF75 From: Martijn Braam Motorola Moto G 2015 is an msm8916 based smartphone. Supported features: - eMMC and SD; - Buttons; - Touchscreen; - USB; - Fuel Gauge; - Sound. Signed-off-by: Martijn Braam Signed-off-by: Stephan Gerhold [Nikita: Use common dtsi] Signed-off-by: Nikita Travkin Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/msm8916-motorola-osprey.dts | 105 +++++++++++++++++++++ 2 files changed, 106 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index acf3ee316fba..ff23afb1b0db 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -32,6 +32,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-huawei-g7.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-longcheer-l8150.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-longcheer-l8910.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-motorola-harpia.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8916-motorola-osprey.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-motorola-surnia.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-mtp.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a3u-eur.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8916-motorola-osprey.dts b/arch/arm64/boot/dts/qcom/msm8916-motorola-osprey.dts new file mode 100644 index 000000000000..ec5589fc69bd --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-motorola-osprey.dts @@ -0,0 +1,105 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-motorola-common.dtsi" + +/ { + model = "Motorola Moto G 2015"; + compatible = "motorola,osprey", "qcom,msm8916"; + chassis-type = "handset"; + + reg_touch_vdda: regulator-touch-vdda { + compatible = "regulator-fixed"; + regulator-name = "touch_vdda"; + gpio = <&tlmm 114 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-0 = <&touch_vdda_default>; + pinctrl-names = "default"; + startup-delay-us = <300>; + vin-supply = <&pm8916_l16>; + }; +}; + +&blsp_i2c1 { + status = "okay"; + + battery@36 { + compatible = "maxim,max17050"; + reg = <0x36>; + + interrupts-extended = <&tlmm 49 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-0 = <&battery_alert_default>; + pinctrl-names = "default"; + + maxim,rsns-microohm = <10000>; + maxim,over-heat-temp = <600>; + maxim,cold-temp = <(-200)>; + maxim,dead-volt = <3200>; + maxim,over-volt = <4500>; + + }; +}; + +&blsp_i2c6 { + /* magnetometer@c */ +}; + +&pm8916_codec { + qcom,micbias1-ext-cap; + qcom,micbias2-ext-cap; +}; + +&sdhc_2 { + pinctrl-0 = <&sdc2_default &sdc2_cd_default>; + pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>; + pinctrl-names = "default", "sleep"; + + cd-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>; +}; + +&sound { + audio-routing = + "AMIC1", "MIC BIAS External1", + "AMIC3", "MIC BIAS External1"; +}; + +&touchscreen { + interrupts-extended = <&tlmm 21 IRQ_TYPE_EDGE_FALLING>; + + vdd-supply = <®_touch_vdda>; + + pinctrl-0 = <&ts_int_default>; + pinctrl-names = "default"; +}; + +&tlmm { + battery_alert_default: battery-alert-default-state { + pins = "gpio49"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + + sdc2_cd_default: sdc2-cd-default-state { + pins = "gpio25"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + ts_int_default: ts-int-default-state { + pins = "gpio21"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + touch_vdda_default: touch-vdda-default-state { + pins = "gpio114"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; +};