The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/gpio/gpio-xilinx.txt

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 Xilinx plb/axi GPIO controller
    2 
    3 Dual channel GPIO controller with configurable number of pins
    4 (from 1 to 32 per channel). Every pin can be configured as
    5 input/output/tristate. Both channels share the same global IRQ but
    6 local interrupts can be enabled on channel basis.
    7 
    8 Required properties:
    9 - compatible : Should be "xlnx,xps-gpio-1.00.a"
   10 - reg : Address and length of the register set for the device
   11 - #gpio-cells : Should be two. The first cell is the pin number and the
   12   second cell is used to specify optional parameters (currently unused).
   13 - gpio-controller : Marks the device node as a GPIO controller.
   14 
   15 Optional properties:
   16 - clocks : Input clock specifier. Refer to common clock bindings.
   17 - interrupts : Interrupt mapping for GPIO IRQ.
   18 - xlnx,all-inputs : if n-th bit is setup, GPIO-n is input
   19 - xlnx,dout-default : if n-th bit is 1, GPIO-n default value is 1
   20 - xlnx,gpio-width : gpio width
   21 - xlnx,tri-default : if n-th bit is 1, GPIO-n is in tristate mode
   22 - xlnx,is-dual : if 1, controller also uses the second channel
   23 - xlnx,all-inputs-2 : as above but for the second channel
   24 - xlnx,dout-default-2 : as above but the second channel
   25 - xlnx,gpio2-width : as above but for the second channel
   26 - xlnx,tri-default-2 : as above but for the second channel
   27 
   28 
   29 Example:
   30 gpio: gpio@40000000 {
   31         #gpio-cells = <2>;
   32         compatible = "xlnx,xps-gpio-1.00.a";
   33         clocks = <&clkc25>;
   34         gpio-controller ;
   35         interrupt-parent = <&microblaze_0_intc>;
   36         interrupts = < 6 2 >;
   37         reg = < 0x40000000 0x10000 >;
   38         xlnx,all-inputs = <0x0>;
   39         xlnx,all-inputs-2 = <0x0>;
   40         xlnx,dout-default = <0x0>;
   41         xlnx,dout-default-2 = <0x0>;
   42         xlnx,gpio-width = <0x2>;
   43         xlnx,gpio2-width = <0x2>;
   44         xlnx,interrupt-present = <0x1>;
   45         xlnx,is-dual = <0x1>;
   46         xlnx,tri-default = <0xffffffff>;
   47         xlnx,tri-default-2 = <0xffffffff>;
   48 } ;

Cache object: 66436285a6afd193b84ec2a69e0a17cb


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.