diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts 2020-06-17 16:25:34.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts 2020-06-30 11:33:39.499229610 +0200 @@ -82,25 +82,6 @@ clock-frequency = <1083801600>; }; - sound0: sound@0 { - compatible = "ti,j721e-cpb-audio"; - ti,model = "j721e-cpb-analog"; - - ti,cpb-mcasp = <&mcasp10>; - ti,cpb-codec = <&pcm3168a_1>; - - clocks = <&pll4>, <&pll15>, - <&k3_clks 184 1>, - <&k3_clks 184 2>, <&k3_clks 184 4>, - <&k3_clks 157 371>, - <&k3_clks 157 400>, <&k3_clks 157 401>; - clock-names = "pll4", "pll15", - "cpb-mcasp", - "cpb-mcasp-48000", "cpb-mcasp-44100", - "audio-refclk2", - "audio-refclk2-48000", "audio-refclk2-44100"; - }; - vdd_mmc1: fixedregulator-sd { compatible = "regulator-fixed"; regulator-name = "vdd_mmc1"; @@ -124,6 +105,7 @@ gpios = <&main_gpio0 117 GPIO_ACTIVE_HIGH>; states = <1800000 0x0 3300000 0x1>; + status ="disabled"; }; cpsw9g_virt_mac: main_r5fss_cpsw9g_virt_mac0 { @@ -151,16 +133,16 @@ }; }; - dp0: connector { - compatible = "dp-connector"; - label = "DP0"; - - port { - dp_connector_in: endpoint { - remote-endpoint = <&dp_bridge_output>; - }; - }; - }; +// dp0: connector { +// compatible = "dp-connector"; +// label = "DP0"; + +// port { +// dp_connector_in: endpoint { +// remote-endpoint = <&dp_bridge_output>; +// }; +// }; +// }; }; &main_pmx0 { @@ -169,12 +151,22 @@ J721E_IOPAD(0x0, PIN_INPUT, 7) /* (AC18) EXTINTn.GPIO0_0 */ >; }; - - dp0_pins_default: dp0_pins_default { - pinctrl-single,pins = < - J721E_IOPAD(0x1c4, PIN_INPUT, 5) /* SPI0_CS1.DP0_HPD */ - >; - }; + +myspi1_pins_default: myspi1_pins_default { + pinctrl-single,pins = < + J721E_IOPAD(0x1c8, PIN_OUTPUT, 0) /* (AA1) SPI0_CLK */ + J721E_IOPAD(0x1c4, PIN_OUTPUT, 0) /* (Y4) SPI0_CS1 */ + J721E_IOPAD(0x1cc, PIN_INPUT, 0) /* (AB5) SPI0_D0 */ + J721E_IOPAD(0x1d0, PIN_OUTPUT, 0) /* (AA3) SPI0_D1 */ + >; + }; +}; + +// dp0_pins_default: dp0_pins_default { +// pinctrl-single,pins = < +// J721E_IOPAD(0x1c4, PIN_INPUT, 5) /* SPI0_CS1.DP0_HPD */ +// >; +// }; main_i2c1_exp4_pins_default: main-i2c1-exp4-pins-default { pinctrl-single,pins = < @@ -203,12 +195,12 @@ >; }; - main_i2c6_pins_default: main-i2c6-pins-default { - pinctrl-single,pins = < - J721E_IOPAD(0x1d0, PIN_INPUT_PULLUP, 2) /* (AA3) SPI0_D1.I2C6_SCL */ - J721E_IOPAD(0x1e4, PIN_INPUT_PULLUP, 2) /* (Y2) SPI1_D1.I2C6_SDA */ - >; - }; +// main_i2c6_pins_default: main-i2c6-pins-default { +// pinctrl-single,pins = < +// J721E_IOPAD(0x1d0, PIN_INPUT_PULLUP, 2) /* (AA3) SPI0_D1.I2C6_SCL */ +// J721E_IOPAD(0x1e4, PIN_INPUT_PULLUP, 2) /* (Y2) SPI1_D1.I2C6_SDA */ +// >; +// }; mcasp10_pins_default: mcasp10_pins_default { pinctrl-single,pins = < @@ -221,6 +213,7 @@ J721E_IOPAD(0x198, PIN_INPUT_PULLDOWN, 12) /* (V25) RGMII6_TD1.MCASP10_AXR4 */ J721E_IOPAD(0x19c, PIN_INPUT_PULLDOWN, 12) /* (W27) RGMII6_TD0.MCASP10_AXR5 */ J721E_IOPAD(0x1a0, PIN_INPUT_PULLDOWN, 12) /* (W29) RGMII6_TXC.MCASP10_AXR6 */ + J721E_IOPAD(0xc8, PIN_OUTPUT, 7) /* (AE26) PRG0_PRU0_GPO6.GPIO0_49 */ >; }; @@ -268,19 +261,23 @@ sw11_button_pins_default: sw11_button_pins_default { pinctrl-single,pins = < J721E_WKUP_IOPAD(0xcc, PIN_INPUT, 7) /* (G28) WKUP_GPIO0_7 */ + J721E_WKUP_IOPAD(0xc0, PIN_OUTPUT, 7) /* (G25) WKUP_GPIO0_4 */ >; }; mcu_fss0_ospi1_pins_default: mcu-fss0-ospi1-pins-default { pinctrl-single,pins = < - J721E_WKUP_IOPAD(0x34, PIN_OUTPUT, 0) /* (F22) MCU_OSPI1_CLK */ - J721E_WKUP_IOPAD(0x50, PIN_OUTPUT, 0) /* (C22) MCU_OSPI1_CSn0 */ - J721E_WKUP_IOPAD(0x40, PIN_INPUT, 0) /* (D22) MCU_OSPI1_D0 */ - J721E_WKUP_IOPAD(0x44, PIN_INPUT, 0) /* (G22) MCU_OSPI1_D1 */ - J721E_WKUP_IOPAD(0x48, PIN_INPUT, 0) /* (D23) MCU_OSPI1_D2 */ - J721E_WKUP_IOPAD(0x4c, PIN_INPUT, 0) /* (C23) MCU_OSPI1_D3 */ - J721E_WKUP_IOPAD(0x3c, PIN_INPUT, 0) /* (B23) MCU_OSPI1_DQS */ - J721E_WKUP_IOPAD(0x38, PIN_INPUT, 0) /* (A23) MCU_OSPI1_LBCLKO */ + J721E_WKUP_IOPAD(0x0, PIN_OUTPUT, 0) /* (E20) MCU_OSPI0_CLK */ + J721E_WKUP_IOPAD(0x2c, PIN_OUTPUT, 0) /* (F19) MCU_OSPI0_CSn0 */ + J721E_WKUP_IOPAD(0xc, PIN_INPUT, 0) /* (D20) MCU_OSPI0_D0 */ + J721E_WKUP_IOPAD(0x10, PIN_INPUT, 0) /* (G19) MCU_OSPI0_D1 */ + J721E_WKUP_IOPAD(0x14, PIN_INPUT, 0) /* (G20) MCU_OSPI0_D2 */ + J721E_WKUP_IOPAD(0x18, PIN_INPUT, 0) /* (F20) MCU_OSPI0_D3 */ + J721E_WKUP_IOPAD(0x1c, PIN_INPUT, 0) /* (F21) MCU_OSPI0_D4 */ + J721E_WKUP_IOPAD(0x20, PIN_INPUT, 0) /* (E21) MCU_OSPI0_D5 */ + J721E_WKUP_IOPAD(0x24, PIN_INPUT, 0) /* (B22) MCU_OSPI0_D6 */ + J721E_WKUP_IOPAD(0x28, PIN_INPUT, 0) /* (G21) MCU_OSPI0_D7 */ + J721E_WKUP_IOPAD(0x8, PIN_INPUT, 0) /* (D21) MCU_OSPI0_DQS */ >; }; }; @@ -298,7 +295,7 @@ J721E_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* MCU_RGMII1_RD2 */ J721E_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* MCU_RGMII1_RD1 */ J721E_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* MCU_RGMII1_RD0 */ - J721E_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* MCU_RGMII1_TXC */ + J721E_WKUP_IOPAD(0x0070, PIN_OUTPUT, 0) /* MCU_RGMII1_TXC */ J721E_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* MCU_RGMII1_RXC */ >; }; @@ -550,36 +547,36 @@ port@0 { reg = <0>; - dpi_out_real0: endpoint { - remote-endpoint = <&dp_bridge_input>; - }; - }; -}; - -&mhdp { - status = "ok"; - pinctrl-names = "default"; - pinctrl-0 = <&dp0_pins_default>; -}; - -&dp0_ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - dp_bridge_input: endpoint { - remote-endpoint = <&dpi_out_real0>; - }; - }; - - port@1 { - reg = <1>; - dp_bridge_output: endpoint { - remote-endpoint = <&dp_connector_in>; - }; - }; -}; +// dpi_out_real0: endpoint { +// remote-endpoint = <&dp_bridge_input>; +// }; +// }; +//}; + +//&mhdp { +// status = "ok"; +// pinctrl-names = "default"; +// pinctrl-0 = <&dp0_pins_default>; +}; + +//&dp0_ports { +// #address-cells = <1>; +// #size-cells = <0>; + +// port@0 { +// reg = <0>; +// dp_bridge_input: endpoint { +// remote-endpoint = <&dpi_out_real0>; +// }; +// }; + +// port@1 { +// reg = <1>; +// dp_bridge_output: endpoint { +// remote-endpoint = <&dp_connector_in>; +// }; +// }; +//}; &main_i2c0 { pinctrl-names = "default"; @@ -662,44 +659,44 @@ #gpio-cells = <2>; }; - pcm3168a_1: audio-codec@44 { - compatible = "ti,pcm3168a"; - reg = <0x44>; - - #sound-dai-cells = <1>; - - reset-gpios = <&exp3 0 GPIO_ACTIVE_LOW>; - - /* C_AUDIO_REFCLK2 -> RGMII6_RXC (W26) */ - clocks = <&k3_clks 157 371>; - clock-names = "scki"; - - /* HSDIV3_16FFT_MAIN_4_HSDIVOUT2_CLK -> REFCLK2 */ - assigned-clocks = <&k3_clks 157 371>; - assigned-clock-parents = <&k3_clks 157 400>; - assigned-clock-rates = <24576000>; /* for 48KHz */ - - VDD1-supply = <&vsys_3v3>; - VDD2-supply = <&vsys_3v3>; - VCCAD1-supply = <&vsys_5v0>; - VCCAD2-supply = <&vsys_5v0>; - VCCDA1-supply = <&vsys_5v0>; - VCCDA2-supply = <&vsys_5v0>; - }; -}; - -&main_i2c6 { - pinctrl-names = "default"; - pinctrl-0 = <&main_i2c6_pins_default>; - clock-frequency = <400000>; - - exp5: gpio@20 { - compatible = "ti,tca6408"; - reg = <0x20>; - gpio-controller; - #gpio-cells = <2>; - }; -}; +// pcm3168a_1: audio-codec@44 { +// compatible = "ti,pcm3168a"; +// reg = <0x44>; + +// #sound-dai-cells = <1>; + +// reset-gpios = <&exp3 0 GPIO_ACTIVE_LOW>; + +// /* C_AUDIO_REFCLK2 -> RGMII6_RXC (W26) */ +// clocks = <&k3_clks 157 371>; +// clock-names = "scki"; + +// /* HSDIV3_16FFT_MAIN_4_HSDIVOUT2_CLK -> REFCLK2 */ +// assigned-clocks = <&k3_clks 157 371>; +// assigned-clock-parents = <&k3_clks 157 400>; +// assigned-clock-rates = <24576000>; /* for 48KHz */ + +// VDD1-supply = <&vsys_3v3>; +// VDD2-supply = <&vsys_3v3>; +// VCCAD1-supply = <&vsys_5v0>; +// VCCAD2-supply = <&vsys_5v0>; +// VCCDA1-supply = <&vsys_5v0>; +// VCCDA2-supply = <&vsys_5v0>; +// }; +}; + +//&main_i2c6 { +// pinctrl-names = "default"; +// pinctrl-0 = <&main_i2c6_pins_default>; +// clock-frequency = <400000>; + +// exp5: gpio@20 { +// compatible = "ti,tca6408"; +// reg = <0x20>; +// gpio-controller; +// #gpio-cells = <2>; +// }; +//}; &mcasp10 { #sound-dai-cells = <0>; @@ -723,24 +720,24 @@ &mcu_cpsw { pinctrl-names = "default"; - pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>; - +// pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>; + pinctrl-0 = <&mcu_cpsw_pins_default>; cpts { ti,pps = <3 1>; }; }; -&davinci_mdio { - phy0: ethernet-phy@0 { - reg = <0>; - ti,rx-internal-delay = ; - ti,fifo-depth = ; - }; -}; +//&davinci_mdio { +// phy0: ethernet-phy@0 { +// reg = <0>; +// ti,rx-internal-delay = ; +// ti,fifo-depth = ; +// }; +//}; &cpsw_port1 { phy-mode = "rgmii-rxid"; - phy-handle = <&phy0>; +// phy-handle = <&phy0>; }; #define TS_OFFSET(pa, val) (0x4 + (pa) * 4) (0x10000 | val) @@ -766,11 +763,13 @@ &main_sdhci1 { /* SD/MMC */ - vmmc-supply = <&vdd_mmc1>; - vqmmc-supply = <&vdd_sd_dv_alt>; +// vmmc-supply = <&vdd_mmc1>; +// vqmmc-supply = <&vdd_sd_dv_alt>; pinctrl-names = "default"; pinctrl-0 = <&main_mmc1_pins_default>; + ti,driver-strength-ohm = <50>; disable-wp; + no-1-8-v; }; &main_sdhci2 { @@ -808,6 +807,18 @@ }; }; +&main_spi0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&myspi1_pins_default>; + ti,spi-num-cs = <2>; + spidev@0 { + spi-max-frequency = <24000000>; + reg = <1>; + compatible = "linux,spidev"; + }; +}; + &pcie0_rc { reset-gpios = <&exp1 6 GPIO_ACTIVE_HIGH>; phys = <&serdes0_pcie_link>; diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e.dtsi /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e.dtsi --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e.dtsi 2020-06-17 16:25:34.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e.dtsi 2020-06-30 11:38:11.885167725 +0200 @@ -141,15 +141,15 @@ <0x00 0x06400000 0x00 0x06400000 0x00 0x00400000>, /* USBSS1 */ <0x00 0x01000000 0x00 0x01000000 0x00 0x0af02400>, /* Most peripherals */ <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>, /* MAIN NAVSS */ - <0x00 0x0d000000 0x00 0x0d000000 0x00 0x01800000>, /* PCIe Core*/ - <0x00 0x0e000000 0x00 0x0e000000 0x00 0x01800000>, /* PCIe Core*/ - <0x00 0x10000000 0x00 0x10000000 0x00 0x10000000>, /* PCIe DAT */ +// <0x00 0x0d000000 0x00 0x0d000000 0x00 0x01800000>, /* PCIe Core*/ +// <0x00 0x0e000000 0x00 0x0e000000 0x00 0x01800000>, /* PCIe Core*/ +// <0x00 0x10000000 0x00 0x10000000 0x00 0x10000000>, /* PCIe DAT */ <0x00 0x64800000 0x00 0x64800000 0x00 0x00800000>, /* C71 */ - <0x44 0x00000000 0x44 0x00000000 0x00 0x08000000>, /* PCIe2 DAT */ - <0x44 0x10000000 0x44 0x10000000 0x00 0x08000000>, /* PCIe3 DAT */ +// <0x44 0x00000000 0x44 0x00000000 0x00 0x08000000>, /* PCIe2 DAT */ +// <0x44 0x10000000 0x44 0x10000000 0x00 0x08000000>, /* PCIe3 DAT */ <0x4d 0x80800000 0x4d 0x80800000 0x00 0x00800000>, /* C66_0 */ <0x4d 0x81800000 0x4d 0x81800000 0x00 0x00800000>, /* C66_1 */ - <0x4e 0x20000000 0x4e 0x20000000 0x00 0x00080000>, /* GPU */ +// <0x4e 0x20000000 0x4e 0x20000000 0x00 0x00080000>, /* GPU */ <0x00 0x70000000 0x00 0x70000000 0x00 0x00800000>, /* MSMC RAM */ /* MCUSS_WKUP Range */ diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi 2020-06-17 16:25:34.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi 2020-06-30 11:40:40.738189374 +0200 @@ -1264,6 +1264,16 @@ assigned-clocks = <&k3_clks 253 1>; assigned-clock-parents = <&k3_clks 253 5>; }; + + main_spi0: spi@2100000 { + compatible = "ti,am654-mcspi","ti,omap4-mcspi"; + reg = <0x0 0x2100000 0x0 0x400>; + interrupts = ; + clocks = <&k3_clks 266 1>; + power-domains = <&k3_pds 266 TI_SCI_PD_EXCLUSIVE>; + #address-cells = <1>; + #size-cells = <0>; + }; main_i2c0: i2c@2000000 { compatible = "ti,j721e-i2c", "ti,omap4-i2c"; diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi 2020-06-17 16:25:47.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi 2020-06-30 11:42:22.486876988 +0200 @@ -11,8 +11,10 @@ memory@80000000 { device_type = "memory"; /* 4G RAM */ - reg = <0x00000000 0x80000000 0x00000000 0x80000000>, - <0x00000008 0x80000000 0x00000000 0x80000000>; +// reg = <0x00000000 0x80000000 0x00000000 0x80000000>, +// <0x00000008 0x80000000 0x00000000 0x80000000>; + /* @dudichul: Changed to 1GB, one bank */ + reg = <0x00000000 0x40000000 0x00000000 0x40000000>; }; reserved_memory: reserved-memory { diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/configs/tisdk_j7-evm_defconfig /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/configs/tisdk_j7-evm_defconfig --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/configs/tisdk_j7-evm_defconfig 2020-06-17 16:27:24.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/configs/tisdk_j7-evm_defconfig 2020-06-30 11:47:43.605007296 +0200 @@ -2848,7 +2848,7 @@ # # SPI Protocol Masters # -# CONFIG_SPI_SPIDEV is not set +CONFIG_SPI_SPIDEV=y # CONFIG_SPI_LOOPBACK_TEST is not set # CONFIG_SPI_TLE62X0 is not set # CONFIG_SPI_SLAVE is not set diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/scripts/dtc/include-prefixes/arm64/ti/k3-j721e-common-proc-board.dts /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/scripts/dtc/include-prefixes/arm64/ti/k3-j721e-common-proc-board.dts --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/scripts/dtc/include-prefixes/arm64/ti/k3-j721e-common-proc-board.dts 2020-06-17 16:25:34.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/scripts/dtc/include-prefixes/arm64/ti/k3-j721e-common-proc-board.dts 2020-06-30 11:33:39.499229610 +0200 @@ -82,25 +82,6 @@ clock-frequency = <1083801600>; }; - sound0: sound@0 { - compatible = "ti,j721e-cpb-audio"; - ti,model = "j721e-cpb-analog"; - - ti,cpb-mcasp = <&mcasp10>; - ti,cpb-codec = <&pcm3168a_1>; - - clocks = <&pll4>, <&pll15>, - <&k3_clks 184 1>, - <&k3_clks 184 2>, <&k3_clks 184 4>, - <&k3_clks 157 371>, - <&k3_clks 157 400>, <&k3_clks 157 401>; - clock-names = "pll4", "pll15", - "cpb-mcasp", - "cpb-mcasp-48000", "cpb-mcasp-44100", - "audio-refclk2", - "audio-refclk2-48000", "audio-refclk2-44100"; - }; - vdd_mmc1: fixedregulator-sd { compatible = "regulator-fixed"; regulator-name = "vdd_mmc1"; @@ -124,6 +105,7 @@ gpios = <&main_gpio0 117 GPIO_ACTIVE_HIGH>; states = <1800000 0x0 3300000 0x1>; + status ="disabled"; }; cpsw9g_virt_mac: main_r5fss_cpsw9g_virt_mac0 { @@ -151,16 +133,16 @@ }; }; - dp0: connector { - compatible = "dp-connector"; - label = "DP0"; - - port { - dp_connector_in: endpoint { - remote-endpoint = <&dp_bridge_output>; - }; - }; - }; +// dp0: connector { +// compatible = "dp-connector"; +// label = "DP0"; + +// port { +// dp_connector_in: endpoint { +// remote-endpoint = <&dp_bridge_output>; +// }; +// }; +// }; }; &main_pmx0 { @@ -169,12 +151,22 @@ J721E_IOPAD(0x0, PIN_INPUT, 7) /* (AC18) EXTINTn.GPIO0_0 */ >; }; - - dp0_pins_default: dp0_pins_default { - pinctrl-single,pins = < - J721E_IOPAD(0x1c4, PIN_INPUT, 5) /* SPI0_CS1.DP0_HPD */ - >; - }; + +myspi1_pins_default: myspi1_pins_default { + pinctrl-single,pins = < + J721E_IOPAD(0x1c8, PIN_OUTPUT, 0) /* (AA1) SPI0_CLK */ + J721E_IOPAD(0x1c4, PIN_OUTPUT, 0) /* (Y4) SPI0_CS1 */ + J721E_IOPAD(0x1cc, PIN_INPUT, 0) /* (AB5) SPI0_D0 */ + J721E_IOPAD(0x1d0, PIN_OUTPUT, 0) /* (AA3) SPI0_D1 */ + >; + }; +}; + +// dp0_pins_default: dp0_pins_default { +// pinctrl-single,pins = < +// J721E_IOPAD(0x1c4, PIN_INPUT, 5) /* SPI0_CS1.DP0_HPD */ +// >; +// }; main_i2c1_exp4_pins_default: main-i2c1-exp4-pins-default { pinctrl-single,pins = < @@ -203,12 +195,12 @@ >; }; - main_i2c6_pins_default: main-i2c6-pins-default { - pinctrl-single,pins = < - J721E_IOPAD(0x1d0, PIN_INPUT_PULLUP, 2) /* (AA3) SPI0_D1.I2C6_SCL */ - J721E_IOPAD(0x1e4, PIN_INPUT_PULLUP, 2) /* (Y2) SPI1_D1.I2C6_SDA */ - >; - }; +// main_i2c6_pins_default: main-i2c6-pins-default { +// pinctrl-single,pins = < +// J721E_IOPAD(0x1d0, PIN_INPUT_PULLUP, 2) /* (AA3) SPI0_D1.I2C6_SCL */ +// J721E_IOPAD(0x1e4, PIN_INPUT_PULLUP, 2) /* (Y2) SPI1_D1.I2C6_SDA */ +// >; +// }; mcasp10_pins_default: mcasp10_pins_default { pinctrl-single,pins = < @@ -221,6 +213,7 @@ J721E_IOPAD(0x198, PIN_INPUT_PULLDOWN, 12) /* (V25) RGMII6_TD1.MCASP10_AXR4 */ J721E_IOPAD(0x19c, PIN_INPUT_PULLDOWN, 12) /* (W27) RGMII6_TD0.MCASP10_AXR5 */ J721E_IOPAD(0x1a0, PIN_INPUT_PULLDOWN, 12) /* (W29) RGMII6_TXC.MCASP10_AXR6 */ + J721E_IOPAD(0xc8, PIN_OUTPUT, 7) /* (AE26) PRG0_PRU0_GPO6.GPIO0_49 */ >; }; @@ -268,19 +261,23 @@ sw11_button_pins_default: sw11_button_pins_default { pinctrl-single,pins = < J721E_WKUP_IOPAD(0xcc, PIN_INPUT, 7) /* (G28) WKUP_GPIO0_7 */ + J721E_WKUP_IOPAD(0xc0, PIN_OUTPUT, 7) /* (G25) WKUP_GPIO0_4 */ >; }; mcu_fss0_ospi1_pins_default: mcu-fss0-ospi1-pins-default { pinctrl-single,pins = < - J721E_WKUP_IOPAD(0x34, PIN_OUTPUT, 0) /* (F22) MCU_OSPI1_CLK */ - J721E_WKUP_IOPAD(0x50, PIN_OUTPUT, 0) /* (C22) MCU_OSPI1_CSn0 */ - J721E_WKUP_IOPAD(0x40, PIN_INPUT, 0) /* (D22) MCU_OSPI1_D0 */ - J721E_WKUP_IOPAD(0x44, PIN_INPUT, 0) /* (G22) MCU_OSPI1_D1 */ - J721E_WKUP_IOPAD(0x48, PIN_INPUT, 0) /* (D23) MCU_OSPI1_D2 */ - J721E_WKUP_IOPAD(0x4c, PIN_INPUT, 0) /* (C23) MCU_OSPI1_D3 */ - J721E_WKUP_IOPAD(0x3c, PIN_INPUT, 0) /* (B23) MCU_OSPI1_DQS */ - J721E_WKUP_IOPAD(0x38, PIN_INPUT, 0) /* (A23) MCU_OSPI1_LBCLKO */ + J721E_WKUP_IOPAD(0x0, PIN_OUTPUT, 0) /* (E20) MCU_OSPI0_CLK */ + J721E_WKUP_IOPAD(0x2c, PIN_OUTPUT, 0) /* (F19) MCU_OSPI0_CSn0 */ + J721E_WKUP_IOPAD(0xc, PIN_INPUT, 0) /* (D20) MCU_OSPI0_D0 */ + J721E_WKUP_IOPAD(0x10, PIN_INPUT, 0) /* (G19) MCU_OSPI0_D1 */ + J721E_WKUP_IOPAD(0x14, PIN_INPUT, 0) /* (G20) MCU_OSPI0_D2 */ + J721E_WKUP_IOPAD(0x18, PIN_INPUT, 0) /* (F20) MCU_OSPI0_D3 */ + J721E_WKUP_IOPAD(0x1c, PIN_INPUT, 0) /* (F21) MCU_OSPI0_D4 */ + J721E_WKUP_IOPAD(0x20, PIN_INPUT, 0) /* (E21) MCU_OSPI0_D5 */ + J721E_WKUP_IOPAD(0x24, PIN_INPUT, 0) /* (B22) MCU_OSPI0_D6 */ + J721E_WKUP_IOPAD(0x28, PIN_INPUT, 0) /* (G21) MCU_OSPI0_D7 */ + J721E_WKUP_IOPAD(0x8, PIN_INPUT, 0) /* (D21) MCU_OSPI0_DQS */ >; }; }; @@ -298,7 +295,7 @@ J721E_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* MCU_RGMII1_RD2 */ J721E_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* MCU_RGMII1_RD1 */ J721E_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* MCU_RGMII1_RD0 */ - J721E_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* MCU_RGMII1_TXC */ + J721E_WKUP_IOPAD(0x0070, PIN_OUTPUT, 0) /* MCU_RGMII1_TXC */ J721E_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* MCU_RGMII1_RXC */ >; }; @@ -550,36 +547,36 @@ port@0 { reg = <0>; - dpi_out_real0: endpoint { - remote-endpoint = <&dp_bridge_input>; - }; - }; -}; - -&mhdp { - status = "ok"; - pinctrl-names = "default"; - pinctrl-0 = <&dp0_pins_default>; -}; - -&dp0_ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - dp_bridge_input: endpoint { - remote-endpoint = <&dpi_out_real0>; - }; - }; - - port@1 { - reg = <1>; - dp_bridge_output: endpoint { - remote-endpoint = <&dp_connector_in>; - }; - }; -}; +// dpi_out_real0: endpoint { +// remote-endpoint = <&dp_bridge_input>; +// }; +// }; +//}; + +//&mhdp { +// status = "ok"; +// pinctrl-names = "default"; +// pinctrl-0 = <&dp0_pins_default>; +}; + +//&dp0_ports { +// #address-cells = <1>; +// #size-cells = <0>; + +// port@0 { +// reg = <0>; +// dp_bridge_input: endpoint { +// remote-endpoint = <&dpi_out_real0>; +// }; +// }; + +// port@1 { +// reg = <1>; +// dp_bridge_output: endpoint { +// remote-endpoint = <&dp_connector_in>; +// }; +// }; +//}; &main_i2c0 { pinctrl-names = "default"; @@ -662,44 +659,44 @@ #gpio-cells = <2>; }; - pcm3168a_1: audio-codec@44 { - compatible = "ti,pcm3168a"; - reg = <0x44>; - - #sound-dai-cells = <1>; - - reset-gpios = <&exp3 0 GPIO_ACTIVE_LOW>; - - /* C_AUDIO_REFCLK2 -> RGMII6_RXC (W26) */ - clocks = <&k3_clks 157 371>; - clock-names = "scki"; - - /* HSDIV3_16FFT_MAIN_4_HSDIVOUT2_CLK -> REFCLK2 */ - assigned-clocks = <&k3_clks 157 371>; - assigned-clock-parents = <&k3_clks 157 400>; - assigned-clock-rates = <24576000>; /* for 48KHz */ - - VDD1-supply = <&vsys_3v3>; - VDD2-supply = <&vsys_3v3>; - VCCAD1-supply = <&vsys_5v0>; - VCCAD2-supply = <&vsys_5v0>; - VCCDA1-supply = <&vsys_5v0>; - VCCDA2-supply = <&vsys_5v0>; - }; -}; - -&main_i2c6 { - pinctrl-names = "default"; - pinctrl-0 = <&main_i2c6_pins_default>; - clock-frequency = <400000>; - - exp5: gpio@20 { - compatible = "ti,tca6408"; - reg = <0x20>; - gpio-controller; - #gpio-cells = <2>; - }; -}; +// pcm3168a_1: audio-codec@44 { +// compatible = "ti,pcm3168a"; +// reg = <0x44>; + +// #sound-dai-cells = <1>; + +// reset-gpios = <&exp3 0 GPIO_ACTIVE_LOW>; + +// /* C_AUDIO_REFCLK2 -> RGMII6_RXC (W26) */ +// clocks = <&k3_clks 157 371>; +// clock-names = "scki"; + +// /* HSDIV3_16FFT_MAIN_4_HSDIVOUT2_CLK -> REFCLK2 */ +// assigned-clocks = <&k3_clks 157 371>; +// assigned-clock-parents = <&k3_clks 157 400>; +// assigned-clock-rates = <24576000>; /* for 48KHz */ + +// VDD1-supply = <&vsys_3v3>; +// VDD2-supply = <&vsys_3v3>; +// VCCAD1-supply = <&vsys_5v0>; +// VCCAD2-supply = <&vsys_5v0>; +// VCCDA1-supply = <&vsys_5v0>; +// VCCDA2-supply = <&vsys_5v0>; +// }; +}; + +//&main_i2c6 { +// pinctrl-names = "default"; +// pinctrl-0 = <&main_i2c6_pins_default>; +// clock-frequency = <400000>; + +// exp5: gpio@20 { +// compatible = "ti,tca6408"; +// reg = <0x20>; +// gpio-controller; +// #gpio-cells = <2>; +// }; +//}; &mcasp10 { #sound-dai-cells = <0>; @@ -723,24 +720,24 @@ &mcu_cpsw { pinctrl-names = "default"; - pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>; - +// pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>; + pinctrl-0 = <&mcu_cpsw_pins_default>; cpts { ti,pps = <3 1>; }; }; -&davinci_mdio { - phy0: ethernet-phy@0 { - reg = <0>; - ti,rx-internal-delay = ; - ti,fifo-depth = ; - }; -}; +//&davinci_mdio { +// phy0: ethernet-phy@0 { +// reg = <0>; +// ti,rx-internal-delay = ; +// ti,fifo-depth = ; +// }; +//}; &cpsw_port1 { phy-mode = "rgmii-rxid"; - phy-handle = <&phy0>; +// phy-handle = <&phy0>; }; #define TS_OFFSET(pa, val) (0x4 + (pa) * 4) (0x10000 | val) @@ -766,11 +763,13 @@ &main_sdhci1 { /* SD/MMC */ - vmmc-supply = <&vdd_mmc1>; - vqmmc-supply = <&vdd_sd_dv_alt>; +// vmmc-supply = <&vdd_mmc1>; +// vqmmc-supply = <&vdd_sd_dv_alt>; pinctrl-names = "default"; pinctrl-0 = <&main_mmc1_pins_default>; + ti,driver-strength-ohm = <50>; disable-wp; + no-1-8-v; }; &main_sdhci2 { @@ -808,6 +807,18 @@ }; }; +&main_spi0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&myspi1_pins_default>; + ti,spi-num-cs = <2>; + spidev@0 { + spi-max-frequency = <24000000>; + reg = <1>; + compatible = "linux,spidev"; + }; +}; + &pcie0_rc { reset-gpios = <&exp1 6 GPIO_ACTIVE_HIGH>; phys = <&serdes0_pcie_link>; diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/scripts/dtc/include-prefixes/arm64/ti/k3-j721e.dtsi /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/scripts/dtc/include-prefixes/arm64/ti/k3-j721e.dtsi --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/scripts/dtc/include-prefixes/arm64/ti/k3-j721e.dtsi 2020-06-17 16:25:34.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/scripts/dtc/include-prefixes/arm64/ti/k3-j721e.dtsi 2020-06-30 11:38:11.885167725 +0200 @@ -141,15 +141,15 @@ <0x00 0x06400000 0x00 0x06400000 0x00 0x00400000>, /* USBSS1 */ <0x00 0x01000000 0x00 0x01000000 0x00 0x0af02400>, /* Most peripherals */ <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>, /* MAIN NAVSS */ - <0x00 0x0d000000 0x00 0x0d000000 0x00 0x01800000>, /* PCIe Core*/ - <0x00 0x0e000000 0x00 0x0e000000 0x00 0x01800000>, /* PCIe Core*/ - <0x00 0x10000000 0x00 0x10000000 0x00 0x10000000>, /* PCIe DAT */ +// <0x00 0x0d000000 0x00 0x0d000000 0x00 0x01800000>, /* PCIe Core*/ +// <0x00 0x0e000000 0x00 0x0e000000 0x00 0x01800000>, /* PCIe Core*/ +// <0x00 0x10000000 0x00 0x10000000 0x00 0x10000000>, /* PCIe DAT */ <0x00 0x64800000 0x00 0x64800000 0x00 0x00800000>, /* C71 */ - <0x44 0x00000000 0x44 0x00000000 0x00 0x08000000>, /* PCIe2 DAT */ - <0x44 0x10000000 0x44 0x10000000 0x00 0x08000000>, /* PCIe3 DAT */ +// <0x44 0x00000000 0x44 0x00000000 0x00 0x08000000>, /* PCIe2 DAT */ +// <0x44 0x10000000 0x44 0x10000000 0x00 0x08000000>, /* PCIe3 DAT */ <0x4d 0x80800000 0x4d 0x80800000 0x00 0x00800000>, /* C66_0 */ <0x4d 0x81800000 0x4d 0x81800000 0x00 0x00800000>, /* C66_1 */ - <0x4e 0x20000000 0x4e 0x20000000 0x00 0x00080000>, /* GPU */ +// <0x4e 0x20000000 0x4e 0x20000000 0x00 0x00080000>, /* GPU */ <0x00 0x70000000 0x00 0x70000000 0x00 0x00800000>, /* MSMC RAM */ /* MCUSS_WKUP Range */ diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/scripts/dtc/include-prefixes/arm64/ti/k3-j721e-main.dtsi /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/scripts/dtc/include-prefixes/arm64/ti/k3-j721e-main.dtsi --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/scripts/dtc/include-prefixes/arm64/ti/k3-j721e-main.dtsi 2020-06-17 16:25:34.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/scripts/dtc/include-prefixes/arm64/ti/k3-j721e-main.dtsi 2020-06-30 11:40:40.738189374 +0200 @@ -1264,6 +1264,16 @@ assigned-clocks = <&k3_clks 253 1>; assigned-clock-parents = <&k3_clks 253 5>; }; + + main_spi0: spi@2100000 { + compatible = "ti,am654-mcspi","ti,omap4-mcspi"; + reg = <0x0 0x2100000 0x0 0x400>; + interrupts = ; + clocks = <&k3_clks 266 1>; + power-domains = <&k3_pds 266 TI_SCI_PD_EXCLUSIVE>; + #address-cells = <1>; + #size-cells = <0>; + }; main_i2c0: i2c@2000000 { compatible = "ti,j721e-i2c", "ti,omap4-i2c"; diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/scripts/dtc/include-prefixes/arm64/ti/k3-j721e-som-p0.dtsi /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/scripts/dtc/include-prefixes/arm64/ti/k3-j721e-som-p0.dtsi --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/scripts/dtc/include-prefixes/arm64/ti/k3-j721e-som-p0.dtsi 2020-06-17 16:25:47.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/scripts/dtc/include-prefixes/arm64/ti/k3-j721e-som-p0.dtsi 2020-06-30 11:42:22.486876988 +0200 @@ -11,8 +11,10 @@ memory@80000000 { device_type = "memory"; /* 4G RAM */ - reg = <0x00000000 0x80000000 0x00000000 0x80000000>, - <0x00000008 0x80000000 0x00000000 0x80000000>; +// reg = <0x00000000 0x80000000 0x00000000 0x80000000>, +// <0x00000008 0x80000000 0x00000000 0x80000000>; + /* @dudichul: Changed to 1GB, one bank */ + reg = <0x00000000 0x40000000 0x00000000 0x40000000>; }; reserved_memory: reserved-memory {