Back to home page

OSCL-LXR

 
 

    


0001 Device Tree Bindings for LED support on MT6323 PMIC
0002 
0003 MT6323 LED controller is subfunction provided by MT6323 PMIC, so the LED
0004 controllers are defined as the subnode of the function node provided by MT6323
0005 PMIC controller that is being defined as one kind of Muti-Function Device (MFD)
0006 using shared bus called PMIC wrapper for each subfunction to access remote
0007 MT6323 PMIC hardware.
0008 
0009 For MT6323 MFD bindings see:
0010 Documentation/devicetree/bindings/mfd/mt6397.txt
0011 For MediaTek PMIC wrapper bindings see:
0012 Documentation/devicetree/bindings/soc/mediatek/pwrap.txt
0013 
0014 Required properties:
0015 - compatible : Must be "mediatek,mt6323-led"
0016 - address-cells : Must be 1
0017 - size-cells : Must be 0
0018 
0019 Each led is represented as a child node of the mediatek,mt6323-led that
0020 describes the initial behavior for each LED physically and currently only four
0021 LED child nodes can be supported.
0022 
0023 Required properties for the LED child node:
0024 - reg : LED channel number (0..3)
0025 
0026 Optional properties for the LED child node:
0027 - label : See Documentation/devicetree/bindings/leds/common.txt
0028 - linux,default-trigger : See Documentation/devicetree/bindings/leds/common.txt
0029 - default-state: See Documentation/devicetree/bindings/leds/common.txt
0030 
0031 Example:
0032 
0033         mt6323: pmic {
0034                 compatible = "mediatek,mt6323";
0035 
0036                 ...
0037 
0038                 mt6323led: leds {
0039                         compatible = "mediatek,mt6323-led";
0040                         #address-cells = <1>;
0041                         #size-cells = <0>;
0042 
0043                         led@0 {
0044                                 reg = <0>;
0045                                 label = "LED0";
0046                                 linux,default-trigger = "timer";
0047                                 default-state = "on";
0048                         };
0049                         led@1 {
0050                                 reg = <1>;
0051                                 label = "LED1";
0052                                 default-state = "off";
0053                         };
0054                         led@2 {
0055                                 reg = <2>;
0056                                 label = "LED2";
0057                                 default-state = "on";
0058                         };
0059                 };
0060         };