From patchwork Sat Feb 3 19:11:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Bambura X-Patchwork-Id: 19891 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp46552dyb; Sat, 3 Feb 2024 11:13:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IEP0LcN3kLydXh+Exjh+VB1V0GOTG4ZXbZjlBQspFdqAdEFsz57HI8j4QPhhRaJMf0yxE80 X-Received: by 2002:a05:6808:bce:b0:3bf:c0c0:1041 with SMTP id o14-20020a0568080bce00b003bfc0c01041mr6790591oik.29.1706987629850; Sat, 03 Feb 2024 11:13:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706987629; cv=pass; d=google.com; s=arc-20160816; b=jk/i2rZzKnIeTGI0QxEeL+hCw1EK2pm2FoB2Br+LEBbSlqSbkVAVitZtss1tvJuxnT fhibXA+m6nWKBT6TM7CUJQSNa4RoSmF8WA6TtHnTFpFSdxBLf9rokXlD4tN/nc8iGU1q Z2Gzb7xlWh4Hz/zSSEeHdO44kFa8cHCOxpSvi/gTSHUrL5AIZG1bQk/PEUlSVCLN3cDD 30VpOqlnrDJVAnUVGsqUz1RME6elPKCW/8BzDgBtHTsI42k6wZq56+1R9Z70J8VgWVDu hdiJEyKp0J6K7GCtJMrk3TKC9subFBwC4yqXoK5u8XCaU+gkFtCM510Wle4NuWgMIdCj tvtg== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=D1MXZI9L74r1ABpx4pzdB40ULzWPeZ87x2jaWvvAELo=; fh=cfg8eFuRwBM66sJEhd5HkVkUiex+yLOIEijlSY616Wk=; b=uR8h75YTI2jCw/Mhgew+1VG5k25MMwxBPUCNYu6WW1YgZu2hBbumRbNbd1pnkXSZpV 9wthz6oNEszN6rFs0ibTZ6mvm+log7FXzFvEVWCdVP8jz58R+PfjEgaGZGepiXyiSett 09HKZFW+DX4EqLyl7Q6wH3xmxZZ/qyrEM+16BC+ZNMJNHnFuZpsz6OMHzr+jwQwcg5BQ ZHgKDdmwe6hNuGlKZECnl5owkoI0je4yvT4mPaftQos2XlcksmRFzXRB1ui+efSYA9d7 GSIlZ0Wky+PMzZBosswbvauQDCR2psTcH+CHixCz3ABG5FuB673R407r2oz+Wk/HyFCl Zjcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@postmarketos.org header.s=key1 header.b=ESCF8mdi; 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-51257-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51257-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=postmarketos.org X-Forwarded-Encrypted: i=1; AJvYcCUUEWvBnMrRIly96j+2Jiu+uJDvjd0yWpIU+GG13TFbgXhnguMrf/anZfkC2kC98FPE4chmfqENHn96Nk6Ed8U8EARY/g== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h20-20020a05622a171400b0042beea9efb8si4919815qtk.105.2024.02.03.11.13.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 11:13:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51257-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=ESCF8mdi; 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-51257-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51257-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 9F7CA1C20CD8 for ; Sat, 3 Feb 2024 19:13:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB62960ED6; Sat, 3 Feb 2024 19:12:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="ESCF8mdi" Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (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 1E5055F862 for ; Sat, 3 Feb 2024 19:12:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706987550; cv=none; b=biPCdKEkuC5+TtLGot8lWIdobcmuBhtaQioK8aujFhiYVp8E1F72JJD+wGJUXqiQs2qReIFXJXFnbhZS9BniwGlRIGEYab8h1Za3UGt2oQNl1EYR3tSnsJOtmy9JB89ZWTorilnXo1zMTIh9KpGkRDezbFI+5Bvs/c8cWISCXeQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706987550; c=relaxed/simple; bh=u1QLkA77qJUV2s+haADuAyOF0wOezvuTZRjcx5x6hLg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=l0fSaATLP2VJyD57Z1lP7SmBH+76t0/EpMaSlbDj/mKtwdmmQU2jIHokBXbJpuFYPt2DkvdM57D7ZQLPcMjN7BS7Css35C88WhWqwxGML1D1ZceC5yLVqmK/ctWovUHI6OIMLQrLeNhZUfRAK5PCIHHmQUA2tB5qzBHWbWP7V2U= 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=ESCF8mdi; arc=none smtp.client-ip=91.218.175.170 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; bh=D1MXZI9L74r1ABpx4pzdB40ULzWPeZ87x2jaWvvAELo=; b=ESCF8mdiLBfK3pKZmMQBhWkcZgZnntajRFUJyB+aEmrPgzwd5JQyY1XUePSvljVefCa6uR eoRaVolnRbRc1IgauUP0Usl4KLcodmvNQyJhbbwfCiCYIGysQgvJMVJAsiPVHx/yuzNPFR +sAkJv2/IchL+n37XRxl5PeyyVAOoGhXJNd71UdQMzZdgpqNj/vZQ6IXxdpfm/I5hy4XJl 6sdahhDl9iiJBJ8mUgrLbBNNK9j/B6H36vl7jjZgt9dELga61G394fnTdjuyJQSWwvuA/H N2vo/ZxgC3ySA3Umhu/kVR1SD7BL1r0z5Hqunti3MY7zLqwUjeKAg6Yu3UBSUw== 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 0/6] Device-tree improvements for Lenovo Flex/Yoga 5G laptop Date: Sat, 3 Feb 2024 21:11:54 +0200 Message-ID: <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: 1789906260689321501 X-GMAIL-MSGID: 1789906260689321501 This improves device-tree of Lenovo Flex/Yoga 5G laptop with these changes: - fix GPU firmware path (make it use device-specific firmware directory); - set names for i2c hid nodes (so it is clear which node corresponds to which device); - add touchscreen support; - fix touchpad issue when it gets stuck on right or middle click; - allow UFS regulators load/mode setting; - move some pinctrl properties to appropriate nodes. --- Changes in v2: - fix the description for touchpad i2c patch; - move touchscreen reset gpio pinctrl to appropriate node; - add a patch splitting and moving some other pinctrl stuff, so it is in correct nodes as well; - change touchscreen interrupt from edge falling to active low, because edge falling is apparently against i2c hid specification, and ACPI uses active low as well. --- Anton Bambura (6): arm64: dts: qcom: sc8180x-lenovo-flex-5g: fix GPU firmware path arm64: dts: qcom: sc8180x-lenovo-flex-5g: set names for i2c hid nodes arm64: dts: qcom: sc8180x-lenovo-flex-5g: move pinctrl to appropriate nodes arm64: dts: qcom: sc8180x-lenovo-flex-5g: enable touchscreen arm64: dts: qcom: sc8180x-lenovo-flex-5g: set touchpad i2c frequency to 1 MHz arm64: dts: qcom: sc8180x-lenovo-flex-5g: Allow UFS regulators load/mode setting .../boot/dts/qcom/sc8180x-lenovo-flex-5g.dts | 85 +++++++++++++++---- 1 file changed, 68 insertions(+), 17 deletions(-)