arm64: dts: ti: k3-am64: Enable OSPI nodes at the board level
authorAndrew Davis <afd@ti.com>
Thu, 10 Aug 2023 00:38:08 +0000 (19:38 -0500)
committerNishanth Menon <nm@ti.com>
Thu, 10 Aug 2023 03:30:34 +0000 (22:30 -0500)
OSPI nodes defined in the top-level AM64 SoC dtsi files are incomplete
and may not be functional unless they are extended with pinmux and
device information.

As the attached OSPI device is only known about at the board integration
level, these nodes should only be enabled when provided with this
information.

Disable the OSPI nodes in the dtsi files and only enable the ones that
are actually pinned out on a given board.

Signed-off-by: Andrew Davis <afd@ti.com>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Link: https://lore.kernel.org/r/20230810003814.85450-8-afd@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
arch/arm64/boot/dts/ti/k3-am64-main.dtsi
arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi
arch/arm64/boot/dts/ti/k3-am642-evm.dts
arch/arm64/boot/dts/ti/k3-am642-sk.dts
arch/arm64/boot/dts/ti/k3-am642-tqma64xxl.dtsi

index 4e3e450e4e4c8bf8ff927c6db1aeed6ac73f10a0..ed1b63b9c1c5f9b13578f7d92c4bc425a59b234b 100644 (file)
                        assigned-clock-parents = <&k3_clks 75 7>;
                        assigned-clock-rates = <166666666>;
                        power-domains = <&k3_pds 75 TI_SCI_PD_EXCLUSIVE>;
+                       status = "disabled";
                };
        };
 
index 5606d775153d4ec46bc333d8a500e4145beebd3c..1c2c8f0daca9ffbc9a0d2fb11910465f93a4b04f 100644 (file)
 };
 
 &ospi0 {
+       status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&ospi0_pins_default>;
 
index d84e7ee16032801f6d67217f1c86ff46c5b209f5..b4a1f73d4fb17ae4f67ae9bb446dc8021c501014 100644 (file)
 };
 
 &ospi0 {
+       status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&ospi0_pins_default>;
 
index 963d796a3a970e293b227688aa1c5cdefc968fe4..af06ccd466802617a715b878e5eecf7133b840c9 100644 (file)
 };
 
 &ospi0 {
+       status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&ospi0_pins_default>;
 
index 5e9012107afab08bf6b119f96c14698c74941950..6229849b5d9682fd3bfad5b728ae08f285ea149b 100644 (file)
 };
 
 &ospi0 {
+       status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&ospi0_pins>;