xref: /linux/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts (revision 388104979b66099d9003eafe3da3fc54466b7be9)
135ca8168SChen Feng/*
235ca8168SChen Feng * dts file for Hisilicon HiKey960 Development Board
335ca8168SChen Feng *
435ca8168SChen Feng * Copyright (C) 2016, Hisilicon Ltd.
535ca8168SChen Feng *
635ca8168SChen Feng */
735ca8168SChen Feng
835ca8168SChen Feng/dts-v1/;
935ca8168SChen Feng
1035ca8168SChen Feng#include "hi3660.dtsi"
11d4e1eaeeSWang Xiaoyin#include "hikey960-pinctrl.dtsi"
122e9b4447SGuodong Xu#include <dt-bindings/gpio/gpio.h>
138cb53a8dSChen Jun#include <dt-bindings/input/input.h>
148cb53a8dSChen Jun#include <dt-bindings/interrupt-controller/irq.h>
1535ca8168SChen Feng
1635ca8168SChen Feng/ {
1735ca8168SChen Feng	model = "HiKey960";
18b6c93186SGuodong Xu	compatible = "hisilicon,hi3660-hikey960", "hisilicon,hi3660";
1935ca8168SChen Feng
2035ca8168SChen Feng	aliases {
21254b07b2SChen Feng		serial0 = &uart0;
22254b07b2SChen Feng		serial1 = &uart1;
23254b07b2SChen Feng		serial2 = &uart2;
24254b07b2SChen Feng		serial3 = &uart3;
25254b07b2SChen Feng		serial4 = &uart4;
26254b07b2SChen Feng		serial5 = &uart5;
27254b07b2SChen Feng		serial6 = &uart6;
2835ca8168SChen Feng	};
2935ca8168SChen Feng
3035ca8168SChen Feng	chosen {
31254b07b2SChen Feng		stdout-path = "serial6:115200n8";
3235ca8168SChen Feng	};
3335ca8168SChen Feng
3435ca8168SChen Feng	memory@0 {
3535ca8168SChen Feng		device_type = "memory";
3635ca8168SChen Feng		/* rewrite this at bootloader */
3735ca8168SChen Feng		reg = <0x0 0x0 0x0 0x0>;
3835ca8168SChen Feng	};
398cb53a8dSChen Jun
408cb53a8dSChen Jun	keys {
418cb53a8dSChen Jun		compatible = "gpio-keys";
428cb53a8dSChen Jun		pinctrl-names = "default";
438cb53a8dSChen Jun		pinctrl-0 = <&pwr_key_pmx_func &pwr_key_cfg_func>;
448cb53a8dSChen Jun
458cb53a8dSChen Jun		power {
468cb53a8dSChen Jun			wakeup-source;
478cb53a8dSChen Jun			gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
488cb53a8dSChen Jun			label = "GPIO Power";
498cb53a8dSChen Jun			linux,code = <KEY_POWER>;
508cb53a8dSChen Jun		};
518cb53a8dSChen Jun	};
52fc5f2ed6SGuodong Xu
53fc5f2ed6SGuodong Xu	leds {
54fc5f2ed6SGuodong Xu		compatible = "gpio-leds";
55fc5f2ed6SGuodong Xu
56fc5f2ed6SGuodong Xu		user_led1 {
57fc5f2ed6SGuodong Xu			label = "user_led1";
58fc5f2ed6SGuodong Xu			/* gpio_150_user_led1 */
59fc5f2ed6SGuodong Xu			gpios = <&gpio18 6 0>;
60fc5f2ed6SGuodong Xu			linux,default-trigger = "heartbeat";
61fc5f2ed6SGuodong Xu		};
62fc5f2ed6SGuodong Xu
63fc5f2ed6SGuodong Xu		user_led2 {
64fc5f2ed6SGuodong Xu			label = "user_led2";
65fc5f2ed6SGuodong Xu			/* gpio_151_user_led2 */
66fc5f2ed6SGuodong Xu			gpios = <&gpio18 7 0>;
67fc5f2ed6SGuodong Xu			linux,default-trigger = "mmc0";
68fc5f2ed6SGuodong Xu		};
69fc5f2ed6SGuodong Xu
70fc5f2ed6SGuodong Xu		user_led3 {
71fc5f2ed6SGuodong Xu			label = "user_led3";
72fc5f2ed6SGuodong Xu			/* gpio_189_user_led3 */
73fc5f2ed6SGuodong Xu			gpios = <&gpio23 5 0>;
74fc5f2ed6SGuodong Xu			default-state = "off";
75fc5f2ed6SGuodong Xu		};
76fc5f2ed6SGuodong Xu
77fc5f2ed6SGuodong Xu		user_led4 {
78fc5f2ed6SGuodong Xu			label = "user_led4";
79fc5f2ed6SGuodong Xu			/* gpio_190_user_led4 */
80fc5f2ed6SGuodong Xu			gpios = <&gpio23 6 0>;
81fc5f2ed6SGuodong Xu			linux,default-trigger = "cpu0";
82fc5f2ed6SGuodong Xu		};
83fc5f2ed6SGuodong Xu
84fc5f2ed6SGuodong Xu		wlan_active_led {
85fc5f2ed6SGuodong Xu			label = "wifi_active";
86fc5f2ed6SGuodong Xu			/* gpio_205_wifi_active */
87fc5f2ed6SGuodong Xu			gpios = <&gpio25 5 0>;
88fc5f2ed6SGuodong Xu			linux,default-trigger = "phy0tx";
89fc5f2ed6SGuodong Xu			default-state = "off";
90fc5f2ed6SGuodong Xu		};
91fc5f2ed6SGuodong Xu
92fc5f2ed6SGuodong Xu		bt_active_led {
93fc5f2ed6SGuodong Xu			label = "bt_active";
94fc5f2ed6SGuodong Xu			gpios = <&gpio25 7 0>;
95fc5f2ed6SGuodong Xu			/* gpio_207_user_led1 */
96fc5f2ed6SGuodong Xu			linux,default-trigger = "hci0-power";
97fc5f2ed6SGuodong Xu			default-state = "off";
98fc5f2ed6SGuodong Xu		};
99fc5f2ed6SGuodong Xu	};
10035ca8168SChen Feng};
10135ca8168SChen Feng
1025f8a3b77SZhangfei Gao&i2c0 {
1035f8a3b77SZhangfei Gao	/* On Low speed expansion */
1045f8a3b77SZhangfei Gao	label = "LS-I2C0";
1055f8a3b77SZhangfei Gao	status = "okay";
1065f8a3b77SZhangfei Gao};
1075f8a3b77SZhangfei Gao
1085f8a3b77SZhangfei Gao&i2c1 {
1095f8a3b77SZhangfei Gao	status = "okay";
1105f8a3b77SZhangfei Gao
1115f8a3b77SZhangfei Gao	adv7533: adv7533@39 {
1125f8a3b77SZhangfei Gao		status = "ok";
1135f8a3b77SZhangfei Gao		compatible = "adi,adv7533";
1145f8a3b77SZhangfei Gao		reg = <0x39>;
1155f8a3b77SZhangfei Gao	};
1165f8a3b77SZhangfei Gao};
1175f8a3b77SZhangfei Gao
1185f8a3b77SZhangfei Gao&i2c7 {
1195f8a3b77SZhangfei Gao	/* On Low speed expansion */
1205f8a3b77SZhangfei Gao	label = "LS-I2C1";
1215f8a3b77SZhangfei Gao	status = "okay";
1225f8a3b77SZhangfei Gao};
1235f8a3b77SZhangfei Gao
124254b07b2SChen Feng&uart3 {
125254b07b2SChen Feng	/* On Low speed expansion */
126254b07b2SChen Feng	label = "LS-UART0";
127254b07b2SChen Feng	status = "okay";
128254b07b2SChen Feng};
129254b07b2SChen Feng
1302e9b4447SGuodong Xu&uart4 {
1312e9b4447SGuodong Xu	status = "okay";
1322e9b4447SGuodong Xu
1332e9b4447SGuodong Xu	bluetooth {
1342e9b4447SGuodong Xu		compatible = "ti,wl1837-st";
1352e9b4447SGuodong Xu		enable-gpios = <&gpio15 6 GPIO_ACTIVE_HIGH>;
1362e9b4447SGuodong Xu		max-speed = <921600>;
1372e9b4447SGuodong Xu	};
1382e9b4447SGuodong Xu};
1392e9b4447SGuodong Xu
140254b07b2SChen Feng&uart6 {
141254b07b2SChen Feng	/* On Low speed expansion */
142254b07b2SChen Feng	label = "LS-UART1";
14335ca8168SChen Feng	status = "okay";
14435ca8168SChen Feng};
145*38810497SWang Xiaoyin
146*38810497SWang Xiaoyin&spi2 {
147*38810497SWang Xiaoyin	/* On Low speed expansion */
148*38810497SWang Xiaoyin	label = "LS-SPI0";
149*38810497SWang Xiaoyin	status = "okay";
150*38810497SWang Xiaoyin};
151*38810497SWang Xiaoyin
152*38810497SWang Xiaoyin&spi3 {
153*38810497SWang Xiaoyin	/* On High speed expansion */
154*38810497SWang Xiaoyin	label = "HS-SPI1";
155*38810497SWang Xiaoyin	status = "okay";
156*38810497SWang Xiaoyin};
157