18c2ecf20Sopenharmony_ciBroadcom Northstar2 IOMUX Controller
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThe Northstar2 IOMUX controller supports group based mux configuration. There
48c2ecf20Sopenharmony_ciare some individual pins that support modifying the pinconf parameters.
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciRequired properties:
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci- compatible:
98c2ecf20Sopenharmony_ci    Must be "brcm,ns2-pinmux"
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci- reg:
128c2ecf20Sopenharmony_ci    Define the base and range of the I/O address space that contains the
138c2ecf20Sopenharmony_ci    Northstar2 IOMUX and pin configuration registers.
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciProperties in sub nodes:
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci- function:
188c2ecf20Sopenharmony_ci    The mux function to select
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci- groups:
218c2ecf20Sopenharmony_ci    The list of groups to select with a given function
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci- pins:
248c2ecf20Sopenharmony_ci    List of pin names to change configuration
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciThe generic properties bias-disable, bias-pull-down, bias-pull-up,
278c2ecf20Sopenharmony_cidrive-strength, slew-rate, input-enable, input-disable are supported
288c2ecf20Sopenharmony_cifor some individual pins listed at the end.
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ciFor more details, refer to
318c2ecf20Sopenharmony_ciDocumentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ciFor example:
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci	pinctrl: pinctrl@6501d130 {
368c2ecf20Sopenharmony_ci		compatible = "brcm,ns2-pinmux";
378c2ecf20Sopenharmony_ci		reg = <0x6501d130 0x08>,
388c2ecf20Sopenharmony_ci		      <0x660a0028 0x04>,
398c2ecf20Sopenharmony_ci		      <0x660009b0 0x40>;
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci		pinctrl-names = "default";
428c2ecf20Sopenharmony_ci		pinctrl-0 = <&nand_sel &uart3_rx &sdio0_d4>;
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci		/* Select nand function */
458c2ecf20Sopenharmony_ci		nand_sel: nand_sel {
468c2ecf20Sopenharmony_ci			function = "nand";
478c2ecf20Sopenharmony_ci			groups = "nand_grp";
488c2ecf20Sopenharmony_ci		};
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci		/* Pull up the uart3 rx pin */
518c2ecf20Sopenharmony_ci		uart3_rx: uart3_rx {
528c2ecf20Sopenharmony_ci			pins = "uart3_sin";
538c2ecf20Sopenharmony_ci			bias-pull-up;
548c2ecf20Sopenharmony_ci		};
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ci		/* Set the drive strength of sdio d4 pin */
578c2ecf20Sopenharmony_ci		sdio0_d4: sdio0_d4 {
588c2ecf20Sopenharmony_ci			pins = "sdio0_data4";
598c2ecf20Sopenharmony_ci			drive-strength = <8>;
608c2ecf20Sopenharmony_ci		};
618c2ecf20Sopenharmony_ci	};
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ciList of supported functions and groups in Northstar2:
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci"nand": "nand_grp"
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ci"nor": "nor_data_grp", "nor_adv_grp", "nor_addr_0_3_grp", "nor_addr_4_5_grp",
688c2ecf20Sopenharmony_ci	"nor_addr_6_7_grp", "nor_addr_8_9_grp", "nor_addr_10_11_grp",
698c2ecf20Sopenharmony_ci	"nor_addr_12_15_grp"
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_ci"gpio": "gpio_0_1_grp", "gpio_2_5_grp", "gpio_6_7_grp", "gpio_8_9_grp",
728c2ecf20Sopenharmony_ci	"gpio_10_11_grp", "gpio_12_13_grp", "gpio_14_17_grp", "gpio_18_19_grp",
738c2ecf20Sopenharmony_ci	"gpio_20_21_grp", "gpio_22_23_grp", "gpio_24_25_grp", "gpio_26_27_grp",
748c2ecf20Sopenharmony_ci	"gpio_28_29_grp", "gpio_30_31_grp"
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci"pcie": "pcie_ab1_clk_wak_grp", "pcie_a3_clk_wak_grp", "pcie_b3_clk_wak_grp",
778c2ecf20Sopenharmony_ci	"pcie_b2_clk_wak_grp", "pcie_a2_clk_wak_grp"
788c2ecf20Sopenharmony_ci
798c2ecf20Sopenharmony_ci"uart0": "uart0_modem_grp", "uart0_rts_cts_grp", "uart0_in_out_grp"
808c2ecf20Sopenharmony_ci
818c2ecf20Sopenharmony_ci"uart1": "uart1_ext_clk_grp", "uart1_dcd_dsr_grp", "uart1_ri_dtr_grp",
828c2ecf20Sopenharmony_ci	"uart1_rts_cts_grp", "uart1_in_out_grp"
838c2ecf20Sopenharmony_ci
848c2ecf20Sopenharmony_ci"uart2": "uart2_rts_cts_grp"
858c2ecf20Sopenharmony_ci
868c2ecf20Sopenharmony_ci"pwm": "pwm_0_grp", "pwm_1_grp", "pwm_2_grp", "pwm_3_grp"
878c2ecf20Sopenharmony_ci
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ciList of pins that support pinconf parameters:
908c2ecf20Sopenharmony_ci
918c2ecf20Sopenharmony_ci"qspi_wp", "qspi_hold", "qspi_cs", "qspi_sck", "uart3_sin", "uart3_sout",
928c2ecf20Sopenharmony_ci"qspi_mosi", "qspi_miso", "spi0_fss", "spi0_rxd", "spi0_txd", "spi0_sck",
938c2ecf20Sopenharmony_ci"spi1_fss", "spi1_rxd", "spi1_txd", "spi1_sck", "sdio0_data7",
948c2ecf20Sopenharmony_ci"sdio0_emmc_rst", "sdio0_led_on", "sdio0_wp", "sdio0_data3", "sdio0_data4",
958c2ecf20Sopenharmony_ci"sdio0_data5", "sdio0_data6", "sdio0_cmd", "sdio0_data0", "sdio0_data1",
968c2ecf20Sopenharmony_ci"sdio0_data2", "sdio1_led_on", "sdio1_wp", "sdio0_cd_l", "sdio0_clk",
978c2ecf20Sopenharmony_ci"sdio1_data5", "sdio1_data6", "sdio1_data7", "sdio1_emmc_rst", "sdio1_data1",
988c2ecf20Sopenharmony_ci"sdio1_data2", "sdio1_data3", "sdio1_data4", "sdio1_cd_l", "sdio1_clk",
998c2ecf20Sopenharmony_ci"sdio1_cmd", "sdio1_data0", "ext_mdio_0", "ext_mdc_0", "usb3_p1_vbus_ppc",
1008c2ecf20Sopenharmony_ci"usb3_p1_overcurrent", "usb3_p0_vbus_ppc", "usb3_p0_overcurrent",
1018c2ecf20Sopenharmony_ci"usb2_presence_indication", "usb2_vbus_present", "usb2_vbus_ppc",
1028c2ecf20Sopenharmony_ci"usb2_overcurrent", "sata_led1", "sata_led0"
103