2017-06-26 13:52:47 +00:00
|
|
|
/*
|
|
|
|
* DTS File for HiSilicon Poplar Development Board
|
|
|
|
*
|
|
|
|
* Copyright (c) 2016-2017 HiSilicon Technologies Co., Ltd.
|
2019-01-17 04:09:50 +00:00
|
|
|
*
|
|
|
|
* Released under the GPLv2 only.
|
|
|
|
* SPDX-License-Identifier: GPL-2.0
|
2017-06-26 13:52:47 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include "hi3798cv200.dtsi"
|
2019-01-17 04:09:50 +00:00
|
|
|
#include "poplar-pinctrl.dtsi"
|
2017-06-26 13:52:47 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "HiSilicon Poplar Development Board";
|
|
|
|
compatible = "hisilicon,hi3798cv200-poplar", "hisilicon,hi3798cv200";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
serial0 = &uart0;
|
|
|
|
serial2 = &uart2;
|
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
stdout-path = "serial0:115200n8";
|
|
|
|
};
|
|
|
|
|
|
|
|
memory@0 {
|
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x0 0x0 0x0 0x80000000>;
|
|
|
|
};
|
|
|
|
|
2019-01-17 14:37:40 +00:00
|
|
|
firmware {
|
|
|
|
optee {
|
|
|
|
compatible = "linaro,optee-tz";
|
|
|
|
method = "smc";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-06-26 13:52:47 +00:00
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
user-led0 {
|
|
|
|
label = "USER-LED0";
|
|
|
|
gpios = <&gpio6 3 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,default-trigger = "heartbeat";
|
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
|
|
|
|
user-led1 {
|
|
|
|
label = "USER-LED1";
|
|
|
|
gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,default-trigger = "mmc0";
|
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
|
|
|
|
user-led2 {
|
|
|
|
label = "USER-LED2";
|
|
|
|
gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,default-trigger = "none";
|
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
|
|
|
|
user-led3 {
|
|
|
|
label = "USER-LED3";
|
|
|
|
gpios = <&gpio10 6 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,default-trigger = "cpu0";
|
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
};
|
2019-01-17 04:09:50 +00:00
|
|
|
|
|
|
|
reg_pcie: regulator-pcie {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "3V3_PCIE0";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
gpio = <&gpio6 7 0>;
|
|
|
|
enable-active-high;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&ehci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&emmc {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&emmc_pins_1 &emmc_pins_2
|
|
|
|
&emmc_pins_3 &emmc_pins_4>;
|
|
|
|
fifo-depth = <256>;
|
|
|
|
clock-frequency = <200000000>;
|
|
|
|
cap-mmc-highspeed;
|
|
|
|
mmc-ddr-1_8v;
|
|
|
|
mmc-hs200-1_8v;
|
|
|
|
non-removable;
|
|
|
|
bus-width = <8>;
|
|
|
|
status = "okay";
|
2017-06-26 13:52:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&gmac1 {
|
|
|
|
status = "okay";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
phy-handle = <ð_phy1>;
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
hisilicon,phy-reset-delays-us = <10000 10000 30000>;
|
|
|
|
|
|
|
|
eth_phy1: phy@3 {
|
|
|
|
reg = <3>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio1 {
|
|
|
|
status = "okay";
|
2019-01-17 04:09:50 +00:00
|
|
|
gpio-line-names = "GPIO-E", "",
|
2017-06-26 13:52:47 +00:00
|
|
|
"", "",
|
2019-01-17 04:09:50 +00:00
|
|
|
"", "GPIO-F",
|
|
|
|
"", "GPIO-J";
|
2017-06-26 13:52:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&gpio2 {
|
|
|
|
status = "okay";
|
2019-01-17 04:09:50 +00:00
|
|
|
gpio-line-names = "GPIO-H", "GPIO-I",
|
|
|
|
"GPIO-L", "GPIO-G",
|
|
|
|
"GPIO-K", "",
|
2017-06-26 13:52:47 +00:00
|
|
|
"", "";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio3 {
|
|
|
|
status = "okay";
|
|
|
|
gpio-line-names = "", "",
|
|
|
|
"", "",
|
2019-01-17 04:09:50 +00:00
|
|
|
"GPIO-C", "",
|
|
|
|
"", "GPIO-B";
|
2017-06-26 13:52:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&gpio4 {
|
|
|
|
status = "okay";
|
|
|
|
gpio-line-names = "", "",
|
|
|
|
"", "",
|
2019-01-17 04:09:50 +00:00
|
|
|
"", "GPIO-D",
|
2017-06-26 13:52:47 +00:00
|
|
|
"", "";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio5 {
|
|
|
|
status = "okay";
|
|
|
|
gpio-line-names = "", "USER-LED-1",
|
|
|
|
"USER-LED-2", "",
|
2019-01-17 04:09:50 +00:00
|
|
|
"", "GPIO-A",
|
2017-06-26 13:52:47 +00:00
|
|
|
"", "";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio6 {
|
|
|
|
status = "okay";
|
|
|
|
gpio-line-names = "", "",
|
|
|
|
"", "USER-LED-0",
|
|
|
|
"", "",
|
|
|
|
"", "";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio10 {
|
|
|
|
status = "okay";
|
|
|
|
gpio-line-names = "", "",
|
|
|
|
"", "",
|
|
|
|
"", "",
|
|
|
|
"USER-LED-3", "";
|
|
|
|
};
|
|
|
|
|
|
|
|
&i2c0 {
|
|
|
|
status = "okay";
|
|
|
|
label = "LS-I2C0";
|
|
|
|
};
|
|
|
|
|
|
|
|
&i2c2 {
|
|
|
|
status = "okay";
|
|
|
|
label = "LS-I2C1";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ir {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2019-01-17 04:09:50 +00:00
|
|
|
&ohci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie {
|
|
|
|
reset-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>;
|
|
|
|
vpcie-supply = <®_pcie>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&sd0 {
|
|
|
|
bus-width = <4>;
|
|
|
|
cap-sd-highspeed;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2017-06-26 13:52:47 +00:00
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
label = "LS-SPI0";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart2 {
|
|
|
|
status = "okay";
|
|
|
|
label = "LS-UART0";
|
|
|
|
};
|
|
|
|
/* No optional LS-UART1 on Low Speed Expansion Connector. */
|