From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 7B6C1282F18 for ; Mon, 23 Mar 2026 15:06:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278420; cv=none; b=IoRmwIhT7y4A+SlZamqsXxdmM5Jcv/tjr5WQT3s5zYNwlU/TkPglQnHqPy6SU8OeUTuCuHNPjN9bx43U2jWyI15ACfj7NcYICzO68vAFa0/X6FL7xJaCehWVPWH1m/axQ1GY+OZpKEpu4rbTOC1hjFf5CtDAnIRePWSEBS7FB4s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278420; c=relaxed/simple; bh=vWfLZulYF98bbONuCI6H4gbtLYhlwHzI2I0yFc/vPEM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rOE7YijcympXzHfvcdAPZHZqtpyjYFAi0QBxH1Hv1JAoOblyWsJZVEdqH7EuIGNUREYwJaEcbA9SRevk2U28tk0Wor/lF5q9yzkKWULCOd5aoB517icnhjvgPusfTQX62n0ieJGvnU1xfnbX7C7Li/9sO2ZJV+fNxxJPgv4poa8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=C3K7cxPe; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=WwEoIQm0; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="C3K7cxPe"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="WwEoIQm0" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62ND8BF23588156 for ; Mon, 23 Mar 2026 15:06:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= uI6pvx4mLZDASpyKDCFK5aLbfXSRJ4d0KyNwYp6ZJPM=; b=C3K7cxPeJCD3Zrme ae37zx9TXSitQ0nY1zjkU7AMZzkjOp1n3J37UkEIuV053Umq4LmRD+BJr3gr57bz EEjCDdpDEZn62QCufrg6qvHzvTw6Jv7qk2wwW9OWKgE3EoGNmvKOoDSbKSGbhmr0 vtkl82qfxb/WVVYlVScpze01konGKliOGIQ0yQ7ZMW9CdKELlKGLwPzrGfiW65Q3 4kS+SSmetGGzjls7feMEM6epROvoNRjpV2t/H+xxJx9C57eQ7WdCIOr5uZTEysj7 xWhRDn52JX3a3CPSAzMm+6QDlj3J7ddTXzBkZD/9m4dbTtm6LycWz0IV5XNHpM+B G+cLaA== Received: from mail-ua1-f69.google.com (mail-ua1-f69.google.com [209.85.222.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4d2ca8kva0-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 23 Mar 2026 15:06:58 +0000 (GMT) Received: by mail-ua1-f69.google.com with SMTP id a1e0cc1a2514c-94ac4431453so540240241.0 for ; Mon, 23 Mar 2026 08:06:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1774278417; x=1774883217; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=uI6pvx4mLZDASpyKDCFK5aLbfXSRJ4d0KyNwYp6ZJPM=; b=WwEoIQm0XxMmdCyWaRLIV/xRYoQRpu124u7MSgcoHe5HtwzW8kxJZ/NFpIYXegRgzZ tupCxbgM8Cy0dWJip6oelB9bpuhK5c2Ebr12D4eyJB/N4iOvU59OXvbeIXOlV/pQKgJl Zu7MhHW0YrvQUU/vT5zdzDX4zXV3DSJniPb5HPfEOm2Oh6OzqTLnL4cloxo0r72LH/d3 i6k1oOTxgY8Pc0x5iuNeStbrqAHh/dW/GnUlsOBgoWxLzZeWoIs8pJyttOpEQsppozqo p78cDfeYQSIy/+d2n0gFtvkzpLW/U3zoYRtQCE6mQpXHc3YTDeX5ZwvAlrfuUSi230uT 7Kag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774278417; x=1774883217; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uI6pvx4mLZDASpyKDCFK5aLbfXSRJ4d0KyNwYp6ZJPM=; b=ci4o1erUkLXj330RwyvDG4FwkAvML1j48PF/Jho+khB83VLuvoSu//UMLYooKNHdq7 VM92ZIsgL2AJOfc20nswBHYEcXvAIDntbq+IU1QMXarFQzSrCLn4CZiHvWPJXVYdsWWj d+oushpF1lLJXLcygAEDPA5tYZHojv0MSuPUjwy436w+9L9HMqeNS1shAMnBs/j5Bm9J ShxOd0uuEFa0fRb1i7noLhCIjX76rRK9r/2C6cbVeqVcZoWxgbZWQaJwBJTzaCgs7nue 6IxKeZr4k/nlj5SPEf52+Jt12m4CXgupriHOCZgw+CI5C09QzUA7TI8Hlm0iEuaxCto/ K5EA== X-Forwarded-Encrypted: i=1; AJvYcCW0rkl6I6c6WkKqf2WfvkYZYSi/FXWKkljcN0yHp1WD0qq7H7M7INufDjHPSAqrxT4rgn+U6C1MpYZqKxk=@vger.kernel.org X-Gm-Message-State: AOJu0YznW1e75WKmgRLgmG+OgSqlle6mJ5099hynR9EYvdTOeg6uTtME Tivy36Ezu/Agazc7PRNEYLHxrIgLT7uIZJsFKVUxi/VZaa0xNo/JDosrKfc7bVvAsV7g2oDYW9l ylmSnsa+RBP+TD6l3POC2mVbGDgLU1M/qK1DLm0DXXBkOEwYDrTwZOiHV2NDBBtTUKP9hnjwVfS E= X-Gm-Gg: ATEYQzwoTZoSGrU+4t2wusm7+s00fdQbxexwMOkydlTwpUwwpKEGqyG6Dep9h1IUgki WcsTigYJdj6Xa+poLdHtleFS6Kzsa6LiIpcofdRnzl1X+SNacrJGd5TSfOVGUaWKgIUA6q+18Aw XOPB8OXulfEhvLzyWa69lhQvdVq+hqaENL4SF1NCgTr5ECSl/x82VsDSyMTS6zrqBekm3kb7qx5 Eks5Z2aYN4cuZHo68MJaC4tDrh1FTnYaVAqrmkBhyHFUuQhE4ePthyXSiixU3lbTTaKB/fF1k/q ArFjnZIlBvr/zTpXURMp+H87JzLY4pfjdvsxlZSe5i/xKlHJxchdoq/esSx4aYHDcmwwBSnMD1O vS/uCtVMyJmnvSAHx2hRalcX1+MJXCuRjltST/f9kriG05NbIehrnZyQvzod0GgfREErXwQ66XE FjNQU= X-Received: by 2002:a05:6122:8701:b0:56b:8426:b00f with SMTP id 71dfb90a1353d-56cde31dcb2mr1912402e0c.1.1774278417396; Mon, 23 Mar 2026 08:06:57 -0700 (PDT) X-Received: by 2002:a05:6122:8701:b0:56b:8426:b00f with SMTP id 71dfb90a1353d-56cde31dcb2mr1912372e0c.1.1774278416834; Mon, 23 Mar 2026 08:06:56 -0700 (PDT) Received: from [192.168.119.254] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b9832f43c3bsm502731266b.2.2026.03.23.08.06.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Mar 2026 08:06:55 -0700 (PDT) Message-ID: <0ed387b7-c4ed-41e7-bccb-eb1a96064c69@oss.qualcomm.com> Date: Mon, 23 Mar 2026 16:06:53 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arm64: dts: qcom: x1e80100-dell-xps13-9345: enable onboard accelerometers To: Aleksandrs Vinarskis , Dmitry Baryshkov Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , laurentiu.tudor1@dell.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260228-dell-xps-9345-accel-v1-1-daf9e3b3b5ee@vinarskis.com> <630bcc07-5290-4099-bdf3-b7e37105619f@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzIzMDExNiBTYWx0ZWRfX8zbtkP7H0xv6 qlGqgkd33T3iCDfzAqw1n+KlGfYX8LV2HLDchgAHj5/YjZg6Prsc86w3vi54NlTJuFE/vmE8IUI ciftdG2sYl0wOUe397nnMb3TGpQKTBC5W0g0tDIpSakQup3Rx3RgpPLhLpqluBcXzjKiq1D+50/ CEcQeNGtnLQgvhtN7F9lHTUdl8ibK0oPUewYP7Yd/30bdYtIIeEvrQh6YQeQPR9n1BERZ6jkgKW R7ZWuk2xv84YfF6vJgQX6sVzmBkDET8TdNG3S8dIn700M74X+S8AN0V+qJIyBB4nTOKoZDjAaj1 1W9yYYjcSSGJp9aAQOib0vqkY4aGPbJvOB2VPBDZULc+NDEjyENm88nJRW+nXw11vpmnPl/auRH M3FvkxUI1JE0CZ4PfoJSLuddS5chMVHTZicXEvfz9ot9YnwjuHgZHnuMjO8KqRc2O3bmIb6wZk4 iCwfF8bDKf9kj/gqC4w== X-Authority-Analysis: v=2.4 cv=cf3fb3DM c=1 sm=1 tr=0 ts=69c15712 cx=c_pps a=UbhLPJ621ZpgOD2l3yZY1w==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=Yq5XynenixoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=EUspDBNiAAAA:8 a=vwHDffmn88hdHWJo-3oA:9 a=QEXdDO2ut3YA:10 a=TOPH6uDL9cOC6tEoww4z:22 X-Proofpoint-ORIG-GUID: Xgze5NyNuk8T7dVKsB5knU4T_DhHuuMR X-Proofpoint-GUID: Xgze5NyNuk8T7dVKsB5knU4T_DhHuuMR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-23_04,2026-03-23_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 bulkscore=0 spamscore=0 impostorscore=0 malwarescore=0 phishscore=0 lowpriorityscore=0 clxscore=1015 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603230116 On 3/2/26 2:25 PM, Aleksandrs Vinarskis wrote: > > On Monday, March 2nd, 2026 at 13:14, Konrad Dybcio wrote: > >> On 2/28/26 6:46 PM, Aleksandrs Vinarskis wrote: >>> Particular laptop comes with two sets of sensors: >>> 1. Motherboard: accelerometer >>> 2. Display/Camera module: accelerometer, ambient ligth (and more) >>> sensor >>> >>> Define both i2c busses (bitbanged), sensors and respective rotation >>> matrices. >> >> These GPIOs correspond to ADSP/SSC-bound QUPs. It may be that you're >> poking at the same bus as the DSP is, concurrently. > > Indeed, Val already pointed out that there is hexagonrpcd to access > sensors behind Sensor Core from DSP. I found corresponding .json sensor > files in Windows for all x3 sensors, but could not make it work yet. > > Without these additional things in userspace it does not cause any > conflicts: I've been using this for a week now, no i2c communication > issues and device orientation information is present. > > The question is then if we want to keep this series which ignores DSP > capabilities with the advantage that it will work for everyone with > the new kernel vs doing it 'correct' way over DSP which requires > additional json (and binary blobs?) and userpsace configuration, > meaning that most users will never have these sensors? I don't know what's the endgame for sensors. Maybe +Dmitry knows whether there's any action on that point. Going through the DSP allows you to keep aggregating the data at close to no power cost (""low power island""), notably without waking up the CPUs if there's no other work. That, plus I'm somewhat skeptical about going behind its back, since it may be that a firmware update or some other trigger makes it start trying to communicate with them. But I'm not 100% against this either Konrad