1// SPDX-License-Identifier: GPL-2.0 2/* 3 * DTS File for HiSilicon Poplar Development Board 4 * 5 * Copyright (c) 2016-2017 HiSilicon Technologies Co., Ltd. 6 */ 7 8/dts-v1/; 9 10#include <dt-bindings/gpio/gpio.h> 11#include "hi3798cv200.dtsi" 12 13/ { 14 model = "HiSilicon Poplar Development Board"; 15 compatible = "hisilicon,hi3798cv200-poplar", "hisilicon,hi3798cv200"; 16 17 aliases { 18 serial0 = &uart0; 19 serial2 = &uart2; 20 }; 21 22 chosen { 23 stdout-path = "serial0:115200n8"; 24 }; 25 26 memory@0 { 27 device_type = "memory"; 28 reg = <0x0 0x0 0x0 0x80000000>; 29 }; 30 31 leds { 32 compatible = "gpio-leds"; 33 34 user-led0 { 35 label = "USER-LED0"; 36 gpios = <&gpio6 3 GPIO_ACTIVE_LOW>; 37 linux,default-trigger = "heartbeat"; 38 default-state = "off"; 39 }; 40 41 user-led1 { 42 label = "USER-LED1"; 43 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; 44 linux,default-trigger = "mmc0"; 45 default-state = "off"; 46 }; 47 48 user-led2 { 49 label = "USER-LED2"; 50 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>; 51 linux,default-trigger = "none"; 52 default-state = "off"; 53 }; 54 55 user-led3 { 56 label = "USER-LED3"; 57 gpios = <&gpio10 6 GPIO_ACTIVE_LOW>; 58 linux,default-trigger = "cpu0"; 59 default-state = "off"; 60 }; 61 }; 62}; 63 64&gmac1 { 65 status = "okay"; 66 #address-cells = <1>; 67 #size-cells = <0>; 68 phy-handle = <ð_phy1>; 69 phy-mode = "rgmii"; 70 hisilicon,phy-reset-delays-us = <10000 10000 30000>; 71 72 eth_phy1: phy@3 { 73 reg = <3>; 74 }; 75}; 76 77&gpio1 { 78 status = "okay"; 79 gpio-line-names = "LS-GPIO-E", "", 80 "", "", 81 "", "LS-GPIO-F", 82 "", "LS-GPIO-J"; 83}; 84 85&gpio2 { 86 status = "okay"; 87 gpio-line-names = "LS-GPIO-H", "LS-GPIO-I", 88 "LS-GPIO-L", "LS-GPIO-G", 89 "LS-GPIO-K", "", 90 "", ""; 91}; 92 93&gpio3 { 94 status = "okay"; 95 gpio-line-names = "", "", 96 "", "", 97 "LS-GPIO-C", "", 98 "", "LS-GPIO-B"; 99}; 100 101&gpio4 { 102 status = "okay"; 103 gpio-line-names = "", "", 104 "", "", 105 "", "LS-GPIO-D", 106 "", ""; 107}; 108 109&gpio5 { 110 status = "okay"; 111 gpio-line-names = "", "USER-LED-1", 112 "USER-LED-2", "", 113 "", "LS-GPIO-A", 114 "", ""; 115}; 116 117&gpio6 { 118 status = "okay"; 119 gpio-line-names = "", "", 120 "", "USER-LED-0", 121 "", "", 122 "", ""; 123}; 124 125&gpio10 { 126 status = "okay"; 127 gpio-line-names = "", "", 128 "", "", 129 "", "", 130 "USER-LED-3", ""; 131}; 132 133&i2c0 { 134 status = "okay"; 135 label = "LS-I2C0"; 136}; 137 138&i2c2 { 139 status = "okay"; 140 label = "LS-I2C1"; 141}; 142 143&ir { 144 status = "okay"; 145}; 146 147&spi0 { 148 status = "okay"; 149 label = "LS-SPI0"; 150}; 151 152&uart0 { 153 status = "okay"; 154}; 155 156&uart2 { 157 status = "okay"; 158 label = "LS-UART0"; 159}; 160/* No optional LS-UART1 on Low Speed Expansion Connector. */ 161