From nobody Fri Dec 19 22:03:55 2025 Received: from out-179.mta0.migadu.com (out-179.mta0.migadu.com [91.218.175.179]) (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 712D85F86E for ; Sat, 3 Feb 2024 19:12:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706987549; cv=none; b=ufsls6EDr4KMDLfC3wuSTFVTCdYCRIf/Eg3MXqM1zoYRWaxMKEgbrcEE6p5K/6FjsP3ljPYLCZ7r6kkRRxnjubQvH+tPaGXnvQZ72NBkzDG0a6LIfKIZmnxtYMyUhknR3/KQKjxrU/goFjU+pIPQv/9NcriFt4PUa0A0427JM1k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706987549; c=relaxed/simple; bh=bd7lZoKMBfp0dNJw3NMwekWLKolEqwplDPJst9vEqNE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ermsmkwWTdTIUKB6JHnaPGMFTFELPNQ4sNdTT+nNaQxpsdkMfeP76JsUcevXiPn+3TRC18Oyu4gomTRQIDU+5zNYh5Xs960DeIsbxEMF+EQ66d/wxWXRfTB7cMM0GHfSatCNmuQ4mElOzhIv/9mNnU1rvWKmHXpGiJnZjpZJkvQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org; spf=pass smtp.mailfrom=postmarketos.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b=TAIdHCEh; arc=none smtp.client-ip=91.218.175.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="TAIdHCEh" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1706987545; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=n7cWIwnS8VWIVYNfovS60jJxitrKNEY+l7a3wpu9pzs=; b=TAIdHCEhyaYlc7T8IU8N3I+0e+nbVbDNFp+Q95Z0sUBUz3qbQVu/hjscMg2CE4iBV0qMtQ bFMMcIqhiEwZNOJAXLVFWdp/tirHQaDloxTGO1idBDhN0AQ4qIEs1ugl/yl9jn6bkLEncz i/DoAGmfavATZ65Geim5mSn3ZTBtDTwM4xIKHcf5DJ9idZlNSM5XrKWbC1PAA/P7sMVoqz awqdjK1Wv9iJYSvXXtO7YNjFZXRpw5OJ4hbzJv+hIMMNx+4VigvRzpe7/JtMcR7SvjjZoa XMCLOpXrRnA+N+xY0zjwvJnaGuEa+MQ9opMlD5yzQUNdLOTV7UrBFT5XbWPaVQ== From: Anton Bambura 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 Subject: [PATCH v2 1/6] arm64: dts: qcom: sc8180x-lenovo-flex-5g: fix GPU firmware path Date: Sat, 3 Feb 2024 21:11:55 +0200 Message-ID: <20240203191200.99185-2-jenneron@postmarketos.org> In-Reply-To: <20240203191200.99185-1-jenneron@postmarketos.org> References: <20240203191200.99185-1-jenneron@postmarketos.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Fix GPU firmware path so it uses model-specific directory. Signed-off-by: Anton Bambura Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts b/arch/arm= 64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts index 0c22f3efec20..49b740c54674 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts +++ b/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts @@ -350,7 +350,7 @@ &gpu { =20 zap-shader { memory-region =3D <&gpu_mem>; - firmware-name =3D "qcom/sc8180x/qcdxkmsuc8180.mbn"; + firmware-name =3D "qcom/sc8180x/LENOVO/82AK/qcdxkmsuc8180.mbn"; }; }; =20 --=20 2.42.0 From nobody Fri Dec 19 22:03:55 2025 Received: from out-176.mta0.migadu.com (out-176.mta0.migadu.com [91.218.175.176]) (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 C0D535FBA9 for ; Sat, 3 Feb 2024 19:12:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706987551; cv=none; b=LWwuHq+MpUnwHugaA8NK7iEySV/P7QiB9YmFnh69z/pqSB56ET1jbR9snavjIObFl91CsXmWHwcymvF10QmacacmQPuhgNmgDBPx/yJOd7GUFmqWQXScUxjFFxFiwwiFSYaPz9DjWVgK3r98Qeh9gr+R/qu4Z/o3cr4fRrHtK1A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706987551; c=relaxed/simple; bh=J8IFhoGsohtOpwruk4ziSaGxl/siYh6wsWyTWq71ZEo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eOI1EaVt0Owo+UZMXQQqXWUnqYvu8wa52QXEy1Qt4AXnju3RCmsUemoFN+8CYtRbais5YPM/qe1NkH4U33RdI/kQ3cCzplreq20GaS2fdZ5S7ciz2bmM8Ue1l+AyxsL7Fi66wazl1VWo82O+peA4Qf+zow89AhSXHTkZGOXzW8c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org; spf=pass smtp.mailfrom=postmarketos.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b=RbQf6Ixa; arc=none smtp.client-ip=91.218.175.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="RbQf6Ixa" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1706987546; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vh3oMQ24VxcFcdoo1SJYXgM61FClsIuFWkVwGbHbrs0=; b=RbQf6Ixa7wrv8TWK2mwKh2qxhRdFjX+XA5YffZ1hkIJC6ejSLJkVj+MwnMozGZtJnlyUTO WNNwiygEvq8Up5KioHfUxW30suQSwL4CtcwZnCCyvLaX6pL99uXQiBXId+cZWWhsQ5D+NJ a7hpCIT9bQnMzHwNzSdgXiGSfEG9iRfnT192To6pEpRqClL6/+miCM8t3KoSTDi6xkVMWD 60Jp0A9T7ND4yBr6GdwhocPmgsfpAPQRRC8teFQ9U4v0HjYwUOBmExKD03Qscl9/QeWasT SEj/xlk1B8qPXT53Z+JuHc4NgCUeZ7H3FKvgvrIR8IcUIuG5tCKIHN0UI/kWiQ== From: Anton Bambura 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 Subject: [PATCH v2 2/6] arm64: dts: qcom: sc8180x-lenovo-flex-5g: set names for i2c hid nodes Date: Sat, 3 Feb 2024 21:11:56 +0200 Message-ID: <20240203191200.99185-3-jenneron@postmarketos.org> In-Reply-To: <20240203191200.99185-1-jenneron@postmarketos.org> References: <20240203191200.99185-1-jenneron@postmarketos.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Set names, so they correspond to devices connected to these interfaces. Signed-off-by: Anton Bambura Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts b/arch/arm= 64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts index 49b740c54674..af61acf58d68 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts +++ b/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts @@ -362,7 +362,7 @@ &i2c1 { =20 status =3D "okay"; =20 - hid@10 { + touchscreen@10 { compatible =3D "hid-over-i2c"; reg =3D <0x10>; hid-descr-addr =3D <0x1>; @@ -379,7 +379,7 @@ &i2c7 { =20 status =3D "okay"; =20 - hid@5 { + keyboard@5 { compatible =3D "hid-over-i2c"; reg =3D <0x5>; hid-descr-addr =3D <0x20>; @@ -387,7 +387,7 @@ hid@5 { interrupts-extended =3D <&tlmm 37 IRQ_TYPE_LEVEL_LOW>; }; =20 - hid@2c { + touchpad@2c { compatible =3D "hid-over-i2c"; reg =3D <0x2c>; hid-descr-addr =3D <0x20>; --=20 2.42.0 From nobody Fri Dec 19 22:03:55 2025 Received: from out-171.mta0.migadu.com (out-171.mta0.migadu.com [91.218.175.171]) (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 33E675FBB4 for ; Sat, 3 Feb 2024 19:12:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706987550; cv=none; b=drWl3v49cExkN2bYsji7yvUpmQuLsTLqHvQsZyp570T1P6gaRi2ufUq0GCWHDWp0Pbm/FEdLwl9cOGqGpTU/pXM0baE3St8VpAbigiiVX80LuY4t5ZfwmeTl1H20VcfaXZJh6xtNDy6NTJS6id5ypXmxAOOMiFkV0FtNV8zfpQs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706987550; c=relaxed/simple; bh=giYyQ4lqO2YoScnu5Fp4JQtpjhwywXg+LNVOFgiaUWk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Btk3Gm2WrfjuaO8elAy+1fPZPXcfsAlW5Y5ldeJJSmH1Ot4l9PYTbgfu6+go6uuh2sg7uqiYmhew1mE59X8EnNxV4qQwaBcal7+xM3sFSUFCIkUXDGnH6PY7fS1XcVCburSyobntBq5idFBtT4Yn4yL8dJo7pFJltfNizSwb8W8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org; spf=pass smtp.mailfrom=postmarketos.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b=igtWCgzx; arc=none smtp.client-ip=91.218.175.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="igtWCgzx" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1706987547; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=k8u/VoqVTUPlxnhfNHXLj42MX1rvQDLgTi15K0P6Loc=; b=igtWCgzxSlUCY3vSNXhlX14Ld4HMdQpGC5OG1/xekfw1Iw7LK9I+a7JvnL26JGiJnJo5Y7 FP9Jee7bYrhOo7U9FN8YZ5lR2KUNeQG+kLvgEYTt101d+yY7+iFifakR41ZvDiNnBJ0b4J sbMONfaK0/k27pCQGvFhgLBMrd9l/77Y85KwTYql02DuDTSMT3JzsPvO6zNkeCWDhoiSZa g5NO19QNoHLDepK++u0ln4Y+gHT2tdLMR4SnVDAJn7biNNpbgBtfuNAugU2sHnI+/HOq+E fWjDThdRgxx04oIaw+xV6cictjDm6Taek0dtySMNGx8Kgc7iGLS+5yyngfOqdw== From: Anton Bambura 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 Subject: [PATCH v2 3/6] arm64: dts: qcom: sc8180x-lenovo-flex-5g: move pinctrl to appropriate nodes Date: Sat, 3 Feb 2024 21:11:57 +0200 Message-ID: <20240203191200.99185-4-jenneron@postmarketos.org> In-Reply-To: <20240203191200.99185-1-jenneron@postmarketos.org> References: <20240203191200.99185-1-jenneron@postmarketos.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Split keyboard and touchpad pinctrl nodes since they are for different devices and move keyboard, touchpad and touchscreen pinctrl references to appropriate nodes. Signed-off-by: Anton Bambura Reviewed-by: Konrad Dybcio --- .../boot/dts/qcom/sc8180x-lenovo-flex-5g.dts | 41 +++++++++++++------ 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts b/arch/arm= 64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts index af61acf58d68..6ae6cb030b70 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts +++ b/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts @@ -357,7 +357,7 @@ zap-shader { &i2c1 { clock-frequency =3D <100000>; =20 - pinctrl-0 =3D <&i2c1_active>, <&i2c1_hid_active>; + pinctrl-0 =3D <&i2c1_active>; pinctrl-names =3D "default"; =20 status =3D "okay"; @@ -368,13 +368,16 @@ touchscreen@10 { hid-descr-addr =3D <0x1>; =20 interrupts-extended =3D <&tlmm 122 IRQ_TYPE_LEVEL_LOW>; + + pinctrl-0 =3D <&ts_int_default>; + pinctrl-names =3D "default"; }; }; =20 &i2c7 { clock-frequency =3D <100000>; =20 - pinctrl-0 =3D <&i2c7_active>, <&i2c7_hid_active>; + pinctrl-0 =3D <&i2c7_active>; pinctrl-names =3D "default"; =20 status =3D "okay"; @@ -385,6 +388,9 @@ keyboard@5 { hid-descr-addr =3D <0x20>; =20 interrupts-extended =3D <&tlmm 37 IRQ_TYPE_LEVEL_LOW>; + + pinctrl-0 =3D <&kb_int_default>; + pinctrl-names =3D "default"; }; =20 touchpad@2c { @@ -393,6 +399,9 @@ touchpad@2c { hid-descr-addr =3D <0x20>; =20 interrupts-extended =3D <&tlmm 24 IRQ_TYPE_LEVEL_LOW>; + + pinctrl-0 =3D <&tp_int_default>; + pinctrl-names =3D "default"; }; }; =20 @@ -669,14 +678,6 @@ i2c1_active: i2c1-active-state { drive-strength =3D <2>; }; =20 - i2c1_hid_active: i2c1-hid-active-state { - pins =3D "gpio122"; - function =3D "gpio"; - - bias-pull-up; - drive-strength =3D <2>; - }; - i2c7_active: i2c7-active-state { pins =3D "gpio98", "gpio99"; function =3D "qup7"; @@ -685,8 +686,8 @@ i2c7_active: i2c7-active-state { drive-strength =3D <2>; }; =20 - i2c7_hid_active: i2c7-hid-active-state { - pins =3D "gpio37", "gpio24"; + kb_int_default: kb-int-default-state { + pins =3D "gpio37"; function =3D "gpio"; =20 bias-pull-up; @@ -718,6 +719,22 @@ wake-n-pins { }; }; =20 + tp_int_default: tp-int-default-state { + pins =3D "gpio24"; + function =3D "gpio"; + + bias-pull-up; + drive-strength =3D <2>; + }; + + ts_int_default: ts-int-default-state { + pins =3D "gpio122"; + function =3D "gpio"; + + bias-pull-up; + drive-strength =3D <2>; + }; + usbprim_sbu_default: usbprim-sbu-state { oe-n-pins { pins =3D "gpio152"; --=20 2.42.0 From nobody Fri Dec 19 22:03:55 2025 Received: from out-185.mta0.migadu.com (out-185.mta0.migadu.com [91.218.175.185]) (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 E4DAA5F554 for ; Sat, 3 Feb 2024 19:12:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.185 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706987551; cv=none; b=GYtBgBOccShbxH/VaEtN9V3+XXLW9mxwqui8TR74ulfVbLdqaqrT5hvchc1Hv4efaBn2G6Y+99pVjKrK8dFPMLYh4X9gmdIlnQhi4vPvW3+6FDTC0By5al7GNZg/YhzjbxQMvbuKc/acIKnSdnumWrYgU1KQIQmMNtRUhGkXJ4c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706987551; c=relaxed/simple; bh=Kyg5hCGVIsasfn2sYOZ2Upwno/GNqXDiIQfjVDfxKzQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GFpTgVHGkYZX82ODZgSaAu3ee64fRiX2nNjl5IGE35J+ZjVotgJCVgaz3/qP2d1jEjiL3p1bTr4ePRBUHOQyAAQwUDVa+PWU/U2oUBZN6In+7SrOgWAERSGYOhpFMOhQh5noOEgSqbbaNHYBT9zYpZ1O2iEuArWIV/G4VBJoKsU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org; spf=pass smtp.mailfrom=postmarketos.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b=RbjIWUwX; arc=none smtp.client-ip=91.218.175.185 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="RbjIWUwX" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1706987548; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gYHXn/FsWUe2ytcr0pi3c4QgJvZ4Eb2tVvL9ad3fkVg=; b=RbjIWUwXmQ9KchClb5AWuFa2usojLqz8Bv+i2risRZblgtQW+0z4oIfe6f0rb5VhoY6d7G IPQTzKnoT957/z2cORub5Fcv4RXTT8xXEn4JsZGFC496CS5DxrTBiAAxSjrlK8vKmVuhHr 9ofvbkgDweD4oqZ0JZqCyC4yz0KAuPVmmeMkQkCXNiWqmfwDnPu8ApHEpzxO822WuyubVe Dt6duOZd5Xcs+vjzwyUfOXhpYmOdAAqnyjihds0LTJ8itLWvIkgpvNXsANs1Bq8CjPLdni BL4jvQ9cZCbBAEfCn6UaONbi+PI3DjyrS6XOksBchN/ul2yE4NAR61CNrChlnw== From: Anton Bambura 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 Subject: [PATCH v2 4/6] arm64: dts: qcom: sc8180x-lenovo-flex-5g: enable touchscreen Date: Sat, 3 Feb 2024 21:11:58 +0200 Message-ID: <20240203191200.99185-5-jenneron@postmarketos.org> In-Reply-To: <20240203191200.99185-1-jenneron@postmarketos.org> References: <20240203191200.99185-1-jenneron@postmarketos.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Set regulators, reset gpio and delays according to ACPI tables. Signed-off-by: Anton Bambura Reviewed-by: Konrad Dybcio --- .../boot/dts/qcom/sc8180x-lenovo-flex-5g.dts | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts b/arch/arm= 64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts index 6ae6cb030b70..5bf6285f905f 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts +++ b/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts @@ -271,6 +271,12 @@ vreg_l3c_1p2: ldo3 { regulator-initial-mode =3D ; }; =20 + vreg_l4c_3p3: ldo4 { + regulator-min-microvolt =3D <3296000>; + regulator-max-microvolt =3D <3304000>; + regulator-initial-mode =3D ; + }; + vreg_l10c_3p3: ldo10 { regulator-min-microvolt =3D <3000000>; regulator-max-microvolt =3D <3312000>; @@ -337,6 +343,12 @@ vreg_l10e_2p9: ldo10 { regulator-initial-mode =3D ; }; =20 + vreg_l12e_1p8: ldo12 { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-initial-mode =3D ; + }; + vreg_l16e_3p0: ldo16 { regulator-min-microvolt =3D <3072000>; regulator-max-microvolt =3D <3072000>; @@ -365,11 +377,19 @@ &i2c1 { touchscreen@10 { compatible =3D "hid-over-i2c"; reg =3D <0x10>; + hid-descr-addr =3D <0x1>; + reset-gpios =3D <&tlmm 54 GPIO_ACTIVE_LOW>; + + vdd-supply =3D <&vreg_l4c_3p3>; + vddl-supply =3D <&vreg_l12e_1p8>; + + post-power-on-delay-ms =3D <3>; + post-reset-deassert-delay-ms =3D <200>; =20 interrupts-extended =3D <&tlmm 122 IRQ_TYPE_LEVEL_LOW>; =20 - pinctrl-0 =3D <&ts_int_default>; + pinctrl-0 =3D <&ts_int_default>, <&ts_reset_default>; pinctrl-names =3D "default"; }; }; @@ -735,6 +755,14 @@ ts_int_default: ts-int-default-state { drive-strength =3D <2>; }; =20 + ts_reset_default: ts-reset-default-state { + pins =3D "gpio54"; + function =3D "gpio"; + + bias-disable; + drive-strength =3D <16>; + }; + usbprim_sbu_default: usbprim-sbu-state { oe-n-pins { pins =3D "gpio152"; --=20 2.42.0 From nobody Fri Dec 19 22:03:55 2025 Received: from out-180.mta0.migadu.com (out-180.mta0.migadu.com [91.218.175.180]) (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 6362F5FF19 for ; Sat, 3 Feb 2024 19:12:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706987553; cv=none; b=QTJoPDgmcCWJGkm+ynrVH3YjQA93+JQh8XbHAH3Un29+3+QYag2gQdHaJ8rBSf6EspEU8v3FebltOojKKn9X/0wUdBJp9w2daT5e1QESiYGMcZwSinyQoVURvz8Zo0SjrC50IqHQSNRwtD/N9/2h9QdzjmOxa7ZGuJ+YuTo+VyU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706987553; c=relaxed/simple; bh=tw40LbD/9SOm06FTl+3KTgIgnIp1jgGuZPZaojk1IsA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qkYpg1McPv/Huj0MMWd5gmAnHnm0rbE0ESgZlhq42O+S+idFtWxPTM4Qvm+Qbqies194hELBBnfO48qybV2tVlNYpFmMNTHAthrUWDa5E+USZve1jNr76rSIQscUcXnaWYQk1XdlITN3J5YkIA8VKfDxgRVPQKCHSWeXTX+W7Ro= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org; spf=pass smtp.mailfrom=postmarketos.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b=afDYVkmV; arc=none smtp.client-ip=91.218.175.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="afDYVkmV" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1706987548; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=N97OQKuFnBwc0GBASpKpOKnWTYzMr5KBGcwXadZbmy0=; b=afDYVkmVJhHippA4saeNjIm/zbdfirmXqrfs6S6nBgcixmhnT6tGlIlmPvAF+NCcd4p6mi on4I2tp5Yaohva6PLYAM65XqIyenzmwnxg11RMc4PsVMZ6Vyd2JfiUZt/YP32vvN3zh4Hl hrz5+xkycP1eKc012NcPWf1KusCFvPI7Q2tkJcTkJQsF+wOqgoe9caV5ZzDC7JjcBrHmEQ OGUsTsld+6Zm8bVBEMukmTeG0v07BBhVKDfF2zF0XxOVzarpCVjG+NtjIuba5vC1gru3Td xAEpDVMJJEBAqCmIa+B/tI0RW60dgRFRyrTDte9stHxZwuMr8/woa9WOcC5DzQ== From: Anton Bambura 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 Subject: [PATCH v2 5/6] arm64: dts: qcom: sc8180x-lenovo-flex-5g: set touchpad i2c frequency to 1 MHz Date: Sat, 3 Feb 2024 21:11:59 +0200 Message-ID: <20240203191200.99185-6-jenneron@postmarketos.org> In-Reply-To: <20240203191200.99185-1-jenneron@postmarketos.org> References: <20240203191200.99185-1-jenneron@postmarketos.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" This solves the issue when touchpad gets stuck on right or middle click. This also makes touchpad working smoother. Signed-off-by: Anton Bambura Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts b/arch/arm= 64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts index 5bf6285f905f..0bfc655e9a31 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts +++ b/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts @@ -395,7 +395,7 @@ touchscreen@10 { }; =20 &i2c7 { - clock-frequency =3D <100000>; + clock-frequency =3D <1000000>; =20 pinctrl-0 =3D <&i2c7_active>; pinctrl-names =3D "default"; --=20 2.42.0 From nobody Fri Dec 19 22:03:55 2025 Received: from out-175.mta0.migadu.com (out-175.mta0.migadu.com [91.218.175.175]) (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 6E75860247 for ; Sat, 3 Feb 2024 19:12:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706987553; cv=none; b=hS2mIzTKRGAhb2N/0JnWNC14TEOjtRWqp110BKfnvx5UfIQB/r3ecp82YWRQFGmPAttc817EUTjWtTYZP40W7PNdBvyB9jEK+0a6M16U6G7DiFhyigIH8mCS5LEdshnWZNGNuOLwMkuJqvlCQfO1zz8OfLCuQUv05wpRir/1Zkw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706987553; c=relaxed/simple; bh=TdNOj56gRwLjQaHS89k0AnOJ05DtbA6b9MJxjIDYlIY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ddj6RKVJzhhGL/15qNGdv4R/EULpjHgax1Vo8wKmyzkYxS5Ji64wtm5ekvtBoSidlwAhq2f3QgMvUE4dOv2Xey5iDC8PoUNZd4ikDz5UuqBum80ehhq10Pdo99o8pT57dihJCxPSuTebEssPZJuy5Umh2kruhiAsRQJO/AUyc+8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org; spf=pass smtp.mailfrom=postmarketos.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b=qkXcRaT3; arc=none smtp.client-ip=91.218.175.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="qkXcRaT3" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1706987549; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IWrCDsFafWqQwP/SgCzI7FzJHbtr/YwtyR/hwDdPlkY=; b=qkXcRaT3gXjv7MJuG6M0Ta3E04bYGrYAV8QVhfA3YMLMk6BSeQH77LBgcizpvwsAZTgKUg +UIT/nJGoxaOIY873ozy5oYQ9JLIm4eLmwenCI3uI9R0wiX0QnqIHHnLk2aL4eBLEndqQl m+8sILMc+FSrJAloR7kVU2ahca2/oH/910RsR8OLEQ7uBqet1M0eiitlduUd+pFehWpqaf Iw9/Op7kO1H2SXOWvARiRu6aNSwzgRvNZ1WQq5YRM676I2R/Qsfpftlc1E+oTou+MS3EyT huzoCGBibmFYDA3Ox+U87miZ9ALdNu+GRMBNg/4RXXxMS4z5+0/vX0j74LiMCQ== From: Anton Bambura 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 Subject: [PATCH v2 6/6] arm64: dts: qcom: sc8180x-lenovo-flex-5g: Allow UFS regulators load/mode setting Date: Sat, 3 Feb 2024 21:12:00 +0200 Message-ID: <20240203191200.99185-7-jenneron@postmarketos.org> In-Reply-To: <20240203191200.99185-1-jenneron@postmarketos.org> References: <20240203191200.99185-1-jenneron@postmarketos.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" The UFS driver expects to be able to set load (and by extension, mode) on the supplied regulators. Add the necessary properties to make that possible. Based on https://lore.kernel.org/r/20231214-topic-sc8180_fixes-v1-6-4219048= 63006@linaro.org Signed-off-by: Anton Bambura Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts b/arch/arm= 64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts index 0bfc655e9a31..a41958f9ef2b 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts +++ b/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts @@ -335,12 +335,18 @@ vreg_l7e_1p8: ldo7 { regulator-min-microvolt =3D <1800000>; regulator-max-microvolt =3D <1800000>; regulator-initial-mode =3D ; + regulator-allowed-modes =3D ; + regulator-allow-set-load; }; =20 vreg_l10e_2p9: ldo10 { regulator-min-microvolt =3D <2904000>; regulator-max-microvolt =3D <2904000>; regulator-initial-mode =3D ; + regulator-allowed-modes =3D ; + regulator-allow-set-load; }; =20 vreg_l12e_1p8: ldo12 { --=20 2.42.0