* [PATCH] arm64: dts: qcom: x1e80100-dell-xps13-9345: Disable PM8010 @ 2025-03-19 3:17 Bjorn Andersson via B4 Relay 2025-03-19 10:06 ` Stephan Gerhold 0 siblings, 1 reply; 7+ messages in thread From: Bjorn Andersson via B4 Relay @ 2025-03-19 3:17 UTC (permalink / raw) To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Aleksandrs Vinarskis Cc: linux-arm-msm, devicetree, linux-kernel, Bjorn Andersson From: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com> The Qualcomm X Elite reference design uses the PM8010 PMIC for camera use cases, but the Dell XPS13 doesn't. Disable this PMIC to avoid the error in the kernel log caused by an attempt to access it during boot. Fixes: f5b788d0e8cd ("arm64: dts: qcom: Add support for X1-based Dell XPS 13 9345") Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com> --- arch/arm64/boot/dts/qcom/x1e80100-dell-xps13-9345.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-dell-xps13-9345.dts b/arch/arm64/boot/dts/qcom/x1e80100-dell-xps13-9345.dts index 967f6dba0878b51a985fd7c9570b8c4e71afe57d..684441bc3eb39ab2e8fd7dbb641a8ea75309901c 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-dell-xps13-9345.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-dell-xps13-9345.dts @@ -867,6 +867,10 @@ &pcie6a_phy { status = "okay"; }; +&pm8010 { + status = "disabled"; +}; + &pm8550_gpios { rtmr0_default: rtmr0-reset-n-active-state { pins = "gpio10"; --- base-commit: c4d4884b67802c41fd67399747165d65c770621a change-id: 20250318-xps13-no-pm8010-3822155f8f13 Best regards, -- Bjorn Andersson <bjorn.andersson@oss.qualcomm.com> ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] arm64: dts: qcom: x1e80100-dell-xps13-9345: Disable PM8010 2025-03-19 3:17 [PATCH] arm64: dts: qcom: x1e80100-dell-xps13-9345: Disable PM8010 Bjorn Andersson via B4 Relay @ 2025-03-19 10:06 ` Stephan Gerhold 2025-03-19 11:55 ` Johan Hovold 2025-03-19 14:00 ` Bjorn Andersson 0 siblings, 2 replies; 7+ messages in thread From: Stephan Gerhold @ 2025-03-19 10:06 UTC (permalink / raw) To: bjorn.andersson Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Aleksandrs Vinarskis, linux-arm-msm, devicetree, linux-kernel On Tue, Mar 18, 2025 at 10:17:02PM -0500, Bjorn Andersson via B4 Relay wrote: > From: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com> > > The Qualcomm X Elite reference design uses the PM8010 PMIC for camera > use cases, but the Dell XPS13 doesn't. Disable this PMIC to avoid the > error in the kernel log caused by an attempt to access it during boot. > > Fixes: f5b788d0e8cd ("arm64: dts: qcom: Add support for X1-based Dell XPS 13 9345") > Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com> Usually we do the opposite: disable nodes by default that may or may not be there and enable them where needed. E.g. for the 4 SMB2360 instances in x1e80100-pmics.dtsi. I think the same approach would also be preferable here. You shouldn't get an error in the log just because you didn't go through all of your DT includes and checked if you really have all of the components listed there. I think it's okay to enable PMICs that are more or less guaranteed to be there, but clearly this is not the case for PM8010. Thanks, Stephan ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] arm64: dts: qcom: x1e80100-dell-xps13-9345: Disable PM8010 2025-03-19 10:06 ` Stephan Gerhold @ 2025-03-19 11:55 ` Johan Hovold 2025-03-19 14:00 ` Bjorn Andersson 1 sibling, 0 replies; 7+ messages in thread From: Johan Hovold @ 2025-03-19 11:55 UTC (permalink / raw) To: Stephan Gerhold Cc: bjorn.andersson, Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Aleksandrs Vinarskis, linux-arm-msm, devicetree, linux-kernel On Wed, Mar 19, 2025 at 11:06:12AM +0100, Stephan Gerhold wrote: > On Tue, Mar 18, 2025 at 10:17:02PM -0500, Bjorn Andersson via B4 Relay wrote: > > From: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com> > > > > The Qualcomm X Elite reference design uses the PM8010 PMIC for camera > > use cases, but the Dell XPS13 doesn't. Disable this PMIC to avoid the > > error in the kernel log caused by an attempt to access it during boot. > > > > Fixes: f5b788d0e8cd ("arm64: dts: qcom: Add support for X1-based Dell XPS 13 9345") > > Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com> > > Usually we do the opposite: disable nodes by default that may or may not > be there and enable them where needed. E.g. for the 4 SMB2360 instances > in x1e80100-pmics.dtsi. > > I think the same approach would also be preferable here. You shouldn't > get an error in the log just because you didn't go through all of your > DT includes and checked if you really have all of the components listed > there. I think it's okay to enable PMICs that are more or less > guaranteed to be there, but clearly this is not the case for PM8010. I was just going to say the same. Johan ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] arm64: dts: qcom: x1e80100-dell-xps13-9345: Disable PM8010 2025-03-19 10:06 ` Stephan Gerhold 2025-03-19 11:55 ` Johan Hovold @ 2025-03-19 14:00 ` Bjorn Andersson 2025-06-15 18:29 ` Aleksandrs Vinarskis 1 sibling, 1 reply; 7+ messages in thread From: Bjorn Andersson @ 2025-03-19 14:00 UTC (permalink / raw) To: Stephan Gerhold Cc: bjorn.andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Aleksandrs Vinarskis, linux-arm-msm, devicetree, linux-kernel On Wed, Mar 19, 2025 at 11:06:12AM +0100, Stephan Gerhold wrote: > On Tue, Mar 18, 2025 at 10:17:02PM -0500, Bjorn Andersson via B4 Relay wrote: > > From: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com> > > > > The Qualcomm X Elite reference design uses the PM8010 PMIC for camera > > use cases, but the Dell XPS13 doesn't. Disable this PMIC to avoid the > > error in the kernel log caused by an attempt to access it during boot. > > > > Fixes: f5b788d0e8cd ("arm64: dts: qcom: Add support for X1-based Dell XPS 13 9345") > > Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com> > > Usually we do the opposite: disable nodes by default that may or may not > be there and enable them where needed. E.g. for the 4 SMB2360 instances > in x1e80100-pmics.dtsi. > > I think the same approach would also be preferable here. You shouldn't > get an error in the log just because you didn't go through all of your > DT includes and checked if you really have all of the components listed > there. I think it's okay to enable PMICs that are more or less > guaranteed to be there, but clearly this is not the case for PM8010. > That's reasonable. Have there been reports of this error from anyone else, or should I go ahead and enable &pm8010 on all !xps13 devices? Regards, Bjorn ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] arm64: dts: qcom: x1e80100-dell-xps13-9345: Disable PM8010 2025-03-19 14:00 ` Bjorn Andersson @ 2025-06-15 18:29 ` Aleksandrs Vinarskis 2025-06-16 8:09 ` Bryan O'Donoghue 0 siblings, 1 reply; 7+ messages in thread From: Aleksandrs Vinarskis @ 2025-06-15 18:29 UTC (permalink / raw) To: Bjorn Andersson, Stephan Gerhold Cc: bjorn.andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree, linux-kernel, Bryan O'Donoghue, Jens Glathe, laurentiu.tudor1 On 3/19/25 15:00, Bjorn Andersson wrote: > On Wed, Mar 19, 2025 at 11:06:12AM +0100, Stephan Gerhold wrote: >> On Tue, Mar 18, 2025 at 10:17:02PM -0500, Bjorn Andersson via B4 Relay wrote: >>> From: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com> >>> >>> The Qualcomm X Elite reference design uses the PM8010 PMIC for camera >>> use cases, but the Dell XPS13 doesn't. Disable this PMIC to avoid the >>> error in the kernel log caused by an attempt to access it during boot. >>> >>> Fixes: f5b788d0e8cd ("arm64: dts: qcom: Add support for X1-based Dell XPS 13 9345") >>> Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com> >> Usually we do the opposite: disable nodes by default that may or may not >> be there and enable them where needed. E.g. for the 4 SMB2360 instances >> in x1e80100-pmics.dtsi. >> >> I think the same approach would also be preferable here. You shouldn't >> get an error in the log just because you didn't go through all of your >> DT includes and checked if you really have all of the components listed >> there. I think it's okay to enable PMICs that are more or less >> guaranteed to be there, but clearly this is not the case for PM8010. >> > That's reasonable. Have there been reports of this error from anyone > else, or should I go ahead and enable &pm8010 on all !xps13 devices? Hi all, Revisiting this change in context of Dell XPS 9345 and now Lenovo ThinkBook 16 [1] (and upcoming Lenovo Ideapad 5) as these do not have pm8010. Perhaps safest and easiest is to simply disable pm8010 in `x1e80100-pmics.dtsi` as proposed and _not_ enable it on any devices, since its known to not be used anywhere _yet_? As its a camera PMIC, the only submitted upstream (did not land yet) change that utilizes pm8010 on X1/X1E is Bryan's CAMSS series that enables camera on CRD [2]. There are a few other laptops that have patches to enable the camera (my Zenbook, Bryan's branch on Gitlab for few more laptops) but those were not submitted yet, so can be easily changed to explicitly enable pm8010 before submission. This way we could simplify this change and not have to figure out which of the upstream devices do in fact have pm8010 onboard. On XPS 9345 specifically failure to probe pm8010 leads to power button's short press not working for shutdown/suspend (only long press kill laptop power), which is a minor but not irrelevant detail, hence bringing this up. Thanks, Alex [1] https://lore.kernel.org/all/20250607-tb16-dt-v6-4-61a31914ee72@oldschoolsolutions.biz/ [2] https://lore.kernel.org/all/20250417-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-5-3fd4124cf35a@linaro.org/ > > Regards, > Bjorn > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] arm64: dts: qcom: x1e80100-dell-xps13-9345: Disable PM8010 2025-06-15 18:29 ` Aleksandrs Vinarskis @ 2025-06-16 8:09 ` Bryan O'Donoghue 2025-06-23 11:37 ` Konrad Dybcio 0 siblings, 1 reply; 7+ messages in thread From: Bryan O'Donoghue @ 2025-06-16 8:09 UTC (permalink / raw) To: Aleksandrs Vinarskis, Bjorn Andersson, Stephan Gerhold Cc: bjorn.andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree, linux-kernel, Jens Glathe, laurentiu.tudor1 On 15/06/2025 19:29, Aleksandrs Vinarskis wrote: > Hi all, > > > Revisiting this change in context of Dell XPS 9345 and now Lenovo > ThinkBook 16 [1] (and upcoming Lenovo Ideapad 5) as these do not have > pm8010. > > > Perhaps safest and easiest is to simply disable pm8010 in `x1e80100- > pmics.dtsi` as proposed and _not_ enable it on any devices, since its > known to not be used anywhere _yet_? As its a camera PMIC, the only > submitted upstream (did not land yet) change that utilizes pm8010 on X1/ > X1E is Bryan's CAMSS series that enables camera on CRD [2]. There are a > few other laptops that have patches to enable the camera (my Zenbook, > Bryan's branch on Gitlab for few more laptops) but those were not > submitted yet, so can be easily changed to explicitly enable pm8010 > before submission. This way we could simplify this change and not have > to figure out which of the upstream devices do in fact have pm8010 onboard. As a general principle, unless its used it should be disabled. pm8010 is a camera specific PMIC and Dell has its own way of powering the camera sensors on XPS, Inspiron and I'd guess other models too, presumably as a result of reusing the x86 design with Qcom with minimal changes. Disable by default. +1 --- bod ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] arm64: dts: qcom: x1e80100-dell-xps13-9345: Disable PM8010 2025-06-16 8:09 ` Bryan O'Donoghue @ 2025-06-23 11:37 ` Konrad Dybcio 0 siblings, 0 replies; 7+ messages in thread From: Konrad Dybcio @ 2025-06-23 11:37 UTC (permalink / raw) To: Bryan O'Donoghue, Aleksandrs Vinarskis, Bjorn Andersson, Stephan Gerhold Cc: bjorn.andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree, linux-kernel, Jens Glathe, laurentiu.tudor1 On 6/16/25 10:09 AM, Bryan O'Donoghue wrote: > On 15/06/2025 19:29, Aleksandrs Vinarskis wrote: >> Hi all, >> >> >> Revisiting this change in context of Dell XPS 9345 and now Lenovo ThinkBook 16 [1] (and upcoming Lenovo Ideapad 5) as these do not have pm8010. >> >> >> Perhaps safest and easiest is to simply disable pm8010 in `x1e80100- pmics.dtsi` as proposed and _not_ enable it on any devices, since its known to not be used anywhere _yet_? As its a camera PMIC, the only submitted upstream (did not land yet) change that utilizes pm8010 on X1/ X1E is Bryan's CAMSS series that enables camera on CRD [2]. There are a few other laptops that have patches to enable the camera (my Zenbook, Bryan's branch on Gitlab for few more laptops) but those were not submitted yet, so can be easily changed to explicitly enable pm8010 before submission. This way we could simplify this change and not have to figure out which of the upstream devices do in fact have pm8010 onboard. > > As a general principle, unless its used it should be disabled. > > pm8010 is a camera specific PMIC and Dell has its own way of powering the camera sensors on XPS, Inspiron and I'd guess other models too, presumably as a result of reusing the x86 design with Qcom with minimal changes. > > Disable by default. +1 Sure, we can do that Konrad ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-06-23 11:37 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-03-19 3:17 [PATCH] arm64: dts: qcom: x1e80100-dell-xps13-9345: Disable PM8010 Bjorn Andersson via B4 Relay 2025-03-19 10:06 ` Stephan Gerhold 2025-03-19 11:55 ` Johan Hovold 2025-03-19 14:00 ` Bjorn Andersson 2025-06-15 18:29 ` Aleksandrs Vinarskis 2025-06-16 8:09 ` Bryan O'Donoghue 2025-06-23 11:37 ` Konrad Dybcio
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).