| 1 |
// SPDX-License-Identifier: GPL-2.0-only OR MIT |
| 2 |
/* |
| 3 |
* Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/ |
| 4 |
* Copyright (c) 2022-2024 TQ-Systems GmbH <[email protected]>, D-82229 Seefeld, Germany. |
| 5 |
*/ |
| 6 |
|
| 7 |
#include "k3-am642.dtsi" |
| 8 |
|
| 9 |
/ { |
| 10 |
aliases { |
| 11 |
i2c0 = &main_i2c0; |
| 12 |
mmc0 = &sdhci0; |
| 13 |
spi0 = &ospi0; |
| 14 |
}; |
| 15 |
|
| 16 |
memory@80000000 { |
| 17 |
device_type = "memory"; |
| 18 |
/* 1G RAM - default variant */ |
| 19 |
reg = <0x00000000 0x80000000 0x00000000 0x40000000>; |
| 20 |
bootph-pre-ram; |
| 21 |
}; |
| 22 |
|
| 23 |
reserved_memory: reserved-memory { |
| 24 |
#address-cells = <2>; |
| 25 |
#size-cells = <2>; |
| 26 |
ranges; |
| 27 |
|
| 28 |
secure_ddr: optee@9e800000 { |
| 29 |
reg = <0x00 0x9e800000 0x00 0x01800000>; |
| 30 |
alignment = <0x1000>; |
| 31 |
no-map; |
| 32 |
}; |
| 33 |
|
| 34 |
main_r5fss0_core0_dma_memory_region: memory@a0000000 { |
| 35 |
compatible = "shared-dma-pool"; |
| 36 |
reg = <0x00 0xa0000000 0x00 0x100000>; |
| 37 |
no-map; |
| 38 |
}; |
| 39 |
|
| 40 |
main_r5fss0_core0_memory_region: memory@a0100000 { |
| 41 |
compatible = "shared-dma-pool"; |
| 42 |
reg = <0x00 0xa0100000 0x00 0xf00000>; |
| 43 |
no-map; |
| 44 |
}; |
| 45 |
}; |
| 46 |
|
| 47 |
reg_1v8: regulator-1v8 { |
| 48 |
compatible = "regulator-fixed"; |
| 49 |
regulator-name = "V_1V8"; |
| 50 |
regulator-min-microvolt = <1800000>; |
| 51 |
regulator-max-microvolt = <1800000>; |
| 52 |
regulator-always-on; |
| 53 |
regulator-boot-on; |
| 54 |
}; |
| 55 |
}; |
| 56 |
|
| 57 |
&fss { |
| 58 |
bootph-all; |
| 59 |
}; |
| 60 |
|
| 61 |
&main_i2c0 { |
| 62 |
pinctrl-names = "default"; |
| 63 |
pinctrl-0 = <&main_i2c0_pins>; |
| 64 |
clock-frequency = <400000>; |
| 65 |
bootph-pre-ram; |
| 66 |
status = "okay"; |
| 67 |
|
| 68 |
tmp1075: temperature-sensor@4a { |
| 69 |
compatible = "ti,tmp1075"; |
| 70 |
reg = <0x4a>; |
| 71 |
vs-supply = <®_1v8>; |
| 72 |
}; |
| 73 |
|
| 74 |
eeprom0: eeprom@50 { |
| 75 |
compatible = "st,24c02", "atmel,24c02"; |
| 76 |
reg = <0x50>; |
| 77 |
vcc-supply = <®_1v8>; |
| 78 |
pagesize = <16>; |
| 79 |
read-only; |
| 80 |
bootph-pre-ram; |
| 81 |
}; |
| 82 |
|
| 83 |
pcf85063: rtc@51 { |
| 84 |
compatible = "nxp,pcf85063a"; |
| 85 |
reg = <0x51>; |
| 86 |
quartz-load-femtofarads = <12500>; |
| 87 |
}; |
| 88 |
|
| 89 |
eeprom1: eeprom@54 { |
| 90 |
compatible = "st,24c64", "atmel,24c64"; |
| 91 |
reg = <0x54>; |
| 92 |
vcc-supply = <®_1v8>; |
| 93 |
pagesize = <32>; |
| 94 |
}; |
| 95 |
}; |
| 96 |
|
| 97 |
&ospi0 { |
| 98 |
pinctrl-names = "default"; |
| 99 |
pinctrl-0 = <&ospi0_pins>; |
| 100 |
bootph-all; |
| 101 |
status = "okay"; |
| 102 |
|
| 103 |
flash@0 { |
| 104 |
compatible = "jedec,spi-nor"; |
| 105 |
reg = <0>; |
| 106 |
spi-tx-bus-width = <8>; |
| 107 |
spi-rx-bus-width = <8>; |
| 108 |
spi-max-frequency = <84000000>; |
| 109 |
bootph-all; |
| 110 |
cdns,tshsl-ns = <60>; |
| 111 |
cdns,tsd2d-ns = <60>; |
| 112 |
cdns,tchsh-ns = <60>; |
| 113 |
cdns,tslch-ns = <60>; |
| 114 |
cdns,read-delay = <2>; |
| 115 |
|
| 116 |
partitions { |
| 117 |
compatible = "fixed-partitions"; |
| 118 |
#address-cells = <1>; |
| 119 |
#size-cells = <1>; |
| 120 |
|
| 121 |
/* Filled by bootloader */ |
| 122 |
}; |
| 123 |
}; |
| 124 |
}; |
| 125 |
|
| 126 |
&sdhci0 { |
| 127 |
status = "okay"; |
| 128 |
non-removable; |
| 129 |
disable-wp; |
| 130 |
no-sdio; |
| 131 |
no-sd; |
| 132 |
bootph-all; |
| 133 |
ti,driver-strength-ohm = <50>; |
| 134 |
}; |
| 135 |
|
| 136 |
&main_pmx0 { |
| 137 |
main_i2c0_pins: main-i2c0-pins { |
| 138 |
pinctrl-single,pins = < |
| 139 |
/* (A18) I2C0_SCL */ |
| 140 |
AM64X_IOPAD(0x0260, PIN_INPUT_PULLUP, 0) |
| 141 |
/* (B18) I2C0_SDA */ |
| 142 |
AM64X_IOPAD(0x0264, PIN_INPUT_PULLUP, 0) |
| 143 |
>; |
| 144 |
bootph-pre-ram; |
| 145 |
}; |
| 146 |
|
| 147 |
ospi0_pins: ospi0-pins { |
| 148 |
pinctrl-single,pins = < |
| 149 |
/* (N20) OSPI0_CLK */ |
| 150 |
AM64X_IOPAD(0x0000, PIN_OUTPUT, 0) |
| 151 |
/* (L19) OSPI0_CSn0 */ |
| 152 |
AM64X_IOPAD(0x002c, PIN_OUTPUT, 0) |
| 153 |
/* (M19) OSPI0_D0 */ |
| 154 |
AM64X_IOPAD(0x000c, PIN_INPUT, 0) |
| 155 |
/* (M18) OSPI0_D1 */ |
| 156 |
AM64X_IOPAD(0x0010, PIN_INPUT, 0) |
| 157 |
/* (M20) OSPI0_D2 */ |
| 158 |
AM64X_IOPAD(0x0014, PIN_INPUT, 0) |
| 159 |
/* (M21) OSPI0_D3 */ |
| 160 |
AM64X_IOPAD(0x0018, PIN_INPUT, 0) |
| 161 |
/* (P21) OSPI0_D4 */ |
| 162 |
AM64X_IOPAD(0x001c, PIN_INPUT, 0) |
| 163 |
/* (P20) OSPI0_D5 */ |
| 164 |
AM64X_IOPAD(0x0020, PIN_INPUT, 0) |
| 165 |
/* (N18) OSPI0_D6 */ |
| 166 |
AM64X_IOPAD(0x0024, PIN_INPUT, 0) |
| 167 |
/* (M17) OSPI0_D7 */ |
| 168 |
AM64X_IOPAD(0x0028, PIN_INPUT, 0) |
| 169 |
/* (N19) OSPI0_DQS */ |
| 170 |
AM64X_IOPAD(0x0008, PIN_INPUT, 0) |
| 171 |
>; |
| 172 |
bootph-all; |
| 173 |
}; |
| 174 |
}; |
| 175 |
|
| 176 |
#include "k3-am64-ti-ipc-firmware.dtsi" |