Hi Konrad, On Thu Jul 17, 2025 at 10:29 AM CEST, Luca Weiss wrote: > On Mon Jul 14, 2025 at 1:06 PM CEST, Konrad Dybcio wrote: >> On 7/13/25 10:05 AM, Luca Weiss wrote: >>> Add a devicetree description for the Milos SoC, which is for example >>> Snapdragon 7s Gen 3 (SM7635). >>> >>> Signed-off-by: Luca Weiss <luca.we...@fairphone.com> >>> --- >> >> [...] >>> + >>> + spmi_bus: spmi@c400000 { >>> + compatible = "qcom,spmi-pmic-arb"; >> >> There's two bus instances on this platform, check out the x1e binding > > Will do
One problem: If we make the labels spmi_bus0 and spmi_bus1 then we can't reuse the existing PMIC dtsi files since they all reference &spmi_bus. On FP6 everything's connected to PMIC_SPMI0_*, and PMIC_SPMI1_* is not connected to anything so just adding the label spmi_bus on spmi_bus0 would be fine. Can I add this to the device dts? Not going to be pretty though... diff --git a/arch/arm64/boot/dts/qcom/milos-fairphone-fp6.dts b/arch/arm64/boot/dts/qcom/milos-fairphone-fp6.dts index d12eaa585b31..69605c9ed344 100644 --- a/arch/arm64/boot/dts/qcom/milos-fairphone-fp6.dts +++ b/arch/arm64/boot/dts/qcom/milos-fairphone-fp6.dts @@ -11,6 +11,9 @@ #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> #include <dt-bindings/regulator/qcom,rpmh-regulator.h> #include "milos.dtsi" + +spmi_bus: &spmi_bus0 {}; + #include "pm7550.dtsi" #include "pm8550vs.dtsi" #include "pmiv0104.dtsi" /* PMIV0108 */ Or I can add a second label for the spmi_bus0 as 'spmi_bus'. Not sure other designs than SM7635 recommend using spmi_bus1 for some stuff. But I guess longer term we'd need to figure out a solution to this, how to place a PMIC on a given SPMI bus, if reference designs start to recommend putting different PMIC on the separate busses. Regards Luca