]> Git Repo - J-u-boot.git/blobdiff - arch/arm/dts/k3-am654-r5-base-board.dts
arm: dts: k3-am654: remove duplicate wkup_i2c0
[J-u-boot.git] / arch / arm / dts / k3-am654-r5-base-board.dts
index 455698a93630aa366fe40192fea12d99fbd354ff..8c6cb147c821aa8cc2b971a0cb2fdda55727dfba 100644 (file)
@@ -1,11 +1,12 @@
 // SPDX-License-Identifier: GPL-2.0
 /*
- * Copyright (C) 2016-2018 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2016-2018 Texas Instruments Incorporated - https://www.ti.com/
  */
 
 /dts-v1/;
 
-#include "k3-am654.dtsi"
+#include "k3-am654-base-board.dts"
+#include "k3-am654-base-board-u-boot.dtsi"
 #include "k3-am654-base-board-ddr4-1600MTs.dtsi"
 #include "k3-am654-ddr.dtsi"
 
        model = "Texas Instruments AM654 R5 Base Board";
 
        aliases {
-               serial0 = &wkup_uart0;
-               serial1 = &mcu_uart0;
-               serial2 = &main_uart0;
-       };
-
-       chosen {
-               stdout-path = "serial2:115200n8";
-               tick-timer = &timer1;
-       };
-
-       aliases {
+               ethernet0 = &cpsw_port1;
                remoteproc0 = &sysctrler;
                remoteproc1 = &a53_0;
+               spi0 = &ospi0;
+               spi1 = &ospi1;
+               usb0 = &usb0;
+               usb1 = &usb1;
        };
 
        a53_0: a53@0 {
                ti,sci = <&dmsc>;
                ti,sci-proc-id = <32>;
                ti,sci-host-id = <10>;
-               u-boot,dm-spl;
-       };
-
-       vtt_supply: vtt_supply {
-               compatible = "regulator-gpio";
-               regulator-name = "vtt";
-               regulator-min-microvolt = <0>;
-               regulator-max-microvolt = <3300000>;
-               gpios = <&wkup_gpio0 28 GPIO_ACTIVE_HIGH>;
-               states = <0 0x0 3300000 0x1>;
-               u-boot,dm-spl;
-       };
-};
-
-&cbass_main {
-       timer1: timer@40400000 {
-               compatible = "ti,omap5430-timer";
-               reg = <0x0 0x40400000 0x0 0x80>;
-               ti,timer-alwon;
-               clock-frequency = <25000000>;
-               u-boot,dm-pre-reloc;
+               bootph-pre-ram;
        };
 };
 
                      <0x0 0x2a480000 0x0 0x80000>;
                reg-names = "rt", "scfg", "target_data";
                #mbox-cells = <1>;
-               u-boot,dm-spl;
+               bootph-pre-ram;
        };
 };
 
-&wkup_gpio0 {
-       u-boot,dm-spl;
-};
-
 &cbass_wakeup {
        sysctrler: sysctrler {
                compatible = "ti,am654-system-controller";
                mboxes= <&mcu_secproxy 4>, <&mcu_secproxy 5>;
                mbox-names = "tx", "rx";
-               u-boot,dm-spl;
+               bootph-pre-ram;
        };
 
        clk_200mhz: dummy_clock {
                compatible = "fixed-clock";
                #clock-cells = <0>;
                clock-frequency = <200000000>;
-               u-boot,dm-spl;
+               bootph-pre-ram;
        };
 };
 
+/*
+ * timer init is called as part of rproc_start() while
+ * starting System Firmware, so any clock/power-domain
+ * operations will fail as SYSFW is not yet up and running.
+ * Delete all clock/power-domain properties to avoid
+ * timer init failure.
+ * This is an always on timer at 20MHz.
+ */
+&mcu_timer0 {
+       /delete-property/ clocks;
+       /delete-property/ assigned-clocks;
+       /delete-property/ assigned-clock-parents;
+       /delete-property/ power-domains;
+};
+
 &dmsc {
        mboxes= <&mcu_secproxy 8>, <&mcu_secproxy 6>, <&mcu_secproxy 5>;
        mbox-names = "tx", "rx", "notify";
 };
 
 &wkup_uart0 {
-       u-boot,dm-spl;
-       pinctrl-names = "default";
-       pinctrl-0 = <&wkup_uart0_pins_default>;
        status = "okay";
+       bootph-pre-ram;
 };
 
 &mcu_uart0 {
-       u-boot,dm-spl;
-       pinctrl-names = "default";
-       pinctrl-0 = <&mcu_uart0_pins_default>;
        clock-frequency = <48000000>;
        /delete-property/ power-domains;
        status = "okay";
-};
-
-&main_uart0 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&main_uart0_pins_default>;
-       power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
-       status = "okay";
+       bootph-pre-ram;
 };
 
 &wkup_vtm0 {
        compatible = "ti,am654-vtm", "ti,am654-avs";
        vdd-supply-3 = <&vdd_mpu>;
        vdd-supply-4 = <&vdd_mpu>;
-       u-boot,dm-spl;
 };
 
 &wkup_pmx0 {
-       u-boot,dm-spl;
-       wkup_uart0_pins_default: wkup_uart0_pins_default {
-               pinctrl-single,pins = <
-                       AM65X_WKUP_IOPAD(0x00a0, PIN_INPUT, 0)  /* (AB1) WKUP_UART0_RXD */
-                       AM65X_WKUP_IOPAD(0x00a4, PIN_OUTPUT, 0) /* (AB5) WKUP_UART0_TXD */
-                       AM65X_WKUP_IOPAD(0x00c8, PIN_INPUT, 1)  /* (AC2) WKUP_GPIO0_6.WKUP_UART0_CTSn */
-                       AM65X_WKUP_IOPAD(0x00cc, PIN_OUTPUT, 1) /* (AC1) WKUP_GPIO0_7.WKUP_UART0_RTSn */
-               >;
-               u-boot,dm-spl;
-       };
-
        wkup_vtt_pins_default: wkup_vtt_pins_default {
                pinctrl-single,pins = <
                        AM65X_WKUP_IOPAD(0x0040, PIN_OUTPUT_PULLUP, 7)  /* WKUP_GPIO0_28 */
                >;
-               u-boot,dm-spl;
-       };
-
-       mcu_uart0_pins_default: mcu_uart0_pins_default {
-               pinctrl-single,pins = <
-                       AM65X_WKUP_IOPAD(0x0044, PIN_INPUT, 4)  /* (P4) MCU_OSPI1_D1.MCU_UART0_RXD */
-                       AM65X_WKUP_IOPAD(0x0048, PIN_OUTPUT, 4) /* (P5) MCU_OSPI1_D2.MCU_UART0_TXD */
-                       AM65X_WKUP_IOPAD(0x004C, PIN_INPUT, 4)  /* (P1) MCU_OSPI1_D3.MCU_UART0_CTSn */
-                       AM65X_WKUP_IOPAD(0x0054, PIN_OUTPUT, 4) /* (N3) MCU_OSPI1_CSn1.MCU_UART0_RTSn */
-               >;
-               u-boot,dm-spl;
-       };
-
-       wkup_i2c0_pins_default: wkup-i2c0-pins-default {
-               pinctrl-single,pins = <
-                       AM65X_WKUP_IOPAD(0x00e0, PIN_INPUT, 0) /* (AC7) WKUP_I2C0_SCL */
-                       AM65X_WKUP_IOPAD(0x00e4, PIN_INPUT, 0) /* (AD6) WKUP_I2C0_SDA */
-               >;
        };
 
        mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-pins_default {
 };
 
 &main_pmx0 {
-       u-boot,dm-spl;
-       main_uart0_pins_default: main-uart0-pins-default {
-               pinctrl-single,pins = <
-                       AM65X_IOPAD(0x01e4, PIN_INPUT, 0)       /* (AF11) UART0_RXD */
-                       AM65X_IOPAD(0x01e8, PIN_OUTPUT, 0)      /* (AE11) UART0_TXD */
-                       AM65X_IOPAD(0x01ec, PIN_INPUT, 0)       /* (AG11) UART0_CTSn */
-                       AM65X_IOPAD(0x01f0, PIN_OUTPUT, 0)      /* (AD11) UART0_RTSn */
-               >;
-               u-boot,dm-spl;
-       };
-
-       main_mmc0_pins_default: main_mmc0_pins_default {
-               pinctrl-single,pins = <
-                       AM65X_IOPAD(0x01a8, PIN_INPUT_PULLDOWN, 0)      /* (B25) MMC0_CLK */
-                       AM65X_IOPAD(0x01aC, PIN_INPUT_PULLUP, 0)        /* (B27) MMC0_CMD */
-                       AM65X_IOPAD(0x01a4, PIN_INPUT_PULLUP, 0)        /* (A26) MMC0_DAT0 */
-                       AM65X_IOPAD(0x01a0, PIN_INPUT_PULLUP, 0)        /* (E25) MMC0_DAT1 */
-                       AM65X_IOPAD(0x019c, PIN_INPUT_PULLUP, 0)        /* (C26) MMC0_DAT2 */
-                       AM65X_IOPAD(0x0198, PIN_INPUT_PULLUP, 0)        /* (A25) MMC0_DAT3 */
-                       AM65X_IOPAD(0x0194, PIN_INPUT_PULLUP, 0)        /* (E24) MMC0_DAT4 */
-                       AM65X_IOPAD(0x0190, PIN_INPUT_PULLUP, 0)        /* (A24) MMC0_DAT5 */
-                       AM65X_IOPAD(0x018c, PIN_INPUT_PULLUP, 0)        /* (B26) MMC0_DAT6 */
-                       AM65X_IOPAD(0x0188, PIN_INPUT_PULLUP, 0)        /* (D25) MMC0_DAT7 */
-                       AM65X_IOPAD(0x01b0, PIN_INPUT, 0)               /* (C25) MMC0_DS */
-               >;
-               u-boot,dm-spl;
-       };
-
-       main_mmc1_pins_default: main_mmc1_pins_default {
+       usb0_pins_default: usb0_pins_default {
                pinctrl-single,pins = <
-                       AM65X_IOPAD(0x02d4, PIN_INPUT_PULLDOWN, 0)      /* (C27) MMC1_CLK */
-                       AM65X_IOPAD(0x02d8, PIN_INPUT_PULLUP, 0)        /* (C28) MMC1_CMD */
-                       AM65X_IOPAD(0x02d0, PIN_INPUT_PULLUP, 0)        /* (D28) MMC1_DAT0 */
-                       AM65X_IOPAD(0x02cc, PIN_INPUT_PULLUP, 0)        /* (E27) MMC1_DAT1 */
-                       AM65X_IOPAD(0x02c8, PIN_INPUT_PULLUP, 0)        /* (D26) MMC1_DAT2 */
-                       AM65X_IOPAD(0x02c4, PIN_INPUT_PULLUP, 0)        /* (D27) MMC1_DAT3 */
-                       AM65X_IOPAD(0x02dc, PIN_INPUT_PULLUP, 0)        /* (B24) MMC1_SDCD */
-                       AM65X_IOPAD(0x02e0, PIN_INPUT, 0)               /* (C24) MMC1_SDWP */
+                       AM65X_IOPAD(0x02bc, PIN_OUTPUT, 0) /* (AD9) USB0_DRVVBUS */
                >;
-               u-boot,dm-spl;
        };
 };
 
        pinctrl-0 = <&wkup_vtt_pins_default>;
 };
 
+/*
+ * MMC is probed to pull in firmware, so any clock
+ * or power-domain operation will fail as we do not
+ * have the firmware running at this point. Delete the
+ * power-domain properties to avoid making calls to
+ * SYSFW before it is loaded. Public ROM has already
+ * set it up for us anyway.
+ */
 &sdhci0 {
        clock-names = "clk_xin";
        clocks = <&clk_200mhz>;
-       pinctrl-0 = <&main_mmc0_pins_default>;
        /delete-property/ power-domains;
-       ti,driver-strength-ohm = <50>;
 };
 
+/*
+ * MMC is probed to pull in firmware, so any clock
+ * or power-domain operation will fail as we do not
+ * have the firmware running at this point. Delete the
+ * power-domain properties to avoid making calls to
+ * SYSFW before it is loaded. Public ROM has already
+ * set it up for us anyway.
+ */
 &sdhci1 {
        clock-names = "clk_xin";
        clocks = <&clk_200mhz>;
-       pinctrl-0 = <&main_mmc1_pins_default>;
        /delete-property/ power-domains;
-       ti,driver-strength-ohm = <50>;
-};
-
-&wkup_i2c0 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&wkup_i2c0_pins_default>;
-       clock-frequency = <400000>;
-       u-boot,dm-spl;
-
-       vdd_mpu: tps62363@60 {
-               compatible = "ti,tps62363";
-               reg = <0x60>;
-               regulator-name = "VDD_MPU";
-               regulator-min-microvolt = <500000>;
-               regulator-max-microvolt = <1770000>;
-               regulator-always-on;
-               regulator-boot-on;
-               ti,vsel0-state-high;
-               ti,vsel1-state-high;
-               u-boot,dm-spl;
-       };
 };
 
 &ospi0 {
        pinctrl-names = "default";
        pinctrl-0 = <&mcu_fss0_ospi0_pins_default>;
+       bootph-pre-ram;
 
        reg = <0x0 0x47040000 0x0 0x100>,
              <0x0 0x50000000 0x0 0x8000000>;
 };
 
 &main_pmx0 {
-       u-boot,dm-spl;
        usb0_pins_default: usb0_pins_default {
                pinctrl-single,pins = <
                        AM65X_IOPAD(0x02bc, PIN_OUTPUT, 0) /* (AD9) USB0_DRVVBUS */
                >;
-               u-boot,dm-spl;
        };
 };
 
 &dwc3_0 {
        status = "okay";
-       u-boot,dm-spl;
        /delete-property/ clocks;
        /delete-property/ power-domains;
        /delete-property/ assigned-clocks;
 
 &usb0_phy {
        status = "okay";
-       u-boot,dm-spl;
        /delete-property/ clocks;
 };
 
        pinctrl-names = "default";
        pinctrl-0 = <&usb0_pins_default>;
        dr_mode = "peripheral";
-       u-boot,dm-spl;
 };
 
-&scm_conf {
-       u-boot,dm-spl;
+&davinci_mdio {
+       phy0: ethernet-phy@0 {
+               reg = <0>;
+               /* TODO: phy reset: TCA9555RTWR(i2c:0x21)[p04].GPIO_MCU_RGMII_RSTN */
+               ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
+               ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
+       };
+};
+
+&mcu_cpsw {
+       reg = <0x0 0x46000000 0x0 0x200000>,
+             <0x0 0x40f00200 0x0 0x2>;
+       reg-names = "cpsw_nuss", "mac_efuse";
+       /delete-property/ ranges;
+
+       cpsw-phy-sel@40f04040 {
+               compatible = "ti,am654-cpsw-phy-sel";
+               reg= <0x0 0x40f04040 0x0 0x4>;
+               reg-names = "gmii-sel";
+       };
+};
+
+&usb1 {
+       dr_mode = "peripheral";
 };
This page took 0.044671 seconds and 4 git commands to generate.