From patchwork Sat Feb 3 19:11:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Bambura X-Patchwork-Id: 196358 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp46415dyb; Sat, 3 Feb 2024 11:13:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjc4CPsoi4wnckNfFBhcWpve/yfTJ+wzRzciYarGMooFMnZe3n6q0WUajyrrL2sNVl1bAu X-Received: by 2002:a9d:7d97:0:b0:6dd:ec7f:f46d with SMTP id j23-20020a9d7d97000000b006ddec7ff46dmr12534176otn.11.1706987602484; Sat, 03 Feb 2024 11:13:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706987602; cv=pass; d=google.com; s=arc-20160816; b=zo+I3YLJ7xXJdJw5hpqaJzmYwklKBZoZKpHcGOTXZajZCu8ZZiImSRghftghcYLWXd QAMfkRpPR5K4ZJc59ZKdrOReJF52Q99SWGIVAOekLRDVQ/smqk0VNkGY5IEPJ2IG46rP lngJZqw9GR2zXmK4nACGdSgB3VxaThVrMrD5d2UFDz8MdTBwgmyvNWnATFURkrWmyBbB jCQt3/e4faTVohjKELN193v9R/eqH9DcBux/tRQssQ2X57ESSyPYBXRhhdyXL5PqX6TY LL3sfN6qaXUcrXc5BZ0DZ6UPfXSv3ACn7M1HX/FhXZRgSOdQ05h102z/i79Dz0+eekXY JtkQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=n7cWIwnS8VWIVYNfovS60jJxitrKNEY+l7a3wpu9pzs=; fh=5lGbvsSp8jhE6YvdEDhs2fk5WM6WGKZejOGIbPWfDyI=; b=0Z6V5vNfKRpD3en2JvBJWwhaPKyqVxz64U/Uo2hoDNyt4BX+iBeuvciWhQsr7R1IEC P+JNsK9snaZoh+imRJncd5Vgy6ZE/vIlZAqzz7YvcQMt5h7rFVUil/3rdVhPBYgVNdwE 8GC4joW1zO18mgKwP98KBpVrCF0aGwQkxBr5M4dLjb0uJv5ZuRT9jaaMvbm1US9SI/Uv 9fGO/yJppHzauc+qQ1o3OIsrytHQjxFYgfNLM+Q+g77kPekP+LFdcZtMzAo81Cwy1rtz e7su9eo1fSpvg8dEB9pEkyfVt0ASNI/M2QGOPzs2VhEUb9tH5/HVNAx2Qkt1ee0qFLJY GYFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@postmarketos.org header.s=key1 header.b=TAIdHCEh; arc=pass (i=1 spf=pass spfdomain=postmarketos.org dkim=pass dkdomain=postmarketos.org dmarc=pass fromdomain=postmarketos.org); spf=pass (google.com: domain of linux-kernel+bounces-51256-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51256-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=postmarketos.org X-Forwarded-Encrypted: i=1; AJvYcCUOt/n9SmoHEJ4JI/TIuLoE5/PC0HwJh7YmH6sx4RQGoUzkB8ZGh3ED6UWrmJu0+c34RMsjFkH3v9S/fxgvYPEVctNPLA== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d17-20020a05622a15d100b0042c182f8257si858103qty.422.2024.02.03.11.13.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 11:13:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51256-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@postmarketos.org header.s=key1 header.b=TAIdHCEh; arc=pass (i=1 spf=pass spfdomain=postmarketos.org dkim=pass dkdomain=postmarketos.org dmarc=pass fromdomain=postmarketos.org); spf=pass (google.com: domain of linux-kernel+bounces-51256-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51256-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=postmarketos.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4505F1C21F5F for ; Sat, 3 Feb 2024 19:13:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9DBC7605DB; Sat, 3 Feb 2024 19:12:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="TAIdHCEh" 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 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 X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789906232298590693 X-GMAIL-MSGID: 1789906232298590693 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/arm64/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 { zap-shader { memory-region = <&gpu_mem>; - firmware-name = "qcom/sc8180x/qcdxkmsuc8180.mbn"; + firmware-name = "qcom/sc8180x/LENOVO/82AK/qcdxkmsuc8180.mbn"; }; }; From patchwork Sat Feb 3 19:11:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Bambura X-Patchwork-Id: 196360 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp46678dyb; Sat, 3 Feb 2024 11:14:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IFXmEl0MKYzyEDc+IJBVs9gJYpj2i/j+RMxRpRdnhwZrN3yWl08VWpJnFzKxcxi+NmDZkql X-Received: by 2002:a17:90a:be11:b0:28d:c4ff:74a2 with SMTP id a17-20020a17090abe1100b0028dc4ff74a2mr5359325pjs.47.1706987647573; Sat, 03 Feb 2024 11:14:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706987647; cv=pass; d=google.com; s=arc-20160816; b=KtAM+5hkVF5dClj3+ohk1meJaz9AbE0x92vh6YPwsvWVyvvJeKNJEffrGf1mX8/qgv 6UFwvtYGjcBQj5K6knYDtnO92iumCCW1OSvoiN3l2jjk/5KFSm5V0U7wstZH2aUvNA+o Eaoydua8Ai5y4HB5faRB+9d9pSJRNkxWeFAcqq75Rgf+sYjUYuVj9RnG3y2hNsqCTMtD qvyMoDioWs4neARr1FsrxRmRpz/LTXlF6Ajzuh46L4XRc3a+967mpIUmdt8hHuA0bTUW s48Gf3GBZMaKU6Sd9/8sktWeieZSiRrfaUEUnzuTmpiQy8X4xxg6pvA9R7awfsMQ75ht 5bpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=vh3oMQ24VxcFcdoo1SJYXgM61FClsIuFWkVwGbHbrs0=; fh=HkrrAR5cIOYOn/9oSTGrXZS0kK7NZTcjwyx8HDfjHyk=; b=C+Bn+wvkc6pToU8WIomHyJOEa66u0TyXS6v/IVQJrIn5VSOupJthbnJeNnk+H3yqnc iNobYsBFYNXw2F7Va8scFNAaIvfn5EiPa65FK4M+aECEn99ZEQadHSKHV4shTrY+8VOt hcVCZc7gz1hSckqpy+CxAPLl0pdO2jDKEuwZGXWMOZEH0HaEeq0rH3uJAw9Zs1OWK/iu joPa1pDQNLMNmjO21vn2SHIO29KFNoh2QD11gCItvwBE0rv0t0rFfNyXAeaUYe//FnAe l0yvp14EbsvHtVvP9vnfnmFh0UpBkXRR5PnOW5rMQ6LAU4IK3xscVjrHG4DBFOdLXthS G4bA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@postmarketos.org header.s=key1 header.b=RbQf6Ixa; arc=pass (i=1 spf=pass spfdomain=postmarketos.org dkim=pass dkdomain=postmarketos.org dmarc=pass fromdomain=postmarketos.org); spf=pass (google.com: domain of linux-kernel+bounces-51259-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51259-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=postmarketos.org X-Forwarded-Encrypted: i=1; AJvYcCWl3WmPvis4cyvTmS0Cbt3DS8P+KPgHTRl5gxs0iGTJHV0od0aHoCxTxqDlCF4MTFmnUE6eHdiRpLzlmxLCT4WKiowQtA== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o14-20020a17090ab88e00b00295ec7c20ecsi1880385pjr.91.2024.02.03.11.14.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 11:14:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51259-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@postmarketos.org header.s=key1 header.b=RbQf6Ixa; arc=pass (i=1 spf=pass spfdomain=postmarketos.org dkim=pass dkdomain=postmarketos.org dmarc=pass fromdomain=postmarketos.org); spf=pass (google.com: domain of linux-kernel+bounces-51259-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51259-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=postmarketos.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5B8F82821F4 for ; Sat, 3 Feb 2024 19:14:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BF8661678; Sat, 3 Feb 2024 19:12:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="RbQf6Ixa" 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 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 X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789906279536490969 X-GMAIL-MSGID: 1789906279536490969 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/arm64/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 { status = "okay"; - hid@10 { + touchscreen@10 { compatible = "hid-over-i2c"; reg = <0x10>; hid-descr-addr = <0x1>; @@ -379,7 +379,7 @@ &i2c7 { status = "okay"; - hid@5 { + keyboard@5 { compatible = "hid-over-i2c"; reg = <0x5>; hid-descr-addr = <0x20>; @@ -387,7 +387,7 @@ hid@5 { interrupts-extended = <&tlmm 37 IRQ_TYPE_LEVEL_LOW>; }; - hid@2c { + touchpad@2c { compatible = "hid-over-i2c"; reg = <0x2c>; hid-descr-addr = <0x20>; From patchwork Sat Feb 3 19:11:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Bambura X-Patchwork-Id: 196359 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp46655dyb; Sat, 3 Feb 2024 11:14:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IFD3aegYuyHn7H52AG778qSde/Je1nJsGHZ/4vd2Q9cMvv4rNRcRZ0tR+5lENwF6d6C6El2 X-Received: by 2002:ae9:f810:0:b0:785:3889:a9d4 with SMTP id x16-20020ae9f810000000b007853889a9d4mr9412740qkh.48.1706987644685; Sat, 03 Feb 2024 11:14:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706987644; cv=pass; d=google.com; s=arc-20160816; b=vZZFJAnhyji2EKwZn+mAxCSZIlMrmkNyJYI2QM5/ZuYtnv0SdQwirDLNcnnibpfoeB grjzxjsFiymUAxp2089MhABHP15drDJ+jeKQ2GMfQxj8xDEurDdix+Qv3PjdXz2Ak3nB iKYeQo8bukWwa84cB9BUK8zfx/aekRrrDCGgVDzN/C1cnbauoAwQdbssG5WUGicJ/RNq 3o9w0QEY5BoDGQ5kjsWqdLc4wV9y2VB1mzdy78tq7vG9cfIa+jzpO9ceQckAZJlBWd6Y ijS9dxOkz7CxNsonoF1GRVRSmO9NIYBKsrHodtgoKFF3vkv28ZHhOo0oVEj7T1w0kZup TP6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=k8u/VoqVTUPlxnhfNHXLj42MX1rvQDLgTi15K0P6Loc=; fh=g3M3h80+pThWdJCJm+YsnDUf85g/Zd99FsCgc9SAyGk=; b=Hl6htf3n40IXQzCuvRvrX2FyvIJdJ4wzhibIQLOoGId4ESrWC+1kRtie/ARA2Ys+BX bHF5Nv4trHERJJ0Ejd3WWVWXMUuFQBGWTeOsSIdFF8lwwOQsAhR6okO65b+Lh484hIjK Krghbq+SGyxfOgwAsK/Kvhwl/zZuA9WTdK6wZZO9ii9dpO6oiSOkFa5WhOLuXbFcfqJX wddpBKVcAvajONjHxNouRaKWAVkXFrI96I6Vs7l8lI8+3MxGce/qTdKjcNHP0KlTbNlw jNSJd+lDv18Qw71yDbIuJl+E+zprfgargo8o7VhFLyBRSRlwTxqEP4kuBn9eY6QxAQ21 mgxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@postmarketos.org header.s=key1 header.b=igtWCgzx; arc=pass (i=1 spf=pass spfdomain=postmarketos.org dkim=pass dkdomain=postmarketos.org dmarc=pass fromdomain=postmarketos.org); spf=pass (google.com: domain of linux-kernel+bounces-51258-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51258-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=postmarketos.org X-Forwarded-Encrypted: i=1; AJvYcCU5LK6xPqblHoJluXNrqsFGKkb3Q4K7UndNi66ldI6pHTzmQpHpBejEI61PmwdW1DLo4ICr/erHWb4WOJRTWTVezaBxAA== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g20-20020a05620a109400b00783feb94122si4907539qkk.717.2024.02.03.11.14.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 11:14:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51258-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@postmarketos.org header.s=key1 header.b=igtWCgzx; arc=pass (i=1 spf=pass spfdomain=postmarketos.org dkim=pass dkdomain=postmarketos.org dmarc=pass fromdomain=postmarketos.org); spf=pass (google.com: domain of linux-kernel+bounces-51258-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51258-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=postmarketos.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7A0711C21D28 for ; Sat, 3 Feb 2024 19:14:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41C9761663; Sat, 3 Feb 2024 19:12:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="igtWCgzx" 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 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 X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789906276563081554 X-GMAIL-MSGID: 1789906276563081554 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/arm64/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 = <100000>; - pinctrl-0 = <&i2c1_active>, <&i2c1_hid_active>; + pinctrl-0 = <&i2c1_active>; pinctrl-names = "default"; status = "okay"; @@ -368,13 +368,16 @@ touchscreen@10 { hid-descr-addr = <0x1>; interrupts-extended = <&tlmm 122 IRQ_TYPE_LEVEL_LOW>; + + pinctrl-0 = <&ts_int_default>; + pinctrl-names = "default"; }; }; &i2c7 { clock-frequency = <100000>; - pinctrl-0 = <&i2c7_active>, <&i2c7_hid_active>; + pinctrl-0 = <&i2c7_active>; pinctrl-names = "default"; status = "okay"; @@ -385,6 +388,9 @@ keyboard@5 { hid-descr-addr = <0x20>; interrupts-extended = <&tlmm 37 IRQ_TYPE_LEVEL_LOW>; + + pinctrl-0 = <&kb_int_default>; + pinctrl-names = "default"; }; touchpad@2c { @@ -393,6 +399,9 @@ touchpad@2c { hid-descr-addr = <0x20>; interrupts-extended = <&tlmm 24 IRQ_TYPE_LEVEL_LOW>; + + pinctrl-0 = <&tp_int_default>; + pinctrl-names = "default"; }; }; @@ -669,14 +678,6 @@ i2c1_active: i2c1-active-state { drive-strength = <2>; }; - i2c1_hid_active: i2c1-hid-active-state { - pins = "gpio122"; - function = "gpio"; - - bias-pull-up; - drive-strength = <2>; - }; - i2c7_active: i2c7-active-state { pins = "gpio98", "gpio99"; function = "qup7"; @@ -685,8 +686,8 @@ i2c7_active: i2c7-active-state { drive-strength = <2>; }; - i2c7_hid_active: i2c7-hid-active-state { - pins = "gpio37", "gpio24"; + kb_int_default: kb-int-default-state { + pins = "gpio37"; function = "gpio"; bias-pull-up; @@ -718,6 +719,22 @@ wake-n-pins { }; }; + tp_int_default: tp-int-default-state { + pins = "gpio24"; + function = "gpio"; + + bias-pull-up; + drive-strength = <2>; + }; + + ts_int_default: ts-int-default-state { + pins = "gpio122"; + function = "gpio"; + + bias-pull-up; + drive-strength = <2>; + }; + usbprim_sbu_default: usbprim-sbu-state { oe-n-pins { pins = "gpio152"; From patchwork Sat Feb 3 19:11:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Bambura X-Patchwork-Id: 196361 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp46739dyb; Sat, 3 Feb 2024 11:14:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IF7byWKmMQ2LP4q/+eb1OaCHJnQgCBInA4R+q8Dmj0WU5SB6+N2R065wRohCdicfMxQYKfd X-Received: by 2002:a05:620a:110e:b0:783:a662:2bba with SMTP id o14-20020a05620a110e00b00783a6622bbamr9063178qkk.73.1706987659392; Sat, 03 Feb 2024 11:14:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706987659; cv=pass; d=google.com; s=arc-20160816; b=SeNuUfUklvVAhlKIqvu1sfaFqv3IFNXAXLhLecAjQuLbs+47mLLyqFXqnnLs15XirY Bi121pXIc3b6/cxjLoD21PUS4TbZ9QQkh/+BRhwneYBefuTqnrtKZkR5uFuH3PRpsm72 se5iLeXkM17DPBmbVY3AnFqdLfi7izIsBvyfzO0KZIOzmfgPJSrdCyXCWzcbQP1mchHW 7zVxWvVvpxnwxHemm10cXzIBU5XdhZd1ZC5nHoLIiDe06KFrUPVmqEq1Ho93KVN2SMf+ GQvdj0gh7ZZz9YqTTPLmajn3AG0OCHUa3Pc61xrrAyO+k62WbhFn0amHE1Dfk/gxqpxS pqIg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=gYHXn/FsWUe2ytcr0pi3c4QgJvZ4Eb2tVvL9ad3fkVg=; fh=pUaQbPsDk5NqdV85Nwq1KOp8iSmhUeq6mGwQg7ljkjM=; b=Z89PIeAbOXLG4dg831QH1KdV+unvnp3+zX3Ky9VAJVz2PsVG8qOcaQHtlji9M9jUdv jjDtVSMvG7sVq0TC+N3z39uGTDtgTfGWHph70I3T+vGbHB48zdx35/5IBGEcwau9+UML vpHGHcew8EPjtFrS06u36rB5DNxxvebaYIgurEPQEm3BN53+BPANmtQyhQZzo4BDRhO5 xpwIeNO1D/1E9nHxpuJqMab92QufVVSEacWC8PD/hcYxW67tc5NQK+jCN1UZ8/Xou59I SQRoyVZ8iKr2gv0FP0CtMKctebny+QwC9L4cXNNiUaQyGrgI5+Qikb0FlCGAYg5QpyWj RwlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@postmarketos.org header.s=key1 header.b=RbjIWUwX; arc=pass (i=1 spf=pass spfdomain=postmarketos.org dkim=pass dkdomain=postmarketos.org dmarc=pass fromdomain=postmarketos.org); spf=pass (google.com: domain of linux-kernel+bounces-51260-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51260-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=postmarketos.org X-Forwarded-Encrypted: i=1; AJvYcCVyNQ7toElVZMmvRkf+4zc0ExYGiIUnJnOhw5urGXxjwnrskKdxZRtmdk9fSsd6XL3slJirgwOe85Bgk9PqvytqB2S5PA== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e25-20020a05620a12d900b0078548bf3a43si4912520qkl.713.2024.02.03.11.14.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 11:14:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51260-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@postmarketos.org header.s=key1 header.b=RbjIWUwX; arc=pass (i=1 spf=pass spfdomain=postmarketos.org dkim=pass dkdomain=postmarketos.org dmarc=pass fromdomain=postmarketos.org); spf=pass (google.com: domain of linux-kernel+bounces-51260-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51260-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=postmarketos.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 317C01C21D4F for ; Sat, 3 Feb 2024 19:14:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E50A63101; Sat, 3 Feb 2024 19:12:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="RbjIWUwX" 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 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 X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789906292023144708 X-GMAIL-MSGID: 1789906292023144708 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/arm64/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 = ; }; + vreg_l4c_3p3: ldo4 { + regulator-min-microvolt = <3296000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + vreg_l10c_3p3: ldo10 { regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3312000>; @@ -337,6 +343,12 @@ vreg_l10e_2p9: ldo10 { regulator-initial-mode = ; }; + vreg_l12e_1p8: ldo12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-initial-mode = ; + }; + vreg_l16e_3p0: ldo16 { regulator-min-microvolt = <3072000>; regulator-max-microvolt = <3072000>; @@ -365,11 +377,19 @@ &i2c1 { touchscreen@10 { compatible = "hid-over-i2c"; reg = <0x10>; + hid-descr-addr = <0x1>; + reset-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>; + + vdd-supply = <&vreg_l4c_3p3>; + vddl-supply = <&vreg_l12e_1p8>; + + post-power-on-delay-ms = <3>; + post-reset-deassert-delay-ms = <200>; interrupts-extended = <&tlmm 122 IRQ_TYPE_LEVEL_LOW>; - pinctrl-0 = <&ts_int_default>; + pinctrl-0 = <&ts_int_default>, <&ts_reset_default>; pinctrl-names = "default"; }; }; @@ -735,6 +755,14 @@ ts_int_default: ts-int-default-state { drive-strength = <2>; }; + ts_reset_default: ts-reset-default-state { + pins = "gpio54"; + function = "gpio"; + + bias-disable; + drive-strength = <16>; + }; + usbprim_sbu_default: usbprim-sbu-state { oe-n-pins { pins = "gpio152"; From patchwork Sat Feb 3 19:11:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Bambura X-Patchwork-Id: 196363 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp46837dyb; Sat, 3 Feb 2024 11:14:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFdg7Pj3uowbH2UPB9+FHRfckxQruI8jEhJjtHVTUxMfYzu4GdVHeCCZ4BWKi9Epavz/Mql X-Received: by 2002:a17:906:3515:b0:a36:2dc:1903 with SMTP id r21-20020a170906351500b00a3602dc1903mr6344750eja.68.1706987675394; Sat, 03 Feb 2024 11:14:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706987675; cv=pass; d=google.com; s=arc-20160816; b=sCYYVOI1M9rIUWnv8T4d118b3sK3+urf9hyn7/EJ8jX3w0Jfdj6xMeyD3tmbA7wgQs uCkGBTdomI07BjGRscyBHY3x+5CeYzNBYWnlJqmw6A7VRC5JGpQRDYJYNS0ceer7aXvn Ib3R59kRYK2ulS9FoaHZ5/lfB9Kw3En1M2eo2JRTA17GQPsEZhciA/kmqZDfxThcMFIh FtoqrqyX3avt4h/iFLbJctSZb0jAwUd8sphX+1AccKm4nadvRFaJqgtEvdR7/Xq48XhR AWnVFunEvV8azX2B+v5kcF3C5O67KHyUjm/0RQkniZhGL/Mw6hhP4pxA0PYZ0nWvhKbq nRFA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=N97OQKuFnBwc0GBASpKpOKnWTYzMr5KBGcwXadZbmy0=; fh=lZDQ9ywbN+SiumVcPoT2FlYBJ4/95EWsvlE+rvu5iXY=; b=R0HUNGn//Jlk4sM9nkdGsgRnxaQySmeYTmz8RPNBZzg85V5gP8l3L2+HLhxJwoIils Owha0s5bEJ8XZ8R+jWsPsifj01TkkVWf0Phom5JF/NCxjmJfZYxcdH62/NnQ8cC/uwT1 nIS/Nx4AMIl8PnQ24ga8KnJRIU9KytO3yPLBv/VX61j85Y6/O6zxKwvR8PjkONzjvV0R Oq+TIGOZaWCfjFRvqpW953xaLUBFx1zZfSPU4piSnwwD3RXcrD6psPFODHSBsJZmHqsD AFHriW+7ysF6jHQKKBqBeov4CLcllGXCfKH3VRtLXJ/ZK2s4hJ3Dx7WY0WvfCuvGCRbg CHyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@postmarketos.org header.s=key1 header.b=afDYVkmV; arc=pass (i=1 spf=pass spfdomain=postmarketos.org dkim=pass dkdomain=postmarketos.org dmarc=pass fromdomain=postmarketos.org); spf=pass (google.com: domain of linux-kernel+bounces-51262-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51262-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=postmarketos.org X-Forwarded-Encrypted: i=1; AJvYcCXIBb0EkM1djtEdxqZkUTvOleY03KRJALfAGNXExVmATP9tX4JGwOpbPEuzvTyuvDEaoqvg7tHHyqt2cm7OSF+TUZsoRg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id p9-20020a17090628c900b00a377ad32186si165440ejd.542.2024.02.03.11.14.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 11:14:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51262-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@postmarketos.org header.s=key1 header.b=afDYVkmV; arc=pass (i=1 spf=pass spfdomain=postmarketos.org dkim=pass dkdomain=postmarketos.org dmarc=pass fromdomain=postmarketos.org); spf=pass (google.com: domain of linux-kernel+bounces-51262-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51262-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=postmarketos.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id F27B61F23340 for ; Sat, 3 Feb 2024 19:14:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79EED633EA; Sat, 3 Feb 2024 19:12:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="afDYVkmV" 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 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 X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789906308731246244 X-GMAIL-MSGID: 1789906308731246244 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/arm64/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 { }; &i2c7 { - clock-frequency = <100000>; + clock-frequency = <1000000>; pinctrl-0 = <&i2c7_active>; pinctrl-names = "default"; From patchwork Sat Feb 3 19:12:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Bambura X-Patchwork-Id: 196362 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp46825dyb; Sat, 3 Feb 2024 11:14:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IGjmO+wqsvdBsOeElPixZinY51pSdNQMiKvwyC1W4QGwhUTlL6liqf8qk3kMdv3PYEkcL1n X-Received: by 2002:a05:6402:13cd:b0:560:311c:4fcb with SMTP id a13-20020a05640213cd00b00560311c4fcbmr696792edx.33.1706987673131; Sat, 03 Feb 2024 11:14:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706987673; cv=pass; d=google.com; s=arc-20160816; b=TE2yEg/Nro2/GQC07aSMIRG/lrJvNP/7O4luztQ3rVqH2NK0t9B4S1WpXs9q7E1nBo 5DLtDxIwasnCDnQd1rof481wXbfmCE4xO+uxD5qkAwNg3yJnmdMo9xOwv74pEm3S6Txj FwiBajvZh8nUUDCMMY15kHJJgQ8h7DqihjvTZA4ueAxNTDUk30kbJodklOCDowD6WqvK Wws+KIW9iOOwgFeWomJN2gIrN3EnEb2an2pZzL6HkOFCYb0X8cTeKx8S2AkWIZmsTOqi ZGi2NnDbqm0TekZkWQhse1vFEo/V/JKEw0jumo4aG/CEDCVBpKLlu0nyKssyuaxXCcWs SPcA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=IWrCDsFafWqQwP/SgCzI7FzJHbtr/YwtyR/hwDdPlkY=; fh=K83IxZUCCbXSrJADQ+eUp7gLa7wyVqde+7riUp1jBb0=; b=IpSLWw9wtuVBpamtd+Di9R2ront2InxwRvChQdF3ixmbe2erttHa8YVqkVbMPEFfSJ b7zcEJJPLkdbsXP13b32hEy4qbps8MFWoIywK6lnvo9DuxJOsQ/qPV9UAEre/FrbtiB/ g5SGyKhcq11+FJYHymok/lXOdJV71zUyaLi6Vo9nHjkF93UQdFl0o45pVfiyqJQrGOSI bbr6//xzqO0PzJOa8cuNPY7FbpDPcmFUNqAVGP3oCCaSqnl6vr8bqPizmKN9lNVY8NY+ e08JYQA31Tzfq8TCD1zPHuGMuR9tYCNcutCpeB5/AZPHg/AWkzc/Zk94A46UIfr5OvMw xcnA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@postmarketos.org header.s=key1 header.b=qkXcRaT3; arc=pass (i=1 spf=pass spfdomain=postmarketos.org dkim=pass dkdomain=postmarketos.org dmarc=pass fromdomain=postmarketos.org); spf=pass (google.com: domain of linux-kernel+bounces-51261-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51261-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=postmarketos.org X-Forwarded-Encrypted: i=1; AJvYcCVL3qquCYqwJVOjros/IKQ34pZq1+QOv7ZAo5YeN8D8RpgmAPcXotfqO2da4GTYy/TssDb/Hf7iF0SXgou5iqeirAXSiA== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id cb8-20020a0564020b6800b00560381794a9si198585edb.15.2024.02.03.11.14.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 11:14:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51261-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@postmarketos.org header.s=key1 header.b=qkXcRaT3; arc=pass (i=1 spf=pass spfdomain=postmarketos.org dkim=pass dkdomain=postmarketos.org dmarc=pass fromdomain=postmarketos.org); spf=pass (google.com: domain of linux-kernel+bounces-51261-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51261-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=postmarketos.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B9D7D1F22FC2 for ; Sat, 3 Feb 2024 19:14:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B865633E3; Sat, 3 Feb 2024 19:12:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="qkXcRaT3" 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 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 X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789906306327309754 X-GMAIL-MSGID: 1789906306327309754 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-421904863006@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/arm64/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 = <1800000>; regulator-max-microvolt = <1800000>; regulator-initial-mode = ; + regulator-allowed-modes = ; + regulator-allow-set-load; }; vreg_l10e_2p9: ldo10 { regulator-min-microvolt = <2904000>; regulator-max-microvolt = <2904000>; regulator-initial-mode = ; + regulator-allowed-modes = ; + regulator-allow-set-load; }; vreg_l12e_1p8: ldo12 {