xref: /linux/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts (revision 8cb53a8d18fd548c2eac0f951a43d840bcd5f54c)
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>
13*8cb53a8dSChen Jun#include <dt-bindings/input/input.h>
14*8cb53a8dSChen 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	};
39*8cb53a8dSChen Jun
40*8cb53a8dSChen Jun	keys {
41*8cb53a8dSChen Jun		compatible = "gpio-keys";
42*8cb53a8dSChen Jun		pinctrl-names = "default";
43*8cb53a8dSChen Jun		pinctrl-0 = <&pwr_key_pmx_func &pwr_key_cfg_func>;
44*8cb53a8dSChen Jun
45*8cb53a8dSChen Jun		power {
46*8cb53a8dSChen Jun			wakeup-source;
47*8cb53a8dSChen Jun			gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
48*8cb53a8dSChen Jun			label = "GPIO Power";
49*8cb53a8dSChen Jun			linux,code = <KEY_POWER>;
50*8cb53a8dSChen Jun		};
51*8cb53a8dSChen Jun	};
5235ca8168SChen Feng};
5335ca8168SChen Feng
545f8a3b77SZhangfei Gao&i2c0 {
555f8a3b77SZhangfei Gao	/* On Low speed expansion */
565f8a3b77SZhangfei Gao	label = "LS-I2C0";
575f8a3b77SZhangfei Gao	status = "okay";
585f8a3b77SZhangfei Gao};
595f8a3b77SZhangfei Gao
605f8a3b77SZhangfei Gao&i2c1 {
615f8a3b77SZhangfei Gao	status = "okay";
625f8a3b77SZhangfei Gao
635f8a3b77SZhangfei Gao	adv7533: adv7533@39 {
645f8a3b77SZhangfei Gao		status = "ok";
655f8a3b77SZhangfei Gao		compatible = "adi,adv7533";
665f8a3b77SZhangfei Gao		reg = <0x39>;
675f8a3b77SZhangfei Gao	};
685f8a3b77SZhangfei Gao};
695f8a3b77SZhangfei Gao
705f8a3b77SZhangfei Gao&i2c7 {
715f8a3b77SZhangfei Gao	/* On Low speed expansion */
725f8a3b77SZhangfei Gao	label = "LS-I2C1";
735f8a3b77SZhangfei Gao	status = "okay";
745f8a3b77SZhangfei Gao};
755f8a3b77SZhangfei Gao
76254b07b2SChen Feng&uart3 {
77254b07b2SChen Feng	/* On Low speed expansion */
78254b07b2SChen Feng	label = "LS-UART0";
79254b07b2SChen Feng	status = "okay";
80254b07b2SChen Feng};
81254b07b2SChen Feng
822e9b4447SGuodong Xu&uart4 {
832e9b4447SGuodong Xu	status = "okay";
842e9b4447SGuodong Xu
852e9b4447SGuodong Xu	bluetooth {
862e9b4447SGuodong Xu		compatible = "ti,wl1837-st";
872e9b4447SGuodong Xu		enable-gpios = <&gpio15 6 GPIO_ACTIVE_HIGH>;
882e9b4447SGuodong Xu		max-speed = <921600>;
892e9b4447SGuodong Xu	};
902e9b4447SGuodong Xu};
912e9b4447SGuodong Xu
92254b07b2SChen Feng&uart6 {
93254b07b2SChen Feng	/* On Low speed expansion */
94254b07b2SChen Feng	label = "LS-UART1";
9535ca8168SChen Feng	status = "okay";
9635ca8168SChen Feng};
97