162306a36Sopenharmony_ci* Single Byte SPI LED Device Driver. 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciThe driver can be used for controllers with a very simple SPI protocol: 462306a36Sopenharmony_ci- one LED is controlled by a single byte on MOSI 562306a36Sopenharmony_ci- the value of the byte gives the brightness between two values (lowest to 662306a36Sopenharmony_ci highest) 762306a36Sopenharmony_ci- no return value is necessary (no MISO signal) 862306a36Sopenharmony_ci 962306a36Sopenharmony_ciThe value for lowest and highest brightness is dependent on the device and 1062306a36Sopenharmony_citherefore on the compatible string. 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ciDepending on the compatible string some special functions (like hardware 1362306a36Sopenharmony_ciaccelerated blinking) might can be supported too. 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ciThe driver currently only supports one LED. The properties of the LED are 1662306a36Sopenharmony_ciconfigured in a sub-node in the device node. 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ciRequired properties: 1962306a36Sopenharmony_ci- compatible: should be one of 2062306a36Sopenharmony_ci * "ubnt,acb-spi-led" microcontroller (SONiX 8F26E611LA) based device 2162306a36Sopenharmony_ci used for example in Ubiquiti airCube ISP 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ciProperty rules described in Documentation/devicetree/bindings/spi/spi-bus.txt 2462306a36Sopenharmony_ciapply. 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ciLED sub-node properties: 2762306a36Sopenharmony_ci- label: 2862306a36Sopenharmony_ci see Documentation/devicetree/bindings/leds/common.txt 2962306a36Sopenharmony_ci- default-state: 3062306a36Sopenharmony_ci see Documentation/devicetree/bindings/leds/common.txt 3162306a36Sopenharmony_ci Only "on" and "off" are supported. 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ciExample: 3462306a36Sopenharmony_ci 3562306a36Sopenharmony_ciled-controller@0 { 3662306a36Sopenharmony_ci compatible = "ubnt,acb-spi-led"; 3762306a36Sopenharmony_ci reg = <0>; 3862306a36Sopenharmony_ci spi-max-frequency = <100000>; 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ci led { 4162306a36Sopenharmony_ci label = "white:status"; 4262306a36Sopenharmony_ci default-state = "on"; 4362306a36Sopenharmony_ci }; 4462306a36Sopenharmony_ci}; 45