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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/leds/leds-netxbig.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 ] ~

  1 Binding for the CPLD LEDs (GPIO extension bus) found on some LaCie/Seagate
  2 boards (Example: 2Big/5Big Network v2, 2Big NAS).
  3 
  4 Required properties:
  5 - compatible: "lacie,netxbig-leds".
  6 - gpio-ext: Phandle for the gpio-ext bus.
  7 
  8 Optional properties:
  9 - timers: Timer array. Each timer entry is represented by three integers:
 10   Mode (gpio-ext bus), delay_on and delay_off.
 11 
 12 Each LED is represented as a sub-node of the netxbig-leds device.
 13 
 14 Required sub-node properties:
 15 - mode-addr: Mode register address on gpio-ext bus.
 16 - mode-val: Mode to value mapping. Each entry is represented by two integers:
 17   A mode and the corresponding value on the gpio-ext bus.
 18 - bright-addr: Brightness register address on gpio-ext bus.
 19 - max-brightness: Maximum brightness value.
 20 
 21 Optional sub-node properties:
 22 - label: Name for this LED. If omitted, the label is taken from the node name.
 23 - linux,default-trigger: Trigger assigned to the LED.
 24 
 25 Example:
 26 
 27 netxbig-leds {
 28         compatible = "lacie,netxbig-leds";
 29 
 30         gpio-ext = &gpio_ext;
 31 
 32         timers = <NETXBIG_LED_TIMER1 500 500
 33                   NETXBIG_LED_TIMER2 500 1000>;
 34 
 35         blue-power {
 36                 label = "netxbig:blue:power";
 37                 mode-addr = <0>;
 38                 mode-val = <NETXBIG_LED_OFF 0
 39                             NETXBIG_LED_ON 1
 40                             NETXBIG_LED_TIMER1 3
 41                             NETXBIG_LED_TIMER2 7>;
 42                 bright-addr = <1>;
 43                 max-brightness = <7>;
 44         };
 45         red-power {
 46                 label = "netxbig:red:power";
 47                 mode-addr = <0>;
 48                 mode-val = <NETXBIG_LED_OFF 0
 49                             NETXBIG_LED_ON 2
 50                             NETXBIG_LED_TIMER1 4>;
 51                 bright-addr = <1>;
 52                 max-brightness = <7>;
 53         };
 54         blue-sata0 {
 55                 label = "netxbig:blue:sata0";
 56                 mode-addr = <3>;
 57                 mode-val = <NETXBIG_LED_OFF 0
 58                             NETXBIG_LED_ON 7
 59                             NETXBIG_LED_SATA 1
 60                             NETXBIG_LED_TIMER1 3>;
 61                 bright-addr = <2>;
 62                 max-brightness = <7>;
 63         };
 64         red-sata0 {
 65                 label = "netxbig:red:sata0";
 66                 mode-addr = <3>;
 67                 mode-val = <NETXBIG_LED_OFF 0
 68                             NETXBIG_LED_ON 2
 69                             NETXBIG_LED_TIMER1 4>;
 70                 bright-addr = <2>;
 71                 max-brightness = <7>;
 72         };
 73         blue-sata1 {
 74                 label = "netxbig:blue:sata1";
 75                 mode-addr = <4>;
 76                 mode-val = <NETXBIG_LED_OFF 0
 77                             NETXBIG_LED_ON 7
 78                             NETXBIG_LED_SATA 1
 79                             NETXBIG_LED_TIMER1 3>;
 80                 bright-addr = <2>;
 81                 max-brightness = <7>;
 82         };
 83         red-sata1 {
 84                 label = "netxbig:red:sata1";
 85                 mode-addr = <4>;
 86                 mode-val = <NETXBIG_LED_OFF 0
 87                             NETXBIG_LED_ON 2
 88                             NETXBIG_LED_TIMER1 4>;
 89                 bright-addr = <2>;
 90                 max-brightness = <7>;
 91         };
 92 };

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