Commit | Line | Data |
---|---|---|
282703e8 KG |
1 | /* |
2 | * Copyright (c) 2015, The Linux Foundation. All rights reserved. | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or modify | |
5 | * it under the terms of the GNU General Public License version 2 and | |
6 | * only version 2 as published by the Free Software Foundation. | |
7 | * | |
8 | * This program is distributed in the hope that it will be useful, | |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | * GNU General Public License for more details. | |
12 | */ | |
13 | ||
14 | #include "msm8916.dtsi" | |
729ee9c4 | 15 | #include "pm8916.dtsi" |
a190a1ce II |
16 | #include "apq8016-sbc-soc-pins.dtsi" |
17 | #include "apq8016-sbc-pmic-pins.dtsi" | |
282703e8 KG |
18 | |
19 | / { | |
20 | aliases { | |
21 | serial0 = &blsp1_uart2; | |
9f43020d | 22 | serial1 = &blsp1_uart1; |
282703e8 KG |
23 | }; |
24 | ||
25 | chosen { | |
26 | stdout-path = "serial0"; | |
27 | }; | |
28 | ||
29 | soc { | |
30 | serial@78b0000 { | |
31 | status = "okay"; | |
32 | pinctrl-names = "default", "sleep"; | |
33 | pinctrl-0 = <&blsp1_uart2_default>; | |
34 | pinctrl-1 = <&blsp1_uart2_sleep>; | |
35 | }; | |
9943230c II |
36 | |
37 | leds { | |
38 | pinctrl-names = "default"; | |
39 | pinctrl-0 = <&msmgpio_leds>, | |
40 | <&pm8916_gpios_leds>, | |
41 | <&pm8916_mpps_leds>; | |
42 | ||
43 | compatible = "gpio-leds"; | |
44 | ||
45 | led@1 { | |
46 | label = "apq8016-sbc:green:user1"; | |
47 | gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>; | |
48 | linux,default-trigger = "heartbeat"; | |
49 | default-state = "off"; | |
50 | }; | |
51 | ||
52 | led@2 { | |
53 | label = "apq8016-sbc:green:user2"; | |
54 | gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>; | |
55 | linux,default-trigger = "mmc0"; | |
56 | default-state = "off"; | |
57 | }; | |
58 | ||
59 | led@3 { | |
60 | label = "apq8016-sbc:green:user3"; | |
61 | gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>; | |
62 | linux,default-trigger = "mmc1"; | |
63 | default-state = "off"; | |
64 | }; | |
65 | ||
66 | led@4 { | |
67 | label = "apq8016-sbc:green:user4"; | |
68 | gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>; | |
69 | linux,default-trigger = "none"; | |
70 | default-state = "off"; | |
71 | }; | |
72 | ||
73 | led@5 { | |
74 | label = "apq8016-sbc:yellow:wlan"; | |
75 | gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>; | |
76 | linux,default-trigger = "wlan"; | |
77 | default-state = "off"; | |
78 | }; | |
79 | ||
80 | led@6 { | |
81 | label = "apq8016-sbc:blue:bt"; | |
82 | gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>; | |
83 | linux,default-trigger = "bt"; | |
84 | default-state = "off"; | |
85 | }; | |
86 | }; | |
282703e8 KG |
87 | }; |
88 | }; |