1c66ec88fSEmmanuel VadotBroadcom Northstar2 IOMUX Controller 2c66ec88fSEmmanuel Vadot 3c66ec88fSEmmanuel VadotThe Northstar2 IOMUX controller supports group based mux configuration. There 4c66ec88fSEmmanuel Vadotare some individual pins that support modifying the pinconf parameters. 5c66ec88fSEmmanuel Vadot 6c66ec88fSEmmanuel VadotRequired properties: 7c66ec88fSEmmanuel Vadot 8c66ec88fSEmmanuel Vadot- compatible: 9c66ec88fSEmmanuel Vadot Must be "brcm,ns2-pinmux" 10c66ec88fSEmmanuel Vadot 11c66ec88fSEmmanuel Vadot- reg: 12c66ec88fSEmmanuel Vadot Define the base and range of the I/O address space that contains the 13c66ec88fSEmmanuel Vadot Northstar2 IOMUX and pin configuration registers. 14c66ec88fSEmmanuel Vadot 15c66ec88fSEmmanuel VadotProperties in sub nodes: 16c66ec88fSEmmanuel Vadot 17c66ec88fSEmmanuel Vadot- function: 18c66ec88fSEmmanuel Vadot The mux function to select 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadot- groups: 21c66ec88fSEmmanuel Vadot The list of groups to select with a given function 22c66ec88fSEmmanuel Vadot 23c66ec88fSEmmanuel Vadot- pins: 24c66ec88fSEmmanuel Vadot List of pin names to change configuration 25c66ec88fSEmmanuel Vadot 26c66ec88fSEmmanuel VadotThe generic properties bias-disable, bias-pull-down, bias-pull-up, 27c66ec88fSEmmanuel Vadotdrive-strength, slew-rate, input-enable, input-disable are supported 28c66ec88fSEmmanuel Vadotfor some individual pins listed at the end. 29c66ec88fSEmmanuel Vadot 30c66ec88fSEmmanuel VadotFor more details, refer to 31c66ec88fSEmmanuel VadotDocumentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt 32c66ec88fSEmmanuel Vadot 33c66ec88fSEmmanuel VadotFor example: 34c66ec88fSEmmanuel Vadot 35c66ec88fSEmmanuel Vadot pinctrl: pinctrl@6501d130 { 36c66ec88fSEmmanuel Vadot compatible = "brcm,ns2-pinmux"; 37c66ec88fSEmmanuel Vadot reg = <0x6501d130 0x08>, 38c66ec88fSEmmanuel Vadot <0x660a0028 0x04>, 39c66ec88fSEmmanuel Vadot <0x660009b0 0x40>; 40c66ec88fSEmmanuel Vadot 41c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 42*5def4c47SEmmanuel Vadot pinctrl-0 = <&nand_sel>, <&uart3_rx>, <&sdio0_d4>; 43c66ec88fSEmmanuel Vadot 44c66ec88fSEmmanuel Vadot /* Select nand function */ 45c66ec88fSEmmanuel Vadot nand_sel: nand_sel { 46c66ec88fSEmmanuel Vadot function = "nand"; 47c66ec88fSEmmanuel Vadot groups = "nand_grp"; 48c66ec88fSEmmanuel Vadot }; 49c66ec88fSEmmanuel Vadot 50c66ec88fSEmmanuel Vadot /* Pull up the uart3 rx pin */ 51c66ec88fSEmmanuel Vadot uart3_rx: uart3_rx { 52c66ec88fSEmmanuel Vadot pins = "uart3_sin"; 53c66ec88fSEmmanuel Vadot bias-pull-up; 54c66ec88fSEmmanuel Vadot }; 55c66ec88fSEmmanuel Vadot 56c66ec88fSEmmanuel Vadot /* Set the drive strength of sdio d4 pin */ 57c66ec88fSEmmanuel Vadot sdio0_d4: sdio0_d4 { 58c66ec88fSEmmanuel Vadot pins = "sdio0_data4"; 59c66ec88fSEmmanuel Vadot drive-strength = <8>; 60c66ec88fSEmmanuel Vadot }; 61c66ec88fSEmmanuel Vadot }; 62c66ec88fSEmmanuel Vadot 63c66ec88fSEmmanuel VadotList of supported functions and groups in Northstar2: 64c66ec88fSEmmanuel Vadot 65c66ec88fSEmmanuel Vadot"nand": "nand_grp" 66c66ec88fSEmmanuel Vadot 67c66ec88fSEmmanuel Vadot"nor": "nor_data_grp", "nor_adv_grp", "nor_addr_0_3_grp", "nor_addr_4_5_grp", 68c66ec88fSEmmanuel Vadot "nor_addr_6_7_grp", "nor_addr_8_9_grp", "nor_addr_10_11_grp", 69c66ec88fSEmmanuel Vadot "nor_addr_12_15_grp" 70c66ec88fSEmmanuel Vadot 71c66ec88fSEmmanuel Vadot"gpio": "gpio_0_1_grp", "gpio_2_5_grp", "gpio_6_7_grp", "gpio_8_9_grp", 72c66ec88fSEmmanuel Vadot "gpio_10_11_grp", "gpio_12_13_grp", "gpio_14_17_grp", "gpio_18_19_grp", 73c66ec88fSEmmanuel Vadot "gpio_20_21_grp", "gpio_22_23_grp", "gpio_24_25_grp", "gpio_26_27_grp", 74c66ec88fSEmmanuel Vadot "gpio_28_29_grp", "gpio_30_31_grp" 75c66ec88fSEmmanuel Vadot 76c66ec88fSEmmanuel Vadot"pcie": "pcie_ab1_clk_wak_grp", "pcie_a3_clk_wak_grp", "pcie_b3_clk_wak_grp", 77c66ec88fSEmmanuel Vadot "pcie_b2_clk_wak_grp", "pcie_a2_clk_wak_grp" 78c66ec88fSEmmanuel Vadot 79c66ec88fSEmmanuel Vadot"uart0": "uart0_modem_grp", "uart0_rts_cts_grp", "uart0_in_out_grp" 80c66ec88fSEmmanuel Vadot 81c66ec88fSEmmanuel Vadot"uart1": "uart1_ext_clk_grp", "uart1_dcd_dsr_grp", "uart1_ri_dtr_grp", 82c66ec88fSEmmanuel Vadot "uart1_rts_cts_grp", "uart1_in_out_grp" 83c66ec88fSEmmanuel Vadot 84c66ec88fSEmmanuel Vadot"uart2": "uart2_rts_cts_grp" 85c66ec88fSEmmanuel Vadot 86c66ec88fSEmmanuel Vadot"pwm": "pwm_0_grp", "pwm_1_grp", "pwm_2_grp", "pwm_3_grp" 87c66ec88fSEmmanuel Vadot 88c66ec88fSEmmanuel Vadot 89c66ec88fSEmmanuel VadotList of pins that support pinconf parameters: 90c66ec88fSEmmanuel Vadot 91c66ec88fSEmmanuel Vadot"qspi_wp", "qspi_hold", "qspi_cs", "qspi_sck", "uart3_sin", "uart3_sout", 92c66ec88fSEmmanuel Vadot"qspi_mosi", "qspi_miso", "spi0_fss", "spi0_rxd", "spi0_txd", "spi0_sck", 93c66ec88fSEmmanuel Vadot"spi1_fss", "spi1_rxd", "spi1_txd", "spi1_sck", "sdio0_data7", 94c66ec88fSEmmanuel Vadot"sdio0_emmc_rst", "sdio0_led_on", "sdio0_wp", "sdio0_data3", "sdio0_data4", 95c66ec88fSEmmanuel Vadot"sdio0_data5", "sdio0_data6", "sdio0_cmd", "sdio0_data0", "sdio0_data1", 96c66ec88fSEmmanuel Vadot"sdio0_data2", "sdio1_led_on", "sdio1_wp", "sdio0_cd_l", "sdio0_clk", 97c66ec88fSEmmanuel Vadot"sdio1_data5", "sdio1_data6", "sdio1_data7", "sdio1_emmc_rst", "sdio1_data1", 98c66ec88fSEmmanuel Vadot"sdio1_data2", "sdio1_data3", "sdio1_data4", "sdio1_cd_l", "sdio1_clk", 99c66ec88fSEmmanuel Vadot"sdio1_cmd", "sdio1_data0", "ext_mdio_0", "ext_mdc_0", "usb3_p1_vbus_ppc", 100c66ec88fSEmmanuel Vadot"usb3_p1_overcurrent", "usb3_p0_vbus_ppc", "usb3_p0_overcurrent", 101c66ec88fSEmmanuel Vadot"usb2_presence_indication", "usb2_vbus_present", "usb2_vbus_ppc", 102c66ec88fSEmmanuel Vadot"usb2_overcurrent", "sata_led1", "sata_led0" 103