diff mbox series

[1/3] arm64: tegra: Add spidev nodes for SPI controllers

Message ID 20241126134529.936451-2-va@nvidia.com (mailing list archive)
State New
Headers show
Series Add spidev nodes for SPI controllers | expand

Commit Message

Vishwaroop A Nov. 26, 2024, 1:45 p.m. UTC
Add spidev nodes to two existing SPI controllers on the
NVIDIA Tegra234 SoC. These additions enable user-space
SPI device support for testing and development purposes.
Specifies a maximum frequency of 81MHz for each spidev node.

The 81MHz maximum frequency is defined to ensure stable operation
while allowing for high-speed SPI communication. This frequency
can be adjusted based on specific hardware capabilities and
requirements.

Signed-off-by: Vishwaroop A <va@nvidia.com>
---
 .../dts/nvidia/tegra234-p3737-0000+p3701.dtsi | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701.dtsi b/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701.dtsi
index f6cad29355e6..17de3d0feb45 100644
--- a/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701.dtsi
@@ -84,6 +84,34 @@ 
 			};
 		};
 
+		spi@3210000 {
+			status = "okay";
+			spi@0 {
+				compatible = "nvidia,tegra-spidev";
+				reg = <0x0>;
+				spi-max-frequency = <81000000>;
+			};
+			spi@1 {
+				compatible = "nvidia,tegra-spidev";
+				reg = <0x1>;
+				spi-max-frequency = <81000000>;
+			};
+		};
+
+		spi@3230000 {
+			status = "okay";
+			spi@0 {
+				compatible = "nvidia,tegra-spidev";
+				reg = <0x0>;
+				spi-max-frequency = <81000000>;
+			};
+			spi@1 {
+				compatible = "nvidia,tegra-spidev";
+				reg = <0x1>;
+				spi-max-frequency = <81000000>;
+			};
+		};
+
 		pwm@3280000 {
 			status = "okay";
 		};