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"
15#include "pm8916.dtsi"
16#include "apq8016-sbc-soc-pins.dtsi"
17#include "apq8016-sbc-pmic-pins.dtsi"
18
19/ {
20	aliases {
21		serial0 = &blsp1_uart2;
22		serial1 = &blsp1_uart1;
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		};
36
37		i2c@78b6000 {
38		/* On Low speed expansion */
39			status = "okay";
40		};
41
42		i2c@78b8000 {
43		/* On High speed expansion */
44			status = "okay";
45		};
46
47		i2c@78ba000 {
48		/* On Low speed expansion */
49			status = "okay";
50		};
51
52		spi@78b7000 {
53		/* On High speed expansion */
54			status = "okay";
55		};
56
57		spi@78b9000 {
58		/* On Low speed expansion */
59			status = "okay";
60		};
61
62		leds {
63			pinctrl-names = "default";
64			pinctrl-0 = <&msmgpio_leds>,
65				    <&pm8916_gpios_leds>,
66				    <&pm8916_mpps_leds>;
67
68			compatible = "gpio-leds";
69
70			led@1 {
71				label = "apq8016-sbc:green:user1";
72				gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>;
73				linux,default-trigger = "heartbeat";
74				default-state = "off";
75			};
76
77			led@2 {
78				label = "apq8016-sbc:green:user2";
79				gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>;
80				linux,default-trigger = "mmc0";
81				default-state = "off";
82			};
83
84			led@3 {
85				label = "apq8016-sbc:green:user3";
86				gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>;
87				linux,default-trigger = "mmc1";
88				default-state = "off";
89			};
90
91			led@4 {
92				label = "apq8016-sbc:green:user4";
93				gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>;
94				linux,default-trigger = "none";
95				default-state = "off";
96			};
97
98			led@5 {
99				label = "apq8016-sbc:yellow:wlan";
100				gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>;
101				linux,default-trigger = "wlan";
102				default-state = "off";
103			};
104
105			led@6 {
106				label = "apq8016-sbc:blue:bt";
107				gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>;
108				linux,default-trigger = "bt";
109				default-state = "off";
110			};
111		};
112	};
113};
114
115&sdhc_1 {
116	status = "okay";
117};
118