// SPDX-License-Identifier: GPL-2.0 OR MIT /* * Copyright (c) 2024 Yixun Lan */ #include #define K1_PADCONF(pin, func) (((pin) << 16) | (func)) /* Map GPIO pin to each bank's */ #define K1_GPIO(x) (x / 32) (x % 32) &pinctrl { gmac0_cfg: gmac0-cfg { gmac0-pins { pinmux = , /* gmac0_rxdv */ , /* gmac0_rx_d0 */ , /* gmac0_rx_d1 */ , /* gmac0_rx_clk */ , /* gmac0_rx_d2 */ , /* gmac0_rx_d3 */ , /* gmac0_tx_d0 */ , /* gmac0_tx_d1 */ , /* gmac0_tx */ , /* gmac0_tx_d2 */ , /* gmac0_tx_d3 */ , /* gmac0_tx_en */ , /* gmac0_mdc */ , /* gmac0_mdio */ , /* gmac0_int_n */ ; /* gmac0_clk_ref */ bias-pull-up = <0>; drive-strength = <21>; }; }; gmac1_cfg: gmac1-cfg { gmac1-pins { pinmux = , /* gmac1_rxdv */ , /* gmac1_rx_d0 */ , /* gmac1_rx_d1 */ , /* gmac1_rx_clk */ , /* gmac1_rx_d2 */ , /* gmac1_rx_d3 */ , /* gmac1_tx_d0 */ , /* gmac1_tx_d1 */ , /* gmac1_tx */ , /* gmac1_tx_d2 */ , /* gmac1_tx_d3 */ , /* gmac1_tx_en */ , /* gmac1_mdc */ , /* gmac1_mdio */ , /* gmac1_int_n */ ; /* gmac1_clk_ref */ bias-pull-up = <0>; drive-strength = <21>; }; }; i2c2_0_cfg: i2c2-0-cfg { i2c2-0-pins { pinmux = , /* I2C2_SCL */ ; /* I2C2_SDA */ }; }; i2c8_cfg: i2c8-cfg { i2c8-0-pins { pinmux = , /* PWR_SCL */ ; /* PWR_SDA */ }; }; qspi_cfg: qspi-cfg { qspi-pins { pinmux = , /* QSPI_DATA3 */ , /* QSPI_DATA2 */ , /* QSPI_DATA1 */ , /* QSPI_DATA0 */ ; /* QSPI_CLK */ bias-disable; drive-strength = <19>; power-source = <3300>; }; qspi-cs1-pins { pinmux = ; /* QSPI_CS1 */ bias-pull-up = <0>; drive-strength = <19>; power-source = <3300>; }; }; /omit-if-no-ref/ uart0_0_cfg: uart0-0-cfg { uart0-0-pins { pinmux = , /* uart0_txd */ ; /* uart0_rxd */ power-source = <3300>; bias-pull-up = <0>; drive-strength = <19>; }; }; /omit-if-no-ref/ uart0_1_cfg: uart0-1-cfg { uart0-1-pins { pinmux = , /* uart0_txd */ ; /* uart0_rxd */ power-source = <3300>; bias-pull-up = <0>; drive-strength = <19>; }; }; /omit-if-no-ref/ uart0_2_cfg: uart0-2-cfg { uart0-2-pins { pinmux = , /* uart0_txd */ ; /* uart0_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart2_0_cfg: uart2-0-cfg { uart2-0-pins { pinmux = , /* uart2_txd */ ; /* uart2_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart2_0_cts_rts_cfg: uart2-0-cts-rts-cfg { uart2-0-pins { pinmux = , /* uart2_cts */ ; /* uart2_rts */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart3_0_cfg: uart3-0-cfg { uart3-0-pins { pinmux = , /* uart3_txd */ ; /* uart3_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart3_0_cts_rts_cfg: uart3-0-cts-rts-cfg { uart3-0-pins { pinmux = , /* uart3_cts */ ; /* uart3_rts */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart3_1_cfg: uart3-1-cfg { uart3-1-pins { pinmux = , /* uart3_txd */ ; /* uart3_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart3_1_cts_rts_cfg: uart3-1-cts-rts-cfg { uart3-1-pins { pinmux = , /* uart3_cts */ ; /* uart3_rts */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart3_2_cfg: uart3-2-cfg { uart3-2-pins { pinmux = , /* uart3_txd */ ; /* uart3_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart3_2_cts_rts_cfg: uart3-2-cts-rts-cfg { uart3-2-pins { pinmux = , /* uart3_cts */ ; /* uart3_rts */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart4_0_cfg: uart4-0-cfg { uart4-0-pins { pinmux = , /* uart4_txd */ ; /* uart4_rxd */ power-source = <3300>; bias-pull-up = <0>; drive-strength = <19>; }; }; /omit-if-no-ref/ uart4_1_cfg: uart4-1-cfg { uart4-1-pins { pinmux = , /* uart4_txd */ ; /* uart4_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart4_1_cts_rts_cfg: uart4-1-cts-rts-cfg { uart4-1-pins { pinmux = , /* uart4_cts */ ; /* uart4_rts */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart4_2_cfg: uart4-2-cfg { uart4-2-pins { pinmux = , /* uart4_txd */ ; /* uart4_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart4_3_cfg: uart4-3-cfg { uart4-3-pins { pinmux = , /* uart4_txd */ ; /* uart4_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart4_3_cts_rts_cfg: uart4-3-cts-rts-cfg { uart4-3-pins { pinmux = , /* uart4_cts */ ; /* uart4_rts */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart4_4_cfg: uart4-4-cfg { uart4-4-pins { pinmux = , /* uart4_txd */ ; /* uart4_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart4_4_cts_rts_cfg: uart4-4-cts-rts-cfg { uart4-4-pins { pinmux = , /* uart4_cts */ ; /* uart4_rts */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart5_0_cfg: uart5-0-cfg { uart5-0-pins { pinmux = , /* uart5_txd */ ; /* uart5_rxd */ power-source = <3300>; bias-pull-up = <0>; drive-strength = <19>; }; }; /omit-if-no-ref/ uart5_1_cfg: uart5-1-cfg { uart5-1-pins { pinmux = , /* uart5_txd */ ; /* uart5_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart5_1_cts_rts_cfg: uart5-1-cts-rts-cfg { uart5-1-pins { pinmux = , /* uart5_cts */ ; /* uart5_rts */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart5_2_cfg: uart5-2-cfg { uart5-2-pins { pinmux = , /* uart5_txd */ ; /* uart5_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart5_2_cts_rts_cfg: uart5-2-cts-rts-cfg { uart5-2-pins { pinmux = , /* uart5_cts */ ; /* uart5_rts */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart5_3_cfg: uart5-3-cfg { uart5-3-pins { pinmux = , /* uart5_txd */ ; /* uart5_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart5_3_cts_rts_cfg: uart5-3-cts-rts-cfg { uart5-3-pins { pinmux = , /* uart5_cts */ ; /* uart5_rts */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart6_0_cfg: uart6-0-cfg { uart6-0-pins { pinmux = , /* uart6_txd */ ; /* uart6_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart6_0_cts_rts_cfg: uart6-0-cts-rts-cfg { uart6-0-pins { pinmux = , /* uart6_cts */ ; /* uart6_rts */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart6_1_cfg: uart6-1-cfg { uart6-1-pins { pinmux = , /* uart6_txd */ ; /* uart6_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart6_1_cts_rts_cfg: uart6-1-cts-rts-cfg { uart6-1-pins { pinmux = , /* uart6_cts */ ; /* uart6_rts */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart6_2_cfg: uart6-2-cfg { uart6-2-pins { pinmux = , /* uart6_txd */ ; /* uart6_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart7_0_cfg: uart7-0-cfg { uart7-0-pins { pinmux = , /* uart7_txd */ ; /* uart7_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart7_1_cfg: uart7-1-cfg { uart7-1-pins { pinmux = , /* uart7_txd */ ; /* uart7_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart7_1_cts_rts_cfg: uart7-1-cts-rts-cfg { uart7-1-pins { pinmux = , /* uart7_cts */ ; /* uart7_rts */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart8_0_cfg: uart8-0-cfg { uart8-0-pins { pinmux = , /* uart8_txd */ ; /* uart8_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart8_1_cfg: uart8-1-cfg { uart8-1-pins { pinmux = , /* uart8_txd */ ; /* uart8_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart8_1_cts_rts_cfg: uart8-1-cts-rts-cfg { uart8-1-pins { pinmux = , /* uart8_cts */ ; /* uart8_rts */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart8_2_cfg: uart8-2-cfg { uart8-2-pins { pinmux = , /* uart8_txd */ ; /* uart8_rxd */ power-source = <3300>; bias-pull-up = <0>; drive-strength = <19>; }; }; /omit-if-no-ref/ uart8_2_cts_rts_cfg: uart8-2-cts-rts-cfg { uart8-2-pins { pinmux = , /* uart8_cts */ ; /* uart8_rts */ power-source = <3300>; bias-pull-up = <0>; drive-strength = <19>; }; }; /omit-if-no-ref/ uart9_0_cfg: uart9-0-cfg { uart9-0-pins { pinmux = , /* uart9_txd */ ; /* uart9_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart9_1_cfg: uart9-1-cfg { uart9-1-pins { pinmux = , /* uart9_txd */ ; /* uart9_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart9_1_cts_rts_cfg: uart9-1-cts-rts-cfg { uart9-1-pins { pinmux = , /* uart9_cts */ ; /* uart9_rts */ bias-pull-up = <0>; drive-strength = <32>; }; }; /omit-if-no-ref/ uart9_2_cfg: uart9-2-cfg { uart9-2-pins { pinmux = , /* uart9_txd */ ; /* uart9_rxd */ bias-pull-up = <0>; drive-strength = <32>; }; }; pwm14_1_cfg: pwm14-1-cfg { pwm14-1-pins { pinmux = ; bias-pull-up = <0>; drive-strength = <32>; }; }; };