1/*
2 * dts file for Hisilicon HiKey960 Development Board
3 *
4 * Copyright (C) 2016, Hisilicon Ltd.
5 *
6 */
7
8/dts-v1/;
9
10#include "hi3660.dtsi"
11#include "hikey960-pinctrl.dtsi"
12#include <dt-bindings/gpio/gpio.h>
13#include <dt-bindings/input/input.h>
14#include <dt-bindings/interrupt-controller/irq.h>
15
16/ {
17	model = "HiKey960";
18	compatible = "hisilicon,hi3660-hikey960", "hisilicon,hi3660";
19
20	aliases {
21		serial0 = &uart0;
22		serial1 = &uart1;
23		serial2 = &uart2;
24		serial3 = &uart3;
25		serial4 = &uart4;
26		serial5 = &uart5;
27		serial6 = &uart6;
28	};
29
30	chosen {
31		stdout-path = "serial6:115200n8";
32	};
33
34	memory@0 {
35		device_type = "memory";
36		/* rewrite this at bootloader */
37		reg = <0x0 0x0 0x0 0x0>;
38	};
39
40	keys {
41		compatible = "gpio-keys";
42		pinctrl-names = "default";
43		pinctrl-0 = <&pwr_key_pmx_func &pwr_key_cfg_func>;
44
45		power {
46			wakeup-source;
47			gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
48			label = "GPIO Power";
49			linux,code = <KEY_POWER>;
50		};
51	};
52
53	leds {
54		compatible = "gpio-leds";
55
56		user_led1 {
57			label = "user_led1";
58			/* gpio_150_user_led1 */
59			gpios = <&gpio18 6 0>;
60			linux,default-trigger = "heartbeat";
61		};
62
63		user_led2 {
64			label = "user_led2";
65			/* gpio_151_user_led2 */
66			gpios = <&gpio18 7 0>;
67			linux,default-trigger = "mmc0";
68		};
69
70		user_led3 {
71			label = "user_led3";
72			/* gpio_189_user_led3 */
73			gpios = <&gpio23 5 0>;
74			default-state = "off";
75		};
76
77		user_led4 {
78			label = "user_led4";
79			/* gpio_190_user_led4 */
80			gpios = <&gpio23 6 0>;
81			linux,default-trigger = "cpu0";
82		};
83
84		wlan_active_led {
85			label = "wifi_active";
86			/* gpio_205_wifi_active */
87			gpios = <&gpio25 5 0>;
88			linux,default-trigger = "phy0tx";
89			default-state = "off";
90		};
91
92		bt_active_led {
93			label = "bt_active";
94			gpios = <&gpio25 7 0>;
95			/* gpio_207_user_led1 */
96			linux,default-trigger = "hci0-power";
97			default-state = "off";
98		};
99	};
100};
101
102&i2c0 {
103	/* On Low speed expansion */
104	label = "LS-I2C0";
105	status = "okay";
106};
107
108&i2c1 {
109	status = "okay";
110
111	adv7533: adv7533@39 {
112		status = "ok";
113		compatible = "adi,adv7533";
114		reg = <0x39>;
115	};
116};
117
118&i2c7 {
119	/* On Low speed expansion */
120	label = "LS-I2C1";
121	status = "okay";
122};
123
124&uart3 {
125	/* On Low speed expansion */
126	label = "LS-UART0";
127	status = "okay";
128};
129
130&uart4 {
131	status = "okay";
132
133	bluetooth {
134		compatible = "ti,wl1837-st";
135		enable-gpios = <&gpio15 6 GPIO_ACTIVE_HIGH>;
136		max-speed = <921600>;
137	};
138};
139
140&uart6 {
141	/* On Low speed expansion */
142	label = "LS-UART1";
143	status = "okay";
144};
145