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 B0129242D60 for ; Fri, 21 Nov 2025 12:54:27 +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=1763729669; cv=none; b=X03bW/Tm/Bv/IWXJi33ESHb2kcMHoSr2x7gI8jAhZ+aMUjrBeexqHg4xIHXPfxkGr2d9EfIqSMeZraq8RIXeh5OUWg0ogV3drUZEQoQ4udg4+xekh0A12SjqqgxUA4slB4X6Rhp5DvolmvTfwUDg9zKzICGabFjdVgyj59aezjA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763729669; c=relaxed/simple; bh=jVuZeqIJPuRY69ksXZnPJ5l8CQoYNnbXfkb2TdQRDb4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=lEwwfSt0MXVHpLlLgCNw+yeM8hsWP6V8x6azmrvJuM7I5hCfyPthmNmz5Cn+2jlidnkpuzcP2DE+zaUaXlerV1fQzI7KjYN89dIdu7EJi09UUea9LotZdcThksicnq/Tjut0kV9DPXDIVUGjpn1SGVB5EFiu+xeGDpATvwdsaTE= 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=YmtO4nFw; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Fce15ato; 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="YmtO4nFw"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Fce15ato" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5AL88g9C1390845 for ; Fri, 21 Nov 2025 12:54:27 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= FhMPoxdlez4+CWrNaVQRl/0LbheuMl4b2SYASS4lzbE=; b=YmtO4nFwPBX2XSU/ ZILUVU8ID0v538HSRbI7nTfpnPqYA404x2kbrAWTaXcZ3ZaZUsC/nFZBOQ5RGG8/ j1lrWi4Q2UhvhLKJJDKRIKOxIo8TBPgYnIfv0W9ZhVUvaEY9GrV6tSXQyJ/YdC6l TRalHDUc/rFznt1ZN344idQAlelIx+7CDxXbwiN2bzk3vaXMx88XoWMmBqzP9VBw FWls9DjncRH/s/Xam7lsJpLrO4N2zx9Dd/S2LmF0BNdtugr2YSFBqAN//j8hGoLW Ghgb/eh67IYSIR0E1cksa/ECfE7F9Ovr9Zhv9MDAQiGmAiG+dwyiscTcX69f6DnM vle9sg== Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ajb532h3s-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 21 Nov 2025 12:54:26 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-8b227a71fc6so53305885a.0 for ; Fri, 21 Nov 2025 04:54:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1763729666; x=1764334466; 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=FhMPoxdlez4+CWrNaVQRl/0LbheuMl4b2SYASS4lzbE=; b=Fce15atoFKnGdDRW2Tioe0vGe4D3J2mjpAQLp8VIY+io5lq6DiHaAcMlGXSgCW8DLD uX2fsuAGDVqxMk6omhzZtLEXYw4cnChKHXb7GY2IYPPwJJESTiNR3NE6EOBSB7afMTKC 3yJwC5IT4Ws8Fpv7iaQtzl5qd7JFhCBAmGEMbUSyNOw1R2Uv0f/+CLkI7EjV6WS+/Gi5 N5bUjHnfrFkfbWSjs4ZGxZEfjPRpFIkQdPqK8dtBhYT7/3+SZurosWWOySpEzF5pE5wL vWRfUQjgu6V/blEExW+xzoy+QsHYUwgfxrPTMIsmaWuw9d6wr0OJmQgGj6O2wnY1WjNi 9YVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763729666; x=1764334466; 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=FhMPoxdlez4+CWrNaVQRl/0LbheuMl4b2SYASS4lzbE=; b=F+wkLjdZrybPZ/ixpzA8+Gh4iIZi8bzORVh+Bu3eoJ0avho5BllcOsq8+O3QZMEYkI 6MLuWeV0d9qkNbtTtw8IhakJEVMv4oFeLUa5g19D43SRSVoMKj6OLBazqw+8X1C579aE 18l3O7TsHPEKdxX0s7Z3JLlUOWVN9PfUm/aBBGyDyiNHucN9UUrZCMBt3dbs12E/KaQJ EyxfNIgFi2QDDJ1fdf/+U/qziTzFJUzqnriM6yNLw/imKgTnglBNcf6nLEpYaY+Z+Zs7 ZivH+ISfEekRBiWc7/fkUidctvfq2RAiF9JvaJftvSdlg1k2A8xA0hAaE2DqYxwTvujR NqSQ== X-Forwarded-Encrypted: i=1; AJvYcCVMeSKjZOUSjrAAqYgtZ8oqtFGG8mrHtnLDgBf6KkwcvHmsCV+Tpll+PgOJHvCaiHnSQzfplcCgaOR66j4=@vger.kernel.org X-Gm-Message-State: AOJu0Yzt7BVl2HHAJjSsCVzYsYK+CZOHj985evPI2qGivnbUPQGvCNED cCk0sPGwnnl3Jkt+2HGd9c3S1pJ48sl/v6DsLrUqwckvLBvbL5HZkJq2JGPbBIZA7lUKQ2exPnR Kbd5ys3DpFFx4TBU2IUhPUWOGXoeU5Xh8u2L/V/JTaRGwW7TvsSq5rvFy9+MBf4U13O4= X-Gm-Gg: ASbGnct4cDFNtoJl4VphPv5JHhR0CiJxGlnuYqHiL8rKnxOzwukcUsMNM9VHzSiDOP5 IolzVJSXdOY9XRgGSzEf+gX45XMpJOIgUy/H01RVmoF1geAhFq1NITkznp6s/hlAm4aUfRJSoQM dk3brKpngXZ08ayTAcYk6ANpuZMAAl2NdHUsamIGlr230AOS3X3ahIUUTrndlnIoTkOSyI5j8Ti XnDzMEO3oOFX+befEjPcncnCnCSbmv/H0SCpo04c56EpDbnscXP1HfB9p4frcywbP1JWxUaFKPW ikKiEcP7QJ4Wfq+C3amQ/tNPkfLF5RXQhUzIEY/+fMrfCNm1QX+VUt8OReq5YH1vCpWpy7XjHpK qxMvpJOEn3vkwHcyFHtNZ9JNk1w0z7U/YyCab+YItRbzZ23XRAi9pfeJDk+EYgfnHnWk= X-Received: by 2002:a05:620a:472a:b0:8b2:9aba:e884 with SMTP id af79cd13be357-8b33d27431fmr154632785a.6.1763729665798; Fri, 21 Nov 2025 04:54:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IFECWM61gzenA8R/lneHEi9wkcYGYwMMT59QCQAJgcn3io65I7+1WxrqvoG4Nc9mitfbMTCDg== X-Received: by 2002:a05:620a:472a:b0:8b2:9aba:e884 with SMTP id af79cd13be357-8b33d27431fmr154629985a.6.1763729665256; Fri, 21 Nov 2025 04:54:25 -0800 (PST) Received: from [192.168.119.202] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-645363ac9a2sm4514512a12.6.2025.11.21.04.54.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Nov 2025 04:54:24 -0800 (PST) Message-ID: <340f121f-e217-40fd-9a84-68896d15fa65@oss.qualcomm.com> Date: Fri, 21 Nov 2025 13:54:22 +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 3/4] ARM: dts: qcom: msm8960: expressatt: Add Magnetometer To: Rudraksha Gupta , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20251119-expressatt_nfc_accel_magn_light-v1-0-636f16f05cf4@gmail.com> <20251119-expressatt_nfc_accel_magn_light-v1-3-636f16f05cf4@gmail.com> <161da2d4-3306-4251-addb-cc9822a112c0@oss.qualcomm.com> <573b2293-7b39-4c68-a51b-ecd5b62b0ec1@gmail.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <573b2293-7b39-4c68-a51b-ecd5b62b0ec1@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: bY5bOnsDdqeMJwofr7bZ9jA4BNJUVkLF X-Proofpoint-ORIG-GUID: bY5bOnsDdqeMJwofr7bZ9jA4BNJUVkLF X-Authority-Analysis: v=2.4 cv=Wugm8Nfv c=1 sm=1 tr=0 ts=69206103 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=6UeiqGixMTsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=2dWhQ9a6AAAA:20 a=VwQbUJbxAAAA:8 a=pGLkceISAAAA:8 a=szdtHcNGJkfY_GhBz5sA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 a=bA3UWDv6hWIuX7UZL3qL:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTIxMDA5NSBTYWx0ZWRfX8J0jFjOCPTKN cAZgMuxH6dzUexvlp6MHlH8BiAGdJRj5P5uMIb+DDN8iPN8jbhno0UlXu6PGqiQs1Gf+EBFlwYe 6+zvSksesc4BVpRS86LZBNSzejA/ojwKpSiIRnU9Cb+uWaSWOg3xYd8jSZwLT5sp9stRtNnK3nx cy8MntIy0iW+3jQlwAmhW6WMp2fSiY9BMP+V+VQtadOHmPHFwNxLzyRTx5gXRWUpCx8onR9NOvy NtOP3ZwbqM+3kNqI7S4DPLpL9ynUxtFPHvPv1WkbdX1yMaUvv/oHF/diMa5vaQW3rKCUJk3f1aW sAjGA83WlrWDDxwc+YXNouPdZdQcSzj1soJZ0W0gRfWiE62ejl5A1ddDvw/TU7uHGe6Uj5J2p2v xuHaiSHlmeBpwlxSVPpwyrbJIUPEnQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-21_03,2025-11-20_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1015 phishscore=0 bulkscore=0 adultscore=0 suspectscore=0 impostorscore=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2511210095 On 11/21/25 12:35 PM, Rudraksha Gupta wrote: >>> +        iovdd-supply = <&pm8921_lvs4>; >>> + >>> +        // TODO: Figure out Mount Matrix >> pmOS wiki has this: >> >> https://github.com/SiddharthManthan/accelerometer-mount-matrix-generator/blob/master/rotation_matrix.py >> >> but for accelerometers.. shouldn't be too different, I would assume > > Unfortunately this seems to generate a broken matrix for me for the accelerometer. Downstream is also useless here as I believe Android does something slightly different. > > I have been trying to upstream the pinephone pro's accelerometer and magnetometer as well ( https://lore.kernel.org/all/20250929-ppp_light_accel_mag_vol-down-v4-0-6598f22d3451@gmail.com/ ), but I'm just not sure if what I'm doing is right. I think the easiest solution for me right now is to get the screen working and use GUI programs to figure out if the mount matrix is right. If you have other suggestions, please let me know. I'm all ears. > > But since I have your attention for now, I had a couple questions on trying to get the screen to work: > > - The pipeline is MDP4 <-> DSI <-> Panel, right? Any information you can give me so that I can try to get this working faster? Yes that's the pipeline Unless the MDP4 driver is missing something (which it may as well, all hw since ~2013 has moved on to MDP5/DPU), you should just be required to come up with a panel driver (DSI init sequences, poking at regulators, reset GPIO(s) etc.) > - Is IOMMU broken? It seems like I can use APQ8064's implementation, but that's broken since at least 5.10. Should this be reported, and if so where? I don't know, this platform uses its own arcane driver.. +Dmitry? If you have a bug report, please send it to linux-arm-msm > - I see Adreno 2xx, but seems like there is not Adreno 225 DTS compatible? Any insight here? Adreno is a separate HW block, you can/should get software rendering to work first Konrad