12f20182eSJiancheng Xue/* 22f20182eSJiancheng Xue * DTS File for HiSilicon Poplar Development Board 32f20182eSJiancheng Xue * 42f20182eSJiancheng Xue * Copyright (c) 2016-2017 HiSilicon Technologies Co., Ltd. 52f20182eSJiancheng Xue * 62f20182eSJiancheng Xue * Released under the GPLv2 only. 72f20182eSJiancheng Xue * SPDX-License-Identifier: GPL-2.0 82f20182eSJiancheng Xue */ 92f20182eSJiancheng Xue 102f20182eSJiancheng Xue/dts-v1/; 112f20182eSJiancheng Xue 122f20182eSJiancheng Xue#include <dt-bindings/gpio/gpio.h> 132f20182eSJiancheng Xue#include "hi3798cv200.dtsi" 142f20182eSJiancheng Xue 152f20182eSJiancheng Xue/ { 162f20182eSJiancheng Xue model = "HiSilicon Poplar Development Board"; 172f20182eSJiancheng Xue compatible = "hisilicon,hi3798cv200-poplar", "hisilicon,hi3798cv200"; 182f20182eSJiancheng Xue 192f20182eSJiancheng Xue aliases { 202f20182eSJiancheng Xue serial0 = &uart0; 212f20182eSJiancheng Xue serial2 = &uart2; 222f20182eSJiancheng Xue }; 232f20182eSJiancheng Xue 242f20182eSJiancheng Xue chosen { 252f20182eSJiancheng Xue stdout-path = "serial0:115200n8"; 262f20182eSJiancheng Xue }; 272f20182eSJiancheng Xue 282f20182eSJiancheng Xue memory@0 { 292f20182eSJiancheng Xue device_type = "memory"; 302f20182eSJiancheng Xue reg = <0x0 0x0 0x0 0x80000000>; 312f20182eSJiancheng Xue }; 322f20182eSJiancheng Xue 332f20182eSJiancheng Xue leds { 342f20182eSJiancheng Xue compatible = "gpio-leds"; 352f20182eSJiancheng Xue 362f20182eSJiancheng Xue user-led0 { 372f20182eSJiancheng Xue label = "USER-LED0"; 382f20182eSJiancheng Xue gpios = <&gpio6 3 GPIO_ACTIVE_LOW>; 392f20182eSJiancheng Xue linux,default-trigger = "heartbeat"; 402f20182eSJiancheng Xue default-state = "off"; 412f20182eSJiancheng Xue }; 422f20182eSJiancheng Xue 432f20182eSJiancheng Xue user-led1 { 442f20182eSJiancheng Xue label = "USER-LED1"; 452f20182eSJiancheng Xue gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; 462f20182eSJiancheng Xue linux,default-trigger = "mmc0"; 472f20182eSJiancheng Xue default-state = "off"; 482f20182eSJiancheng Xue }; 492f20182eSJiancheng Xue 502f20182eSJiancheng Xue user-led2 { 512f20182eSJiancheng Xue label = "USER-LED2"; 522f20182eSJiancheng Xue gpios = <&gpio5 2 GPIO_ACTIVE_LOW>; 532f20182eSJiancheng Xue linux,default-trigger = "none"; 542f20182eSJiancheng Xue default-state = "off"; 552f20182eSJiancheng Xue }; 562f20182eSJiancheng Xue 572f20182eSJiancheng Xue user-led3 { 582f20182eSJiancheng Xue label = "USER-LED3"; 592f20182eSJiancheng Xue gpios = <&gpio10 6 GPIO_ACTIVE_LOW>; 602f20182eSJiancheng Xue linux,default-trigger = "cpu0"; 612f20182eSJiancheng Xue default-state = "off"; 622f20182eSJiancheng Xue }; 632f20182eSJiancheng Xue }; 6432fa0176SShawn Guo 6532fa0176SShawn Guo reg_pcie: regulator-pcie { 6632fa0176SShawn Guo compatible = "regulator-fixed"; 6732fa0176SShawn Guo regulator-name = "3V3_PCIE0"; 6832fa0176SShawn Guo regulator-min-microvolt = <3300000>; 6932fa0176SShawn Guo regulator-max-microvolt = <3300000>; 7032fa0176SShawn Guo gpio = <&gpio6 7 0>; 7132fa0176SShawn Guo enable-active-high; 7232fa0176SShawn Guo }; 732f20182eSJiancheng Xue}; 742f20182eSJiancheng Xue 75*e83474c6SShawn Guo&ehci { 76*e83474c6SShawn Guo status = "okay"; 77*e83474c6SShawn Guo}; 78*e83474c6SShawn Guo 792f20182eSJiancheng Xue&gmac1 { 802f20182eSJiancheng Xue status = "okay"; 812f20182eSJiancheng Xue #address-cells = <1>; 822f20182eSJiancheng Xue #size-cells = <0>; 832f20182eSJiancheng Xue phy-handle = <ð_phy1>; 842f20182eSJiancheng Xue phy-mode = "rgmii"; 852f20182eSJiancheng Xue hisilicon,phy-reset-delays-us = <10000 10000 30000>; 862f20182eSJiancheng Xue 872f20182eSJiancheng Xue eth_phy1: phy@3 { 882f20182eSJiancheng Xue reg = <3>; 892f20182eSJiancheng Xue }; 902f20182eSJiancheng Xue}; 912f20182eSJiancheng Xue 922f20182eSJiancheng Xue&gpio1 { 932f20182eSJiancheng Xue status = "okay"; 94a1fb73d7SLinus Walleij gpio-line-names = "GPIO-E", "", 952f20182eSJiancheng Xue "", "", 96a1fb73d7SLinus Walleij "", "GPIO-F", 97a1fb73d7SLinus Walleij "", "GPIO-J"; 982f20182eSJiancheng Xue}; 992f20182eSJiancheng Xue 1002f20182eSJiancheng Xue&gpio2 { 1012f20182eSJiancheng Xue status = "okay"; 102a1fb73d7SLinus Walleij gpio-line-names = "GPIO-H", "GPIO-I", 103a1fb73d7SLinus Walleij "GPIO-L", "GPIO-G", 104a1fb73d7SLinus Walleij "GPIO-K", "", 1052f20182eSJiancheng Xue "", ""; 1062f20182eSJiancheng Xue}; 1072f20182eSJiancheng Xue 1082f20182eSJiancheng Xue&gpio3 { 1092f20182eSJiancheng Xue status = "okay"; 1102f20182eSJiancheng Xue gpio-line-names = "", "", 1112f20182eSJiancheng Xue "", "", 112a1fb73d7SLinus Walleij "GPIO-C", "", 113a1fb73d7SLinus Walleij "", "GPIO-B"; 1142f20182eSJiancheng Xue}; 1152f20182eSJiancheng Xue 1162f20182eSJiancheng Xue&gpio4 { 1172f20182eSJiancheng Xue status = "okay"; 1182f20182eSJiancheng Xue gpio-line-names = "", "", 1192f20182eSJiancheng Xue "", "", 120a1fb73d7SLinus Walleij "", "GPIO-D", 1212f20182eSJiancheng Xue "", ""; 1222f20182eSJiancheng Xue}; 1232f20182eSJiancheng Xue 1242f20182eSJiancheng Xue&gpio5 { 1252f20182eSJiancheng Xue status = "okay"; 1262f20182eSJiancheng Xue gpio-line-names = "", "USER-LED-1", 1272f20182eSJiancheng Xue "USER-LED-2", "", 128a1fb73d7SLinus Walleij "", "GPIO-A", 1292f20182eSJiancheng Xue "", ""; 1302f20182eSJiancheng Xue}; 1312f20182eSJiancheng Xue 1322f20182eSJiancheng Xue&gpio6 { 1332f20182eSJiancheng Xue status = "okay"; 1342f20182eSJiancheng Xue gpio-line-names = "", "", 1352f20182eSJiancheng Xue "", "USER-LED-0", 1362f20182eSJiancheng Xue "", "", 1372f20182eSJiancheng Xue "", ""; 1382f20182eSJiancheng Xue}; 1392f20182eSJiancheng Xue 1402f20182eSJiancheng Xue&gpio10 { 1412f20182eSJiancheng Xue status = "okay"; 1422f20182eSJiancheng Xue gpio-line-names = "", "", 1432f20182eSJiancheng Xue "", "", 1442f20182eSJiancheng Xue "", "", 1452f20182eSJiancheng Xue "USER-LED-3", ""; 1462f20182eSJiancheng Xue}; 1472f20182eSJiancheng Xue 1482f20182eSJiancheng Xue&i2c0 { 1492f20182eSJiancheng Xue status = "okay"; 1502f20182eSJiancheng Xue label = "LS-I2C0"; 1512f20182eSJiancheng Xue}; 1522f20182eSJiancheng Xue 1532f20182eSJiancheng Xue&i2c2 { 1542f20182eSJiancheng Xue status = "okay"; 1552f20182eSJiancheng Xue label = "LS-I2C1"; 1562f20182eSJiancheng Xue}; 1572f20182eSJiancheng Xue 1582f20182eSJiancheng Xue&ir { 1592f20182eSJiancheng Xue status = "okay"; 1602f20182eSJiancheng Xue}; 1612f20182eSJiancheng Xue 162*e83474c6SShawn Guo&ohci { 163*e83474c6SShawn Guo status = "okay"; 164*e83474c6SShawn Guo}; 165*e83474c6SShawn Guo 16632fa0176SShawn Guo&pcie { 16732fa0176SShawn Guo reset-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>; 16832fa0176SShawn Guo vpcie-supply = <®_pcie>; 16932fa0176SShawn Guo status = "okay"; 17032fa0176SShawn Guo}; 17132fa0176SShawn Guo 1724dcf0f9aSShawn Guo&sd0 { 1734dcf0f9aSShawn Guo bus-width = <4>; 1744dcf0f9aSShawn Guo cap-sd-highspeed; 1754dcf0f9aSShawn Guo status = "okay"; 1764dcf0f9aSShawn Guo}; 1774dcf0f9aSShawn Guo 1782f20182eSJiancheng Xue&spi0 { 1792f20182eSJiancheng Xue status = "okay"; 1802f20182eSJiancheng Xue label = "LS-SPI0"; 1812f20182eSJiancheng Xue}; 1822f20182eSJiancheng Xue 1832f20182eSJiancheng Xue&uart0 { 1842f20182eSJiancheng Xue status = "okay"; 1852f20182eSJiancheng Xue}; 1862f20182eSJiancheng Xue 1872f20182eSJiancheng Xue&uart2 { 1882f20182eSJiancheng Xue status = "okay"; 1892f20182eSJiancheng Xue label = "LS-UART0"; 1902f20182eSJiancheng Xue}; 1912f20182eSJiancheng Xue/* No optional LS-UART1 on Low Speed Expansion Connector. */ 192