Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  *  Copyright (C) 2011 - 2014 Xilinx
0004  *  Copyright (C) 2012 National Instruments Corp.
0005  */
0006 /dts-v1/;
0007 #include "zynq-7000.dtsi"
0008 
0009 / {
0010         model = "Xilinx ZC702 board";
0011         compatible = "xlnx,zynq-zc702", "xlnx,zynq-7000";
0012 
0013         aliases {
0014                 ethernet0 = &gem0;
0015                 i2c0 = &i2c0;
0016                 serial0 = &uart1;
0017                 mmc0 = &sdhci0;
0018         };
0019 
0020         memory@0 {
0021                 device_type = "memory";
0022                 reg = <0x0 0x40000000>;
0023         };
0024 
0025         chosen {
0026                 bootargs = "";
0027                 stdout-path = "serial0:115200n8";
0028         };
0029 
0030         gpio-keys {
0031                 compatible = "gpio-keys";
0032                 autorepeat;
0033                 switch-14 {
0034                         label = "sw14";
0035                         gpios = <&gpio0 12 0>;
0036                         linux,code = <108>; /* down */
0037                         wakeup-source;
0038                         autorepeat;
0039                 };
0040                 switch-13 {
0041                         label = "sw13";
0042                         gpios = <&gpio0 14 0>;
0043                         linux,code = <103>; /* up */
0044                         wakeup-source;
0045                         autorepeat;
0046                 };
0047         };
0048 
0049         leds {
0050                 compatible = "gpio-leds";
0051 
0052                 led-ds23 {
0053                         label = "ds23";
0054                         gpios = <&gpio0 10 0>;
0055                         linux,default-trigger = "heartbeat";
0056                 };
0057         };
0058 
0059         usb_phy0: phy0 {
0060                 compatible = "usb-nop-xceiv";
0061                 #phy-cells = <0>;
0062         };
0063 };
0064 
0065 &amba {
0066         ocm: sram@fffc0000 {
0067                 compatible = "mmio-sram";
0068                 reg = <0xfffc0000 0x10000>;
0069                 #address-cells = <1>;
0070                 #size-cells = <1>;
0071                 ranges = <0 0xfffc0000 0x10000>;
0072                 ocm-sram@0 {
0073                         reg = <0x0 0x10000>;
0074                 };
0075         };
0076 };
0077 
0078 &can0 {
0079         status = "okay";
0080         pinctrl-names = "default";
0081         pinctrl-0 = <&pinctrl_can0_default>;
0082 };
0083 
0084 &clkc {
0085         ps-clk-frequency = <33333333>;
0086 };
0087 
0088 &gem0 {
0089         status = "okay";
0090         phy-mode = "rgmii-id";
0091         phy-handle = <&ethernet_phy>;
0092         pinctrl-names = "default";
0093         pinctrl-0 = <&pinctrl_gem0_default>;
0094 
0095         ethernet_phy: ethernet-phy@7 {
0096                 reg = <7>;
0097                 device_type = "ethernet-phy";
0098         };
0099 };
0100 
0101 &gpio0 {
0102         pinctrl-names = "default";
0103         pinctrl-0 = <&pinctrl_gpio0_default>;
0104 };
0105 
0106 &i2c0 {
0107         status = "okay";
0108         clock-frequency = <400000>;
0109         pinctrl-names = "default";
0110         pinctrl-0 = <&pinctrl_i2c0_default>;
0111 
0112         i2c-mux@74 {
0113                 compatible = "nxp,pca9548";
0114                 #address-cells = <1>;
0115                 #size-cells = <0>;
0116                 reg = <0x74>;
0117 
0118                 i2c@0 {
0119                         #address-cells = <1>;
0120                         #size-cells = <0>;
0121                         reg = <0>;
0122                         si570: clock-generator@5d {
0123                                 #clock-cells = <0>;
0124                                 compatible = "silabs,si570";
0125                                 temperature-stability = <50>;
0126                                 reg = <0x5d>;
0127                                 factory-fout = <156250000>;
0128                                 clock-frequency = <148500000>;
0129                         };
0130                 };
0131 
0132                 i2c@1 {
0133                         #address-cells = <1>;
0134                         #size-cells = <0>;
0135                         reg = <1>;
0136                         adv7511: hdmi-tx@39 {
0137                                 compatible = "adi,adv7511";
0138                                 reg = <0x39>;
0139                                 adi,input-depth = <8>;
0140                                 adi,input-colorspace = "yuv422";
0141                                 adi,input-clock = "1x";
0142                                 adi,input-style = <3>;
0143                                 adi,input-justification = "right";
0144                         };
0145                 };
0146 
0147                 i2c@2 {
0148                         #address-cells = <1>;
0149                         #size-cells = <0>;
0150                         reg = <2>;
0151                         eeprom@54 {
0152                                 compatible = "atmel,24c08";
0153                                 reg = <0x54>;
0154                         };
0155                 };
0156 
0157                 i2c@3 {
0158                         #address-cells = <1>;
0159                         #size-cells = <0>;
0160                         reg = <3>;
0161                         gpio@21 {
0162                                 compatible = "ti,tca6416";
0163                                 reg = <0x21>;
0164                                 gpio-controller;
0165                                 #gpio-cells = <2>;
0166                         };
0167                 };
0168 
0169                 i2c@4 {
0170                         #address-cells = <1>;
0171                         #size-cells = <0>;
0172                         reg = <4>;
0173                         rtc@51 {
0174                                 compatible = "nxp,pcf8563";
0175                                 reg = <0x51>;
0176                         };
0177                 };
0178 
0179                 i2c@7 {
0180                         #address-cells = <1>;
0181                         #size-cells = <0>;
0182                         reg = <7>;
0183                         hwmon@34 {
0184                                 compatible = "ti,ucd9248";
0185                                 reg = <0x34>;
0186                         };
0187                         hwmon@35 {
0188                                 compatible = "ti,ucd9248";
0189                                 reg = <0x35>;
0190                         };
0191                         hwmon@36 {
0192                                 compatible = "ti,ucd9248";
0193                                 reg = <0x36>;
0194                         };
0195                 };
0196         };
0197 };
0198 
0199 &pinctrl0 {
0200         pinctrl_can0_default: can0-default {
0201                 mux {
0202                         function = "can0";
0203                         groups = "can0_9_grp";
0204                 };
0205 
0206                 conf {
0207                         groups = "can0_9_grp";
0208                         slew-rate = <0>;
0209                         io-standard = <1>;
0210                 };
0211 
0212                 conf-rx {
0213                         pins = "MIO46";
0214                         bias-high-impedance;
0215                 };
0216 
0217                 conf-tx {
0218                         pins = "MIO47";
0219                         bias-disable;
0220                 };
0221         };
0222 
0223         pinctrl_gem0_default: gem0-default {
0224                 mux {
0225                         function = "ethernet0";
0226                         groups = "ethernet0_0_grp";
0227                 };
0228 
0229                 conf {
0230                         groups = "ethernet0_0_grp";
0231                         slew-rate = <0>;
0232                         io-standard = <4>;
0233                 };
0234 
0235                 conf-rx {
0236                         pins = "MIO22", "MIO23", "MIO24", "MIO25", "MIO26", "MIO27";
0237                         bias-high-impedance;
0238                         low-power-disable;
0239                 };
0240 
0241                 conf-tx {
0242                         pins = "MIO16", "MIO17", "MIO18", "MIO19", "MIO20", "MIO21";
0243                         bias-disable;
0244                         low-power-enable;
0245                 };
0246 
0247                 mux-mdio {
0248                         function = "mdio0";
0249                         groups = "mdio0_0_grp";
0250                 };
0251 
0252                 conf-mdio {
0253                         groups = "mdio0_0_grp";
0254                         slew-rate = <0>;
0255                         io-standard = <1>;
0256                         bias-disable;
0257                 };
0258         };
0259 
0260         pinctrl_gpio0_default: gpio0-default {
0261                 mux {
0262                         function = "gpio0";
0263                         groups = "gpio0_7_grp", "gpio0_8_grp", "gpio0_9_grp",
0264                                  "gpio0_10_grp", "gpio0_11_grp", "gpio0_12_grp",
0265                                  "gpio0_13_grp", "gpio0_14_grp";
0266                 };
0267 
0268                 conf {
0269                         groups = "gpio0_7_grp", "gpio0_8_grp", "gpio0_9_grp",
0270                                  "gpio0_10_grp", "gpio0_11_grp", "gpio0_12_grp",
0271                                  "gpio0_13_grp", "gpio0_14_grp";
0272                         slew-rate = <0>;
0273                         io-standard = <1>;
0274                 };
0275 
0276                 conf-pull-up {
0277                         pins = "MIO9", "MIO10", "MIO11", "MIO12", "MIO13", "MIO14";
0278                         bias-pull-up;
0279                 };
0280 
0281                 conf-pull-none {
0282                         pins = "MIO7", "MIO8";
0283                         bias-disable;
0284                 };
0285         };
0286 
0287         pinctrl_i2c0_default: i2c0-default {
0288                 mux {
0289                         groups = "i2c0_10_grp";
0290                         function = "i2c0";
0291                 };
0292 
0293                 conf {
0294                         groups = "i2c0_10_grp";
0295                         bias-pull-up;
0296                         slew-rate = <0>;
0297                         io-standard = <1>;
0298                 };
0299         };
0300 
0301         pinctrl_sdhci0_default: sdhci0-default {
0302                 mux {
0303                         groups = "sdio0_2_grp";
0304                         function = "sdio0";
0305                 };
0306 
0307                 conf {
0308                         groups = "sdio0_2_grp";
0309                         slew-rate = <0>;
0310                         io-standard = <1>;
0311                         bias-disable;
0312                 };
0313 
0314                 mux-cd {
0315                         groups = "gpio0_0_grp";
0316                         function = "sdio0_cd";
0317                 };
0318 
0319                 conf-cd {
0320                         groups = "gpio0_0_grp";
0321                         bias-high-impedance;
0322                         bias-pull-up;
0323                         slew-rate = <0>;
0324                         io-standard = <1>;
0325                 };
0326 
0327                 mux-wp {
0328                         groups = "gpio0_15_grp";
0329                         function = "sdio0_wp";
0330                 };
0331 
0332                 conf-wp {
0333                         groups = "gpio0_15_grp";
0334                         bias-high-impedance;
0335                         bias-pull-up;
0336                         slew-rate = <0>;
0337                         io-standard = <1>;
0338                 };
0339         };
0340 
0341         pinctrl_uart1_default: uart1-default {
0342                 mux {
0343                         groups = "uart1_10_grp";
0344                         function = "uart1";
0345                 };
0346 
0347                 conf {
0348                         groups = "uart1_10_grp";
0349                         slew-rate = <0>;
0350                         io-standard = <1>;
0351                 };
0352 
0353                 conf-rx {
0354                         pins = "MIO49";
0355                         bias-high-impedance;
0356                 };
0357 
0358                 conf-tx {
0359                         pins = "MIO48";
0360                         bias-disable;
0361                 };
0362         };
0363 
0364         pinctrl_usb0_default: usb0-default {
0365                 mux {
0366                         groups = "usb0_0_grp";
0367                         function = "usb0";
0368                 };
0369 
0370                 conf {
0371                         groups = "usb0_0_grp";
0372                         slew-rate = <0>;
0373                         io-standard = <1>;
0374                 };
0375 
0376                 conf-rx {
0377                         pins = "MIO29", "MIO31", "MIO36";
0378                         bias-high-impedance;
0379                 };
0380 
0381                 conf-tx {
0382                         pins = "MIO28", "MIO30", "MIO32", "MIO33", "MIO34",
0383                                "MIO35", "MIO37", "MIO38", "MIO39";
0384                         bias-disable;
0385                 };
0386         };
0387 };
0388 
0389 &sdhci0 {
0390         status = "okay";
0391         pinctrl-names = "default";
0392         pinctrl-0 = <&pinctrl_sdhci0_default>;
0393 };
0394 
0395 &uart1 {
0396         status = "okay";
0397         pinctrl-names = "default";
0398         pinctrl-0 = <&pinctrl_uart1_default>;
0399 };
0400 
0401 &usb0 {
0402         status = "okay";
0403         dr_mode = "host";
0404         usb-phy = <&usb_phy0>;
0405         pinctrl-names = "default";
0406         pinctrl-0 = <&pinctrl_usb0_default>;
0407 };