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 }; 52*fc5f2ed6SGuodong Xu 53*fc5f2ed6SGuodong Xu leds { 54*fc5f2ed6SGuodong Xu compatible = "gpio-leds"; 55*fc5f2ed6SGuodong Xu 56*fc5f2ed6SGuodong Xu user_led1 { 57*fc5f2ed6SGuodong Xu label = "user_led1"; 58*fc5f2ed6SGuodong Xu /* gpio_150_user_led1 */ 59*fc5f2ed6SGuodong Xu gpios = <&gpio18 6 0>; 60*fc5f2ed6SGuodong Xu linux,default-trigger = "heartbeat"; 61*fc5f2ed6SGuodong Xu }; 62*fc5f2ed6SGuodong Xu 63*fc5f2ed6SGuodong Xu user_led2 { 64*fc5f2ed6SGuodong Xu label = "user_led2"; 65*fc5f2ed6SGuodong Xu /* gpio_151_user_led2 */ 66*fc5f2ed6SGuodong Xu gpios = <&gpio18 7 0>; 67*fc5f2ed6SGuodong Xu linux,default-trigger = "mmc0"; 68*fc5f2ed6SGuodong Xu }; 69*fc5f2ed6SGuodong Xu 70*fc5f2ed6SGuodong Xu user_led3 { 71*fc5f2ed6SGuodong Xu label = "user_led3"; 72*fc5f2ed6SGuodong Xu /* gpio_189_user_led3 */ 73*fc5f2ed6SGuodong Xu gpios = <&gpio23 5 0>; 74*fc5f2ed6SGuodong Xu default-state = "off"; 75*fc5f2ed6SGuodong Xu }; 76*fc5f2ed6SGuodong Xu 77*fc5f2ed6SGuodong Xu user_led4 { 78*fc5f2ed6SGuodong Xu label = "user_led4"; 79*fc5f2ed6SGuodong Xu /* gpio_190_user_led4 */ 80*fc5f2ed6SGuodong Xu gpios = <&gpio23 6 0>; 81*fc5f2ed6SGuodong Xu linux,default-trigger = "cpu0"; 82*fc5f2ed6SGuodong Xu }; 83*fc5f2ed6SGuodong Xu 84*fc5f2ed6SGuodong Xu wlan_active_led { 85*fc5f2ed6SGuodong Xu label = "wifi_active"; 86*fc5f2ed6SGuodong Xu /* gpio_205_wifi_active */ 87*fc5f2ed6SGuodong Xu gpios = <&gpio25 5 0>; 88*fc5f2ed6SGuodong Xu linux,default-trigger = "phy0tx"; 89*fc5f2ed6SGuodong Xu default-state = "off"; 90*fc5f2ed6SGuodong Xu }; 91*fc5f2ed6SGuodong Xu 92*fc5f2ed6SGuodong Xu bt_active_led { 93*fc5f2ed6SGuodong Xu label = "bt_active"; 94*fc5f2ed6SGuodong Xu gpios = <&gpio25 7 0>; 95*fc5f2ed6SGuodong Xu /* gpio_207_user_led1 */ 96*fc5f2ed6SGuodong Xu linux,default-trigger = "hci0-power"; 97*fc5f2ed6SGuodong Xu default-state = "off"; 98*fc5f2ed6SGuodong Xu }; 99*fc5f2ed6SGuodong 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