0001 Binding for the CPLD LEDs (GPIO extension bus) found on some LaCie/Seagate
0002 boards (Example: 2Big/5Big Network v2, 2Big NAS).
0003
0004 Required properties:
0005 - compatible: "lacie,netxbig-leds".
0006 - gpio-ext: Phandle for the gpio-ext bus.
0007
0008 Optional properties:
0009 - timers: Timer array. Each timer entry is represented by three integers:
0010 Mode (gpio-ext bus), delay_on and delay_off.
0011
0012 Each LED is represented as a sub-node of the netxbig-leds device.
0013
0014 Required sub-node properties:
0015 - mode-addr: Mode register address on gpio-ext bus.
0016 - mode-val: Mode to value mapping. Each entry is represented by two integers:
0017 A mode and the corresponding value on the gpio-ext bus.
0018 - bright-addr: Brightness register address on gpio-ext bus.
0019 - max-brightness: Maximum brightness value.
0020
0021 Optional sub-node properties:
0022 - label: Name for this LED. If omitted, the label is taken from the node name.
0023 - linux,default-trigger: Trigger assigned to the LED.
0024
0025 Example:
0026
0027 netxbig-leds {
0028 compatible = "lacie,netxbig-leds";
0029
0030 gpio-ext = &gpio_ext;
0031
0032 timers = <NETXBIG_LED_TIMER1 500 500
0033 NETXBIG_LED_TIMER2 500 1000>;
0034
0035 blue-power {
0036 label = "netxbig:blue:power";
0037 mode-addr = <0>;
0038 mode-val = <NETXBIG_LED_OFF 0
0039 NETXBIG_LED_ON 1
0040 NETXBIG_LED_TIMER1 3
0041 NETXBIG_LED_TIMER2 7>;
0042 bright-addr = <1>;
0043 max-brightness = <7>;
0044 };
0045 red-power {
0046 label = "netxbig:red:power";
0047 mode-addr = <0>;
0048 mode-val = <NETXBIG_LED_OFF 0
0049 NETXBIG_LED_ON 2
0050 NETXBIG_LED_TIMER1 4>;
0051 bright-addr = <1>;
0052 max-brightness = <7>;
0053 };
0054 blue-sata0 {
0055 label = "netxbig:blue:sata0";
0056 mode-addr = <3>;
0057 mode-val = <NETXBIG_LED_OFF 0
0058 NETXBIG_LED_ON 7
0059 NETXBIG_LED_SATA 1
0060 NETXBIG_LED_TIMER1 3>;
0061 bright-addr = <2>;
0062 max-brightness = <7>;
0063 };
0064 red-sata0 {
0065 label = "netxbig:red:sata0";
0066 mode-addr = <3>;
0067 mode-val = <NETXBIG_LED_OFF 0
0068 NETXBIG_LED_ON 2
0069 NETXBIG_LED_TIMER1 4>;
0070 bright-addr = <2>;
0071 max-brightness = <7>;
0072 };
0073 blue-sata1 {
0074 label = "netxbig:blue:sata1";
0075 mode-addr = <4>;
0076 mode-val = <NETXBIG_LED_OFF 0
0077 NETXBIG_LED_ON 7
0078 NETXBIG_LED_SATA 1
0079 NETXBIG_LED_TIMER1 3>;
0080 bright-addr = <2>;
0081 max-brightness = <7>;
0082 };
0083 red-sata1 {
0084 label = "netxbig:red:sata1";
0085 mode-addr = <4>;
0086 mode-val = <NETXBIG_LED_OFF 0
0087 NETXBIG_LED_ON 2
0088 NETXBIG_LED_TIMER1 4>;
0089 bright-addr = <2>;
0090 max-brightness = <7>;
0091 };
0092 };