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 { 21804d7d7aSLi Wei mshc1 = &dwmmc1; 22804d7d7aSLi Wei mshc2 = &dwmmc2; 23254b07b2SChen Feng serial0 = &uart0; 24254b07b2SChen Feng serial1 = &uart1; 25254b07b2SChen Feng serial2 = &uart2; 26254b07b2SChen Feng serial3 = &uart3; 27254b07b2SChen Feng serial4 = &uart4; 28254b07b2SChen Feng serial5 = &uart5; 29254b07b2SChen Feng serial6 = &uart6; 3035ca8168SChen Feng }; 3135ca8168SChen Feng 3235ca8168SChen Feng chosen { 33254b07b2SChen Feng stdout-path = "serial6:115200n8"; 3435ca8168SChen Feng }; 3535ca8168SChen Feng 3635ca8168SChen Feng memory@0 { 3735ca8168SChen Feng device_type = "memory"; 3835ca8168SChen Feng /* rewrite this at bootloader */ 3935ca8168SChen Feng reg = <0x0 0x0 0x0 0x0>; 4035ca8168SChen Feng }; 418cb53a8dSChen Jun 42*b6b681c1SGuodong Xu reboot-mode-syscon@32100000 { 43*b6b681c1SGuodong Xu compatible = "syscon", "simple-mfd"; 44*b6b681c1SGuodong Xu reg = <0x0 0x32100000 0x0 0x00001000>; 45*b6b681c1SGuodong Xu 46*b6b681c1SGuodong Xu reboot-mode { 47*b6b681c1SGuodong Xu compatible = "syscon-reboot-mode"; 48*b6b681c1SGuodong Xu offset = <0x0>; 49*b6b681c1SGuodong Xu 50*b6b681c1SGuodong Xu mode-normal = <0x77665501>; 51*b6b681c1SGuodong Xu mode-bootloader = <0x77665500>; 52*b6b681c1SGuodong Xu mode-recovery = <0x77665502>; 53*b6b681c1SGuodong Xu }; 54*b6b681c1SGuodong Xu }; 55*b6b681c1SGuodong Xu 568cb53a8dSChen Jun keys { 578cb53a8dSChen Jun compatible = "gpio-keys"; 588cb53a8dSChen Jun pinctrl-names = "default"; 598cb53a8dSChen Jun pinctrl-0 = <&pwr_key_pmx_func &pwr_key_cfg_func>; 608cb53a8dSChen Jun 618cb53a8dSChen Jun power { 628cb53a8dSChen Jun wakeup-source; 638cb53a8dSChen Jun gpios = <&gpio4 2 GPIO_ACTIVE_LOW>; 648cb53a8dSChen Jun label = "GPIO Power"; 658cb53a8dSChen Jun linux,code = <KEY_POWER>; 668cb53a8dSChen Jun }; 678cb53a8dSChen Jun }; 68fc5f2ed6SGuodong Xu 69fc5f2ed6SGuodong Xu leds { 70fc5f2ed6SGuodong Xu compatible = "gpio-leds"; 71fc5f2ed6SGuodong Xu 72fc5f2ed6SGuodong Xu user_led1 { 73fc5f2ed6SGuodong Xu label = "user_led1"; 74fc5f2ed6SGuodong Xu /* gpio_150_user_led1 */ 75fc5f2ed6SGuodong Xu gpios = <&gpio18 6 0>; 76fc5f2ed6SGuodong Xu linux,default-trigger = "heartbeat"; 77fc5f2ed6SGuodong Xu }; 78fc5f2ed6SGuodong Xu 79fc5f2ed6SGuodong Xu user_led2 { 80fc5f2ed6SGuodong Xu label = "user_led2"; 81fc5f2ed6SGuodong Xu /* gpio_151_user_led2 */ 82fc5f2ed6SGuodong Xu gpios = <&gpio18 7 0>; 83fc5f2ed6SGuodong Xu linux,default-trigger = "mmc0"; 84fc5f2ed6SGuodong Xu }; 85fc5f2ed6SGuodong Xu 86fc5f2ed6SGuodong Xu user_led3 { 87fc5f2ed6SGuodong Xu label = "user_led3"; 88fc5f2ed6SGuodong Xu /* gpio_189_user_led3 */ 89fc5f2ed6SGuodong Xu gpios = <&gpio23 5 0>; 90fc5f2ed6SGuodong Xu default-state = "off"; 91fc5f2ed6SGuodong Xu }; 92fc5f2ed6SGuodong Xu 93fc5f2ed6SGuodong Xu user_led4 { 94fc5f2ed6SGuodong Xu label = "user_led4"; 95fc5f2ed6SGuodong Xu /* gpio_190_user_led4 */ 96fc5f2ed6SGuodong Xu gpios = <&gpio23 6 0>; 97fc5f2ed6SGuodong Xu linux,default-trigger = "cpu0"; 98fc5f2ed6SGuodong Xu }; 99fc5f2ed6SGuodong Xu 100fc5f2ed6SGuodong Xu wlan_active_led { 101fc5f2ed6SGuodong Xu label = "wifi_active"; 102fc5f2ed6SGuodong Xu /* gpio_205_wifi_active */ 103fc5f2ed6SGuodong Xu gpios = <&gpio25 5 0>; 104fc5f2ed6SGuodong Xu linux,default-trigger = "phy0tx"; 105fc5f2ed6SGuodong Xu default-state = "off"; 106fc5f2ed6SGuodong Xu }; 107fc5f2ed6SGuodong Xu 108fc5f2ed6SGuodong Xu bt_active_led { 109fc5f2ed6SGuodong Xu label = "bt_active"; 110fc5f2ed6SGuodong Xu gpios = <&gpio25 7 0>; 111fc5f2ed6SGuodong Xu /* gpio_207_user_led1 */ 112fc5f2ed6SGuodong Xu linux,default-trigger = "hci0-power"; 113fc5f2ed6SGuodong Xu default-state = "off"; 114fc5f2ed6SGuodong Xu }; 115fc5f2ed6SGuodong Xu }; 116e02045aaSWang Xiaoyin 117e02045aaSWang Xiaoyin pmic: pmic@fff34000 { 118e02045aaSWang Xiaoyin compatible = "hisilicon,hi6421v530-pmic"; 119e02045aaSWang Xiaoyin reg = <0x0 0xfff34000 0x0 0x1000>; 120e02045aaSWang Xiaoyin interrupt-controller; 121e02045aaSWang Xiaoyin #interrupt-cells = <2>; 122e02045aaSWang Xiaoyin 123e02045aaSWang Xiaoyin regulators { 124e02045aaSWang Xiaoyin ldo3: LDO3 { /* HDMI */ 125e02045aaSWang Xiaoyin regulator-name = "VOUT3_1V85"; 126e02045aaSWang Xiaoyin regulator-min-microvolt = <1800000>; 127e02045aaSWang Xiaoyin regulator-max-microvolt = <2200000>; 128e02045aaSWang Xiaoyin regulator-enable-ramp-delay = <120>; 129e02045aaSWang Xiaoyin }; 130e02045aaSWang Xiaoyin 131e02045aaSWang Xiaoyin ldo9: LDO9 { /* SDCARD I/O */ 132e02045aaSWang Xiaoyin regulator-name = "VOUT9_1V8_2V95"; 133e02045aaSWang Xiaoyin regulator-min-microvolt = <1750000>; 134e02045aaSWang Xiaoyin regulator-max-microvolt = <3300000>; 135e02045aaSWang Xiaoyin regulator-enable-ramp-delay = <240>; 136e02045aaSWang Xiaoyin }; 137e02045aaSWang Xiaoyin 138e02045aaSWang Xiaoyin ldo11: LDO11 { /* Low Speed Connector */ 139e02045aaSWang Xiaoyin regulator-name = "VOUT11_1V8_2V95"; 140e02045aaSWang Xiaoyin regulator-min-microvolt = <1750000>; 141e02045aaSWang Xiaoyin regulator-max-microvolt = <3300000>; 142e02045aaSWang Xiaoyin regulator-enable-ramp-delay = <240>; 143e02045aaSWang Xiaoyin }; 144e02045aaSWang Xiaoyin 145e02045aaSWang Xiaoyin ldo15: LDO15 { /* UFS VCC */ 146e02045aaSWang Xiaoyin regulator-name = "VOUT15_3V0"; 147e02045aaSWang Xiaoyin regulator-min-microvolt = <1750000>; 148e02045aaSWang Xiaoyin regulator-max-microvolt = <3000000>; 149e02045aaSWang Xiaoyin regulator-boot-on; 150e02045aaSWang Xiaoyin regulator-always-on; 151e02045aaSWang Xiaoyin regulator-enable-ramp-delay = <120>; 152e02045aaSWang Xiaoyin }; 153e02045aaSWang Xiaoyin 154e02045aaSWang Xiaoyin ldo16: LDO16 { /* SD VDD */ 155e02045aaSWang Xiaoyin regulator-name = "VOUT16_2V95"; 156e02045aaSWang Xiaoyin regulator-min-microvolt = <1750000>; 157e02045aaSWang Xiaoyin regulator-max-microvolt = <3000000>; 158e02045aaSWang Xiaoyin regulator-enable-ramp-delay = <360>; 159e02045aaSWang Xiaoyin }; 160e02045aaSWang Xiaoyin }; 161e02045aaSWang Xiaoyin }; 1627d8c3667SGuodong Xu 1637d8c3667SGuodong Xu wlan_en: wlan-en-1-8v { 1647d8c3667SGuodong Xu compatible = "regulator-fixed"; 1657d8c3667SGuodong Xu regulator-name = "wlan-en-regulator"; 1667d8c3667SGuodong Xu regulator-min-microvolt = <1800000>; 1677d8c3667SGuodong Xu regulator-max-microvolt = <1800000>; 1687d8c3667SGuodong Xu 1697d8c3667SGuodong Xu /* GPIO_051_WIFI_EN */ 1707d8c3667SGuodong Xu gpio = <&gpio6 3 0>; 1717d8c3667SGuodong Xu 1727d8c3667SGuodong Xu /* WLAN card specific delay */ 1737d8c3667SGuodong Xu startup-delay-us = <70000>; 1747d8c3667SGuodong Xu enable-active-high; 1757d8c3667SGuodong Xu }; 176313aebdaSVictor Chong 177313aebdaSVictor Chong firmware { 178313aebdaSVictor Chong optee { 179313aebdaSVictor Chong compatible = "linaro,optee-tz"; 180313aebdaSVictor Chong method = "smc"; 181313aebdaSVictor Chong }; 182313aebdaSVictor Chong }; 18335ca8168SChen Feng}; 18435ca8168SChen Feng 1855f8a3b77SZhangfei Gao&i2c0 { 1865f8a3b77SZhangfei Gao /* On Low speed expansion */ 1875f8a3b77SZhangfei Gao label = "LS-I2C0"; 1885f8a3b77SZhangfei Gao status = "okay"; 1895f8a3b77SZhangfei Gao}; 1905f8a3b77SZhangfei Gao 1915f8a3b77SZhangfei Gao&i2c1 { 1925f8a3b77SZhangfei Gao status = "okay"; 1935f8a3b77SZhangfei Gao 1945f8a3b77SZhangfei Gao adv7533: adv7533@39 { 1955f8a3b77SZhangfei Gao status = "ok"; 1965f8a3b77SZhangfei Gao compatible = "adi,adv7533"; 1975f8a3b77SZhangfei Gao reg = <0x39>; 1985f8a3b77SZhangfei Gao }; 1995f8a3b77SZhangfei Gao}; 2005f8a3b77SZhangfei Gao 2015f8a3b77SZhangfei Gao&i2c7 { 2025f8a3b77SZhangfei Gao /* On Low speed expansion */ 2035f8a3b77SZhangfei Gao label = "LS-I2C1"; 2045f8a3b77SZhangfei Gao status = "okay"; 2055f8a3b77SZhangfei Gao}; 2065f8a3b77SZhangfei Gao 207254b07b2SChen Feng&uart3 { 208254b07b2SChen Feng /* On Low speed expansion */ 209254b07b2SChen Feng label = "LS-UART0"; 210254b07b2SChen Feng status = "okay"; 211254b07b2SChen Feng}; 212254b07b2SChen Feng 2132e9b4447SGuodong Xu&uart4 { 2142e9b4447SGuodong Xu status = "okay"; 2152e9b4447SGuodong Xu 2162e9b4447SGuodong Xu bluetooth { 2172e9b4447SGuodong Xu compatible = "ti,wl1837-st"; 2182e9b4447SGuodong Xu enable-gpios = <&gpio15 6 GPIO_ACTIVE_HIGH>; 2192e9b4447SGuodong Xu max-speed = <921600>; 2202e9b4447SGuodong Xu }; 2212e9b4447SGuodong Xu}; 2222e9b4447SGuodong Xu 223254b07b2SChen Feng&uart6 { 224254b07b2SChen Feng /* On Low speed expansion */ 225254b07b2SChen Feng label = "LS-UART1"; 22635ca8168SChen Feng status = "okay"; 22735ca8168SChen Feng}; 22838810497SWang Xiaoyin 22938810497SWang Xiaoyin&spi2 { 23038810497SWang Xiaoyin /* On Low speed expansion */ 23138810497SWang Xiaoyin label = "LS-SPI0"; 23238810497SWang Xiaoyin status = "okay"; 23338810497SWang Xiaoyin}; 23438810497SWang Xiaoyin 23538810497SWang Xiaoyin&spi3 { 23638810497SWang Xiaoyin /* On High speed expansion */ 23738810497SWang Xiaoyin label = "HS-SPI1"; 23838810497SWang Xiaoyin status = "okay"; 23938810497SWang Xiaoyin}; 240804d7d7aSLi Wei 241804d7d7aSLi Wei&dwmmc1 { 242804d7d7aSLi Wei vmmc-supply = <&ldo16>; 243804d7d7aSLi Wei vqmmc-supply = <&ldo9>; 244804d7d7aSLi Wei status = "okay"; 245804d7d7aSLi Wei}; 2467d8c3667SGuodong Xu 2477d8c3667SGuodong Xu&dwmmc2 { /* WIFI */ 2487d8c3667SGuodong Xu broken-cd; 2497d8c3667SGuodong Xu /* WL_EN */ 2507d8c3667SGuodong Xu vmmc-supply = <&wlan_en>; 2517d8c3667SGuodong Xu ti,non-removable; 2527d8c3667SGuodong Xu non-removable; 2537d8c3667SGuodong Xu #address-cells = <0x1>; 2547d8c3667SGuodong Xu #size-cells = <0x0>; 2557d8c3667SGuodong Xu status = "ok"; 2567d8c3667SGuodong Xu 2577d8c3667SGuodong Xu wlcore: wlcore@2 { 2587d8c3667SGuodong Xu compatible = "ti,wl1837"; 2597d8c3667SGuodong Xu reg = <2>; /* sdio func num */ 2607d8c3667SGuodong Xu /* WL_IRQ, GPIO_179_WL_WAKEUP_AP */ 2617d8c3667SGuodong Xu interrupt-parent = <&gpio22>; 2627d8c3667SGuodong Xu interrupts = <3 IRQ_TYPE_EDGE_RISING>; 2637d8c3667SGuodong Xu }; 2647d8c3667SGuodong Xu}; 265