cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

leds-mt6323.txt (1660B)


      1Device Tree Bindings for LED support on MT6323 PMIC
      2
      3MT6323 LED controller is subfunction provided by MT6323 PMIC, so the LED
      4controllers are defined as the subnode of the function node provided by MT6323
      5PMIC controller that is being defined as one kind of Muti-Function Device (MFD)
      6using shared bus called PMIC wrapper for each subfunction to access remote
      7MT6323 PMIC hardware.
      8
      9For MT6323 MFD bindings see:
     10Documentation/devicetree/bindings/mfd/mt6397.txt
     11For MediaTek PMIC wrapper bindings see:
     12Documentation/devicetree/bindings/soc/mediatek/pwrap.txt
     13
     14Required properties:
     15- compatible : Must be "mediatek,mt6323-led"
     16- address-cells : Must be 1
     17- size-cells : Must be 0
     18
     19Each led is represented as a child node of the mediatek,mt6323-led that
     20describes the initial behavior for each LED physically and currently only four
     21LED child nodes can be supported.
     22
     23Required properties for the LED child node:
     24- reg : LED channel number (0..3)
     25
     26Optional properties for the LED child node:
     27- label : See Documentation/devicetree/bindings/leds/common.txt
     28- linux,default-trigger : See Documentation/devicetree/bindings/leds/common.txt
     29- default-state: See Documentation/devicetree/bindings/leds/common.txt
     30
     31Example:
     32
     33	mt6323: pmic {
     34		compatible = "mediatek,mt6323";
     35
     36		...
     37
     38		mt6323led: leds {
     39			compatible = "mediatek,mt6323-led";
     40			#address-cells = <1>;
     41			#size-cells = <0>;
     42
     43			led@0 {
     44				reg = <0>;
     45				label = "LED0";
     46				linux,default-trigger = "timer";
     47				default-state = "on";
     48			};
     49			led@1 {
     50				reg = <1>;
     51				label = "LED1";
     52				default-state = "off";
     53			};
     54			led@2 {
     55				reg = <2>;
     56				label = "LED2";
     57				default-state = "on";
     58			};
     59		};
     60	};