ARM: dts: qcom: Enable NAND + USB for RB3011
authorJonathan McDowell <noodles@earth.li>
Thu, 20 May 2021 17:30:16 +0000 (18:30 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 31 May 2021 15:56:25 +0000 (10:56 -0500)
Enable the NAND + USB devices for the MikroTik RB3011 platform now
they're in the main IPQ806x DT.

Signed-off-by: Jonathan McDowell <noodles@earth.li>
Link: https://lore.kernel.org/r/1e5c89ba0d2491ca374f10e0446e21d0e42afd34.1621531633.git.noodles@earth.li
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm/boot/dts/qcom-ipq8064-rb3011.dts

index 282b89ce3d451b4233fd21ab49bdb62070b2607d..f7ea2e5dd1914321fca6c6a95ab3da65ab697f9f 100644 (file)
        };
 };
 
+&adm_dma {
+       status = "okay";
+};
+
 &gmac0 {
        status = "okay";
 
        status = "okay";
 };
 
+&hs_phy_1 {
+       status = "okay";
+};
+
+&nand {
+       status = "okay";
+
+       nandcs@0 {
+               compatible = "qcom,nandcs";
+               reg = <0>;
+
+               nand-ecc-strength = <4>;
+               nand-bus-width = <8>;
+               nand-ecc-step-size = <512>;
+
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       boot@0 {
+                               label = "RouterBoard NAND 1 Boot";
+                               reg = <0x0000000 0x0800000>;
+                       };
+
+                       main@800000 {
+                               label = "RouterBoard NAND 1 Main";
+                               reg = <0x0800000 0x7800000>;
+                       };
+               };
+       };
+};
+
 &qcom_pinmux {
        buttons_pins: buttons_pins {
                mux {
                        input-disable;
                };
        };
+
+       usb1_pwr_en_pins: usb1_pwr_en_pins {
+               mux {
+                       pins = "gpio4";
+                       function = "gpio";
+                       drive-strength = <16>;
+                       bias-disable;
+                       output-high;
+               };
+       };
+};
+
+&ss_phy_1 {
+       status = "okay";
+};
+
+&usb3_1 {
+       pinctrl-0 = <&usb1_pwr_en_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
 };