···11+Broadcom Northstar plus (NSP) GPIO/PINCONF Controller22+33+Required properties:44+- compatible:55+ Must be "brcm,nsp-gpio-a"66+77+- reg:88+ Should contain the register physical address and length for each of99+ GPIO base, IO control registers1010+1111+- #gpio-cells:1212+ Must be two. The first cell is the GPIO pin number (within the1313+ controller's pin space) and the second cell is used for the following:1414+ bit[0]: polarity (0 for active high and 1 for active low)1515+1616+- gpio-controller:1717+ Specifies that the node is a GPIO controller1818+1919+- ngpios:2020+ Number of gpios supported (58x25 supports 32 and 58x23 supports 24)2121+2222+Optional properties:2323+- interrupts:2424+ Interrupt ID2525+2626+- interrupt-controller:2727+ Specifies that the node is an interrupt controller2828+2929+- gpio-ranges:3030+ Specifies the mapping between gpio controller and pin-controllers pins.3131+ This requires 4 fields in cells defined as -3232+ 1. Phandle of pin-controller.3333+ 2. GPIO base pin offset.3434+ 3 Pin-control base pin offset.3535+ 4. number of gpio pins which are linearly mapped from pin base.3636+3737+Supported generic PINCONF properties in child nodes:3838+- pins:3939+ The list of pins (within the controller's own pin space) that properties4040+ in the node apply to. Pin names are "gpio-<pin>"4141+4242+- bias-disable:4343+ Disable pin bias4444+4545+- bias-pull-up:4646+ Enable internal pull up resistor4747+4848+- bias-pull-down:4949+ Enable internal pull down resistor5050+5151+- drive-strength:5252+ Valid drive strength values include 2, 4, 6, 8, 10, 12, 14, 16 (mA)5353+5454+Example:5555+5656+ gpioa: gpio@18000020 {5757+ compatible = "brcm,nsp-gpio-a";5858+ reg = <0x18000020 0x100>,5959+ <0x1803f1c4 0x1c>;6060+ #gpio-cells = <2>;6161+ gpio-controller;6262+ ngpios = <32>;6363+ gpio-ranges = <&pinctrl 0 0 31>;6464+ interrupt-controller;6565+ interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;6666+6767+ /* Hog a few default settings */6868+ pinctrl-names = "default";6969+ pinctrl-0 = <&led>;7070+ led: led {7171+ pins = "gpio-1";7272+ bias-pull-up;7373+ };7474+7575+ pwr: pwr {7676+ gpio-hog;7777+ gpios = <3 1>;7878+ output-high;7979+ };8080+ };
+17
drivers/pinctrl/bcm/Kconfig
···6868 The Broadcom Cygnus IOMUX driver supports group based IOMUX6969 configuration, with the exception that certain individual pins7070 can be overrided to GPIO function7171+7272+config PINCTRL_NSP_GPIO7373+ bool "Broadcom NSP GPIO (with PINCONF) driver"7474+ depends on OF_GPIO && (ARCH_BCM_NSP || COMPILE_TEST)7575+ select GPIOLIB_IRQCHIP7676+ select PINCONF7777+ select GENERIC_PINCONF7878+ default ARCH_BCM_NSP7979+ help8080+ Say yes here to enable the Broadcom NSP GPIO driver.8181+8282+ The Broadcom Northstar Plus SoC ChipcommonA GPIO controller is8383+ supported by this driver.8484+8585+ The ChipcommonA GPIO controller support basic PINCONF functions such8686+ as bias pull up, pull down, and drive strength configurations, when8787+ these pins are muxed to GPIO.