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/serio/ps2-gpio.yaml

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 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
    2 %YAML 1.2
    3 ---
    4 $id: http://devicetree.org/schemas/serio/ps2-gpio.yaml#
    5 $schema: http://devicetree.org/meta-schemas/core.yaml#
    6 
    7 title: Bindings for GPIO based PS/2
    8 
    9 maintainers:
   10   - Danilo Krummrich <danilokrummrich@dk-develop.de>
   11 
   12 properties:
   13   compatible:
   14     const: ps2-gpio
   15 
   16   data-gpios:
   17     description:
   18       the gpio used for the data signal - this should be flagged as
   19       active high using open drain with (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)
   20       from <dt-bindings/gpio/gpio.h> since the signal is open drain by
   21       definition
   22     maxItems: 1
   23 
   24   clk-gpios:
   25     description:
   26       the gpio used for the clock signal - this should be flagged as
   27       active high using open drain with (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)
   28       from <dt-bindings/gpio/gpio.h> since the signal is open drain by
   29       definition
   30     maxItems: 1
   31 
   32   interrupts:
   33     description:
   34       The given interrupt should trigger on the falling edge of the clock line.
   35     maxItems: 1
   36 
   37   write-enable:
   38     type: boolean
   39     description:
   40       Indicates whether write function is provided to serio device. Possibly
   41       providing the write function will not work, because of the tough timing
   42       requirements.
   43 
   44 required:
   45   - compatible
   46   - data-gpios
   47   - clk-gpios
   48   - interrupts
   49 
   50 additionalProperties: false
   51 
   52 examples:
   53   - |
   54     #include <dt-bindings/gpio/gpio.h>
   55     #include <dt-bindings/interrupt-controller/irq.h>
   56 
   57     ps2 {
   58         compatible = "ps2-gpio";
   59         interrupt-parent = <&gpio>;
   60         interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
   61         data-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
   62         clk-gpios = <&gpio 23 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
   63         write-enable;
   64     };

Cache object: e176677342e393334e6b1b3bcd31901d


[ 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.