~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/pinctrl/brcm,nsp-gpio.txt

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/pinctrl/brcm,nsp-gpio.txt (Version linux-6.12-rc7) and /Documentation/devicetree/bindings/pinctrl/brcm,nsp-gpio.txt (Version linux-6.6.60)


  1 Broadcom Northstar plus (NSP) GPIO/PINCONF Con      1 Broadcom Northstar plus (NSP) GPIO/PINCONF Controller
  2                                                     2 
  3 Required properties:                                3 Required properties:
  4 - compatible:                                       4 - compatible:
  5     Must be "brcm,nsp-gpio-a"                       5     Must be "brcm,nsp-gpio-a"
  6                                                     6 
  7 - reg:                                              7 - reg:
  8     Should contain the register physical addre      8     Should contain the register physical address and length for each of
  9     GPIO base, IO control registers                 9     GPIO base, IO control registers
 10                                                    10 
 11 - #gpio-cells:                                     11 - #gpio-cells:
 12     Must be two. The first cell is the GPIO pi     12     Must be two. The first cell is the GPIO pin number (within the
 13     controller's pin space) and the second cel     13     controller's pin space) and the second cell is used for the following:
 14     bit[0]: polarity (0 for active high and 1      14     bit[0]: polarity (0 for active high and 1 for active low)
 15                                                    15 
 16 - gpio-controller:                                 16 - gpio-controller:
 17     Specifies that the node is a GPIO controll     17     Specifies that the node is a GPIO controller
 18                                                    18 
 19 - ngpios:                                          19 - ngpios:
 20     Number of gpios supported (58x25 supports      20     Number of gpios supported (58x25 supports 32 and 58x23 supports 24)
 21                                                    21 
 22 Optional properties:                               22 Optional properties:
 23 - interrupts:                                      23 - interrupts:
 24     Interrupt ID                                   24     Interrupt ID
 25                                                    25 
 26 - interrupt-controller:                            26 - interrupt-controller:
 27     Specifies that the node is an interrupt co     27     Specifies that the node is an interrupt controller
 28                                                    28 
 29 - gpio-ranges:                                     29 - gpio-ranges:
 30     Specifies the mapping between gpio control     30     Specifies the mapping between gpio controller and pin-controllers pins.
 31     This requires 4 fields in cells defined as     31     This requires 4 fields in cells defined as -
 32     1. Phandle of pin-controller.                  32     1. Phandle of pin-controller.
 33     2. GPIO base pin offset.                       33     2. GPIO base pin offset.
 34     3  Pin-control base pin offset.                34     3  Pin-control base pin offset.
 35     4. number of gpio pins which are linearly      35     4. number of gpio pins which are linearly mapped from pin base.
 36                                                    36 
 37 Supported generic PINCONF properties in child      37 Supported generic PINCONF properties in child nodes:
 38 - pins:                                            38 - pins:
 39     The list of pins (within the controller's      39     The list of pins (within the controller's own pin space) that properties
 40     in the node apply to. Pin names are "gpio-     40     in the node apply to. Pin names are "gpio-<pin>"
 41                                                    41 
 42 - bias-disable:                                    42 - bias-disable:
 43     Disable pin bias                               43     Disable pin bias
 44                                                    44 
 45 - bias-pull-up:                                    45 - bias-pull-up:
 46     Enable internal pull up resistor               46     Enable internal pull up resistor
 47                                                    47 
 48 - bias-pull-down:                                  48 - bias-pull-down:
 49     Enable internal pull down resistor             49     Enable internal pull down resistor
 50                                                    50 
 51 - drive-strength:                                  51 - drive-strength:
 52     Valid drive strength values include 2, 4,      52     Valid drive strength values include 2, 4, 6, 8, 10, 12, 14, 16 (mA)
 53                                                    53 
 54 Example:                                           54 Example:
 55                                                    55 
 56         gpioa: gpio@18000020 {                     56         gpioa: gpio@18000020 {
 57                 compatible = "brcm,nsp-gpio-a"     57                 compatible = "brcm,nsp-gpio-a";
 58                 reg = <0x18000020 0x100>,          58                 reg = <0x18000020 0x100>,
 59                       <0x1803f1c4 0x1c>;           59                       <0x1803f1c4 0x1c>;
 60                 #gpio-cells = <2>;                 60                 #gpio-cells = <2>;
 61                 gpio-controller;                   61                 gpio-controller;
 62                 ngpios = <32>;                     62                 ngpios = <32>;
 63                 gpio-ranges = <&pinctrl 0 0 31     63                 gpio-ranges = <&pinctrl 0 0 31>;
 64                 interrupt-controller;              64                 interrupt-controller;
 65                 interrupts = <GIC_SPI 85 IRQ_T     65                 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
 66                                                    66 
 67                 /* Hog a few default settings      67                 /* Hog a few default settings */
 68                 pinctrl-names = "default";         68                 pinctrl-names = "default";
 69                 pinctrl-0 = <&led>;                69                 pinctrl-0 = <&led>;
 70                 led: led {                         70                 led: led {
 71                         pins = "gpio-1";           71                         pins = "gpio-1";
 72                         bias-pull-up;              72                         bias-pull-up;
 73                 };                                 73                 };
 74                                                    74 
 75                 pwr: pwr {                         75                 pwr: pwr {
 76                         gpio-hog;                  76                         gpio-hog;
 77                         gpios = <3 1>;             77                         gpios = <3 1>;
 78                         output-high;               78                         output-high;
 79                 };                                 79                 };
 80         };                                         80         };
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php