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 429c24dc9dSGuodong Xu reserved-memory { 439c24dc9dSGuodong Xu #address-cells = <2>; 449c24dc9dSGuodong Xu #size-cells = <2>; 459c24dc9dSGuodong Xu ranges; 469c24dc9dSGuodong Xu 479c24dc9dSGuodong Xu ramoops@32000000 { 489c24dc9dSGuodong Xu compatible = "ramoops"; 499c24dc9dSGuodong Xu reg = <0x0 0x32000000 0x0 0x00100000>; 509c24dc9dSGuodong Xu record-size = <0x00020000>; 519c24dc9dSGuodong Xu console-size = <0x00020000>; 529c24dc9dSGuodong Xu ftrace-size = <0x00020000>; 539c24dc9dSGuodong Xu }; 549c24dc9dSGuodong Xu }; 559c24dc9dSGuodong Xu 56b6b681c1SGuodong Xu reboot-mode-syscon@32100000 { 57b6b681c1SGuodong Xu compatible = "syscon", "simple-mfd"; 58b6b681c1SGuodong Xu reg = <0x0 0x32100000 0x0 0x00001000>; 59b6b681c1SGuodong Xu 60b6b681c1SGuodong Xu reboot-mode { 61b6b681c1SGuodong Xu compatible = "syscon-reboot-mode"; 62b6b681c1SGuodong Xu offset = <0x0>; 63b6b681c1SGuodong Xu 64b6b681c1SGuodong Xu mode-normal = <0x77665501>; 65b6b681c1SGuodong Xu mode-bootloader = <0x77665500>; 66b6b681c1SGuodong Xu mode-recovery = <0x77665502>; 67b6b681c1SGuodong Xu }; 68b6b681c1SGuodong Xu }; 69b6b681c1SGuodong Xu 708cb53a8dSChen Jun keys { 718cb53a8dSChen Jun compatible = "gpio-keys"; 728cb53a8dSChen Jun pinctrl-names = "default"; 738cb53a8dSChen Jun pinctrl-0 = <&pwr_key_pmx_func &pwr_key_cfg_func>; 748cb53a8dSChen Jun 758cb53a8dSChen Jun power { 768cb53a8dSChen Jun wakeup-source; 778cb53a8dSChen Jun gpios = <&gpio4 2 GPIO_ACTIVE_LOW>; 788cb53a8dSChen Jun label = "GPIO Power"; 798cb53a8dSChen Jun linux,code = <KEY_POWER>; 808cb53a8dSChen Jun }; 818cb53a8dSChen Jun }; 82fc5f2ed6SGuodong Xu 83fc5f2ed6SGuodong Xu leds { 84fc5f2ed6SGuodong Xu compatible = "gpio-leds"; 85fc5f2ed6SGuodong Xu 86fc5f2ed6SGuodong Xu user_led1 { 87fc5f2ed6SGuodong Xu label = "user_led1"; 88fc5f2ed6SGuodong Xu /* gpio_150_user_led1 */ 89fc5f2ed6SGuodong Xu gpios = <&gpio18 6 0>; 90fc5f2ed6SGuodong Xu linux,default-trigger = "heartbeat"; 91fc5f2ed6SGuodong Xu }; 92fc5f2ed6SGuodong Xu 93fc5f2ed6SGuodong Xu user_led2 { 94fc5f2ed6SGuodong Xu label = "user_led2"; 95fc5f2ed6SGuodong Xu /* gpio_151_user_led2 */ 96fc5f2ed6SGuodong Xu gpios = <&gpio18 7 0>; 97fc5f2ed6SGuodong Xu linux,default-trigger = "mmc0"; 98fc5f2ed6SGuodong Xu }; 99fc5f2ed6SGuodong Xu 100fc5f2ed6SGuodong Xu user_led3 { 101fc5f2ed6SGuodong Xu label = "user_led3"; 102fc5f2ed6SGuodong Xu /* gpio_189_user_led3 */ 103fc5f2ed6SGuodong Xu gpios = <&gpio23 5 0>; 104fc5f2ed6SGuodong Xu default-state = "off"; 105fc5f2ed6SGuodong Xu }; 106fc5f2ed6SGuodong Xu 107fc5f2ed6SGuodong Xu user_led4 { 108fc5f2ed6SGuodong Xu label = "user_led4"; 109fc5f2ed6SGuodong Xu /* gpio_190_user_led4 */ 110fc5f2ed6SGuodong Xu gpios = <&gpio23 6 0>; 111fc5f2ed6SGuodong Xu linux,default-trigger = "cpu0"; 112fc5f2ed6SGuodong Xu }; 113fc5f2ed6SGuodong Xu 114fc5f2ed6SGuodong Xu wlan_active_led { 115fc5f2ed6SGuodong Xu label = "wifi_active"; 116fc5f2ed6SGuodong Xu /* gpio_205_wifi_active */ 117fc5f2ed6SGuodong Xu gpios = <&gpio25 5 0>; 118fc5f2ed6SGuodong Xu linux,default-trigger = "phy0tx"; 119fc5f2ed6SGuodong Xu default-state = "off"; 120fc5f2ed6SGuodong Xu }; 121fc5f2ed6SGuodong Xu 122fc5f2ed6SGuodong Xu bt_active_led { 123fc5f2ed6SGuodong Xu label = "bt_active"; 124fc5f2ed6SGuodong Xu gpios = <&gpio25 7 0>; 125fc5f2ed6SGuodong Xu /* gpio_207_user_led1 */ 126fc5f2ed6SGuodong Xu linux,default-trigger = "hci0-power"; 127fc5f2ed6SGuodong Xu default-state = "off"; 128fc5f2ed6SGuodong Xu }; 129fc5f2ed6SGuodong Xu }; 130e02045aaSWang Xiaoyin 131e02045aaSWang Xiaoyin pmic: pmic@fff34000 { 132e02045aaSWang Xiaoyin compatible = "hisilicon,hi6421v530-pmic"; 133e02045aaSWang Xiaoyin reg = <0x0 0xfff34000 0x0 0x1000>; 134e02045aaSWang Xiaoyin interrupt-controller; 135e02045aaSWang Xiaoyin #interrupt-cells = <2>; 136e02045aaSWang Xiaoyin 137e02045aaSWang Xiaoyin regulators { 138e02045aaSWang Xiaoyin ldo3: LDO3 { /* HDMI */ 139e02045aaSWang Xiaoyin regulator-name = "VOUT3_1V85"; 140e02045aaSWang Xiaoyin regulator-min-microvolt = <1800000>; 141e02045aaSWang Xiaoyin regulator-max-microvolt = <2200000>; 142e02045aaSWang Xiaoyin regulator-enable-ramp-delay = <120>; 143e02045aaSWang Xiaoyin }; 144e02045aaSWang Xiaoyin 145e02045aaSWang Xiaoyin ldo9: LDO9 { /* SDCARD I/O */ 146e02045aaSWang Xiaoyin regulator-name = "VOUT9_1V8_2V95"; 147e02045aaSWang Xiaoyin regulator-min-microvolt = <1750000>; 148e02045aaSWang Xiaoyin regulator-max-microvolt = <3300000>; 149e02045aaSWang Xiaoyin regulator-enable-ramp-delay = <240>; 150e02045aaSWang Xiaoyin }; 151e02045aaSWang Xiaoyin 152e02045aaSWang Xiaoyin ldo11: LDO11 { /* Low Speed Connector */ 153e02045aaSWang Xiaoyin regulator-name = "VOUT11_1V8_2V95"; 154e02045aaSWang Xiaoyin regulator-min-microvolt = <1750000>; 155e02045aaSWang Xiaoyin regulator-max-microvolt = <3300000>; 156e02045aaSWang Xiaoyin regulator-enable-ramp-delay = <240>; 157e02045aaSWang Xiaoyin }; 158e02045aaSWang Xiaoyin 159e02045aaSWang Xiaoyin ldo15: LDO15 { /* UFS VCC */ 160e02045aaSWang Xiaoyin regulator-name = "VOUT15_3V0"; 161e02045aaSWang Xiaoyin regulator-min-microvolt = <1750000>; 162e02045aaSWang Xiaoyin regulator-max-microvolt = <3000000>; 163e02045aaSWang Xiaoyin regulator-boot-on; 164e02045aaSWang Xiaoyin regulator-always-on; 165e02045aaSWang Xiaoyin regulator-enable-ramp-delay = <120>; 166e02045aaSWang Xiaoyin }; 167e02045aaSWang Xiaoyin 168e02045aaSWang Xiaoyin ldo16: LDO16 { /* SD VDD */ 169e02045aaSWang Xiaoyin regulator-name = "VOUT16_2V95"; 170e02045aaSWang Xiaoyin regulator-min-microvolt = <1750000>; 171e02045aaSWang Xiaoyin regulator-max-microvolt = <3000000>; 172e02045aaSWang Xiaoyin regulator-enable-ramp-delay = <360>; 173e02045aaSWang Xiaoyin }; 174e02045aaSWang Xiaoyin }; 175e02045aaSWang Xiaoyin }; 1767d8c3667SGuodong Xu 1777d8c3667SGuodong Xu wlan_en: wlan-en-1-8v { 1787d8c3667SGuodong Xu compatible = "regulator-fixed"; 1797d8c3667SGuodong Xu regulator-name = "wlan-en-regulator"; 1807d8c3667SGuodong Xu regulator-min-microvolt = <1800000>; 1817d8c3667SGuodong Xu regulator-max-microvolt = <1800000>; 1827d8c3667SGuodong Xu 1837d8c3667SGuodong Xu /* GPIO_051_WIFI_EN */ 1847d8c3667SGuodong Xu gpio = <&gpio6 3 0>; 1857d8c3667SGuodong Xu 1867d8c3667SGuodong Xu /* WLAN card specific delay */ 1877d8c3667SGuodong Xu startup-delay-us = <70000>; 1887d8c3667SGuodong Xu enable-active-high; 1897d8c3667SGuodong Xu }; 190313aebdaSVictor Chong 191313aebdaSVictor Chong firmware { 192313aebdaSVictor Chong optee { 193313aebdaSVictor Chong compatible = "linaro,optee-tz"; 194313aebdaSVictor Chong method = "smc"; 195313aebdaSVictor Chong }; 196313aebdaSVictor Chong }; 19735ca8168SChen Feng}; 19835ca8168SChen Feng 1995f8a3b77SZhangfei Gao&i2c0 { 2005f8a3b77SZhangfei Gao /* On Low speed expansion */ 2015f8a3b77SZhangfei Gao label = "LS-I2C0"; 2025f8a3b77SZhangfei Gao status = "okay"; 2035f8a3b77SZhangfei Gao}; 2045f8a3b77SZhangfei Gao 2055f8a3b77SZhangfei Gao&i2c1 { 2065f8a3b77SZhangfei Gao status = "okay"; 2075f8a3b77SZhangfei Gao 2085f8a3b77SZhangfei Gao adv7533: adv7533@39 { 2095f8a3b77SZhangfei Gao status = "ok"; 2105f8a3b77SZhangfei Gao compatible = "adi,adv7533"; 2115f8a3b77SZhangfei Gao reg = <0x39>; 2125f8a3b77SZhangfei Gao }; 2135f8a3b77SZhangfei Gao}; 2145f8a3b77SZhangfei Gao 2155f8a3b77SZhangfei Gao&i2c7 { 2165f8a3b77SZhangfei Gao /* On Low speed expansion */ 2175f8a3b77SZhangfei Gao label = "LS-I2C1"; 2185f8a3b77SZhangfei Gao status = "okay"; 2195f8a3b77SZhangfei Gao}; 2205f8a3b77SZhangfei Gao 221254b07b2SChen Feng&uart3 { 222254b07b2SChen Feng /* On Low speed expansion */ 223254b07b2SChen Feng label = "LS-UART0"; 224254b07b2SChen Feng status = "okay"; 225254b07b2SChen Feng}; 226254b07b2SChen Feng 2272e9b4447SGuodong Xu&uart4 { 2282e9b4447SGuodong Xu status = "okay"; 2292e9b4447SGuodong Xu 2302e9b4447SGuodong Xu bluetooth { 2312e9b4447SGuodong Xu compatible = "ti,wl1837-st"; 2322e9b4447SGuodong Xu enable-gpios = <&gpio15 6 GPIO_ACTIVE_HIGH>; 233*bf1ff532SGuodong Xu max-speed = <3000000>; 2342e9b4447SGuodong Xu }; 2352e9b4447SGuodong Xu}; 2362e9b4447SGuodong Xu 237254b07b2SChen Feng&uart6 { 238254b07b2SChen Feng /* On Low speed expansion */ 239254b07b2SChen Feng label = "LS-UART1"; 24035ca8168SChen Feng status = "okay"; 24135ca8168SChen Feng}; 24238810497SWang Xiaoyin 24338810497SWang Xiaoyin&spi2 { 24438810497SWang Xiaoyin /* On Low speed expansion */ 24538810497SWang Xiaoyin label = "LS-SPI0"; 24638810497SWang Xiaoyin status = "okay"; 24738810497SWang Xiaoyin}; 24838810497SWang Xiaoyin 24938810497SWang Xiaoyin&spi3 { 25038810497SWang Xiaoyin /* On High speed expansion */ 25138810497SWang Xiaoyin label = "HS-SPI1"; 25238810497SWang Xiaoyin status = "okay"; 25338810497SWang Xiaoyin}; 254804d7d7aSLi Wei 255804d7d7aSLi Wei&dwmmc1 { 256804d7d7aSLi Wei vmmc-supply = <&ldo16>; 257804d7d7aSLi Wei vqmmc-supply = <&ldo9>; 258804d7d7aSLi Wei status = "okay"; 259804d7d7aSLi Wei}; 2607d8c3667SGuodong Xu 2617d8c3667SGuodong Xu&dwmmc2 { /* WIFI */ 2627d8c3667SGuodong Xu broken-cd; 2637d8c3667SGuodong Xu /* WL_EN */ 2647d8c3667SGuodong Xu vmmc-supply = <&wlan_en>; 2657d8c3667SGuodong Xu ti,non-removable; 2667d8c3667SGuodong Xu non-removable; 2677d8c3667SGuodong Xu #address-cells = <0x1>; 2687d8c3667SGuodong Xu #size-cells = <0x0>; 2697d8c3667SGuodong Xu status = "ok"; 2707d8c3667SGuodong Xu 2717d8c3667SGuodong Xu wlcore: wlcore@2 { 2727d8c3667SGuodong Xu compatible = "ti,wl1837"; 2737d8c3667SGuodong Xu reg = <2>; /* sdio func num */ 2747d8c3667SGuodong Xu /* WL_IRQ, GPIO_179_WL_WAKEUP_AP */ 2757d8c3667SGuodong Xu interrupt-parent = <&gpio22>; 2767d8c3667SGuodong Xu interrupts = <3 IRQ_TYPE_EDGE_RISING>; 2777d8c3667SGuodong Xu }; 2787d8c3667SGuodong Xu}; 279