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