18c2ecf20Sopenharmony_ciBinding for the CPLD LEDs (GPIO extension bus) found on some LaCie/Seagate
28c2ecf20Sopenharmony_ciboards (Example: 2Big/5Big Network v2, 2Big NAS).
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ciRequired properties:
58c2ecf20Sopenharmony_ci- compatible: "lacie,netxbig-leds".
68c2ecf20Sopenharmony_ci- gpio-ext: Phandle for the gpio-ext bus.
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ciOptional properties:
98c2ecf20Sopenharmony_ci- timers: Timer array. Each timer entry is represented by three integers:
108c2ecf20Sopenharmony_ci  Mode (gpio-ext bus), delay_on and delay_off.
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciEach LED is represented as a sub-node of the netxbig-leds device.
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciRequired sub-node properties:
158c2ecf20Sopenharmony_ci- mode-addr: Mode register address on gpio-ext bus.
168c2ecf20Sopenharmony_ci- mode-val: Mode to value mapping. Each entry is represented by two integers:
178c2ecf20Sopenharmony_ci  A mode and the corresponding value on the gpio-ext bus.
188c2ecf20Sopenharmony_ci- bright-addr: Brightness register address on gpio-ext bus.
198c2ecf20Sopenharmony_ci- max-brightness: Maximum brightness value.
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ciOptional sub-node properties:
228c2ecf20Sopenharmony_ci- label: Name for this LED. If omitted, the label is taken from the node name.
238c2ecf20Sopenharmony_ci- linux,default-trigger: Trigger assigned to the LED.
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciExample:
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_cinetxbig-leds {
288c2ecf20Sopenharmony_ci	compatible = "lacie,netxbig-leds";
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci	gpio-ext = &gpio_ext;
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci	timers = <NETXBIG_LED_TIMER1 500 500
338c2ecf20Sopenharmony_ci		  NETXBIG_LED_TIMER2 500 1000>;
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci	blue-power {
368c2ecf20Sopenharmony_ci		label = "netxbig:blue:power";
378c2ecf20Sopenharmony_ci		mode-addr = <0>;
388c2ecf20Sopenharmony_ci		mode-val = <NETXBIG_LED_OFF 0
398c2ecf20Sopenharmony_ci			    NETXBIG_LED_ON 1
408c2ecf20Sopenharmony_ci			    NETXBIG_LED_TIMER1 3
418c2ecf20Sopenharmony_ci			    NETXBIG_LED_TIMER2 7>;
428c2ecf20Sopenharmony_ci		bright-addr = <1>;
438c2ecf20Sopenharmony_ci		max-brightness = <7>;
448c2ecf20Sopenharmony_ci	};
458c2ecf20Sopenharmony_ci	red-power {
468c2ecf20Sopenharmony_ci		label = "netxbig:red:power";
478c2ecf20Sopenharmony_ci		mode-addr = <0>;
488c2ecf20Sopenharmony_ci		mode-val = <NETXBIG_LED_OFF 0
498c2ecf20Sopenharmony_ci			    NETXBIG_LED_ON 2
508c2ecf20Sopenharmony_ci			    NETXBIG_LED_TIMER1 4>;
518c2ecf20Sopenharmony_ci		bright-addr = <1>;
528c2ecf20Sopenharmony_ci		max-brightness = <7>;
538c2ecf20Sopenharmony_ci	};
548c2ecf20Sopenharmony_ci	blue-sata0 {
558c2ecf20Sopenharmony_ci		label = "netxbig:blue:sata0";
568c2ecf20Sopenharmony_ci		mode-addr = <3>;
578c2ecf20Sopenharmony_ci		mode-val = <NETXBIG_LED_OFF 0
588c2ecf20Sopenharmony_ci			    NETXBIG_LED_ON 7
598c2ecf20Sopenharmony_ci			    NETXBIG_LED_SATA 1
608c2ecf20Sopenharmony_ci			    NETXBIG_LED_TIMER1 3>;
618c2ecf20Sopenharmony_ci		bright-addr = <2>;
628c2ecf20Sopenharmony_ci		max-brightness = <7>;
638c2ecf20Sopenharmony_ci	};
648c2ecf20Sopenharmony_ci	red-sata0 {
658c2ecf20Sopenharmony_ci		label = "netxbig:red:sata0";
668c2ecf20Sopenharmony_ci		mode-addr = <3>;
678c2ecf20Sopenharmony_ci		mode-val = <NETXBIG_LED_OFF 0
688c2ecf20Sopenharmony_ci			    NETXBIG_LED_ON 2
698c2ecf20Sopenharmony_ci			    NETXBIG_LED_TIMER1 4>;
708c2ecf20Sopenharmony_ci		bright-addr = <2>;
718c2ecf20Sopenharmony_ci		max-brightness = <7>;
728c2ecf20Sopenharmony_ci	};
738c2ecf20Sopenharmony_ci	blue-sata1 {
748c2ecf20Sopenharmony_ci		label = "netxbig:blue:sata1";
758c2ecf20Sopenharmony_ci		mode-addr = <4>;
768c2ecf20Sopenharmony_ci		mode-val = <NETXBIG_LED_OFF 0
778c2ecf20Sopenharmony_ci			    NETXBIG_LED_ON 7
788c2ecf20Sopenharmony_ci			    NETXBIG_LED_SATA 1
798c2ecf20Sopenharmony_ci			    NETXBIG_LED_TIMER1 3>;
808c2ecf20Sopenharmony_ci		bright-addr = <2>;
818c2ecf20Sopenharmony_ci		max-brightness = <7>;
828c2ecf20Sopenharmony_ci	};
838c2ecf20Sopenharmony_ci	red-sata1 {
848c2ecf20Sopenharmony_ci		label = "netxbig:red:sata1";
858c2ecf20Sopenharmony_ci		mode-addr = <4>;
868c2ecf20Sopenharmony_ci		mode-val = <NETXBIG_LED_OFF 0
878c2ecf20Sopenharmony_ci			    NETXBIG_LED_ON 2
888c2ecf20Sopenharmony_ci			    NETXBIG_LED_TIMER1 4>;
898c2ecf20Sopenharmony_ci		bright-addr = <2>;
908c2ecf20Sopenharmony_ci		max-brightness = <7>;
918c2ecf20Sopenharmony_ci	};
928c2ecf20Sopenharmony_ci};
93