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