2017-11-01 13:16:17 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2012-10-31 12:24:48 -06:00
|
|
|
/*
|
2014-08-21 11:19:46 +02:00
|
|
|
* Copyright (C) 2011 - 2014 Xilinx
|
2012-10-31 12:24:48 -06:00
|
|
|
* Copyright (C) 2012 National Instruments Corp.
|
|
|
|
*/
|
|
|
|
/dts-v1/;
|
2016-04-07 11:28:12 +02:00
|
|
|
#include "zynq-7000.dtsi"
|
2023-05-02 15:52:41 +02:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2012-10-31 12:24:48 -06:00
|
|
|
|
|
|
|
/ {
|
2018-07-12 00:10:20 -04:00
|
|
|
model = "Xilinx ZC702 board";
|
2012-10-31 12:24:48 -06:00
|
|
|
compatible = "xlnx,zynq-zc702", "xlnx,zynq-7000";
|
|
|
|
|
2015-01-15 14:12:46 +01:00
|
|
|
aliases {
|
|
|
|
ethernet0 = &gem0;
|
|
|
|
i2c0 = &i2c0;
|
|
|
|
serial0 = &uart1;
|
2024-12-11 13:41:32 +01:00
|
|
|
spi0 = &qspi;
|
2016-04-07 11:23:34 +02:00
|
|
|
mmc0 = &sdhci0;
|
2024-12-11 13:41:28 +01:00
|
|
|
nvmem0 = &eeprom;
|
2024-12-11 13:41:29 +01:00
|
|
|
rtc0 = &rtc;
|
2015-01-15 14:12:46 +01:00
|
|
|
};
|
|
|
|
|
2016-11-15 15:02:18 +01:00
|
|
|
memory@0 {
|
2012-10-31 12:24:48 -06:00
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x0 0x40000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
2016-02-16 09:49:27 +01:00
|
|
|
bootargs = "";
|
2015-02-11 13:06:36 +01:00
|
|
|
stdout-path = "serial0:115200n8";
|
2012-10-31 12:24:48 -06:00
|
|
|
};
|
|
|
|
|
2014-08-29 11:10:33 -07:00
|
|
|
gpio-keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
autorepeat;
|
2022-06-15 17:53:24 -07:00
|
|
|
switch-14 {
|
2014-08-29 11:10:33 -07:00
|
|
|
label = "sw14";
|
|
|
|
gpios = <&gpio0 12 0>;
|
|
|
|
linux,code = <108>; /* down */
|
2015-10-21 11:10:16 +01:00
|
|
|
wakeup-source;
|
2014-08-29 11:10:33 -07:00
|
|
|
autorepeat;
|
|
|
|
};
|
2022-06-15 17:53:24 -07:00
|
|
|
switch-13 {
|
2014-08-29 11:10:33 -07:00
|
|
|
label = "sw13";
|
|
|
|
gpios = <&gpio0 14 0>;
|
|
|
|
linux,code = <103>; /* up */
|
2015-10-21 11:10:16 +01:00
|
|
|
wakeup-source;
|
2014-08-29 11:10:33 -07:00
|
|
|
autorepeat;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-08-29 07:38:37 -07:00
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2020-11-26 14:25:02 +01:00
|
|
|
led-ds23 {
|
2014-08-29 07:38:37 -07:00
|
|
|
label = "ds23";
|
|
|
|
gpios = <&gpio0 10 0>;
|
|
|
|
linux,default-trigger = "heartbeat";
|
|
|
|
};
|
|
|
|
};
|
2014-12-02 08:07:11 -08:00
|
|
|
|
|
|
|
usb_phy0: phy0 {
|
|
|
|
compatible = "usb-nop-xceiv";
|
|
|
|
#phy-cells = <0>;
|
|
|
|
};
|
2015-02-12 10:59:17 +01:00
|
|
|
};
|
|
|
|
|
2014-07-23 15:03:03 +02:00
|
|
|
&can0 {
|
|
|
|
status = "okay";
|
2015-01-09 07:43:50 -08:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_can0_default>;
|
2014-07-23 15:03:03 +02:00
|
|
|
};
|
|
|
|
|
2014-12-01 10:25:49 +10:00
|
|
|
&clkc {
|
|
|
|
ps-clk-frequency = <33333333>;
|
|
|
|
};
|
|
|
|
|
2013-12-11 09:29:49 -08:00
|
|
|
&gem0 {
|
|
|
|
status = "okay";
|
2014-08-20 08:56:57 -07:00
|
|
|
phy-mode = "rgmii-id";
|
2014-08-20 08:56:59 -07:00
|
|
|
phy-handle = <ðernet_phy>;
|
2015-01-09 07:43:50 -08:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_gem0_default>;
|
2014-08-20 08:56:59 -07:00
|
|
|
|
|
|
|
ethernet_phy: ethernet-phy@7 {
|
|
|
|
reg = <7>;
|
|
|
|
};
|
2013-12-11 09:29:49 -08:00
|
|
|
};
|
|
|
|
|
2015-01-09 07:43:50 -08:00
|
|
|
&gpio0 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_gpio0_default>;
|
|
|
|
};
|
|
|
|
|
2014-04-04 14:27:56 -07:00
|
|
|
&i2c0 {
|
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <400000>;
|
2023-05-02 15:52:41 +02:00
|
|
|
pinctrl-names = "default", "gpio";
|
2015-01-09 07:43:50 -08:00
|
|
|
pinctrl-0 = <&pinctrl_i2c0_default>;
|
2023-05-02 15:52:41 +02:00
|
|
|
pinctrl-1 = <&pinctrl_i2c0_gpio>;
|
|
|
|
scl-gpios = <&gpio0 50 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
|
|
|
|
sda-gpios = <&gpio0 51 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
|
2014-04-04 14:27:56 -07:00
|
|
|
|
2018-02-06 14:00:30 +01:00
|
|
|
i2c-mux@74 {
|
2014-04-04 14:27:56 -07:00
|
|
|
compatible = "nxp,pca9548";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x74>;
|
|
|
|
|
|
|
|
i2c@0 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0>;
|
|
|
|
si570: clock-generator@5d {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "silabs,si570";
|
|
|
|
temperature-stability = <50>;
|
|
|
|
reg = <0x5d>;
|
|
|
|
factory-fout = <156250000>;
|
|
|
|
clock-frequency = <148500000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-11-12 15:53:35 -08:00
|
|
|
i2c@1 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <1>;
|
|
|
|
adv7511: hdmi-tx@39 {
|
|
|
|
compatible = "adi,adv7511";
|
|
|
|
reg = <0x39>;
|
|
|
|
adi,input-depth = <8>;
|
|
|
|
adi,input-colorspace = "yuv422";
|
|
|
|
adi,input-clock = "1x";
|
|
|
|
adi,input-style = <3>;
|
|
|
|
adi,input-justification = "right";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-04-04 14:27:56 -07:00
|
|
|
i2c@2 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <2>;
|
2024-12-11 13:41:28 +01:00
|
|
|
eeprom: eeprom@54 {
|
2017-06-15 20:54:12 +02:00
|
|
|
compatible = "atmel,24c08";
|
2014-04-04 14:27:56 -07:00
|
|
|
reg = <0x54>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c@3 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <3>;
|
|
|
|
gpio@21 {
|
|
|
|
compatible = "ti,tca6416";
|
|
|
|
reg = <0x21>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c@4 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <4>;
|
2024-12-11 13:41:29 +01:00
|
|
|
rtc: rtc@51 {
|
2014-04-04 14:27:56 -07:00
|
|
|
compatible = "nxp,pcf8563";
|
|
|
|
reg = <0x51>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c@7 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <7>;
|
2018-09-13 13:12:39 -05:00
|
|
|
hwmon@34 {
|
2014-04-04 14:27:56 -07:00
|
|
|
compatible = "ti,ucd9248";
|
2018-09-13 13:12:39 -05:00
|
|
|
reg = <0x34>;
|
2014-04-04 14:27:56 -07:00
|
|
|
};
|
2018-09-13 13:12:39 -05:00
|
|
|
hwmon@35 {
|
2014-04-04 14:27:56 -07:00
|
|
|
compatible = "ti,ucd9248";
|
2018-09-13 13:12:39 -05:00
|
|
|
reg = <0x35>;
|
2014-04-04 14:27:56 -07:00
|
|
|
};
|
2018-09-13 13:12:39 -05:00
|
|
|
hwmon@36 {
|
2014-04-04 14:27:56 -07:00
|
|
|
compatible = "ti,ucd9248";
|
2018-09-13 13:12:39 -05:00
|
|
|
reg = <0x36>;
|
2014-04-04 14:27:56 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-01-09 07:43:50 -08:00
|
|
|
&pinctrl0 {
|
|
|
|
pinctrl_can0_default: can0-default {
|
|
|
|
mux {
|
|
|
|
function = "can0";
|
|
|
|
groups = "can0_9_grp";
|
|
|
|
};
|
|
|
|
|
|
|
|
conf {
|
|
|
|
groups = "can0_9_grp";
|
|
|
|
slew-rate = <0>;
|
2024-12-11 13:41:20 +01:00
|
|
|
power-source = <1>;
|
2015-01-09 07:43:50 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
conf-rx {
|
|
|
|
pins = "MIO46";
|
|
|
|
bias-high-impedance;
|
|
|
|
};
|
|
|
|
|
|
|
|
conf-tx {
|
|
|
|
pins = "MIO47";
|
|
|
|
bias-disable;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
pinctrl_gem0_default: gem0-default {
|
|
|
|
mux {
|
|
|
|
function = "ethernet0";
|
|
|
|
groups = "ethernet0_0_grp";
|
|
|
|
};
|
|
|
|
|
|
|
|
conf {
|
|
|
|
groups = "ethernet0_0_grp";
|
|
|
|
slew-rate = <0>;
|
2024-12-11 13:41:20 +01:00
|
|
|
power-source = <4>;
|
2015-01-09 07:43:50 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
conf-rx {
|
|
|
|
pins = "MIO22", "MIO23", "MIO24", "MIO25", "MIO26", "MIO27";
|
|
|
|
bias-high-impedance;
|
|
|
|
low-power-disable;
|
|
|
|
};
|
|
|
|
|
|
|
|
conf-tx {
|
|
|
|
pins = "MIO16", "MIO17", "MIO18", "MIO19", "MIO20", "MIO21";
|
|
|
|
bias-disable;
|
|
|
|
low-power-enable;
|
|
|
|
};
|
|
|
|
|
|
|
|
mux-mdio {
|
|
|
|
function = "mdio0";
|
|
|
|
groups = "mdio0_0_grp";
|
|
|
|
};
|
|
|
|
|
|
|
|
conf-mdio {
|
|
|
|
groups = "mdio0_0_grp";
|
|
|
|
slew-rate = <0>;
|
2024-12-11 13:41:20 +01:00
|
|
|
power-source = <1>;
|
2015-01-09 07:43:50 -08:00
|
|
|
bias-disable;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
pinctrl_gpio0_default: gpio0-default {
|
|
|
|
mux {
|
|
|
|
function = "gpio0";
|
|
|
|
groups = "gpio0_7_grp", "gpio0_8_grp", "gpio0_9_grp",
|
|
|
|
"gpio0_10_grp", "gpio0_11_grp", "gpio0_12_grp",
|
|
|
|
"gpio0_13_grp", "gpio0_14_grp";
|
|
|
|
};
|
|
|
|
|
|
|
|
conf {
|
|
|
|
groups = "gpio0_7_grp", "gpio0_8_grp", "gpio0_9_grp",
|
|
|
|
"gpio0_10_grp", "gpio0_11_grp", "gpio0_12_grp",
|
|
|
|
"gpio0_13_grp", "gpio0_14_grp";
|
|
|
|
slew-rate = <0>;
|
2024-12-11 13:41:20 +01:00
|
|
|
power-source = <1>;
|
2015-01-09 07:43:50 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
conf-pull-up {
|
|
|
|
pins = "MIO9", "MIO10", "MIO11", "MIO12", "MIO13", "MIO14";
|
|
|
|
bias-pull-up;
|
|
|
|
};
|
|
|
|
|
|
|
|
conf-pull-none {
|
|
|
|
pins = "MIO7", "MIO8";
|
|
|
|
bias-disable;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
pinctrl_i2c0_default: i2c0-default {
|
|
|
|
mux {
|
|
|
|
groups = "i2c0_10_grp";
|
|
|
|
function = "i2c0";
|
|
|
|
};
|
|
|
|
|
|
|
|
conf {
|
|
|
|
groups = "i2c0_10_grp";
|
|
|
|
bias-pull-up;
|
|
|
|
slew-rate = <0>;
|
2024-12-11 13:41:20 +01:00
|
|
|
power-source = <1>;
|
2015-01-09 07:43:50 -08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-12-11 13:41:30 +01:00
|
|
|
pinctrl_i2c0_gpio: i2c0-gpio-grp {
|
2023-05-02 15:52:41 +02:00
|
|
|
mux {
|
|
|
|
groups = "gpio0_50_grp", "gpio0_51_grp";
|
|
|
|
function = "gpio0";
|
|
|
|
};
|
|
|
|
|
|
|
|
conf {
|
|
|
|
groups = "gpio0_50_grp", "gpio0_51_grp";
|
|
|
|
slew-rate = <0>;
|
2024-12-11 13:41:20 +01:00
|
|
|
power-source = <1>;
|
2023-05-02 15:52:41 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-01-09 07:43:50 -08:00
|
|
|
pinctrl_sdhci0_default: sdhci0-default {
|
|
|
|
mux {
|
|
|
|
groups = "sdio0_2_grp";
|
|
|
|
function = "sdio0";
|
|
|
|
};
|
|
|
|
|
|
|
|
conf {
|
|
|
|
groups = "sdio0_2_grp";
|
|
|
|
slew-rate = <0>;
|
2024-12-11 13:41:20 +01:00
|
|
|
power-source = <1>;
|
2015-01-09 07:43:50 -08:00
|
|
|
bias-disable;
|
|
|
|
};
|
|
|
|
|
|
|
|
mux-cd {
|
|
|
|
groups = "gpio0_0_grp";
|
|
|
|
function = "sdio0_cd";
|
|
|
|
};
|
|
|
|
|
|
|
|
conf-cd {
|
|
|
|
groups = "gpio0_0_grp";
|
|
|
|
bias-high-impedance;
|
|
|
|
bias-pull-up;
|
|
|
|
slew-rate = <0>;
|
2024-12-11 13:41:20 +01:00
|
|
|
power-source = <1>;
|
2015-01-09 07:43:50 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
mux-wp {
|
|
|
|
groups = "gpio0_15_grp";
|
|
|
|
function = "sdio0_wp";
|
|
|
|
};
|
|
|
|
|
|
|
|
conf-wp {
|
|
|
|
groups = "gpio0_15_grp";
|
|
|
|
bias-high-impedance;
|
|
|
|
bias-pull-up;
|
|
|
|
slew-rate = <0>;
|
2024-12-11 13:41:20 +01:00
|
|
|
power-source = <1>;
|
2015-01-09 07:43:50 -08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
pinctrl_uart1_default: uart1-default {
|
|
|
|
mux {
|
|
|
|
groups = "uart1_10_grp";
|
|
|
|
function = "uart1";
|
|
|
|
};
|
|
|
|
|
|
|
|
conf {
|
|
|
|
groups = "uart1_10_grp";
|
|
|
|
slew-rate = <0>;
|
2024-12-11 13:41:20 +01:00
|
|
|
power-source = <1>;
|
2015-01-09 07:43:50 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
conf-rx {
|
|
|
|
pins = "MIO49";
|
|
|
|
bias-high-impedance;
|
|
|
|
};
|
|
|
|
|
|
|
|
conf-tx {
|
|
|
|
pins = "MIO48";
|
2015-01-26 11:49:55 -08:00
|
|
|
bias-disable;
|
2015-01-09 07:43:50 -08:00
|
|
|
};
|
|
|
|
};
|
2015-01-26 11:49:56 -08:00
|
|
|
|
|
|
|
pinctrl_usb0_default: usb0-default {
|
|
|
|
mux {
|
|
|
|
groups = "usb0_0_grp";
|
|
|
|
function = "usb0";
|
|
|
|
};
|
|
|
|
|
|
|
|
conf {
|
|
|
|
groups = "usb0_0_grp";
|
|
|
|
slew-rate = <0>;
|
2024-12-11 13:41:20 +01:00
|
|
|
power-source = <1>;
|
2015-01-26 11:49:56 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
conf-rx {
|
|
|
|
pins = "MIO29", "MIO31", "MIO36";
|
|
|
|
bias-high-impedance;
|
|
|
|
};
|
|
|
|
|
|
|
|
conf-tx {
|
|
|
|
pins = "MIO28", "MIO30", "MIO32", "MIO33", "MIO34",
|
|
|
|
"MIO35", "MIO37", "MIO38", "MIO39";
|
|
|
|
bias-disable;
|
|
|
|
};
|
|
|
|
};
|
2015-01-09 07:43:50 -08:00
|
|
|
};
|
|
|
|
|
2024-12-11 13:41:32 +01:00
|
|
|
&qspi {
|
|
|
|
bootph-all;
|
|
|
|
status = "okay";
|
|
|
|
num-cs = <1>;
|
|
|
|
flash@0 {
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0x0>;
|
|
|
|
spi-tx-bus-width = <1>;
|
|
|
|
spi-rx-bus-width = <4>;
|
|
|
|
spi-max-frequency = <50000000>;
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
partition@0 {
|
|
|
|
label = "qspi-fsbl-uboot";
|
|
|
|
reg = <0x0 0x100000>;
|
|
|
|
};
|
|
|
|
partition@100000 {
|
|
|
|
label = "qspi-linux";
|
|
|
|
reg = <0x100000 0x500000>;
|
|
|
|
};
|
|
|
|
partition@600000 {
|
|
|
|
label = "qspi-device-tree";
|
|
|
|
reg = <0x600000 0x20000>;
|
|
|
|
};
|
|
|
|
partition@620000 {
|
|
|
|
label = "qspi-rootfs";
|
|
|
|
reg = <0x620000 0x5e0000>;
|
|
|
|
};
|
|
|
|
partition@c00000 {
|
|
|
|
label = "qspi-bitstream";
|
|
|
|
reg = <0xc00000 0x400000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2013-12-02 10:02:37 -08:00
|
|
|
&sdhci0 {
|
2024-12-11 13:41:23 +01:00
|
|
|
bootph-all;
|
2013-12-02 10:02:37 -08:00
|
|
|
status = "okay";
|
2015-01-09 07:43:50 -08:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_sdhci0_default>;
|
2013-12-02 10:02:37 -08:00
|
|
|
};
|
|
|
|
|
2013-06-13 09:37:16 -07:00
|
|
|
&uart1 {
|
2024-12-11 13:41:23 +01:00
|
|
|
bootph-all;
|
2013-06-13 09:37:16 -07:00
|
|
|
status = "okay";
|
2015-01-09 07:43:50 -08:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_uart1_default>;
|
2013-06-13 09:37:16 -07:00
|
|
|
};
|
2014-12-02 08:07:11 -08:00
|
|
|
|
|
|
|
&usb0 {
|
|
|
|
status = "okay";
|
|
|
|
dr_mode = "host";
|
|
|
|
usb-phy = <&usb_phy0>;
|
2015-01-26 11:49:56 -08:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_usb0_default>;
|
2014-12-02 08:07:11 -08:00
|
|
|
};
|