1c66ec88fSEmmanuel VadotBroadcom NSP (Northstar plus) IOMUX Controller 2c66ec88fSEmmanuel Vadot 3c66ec88fSEmmanuel VadotThe NSP IOMUX controller supports group based mux configuration. In 4c66ec88fSEmmanuel Vadotaddition, certain pins can be muxed to GPIO function individually. 5c66ec88fSEmmanuel Vadot 6c66ec88fSEmmanuel VadotRequired properties: 7c66ec88fSEmmanuel Vadot- compatible: 8c66ec88fSEmmanuel Vadot Must be "brcm,nsp-pinmux" 9c66ec88fSEmmanuel Vadot 10c66ec88fSEmmanuel Vadot- reg: 11c66ec88fSEmmanuel Vadot Should contain the register physical address and length for each of 12c66ec88fSEmmanuel Vadot GPIO_CONTROL0, GP_AUX_SEL and IPROC_CONFIG IOMUX registers 13c66ec88fSEmmanuel Vadot 14c66ec88fSEmmanuel VadotProperties in subnodes: 15c66ec88fSEmmanuel Vadot- function: 16c66ec88fSEmmanuel Vadot The mux function to select 17c66ec88fSEmmanuel Vadot 18c66ec88fSEmmanuel Vadot- groups: 19c66ec88fSEmmanuel Vadot The list of groups to select with a given function 20c66ec88fSEmmanuel Vadot 21c66ec88fSEmmanuel VadotFor more details, refer to 22c66ec88fSEmmanuel VadotDocumentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt 23c66ec88fSEmmanuel Vadot 24c66ec88fSEmmanuel VadotFor example: 25c66ec88fSEmmanuel Vadot 26c66ec88fSEmmanuel Vadot pinmux: pinmux@1803f1c0 { 27c66ec88fSEmmanuel Vadot compatible = "brcm,nsp-pinmux"; 28c66ec88fSEmmanuel Vadot reg = <0x1803f1c0 0x04>, 29c66ec88fSEmmanuel Vadot <0x18030028 0x04>, 30c66ec88fSEmmanuel Vadot <0x1803f408 0x04>; 31c66ec88fSEmmanuel Vadot 32c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 33*5def4c47SEmmanuel Vadot pinctrl-0 = <&pwm>, <&gpio_b>, <&nand_sel>; 34c66ec88fSEmmanuel Vadot 35c66ec88fSEmmanuel Vadot pwm: pwm { 36c66ec88fSEmmanuel Vadot function = "pwm"; 37c66ec88fSEmmanuel Vadot groups = "pwm0_grp", "pwm1_grp"; 38c66ec88fSEmmanuel Vadot }; 39c66ec88fSEmmanuel Vadot 40c66ec88fSEmmanuel Vadot gpio_b: gpio_b { 41c66ec88fSEmmanuel Vadot function = "gpio_b"; 42c66ec88fSEmmanuel Vadot groups = "gpio_b_0_grp", "gpio_b_1_grp"; 43c66ec88fSEmmanuel Vadot }; 44c66ec88fSEmmanuel Vadot 45c66ec88fSEmmanuel Vadot nand_sel: nand_sel { 46c66ec88fSEmmanuel Vadot function = "nand"; 47c66ec88fSEmmanuel Vadot groups = "nand_grp"; 48c66ec88fSEmmanuel Vadot }; 49c66ec88fSEmmanuel Vadot }; 50c66ec88fSEmmanuel Vadot 51c66ec88fSEmmanuel VadotList of supported functions and groups in Northstar Plus: 52c66ec88fSEmmanuel Vadot 53c66ec88fSEmmanuel Vadot"spi": "spi_grp" 54c66ec88fSEmmanuel Vadot 55c66ec88fSEmmanuel Vadot"i2c": "i2c_grp" 56c66ec88fSEmmanuel Vadot 57c66ec88fSEmmanuel Vadot"mdio": "mdio_grp" 58c66ec88fSEmmanuel Vadot 59c66ec88fSEmmanuel Vadot"pwm": "pwm0_grp", "pwm1_grp", "pwm2_grp", "pwm3_grp" 60c66ec88fSEmmanuel Vadot 61c66ec88fSEmmanuel Vadot"gpio_b": "gpio_b_0_grp", "gpio_b_1_grp", "gpio_b_2_grp", "gpio_b_3_grp" 62c66ec88fSEmmanuel Vadot 63c66ec88fSEmmanuel Vadot"uart1": "uart1_grp" 64c66ec88fSEmmanuel Vadot 65c66ec88fSEmmanuel Vadot"uart2": "uart2_grp" 66c66ec88fSEmmanuel Vadot 67c66ec88fSEmmanuel Vadot"synce": "synce_grp" 68c66ec88fSEmmanuel Vadot 69c66ec88fSEmmanuel Vadot"sata_led_grps": "sata0_led_grp", "sata1_led_grp" 70c66ec88fSEmmanuel Vadot 71c66ec88fSEmmanuel Vadot"xtal_out": "xtal_out_grp" 72c66ec88fSEmmanuel Vadot 73c66ec88fSEmmanuel Vadot"sdio": "sdio_pwr_grp", "sdio_1p8v_grp" 74c66ec88fSEmmanuel Vadot 75c66ec88fSEmmanuel Vadot"switch_led": "switch_p05_led0_grp", "switch_p05_led1_grp" 76c66ec88fSEmmanuel Vadot 77c66ec88fSEmmanuel Vadot"nand": "nand_grp" 78c66ec88fSEmmanuel Vadot 79c66ec88fSEmmanuel Vadot"emmc": "emmc_grp" 80