arm64: dts: ti: k3-j7200-common-proc-board: Add OSPI/Hyperflash select pinmux
authorVaishnav Achath <vaishnav.a@ti.com>
Sat, 13 May 2023 12:33:12 +0000 (18:03 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Thu, 15 Jun 2023 05:35:45 +0000 (11:05 +0530)
J7200 common processor board has an onboard mux for selecting whether
the OSPI signals are externally routed to OSPI flash or Hyperflash. The
mux state signal input is tied to WKUP_GPIO0_6 and is used by bootloader
for enabling the corresponding node accordingly. Add pinmux for the same.

Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
Link: https://lore.kernel.org/r/20230513123313.11462-4-vaishnav.a@ti.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts

index 0cc0e1dc40c546929a4be551f5462417d25b0e3a..e1017027d6499a5d0c527d0f64c849e45e56cc63 100644 (file)
                >;
        };
 
+       wkup_gpio_pins_default: wkup-gpio-pins-default {
+               pinctrl-single,pins = <
+                       J721E_WKUP_IOPAD(0x70, PIN_INPUT, 7) /* (C14) WKUP_GPIO0_6 */
+               >;
+       };
+
        mcu_mdio_pins_default: mcu-mdio1-pins-default {
                pinctrl-single,pins = <
                        J721E_WKUP_IOPAD(0x0034, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */
        status = "disabled";
 };
 
+&wkup_gpio0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&wkup_gpio_pins_default>;
+};
+
 &wkup_gpio1 {
        status = "disabled";
 };