From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE2002110E; Mon, 29 Sep 2025 07:35:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759131314; cv=none; b=AACAxyfe/NiNylTxhL84YBeJTwn0hmJu85yc6sFnIVS7Uzvn0EX2heIR1IW8jqaIA8Byb5rb25diuXE/Y5qhHx95oqFrTURhoO2tswrNB1QXJdz1JRUbfnbL8Ih3mqd77uuZ+w2oSeNDEXp2qxjuAmirw8VOGNI2M5V//fawxdE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759131314; c=relaxed/simple; bh=8kU9JJJKoTLv1+7TVZKBw078/6dDLnwJPZ/41pQAOlg=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=XMwv20E7vM0ZUzHJAXFPowGRycHKlkw5GkKQOjzS53RYlCttWspuOd56B0JnfkdEOvTs1EEOK1Isldv1dpF2fyCQjh9nADbwDBhK3fJMpwAxwXnHXgxtlP3elWvA+bveC3y4HG7lQKDBLx3/SBUiDbEGRrpYNG86D1ajCJvKBSM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BG4WBHTk; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BG4WBHTk" Received: by smtp.kernel.org (Postfix) with ESMTPS id 6A362C4CEF4; Mon, 29 Sep 2025 07:35:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1759131313; bh=8kU9JJJKoTLv1+7TVZKBw078/6dDLnwJPZ/41pQAOlg=; h=From:Subject:Date:To:Cc:Reply-To:From; b=BG4WBHTkVVM3Yu3QLTM6fO7WFiKCgveG2HPH66NKi2Rcy4diRsrjmmkKcUz3ujrRx ky8VDcghJ5CZfOOpQBo3Klxr61CqvoRf6tdam8rDnNW2l8if1gaTtPKRG9785QLHJt INSXDz1suo1d8WDnTvPpy45Y1SaalRSZ7OiTbmFfJuNDhRGeN6jT+tWPySem5u8I4D 9W6csaeZPARYU7EjITQrT4x0ETQoxFbBXI4d9KwOwdEMyhXVOVu4Y8W8zFuV9pI2At 5wW5P6bMAcP8Gr6cIhKWPl28cojK1sQxBw9XzeyGtza0iwcMINmZl1M9WkpkwiuhFa 7L0Z7sE5jZvbA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56CBECAC5B9; Mon, 29 Sep 2025 07:35:13 +0000 (UTC) From: Rudraksha Gupta via B4 Relay Subject: [PATCH v4 0/4] Upstreaming Pinephone Pro Patches Date: Mon, 29 Sep 2025 00:35:11 -0700 Message-Id: <20250929-ppp_light_accel_mag_vol-down-v4-0-6598f22d3451@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAK822mgC/5XOTQ6CMBCG4auQrq1py0/BlfcwhpTpUJoAJUCqh nB3Cyt1oy7fWTzfLGTC0eJETtFCRvR2sq4PkRwiAo3qDVKrQxPBRMoKwegwDGVrTTOXCgDbslO m9K6l2t16mnMJeVJrhbkmgRhGrO195y/X0I2dZjc+9jXPt+uPsOeUUcirCnSMAovkbDpl2yO4j mywF68Y/4KJgGFWAWSgZKLwE4v/weKASVVnWcprKfHts3Vdny14ueliAQAA X-Change-ID: 20250920-ppp_light_accel_mag_vol-down-817c84fdae8d To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Rudraksha Gupta , Ondrej Jirman , Martijn Braam , =?utf-8?q?Kamil_Trzci=C5=84ski?= , "Leonardo G. Trombetta" X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1759131312; l=3407; i=guptarud@gmail.com; s=20240916; h=from:subject:message-id; bh=8kU9JJJKoTLv1+7TVZKBw078/6dDLnwJPZ/41pQAOlg=; b=DEXytXMmYJpHUBmD2X0aRp/a4VJrnruRIRvdqaJ3L96bCk32GzCYVYfgEX7BS4M6DwheccOe7 IMid102DQ4iA2pcqT/v/O5TBdAWBqtnyM33GFw/lnQeEpX4f0JW5iYG X-Developer-Key: i=guptarud@gmail.com; a=ed25519; pk=ETrudRugWAtOpr0OhRiheQ1lXM4Kk4KGFnBySlKDi2I= X-Endpoint-Received: by B4 Relay for guptarud@gmail.com/20240916 with auth_id=211 X-Original-From: Rudraksha Gupta Reply-To: guptarud@gmail.com Throughout the years, many have contributed to the Pinephone Pro (ppp) development. Unfortunately, these patches are scattered around various repositories in different states. I will be attempting to upstream these patches. I will start off with the following small series: - Add light/proximity sensor support - Link: https://codeberg.org/megi/linux/commit/f171bc7013bc7ad3de9af817bfbcbfa548ebe01c - Add accelerometer sensor support - Link: https://codeberg.org/megi/linux/commit/b0bb7633e073a6760fa213b8c4a78ea2e73c7bf1 - Add magnetometer sensor support - Link: https://codeberg.org/megi/linux/commit/2f7e67f451f16eaf15b81aa1dbdf126d54927d35 - Add mount-matrix for magnetometer - Link: https://codeberg.org/megi/linux/commit/d7cd2eab931e32fa94408a96d73b4e6c0616107a - Fix voltage threshold for volume down key - Link: https://codeberg.org/megi/linux/commit/7c496a5cc27ed4e38b740f36c2d8b2c62f80ae54 Unfortunately, because most of userspace (plasma, phosh, kompass, hwtest, etc.) use the ppp's downstream kernel as a reference, the incorrect mount matrix for accelerometer and magnetometer have propogated to userspace, and therefore we can't use them for testing as they will give the wrong result. Instead, we have to read the raw values from the device and compare it to https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/iio/mount-matrix.txt#L80-L90 as that will lead to the correct result I would request reviewers to look at the mount-matrix tests and help me see if they make sense. I've read the mount-matrix documentation, but it isn't really clear to me if the values in the tests are the values I should be getting Signed-off-by: Rudraksha Gupta --- Changes in v4: - remove leda-supply and vdd-supply from dts to suppress warning - credit Martijn and Kamil for the light sensor and accelerometer patches - Link: https://fosstodon.org/@martijnbraam/115272859701389599 - Link: https://codeberg.org/megi/linux/commit/fc5660685ebe4ecf60226bfa27a1ce47c1c1d020 - combine the magnetometer related patches - corrected accelerometer's mount matrix to Documentation/devicetree/bindings/iio/mount-matrix.txt - filled out commit messages - rebased onto v6.17 - Link to v3: https://lore.kernel.org/r/20250921-ppp_light_accel_mag_vol-down-v3-0-7af6651f77e4@gmail.com Changes in v3: - change magnetometer mount matrix - update volume button threshold - Link to v2: https://lore.kernel.org/r/20250921-ppp_light_accel_mag_vol-down-v2-0-e6bcc6ca74ae@gmail.com Changes in v2: - remove usb-typec node in dts from light/proximity sensor patch - Link to v1: https://lore.kernel.org/r/20250920-ppp_light_accel_mag_vol-down-v1-0-c8bbcd3e2e94@gmail.com --- Ondrej Jirman (4): arm64: dts: rk3399-pinephone-pro: Add light/proximity sensor support arm64: dts: rk3399-pinephone-pro: Add accelerometer sensor support arm64: dts: rk3399-pinephone-pro: Add magnetometer sensor support arm64: dts: rk3399-pinephone-pro: Fix voltage threshold for volume keys .../boot/dts/rockchip/rk3399-pinephone-pro.dts | 40 ++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) --- base-commit: e5f0a698b34ed76002dc5cff3804a61c80233a7a change-id: 20250920-ppp_light_accel_mag_vol-down-817c84fdae8d Best regards, -- Rudraksha Gupta