arm64: tegra: Enable QSPI on Jetson Nano
authorSowjanya Komatineni <skomatineni@nvidia.com>
Mon, 21 Dec 2020 21:17:37 +0000 (13:17 -0800)
committerThierry Reding <treding@nvidia.com>
Tue, 26 Jan 2021 23:11:50 +0000 (00:11 +0100)
This patch enables QSPI on Jetson Nano.

Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts
arch/arm64/boot/dts/nvidia/tegra210.dtsi

index 1170f33f46d5e0747a41b5e5edf39a20d0593319..14c128a5e248d60018d69bd9b22e97a9f3f11f07 100644 (file)
                };
        };
 
+       spi@70410000 {
+               status = "okay";
+
+               flash@0 {
+                       compatible = "spi-nor";
+                       reg = <0>;
+                       spi-max-frequency = <104000000>;
+                       spi-tx-bus-width = <2>;
+                       spi-rx-bus-width = <2>;
+               };
+       };
+
        clk32k_in: clock@0 {
                compatible = "fixed-clock";
                clock-frequency = <32768>;
index 6e6cdb229e01d5e1fe96141614914e1306c21f96..26b3f98a211c2f1a39bee85b6c7fbb13c9980574 100644 (file)
                interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
                #address-cells = <1>;
                #size-cells = <0>;
-               clocks = <&tegra_car TEGRA210_CLK_QSPI>;
-               clock-names = "qspi";
+               clocks = <&tegra_car TEGRA210_CLK_QSPI>,
+                        <&tegra_car TEGRA210_CLK_QSPI_PM>;
+               clock-names = "qspi", "qspi_out";
                resets = <&tegra_car 211>;
                reset-names = "qspi";
                dmas = <&apbdma 5>, <&apbdma 5>;