diff options
Diffstat (limited to 'meta-ti-bsp/recipes-kernel')
67 files changed, 1882 insertions, 0 deletions
diff --git a/meta-ti-bsp/recipes-kernel/linux/bundle-devicetree.inc b/meta-ti-bsp/recipes-kernel/linux/bundle-devicetree.inc new file mode 100644 index 00000000..d259e58c --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/bundle-devicetree.inc | |||
@@ -0,0 +1,26 @@ | |||
1 | # Upstream kernel-devicetree.bbclass only supports bundling the DTB with | ||
2 | # zImage. The factory u-boot on lego-ev3 EEPROM only supports uImage, so we | ||
3 | # append the DTB to the final uImage here. | ||
4 | |||
5 | do_deploy:append() { | ||
6 | if [ "${KERNEL_DEVICETREE_BUNDLE}" = "1" ]; then | ||
7 | install -d ${DEPLOYDIR} | ||
8 | for dtbf in ${KERNEL_DEVICETREE}; do | ||
9 | dtb=`normalize_dtb "$dtbf"` | ||
10 | dtb_ext=${dtb##*.} | ||
11 | dtb_base_name=`basename $dtb .$dtb_ext` | ||
12 | for type in ${KERNEL_IMAGETYPE_FOR_MAKE}; do | ||
13 | if [ "$type" = "uImage" ]; then | ||
14 | cat ${D}/${KERNEL_IMAGEDEST}/$type \ | ||
15 | ${DEPLOYDIR}/$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext \ | ||
16 | > ${DEPLOYDIR}/$type-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext.bin | ||
17 | ln -sf $type-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext.bin \ | ||
18 | ${DEPLOYDIR}/$type-$dtb_base_name-${KERNEL_DTB_LINK_NAME}.$dtb_ext.bin | ||
19 | cat ${D}/${KERNEL_IMAGEDEST}/$type \ | ||
20 | ${DEPLOYDIR}/$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext \ | ||
21 | > ${DEPLOYDIR}/$type | ||
22 | fi | ||
23 | done | ||
24 | done | ||
25 | fi | ||
26 | } | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/cmem.inc b/meta-ti-bsp/recipes-kernel/linux/cmem.inc new file mode 100644 index 00000000..fd913f6c --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/cmem.inc | |||
@@ -0,0 +1,96 @@ | |||
1 | # Add concept of machine variants to split DTBs into subsets | ||
2 | # | ||
3 | # Use these for temporary overrides | ||
4 | CMEM_MACHINE = "${MACHINE}" | ||
5 | CMEM_MACHINE:am57xx-evm = "am571x am572x am572idk am5729-beagleboneai am574x" | ||
6 | CMEM_MACHINE:am57xx-hs-evm = "am571x am572x am572idk am5729-beagleboneai am574x" | ||
7 | CMEM_MACHINE:dra7xx-evm = "dra71x dra72x dra74x dra76x" | ||
8 | CMEM_MACHINE:dra7xx-hs-evm = "dra71x dra72x dra74x dra76x" | ||
9 | |||
10 | # Set cmem.dtsi per machine or machine variant | ||
11 | CMEM_DTSI = "cmem.dtsi" | ||
12 | CMEM_DTSI_am571x = "cmem-am571x.dtsi" | ||
13 | CMEM_DTSI_am572idk = "cmem-am572idk.dtsi" | ||
14 | CMEM_DTSI_am5729-beagleboneai = "cmem-am5729-beagleboneai.dtsi" | ||
15 | CMEM_DTSI_am574x = "cmem-am574x.dtsi" | ||
16 | CMEM_DTSI_dra71x = "cmem-dra71x.dtsi" | ||
17 | CMEM_DTSI_dra72x = "cmem-dra72x.dtsi" | ||
18 | CMEM_DTSI_dra76x = "cmem-dra76x.dtsi" | ||
19 | |||
20 | # Split device trees between variants | ||
21 | CMEM_DEVICETREE = "${KERNEL_DEVICETREE}" | ||
22 | CMEM_DEVICETREE_am571x = "am571x-idk.dtb am571x-idk-lcd-osd101t2045.dtb am571x-idk-lcd-osd101t2587.dtb" | ||
23 | CMEM_DEVICETREE_am572x = "am57xx-beagle-x15.dtb am57xx-beagle-x15-revc.dtb" | ||
24 | CMEM_DEVICETREE_am572idk = "am572x-idk.dtb am572x-idk-lcd-osd101t2045.dtb am572x-idk-lcd-osd101t2587.dtb" | ||
25 | CMEM_DEVICETREE_am5729-beagleboneai = "am5729-beagleboneai.dtb" | ||
26 | CMEM_DEVICETREE_am574x = "am574x-idk.dtb am574x-idk-lcd-osd101t2587.dtb" | ||
27 | CMEM_DEVICETREE_dra71x = "dra71-evm.dtb" | ||
28 | CMEM_DEVICETREE_dra72x = "dra72-evm.dtb dra72-evm-lcd-osd101t2045.dtb dra72-evm-lcd-osd101t2587.dtb \ | ||
29 | dra72-evm-revc.dtb dra72-evm-revc-lcd-osd101t2045.dtb dra72-evm-revc-lcd-osd101t2587.dtb" | ||
30 | CMEM_DEVICETREE_dra74x = "dra7-evm.dtb dra7-evm-lcd-osd101t2045.dtb dra7-evm-lcd-osd101t2587.dtb" | ||
31 | CMEM_DEVICETREE_dra76x = "dra76-evm.dtb dra76-evm-tfp410.dtb" | ||
32 | |||
33 | # Flag to enable CMEM injection | ||
34 | RESERVE_CMEM ?= "0" | ||
35 | |||
36 | # Variables which influence setup_cmem | ||
37 | CMEM_VARS = "RESERVE_CMEM CMEM_MACHINE" | ||
38 | CMEM_VARS += "CMEM_DTSI ${@' '.join(map(lambda s: 'CMEM_DTSI_' + s, (d.getVar('CMEM_MACHINE') or '').split()))}" | ||
39 | CMEM_VARS += "CMEM_DEVICETREE ${@' '.join(map(lambda s: 'CMEM_DEVICETREE_' + s, (d.getVar('CMEM_MACHINE') or '').split()))}" | ||
40 | |||
41 | # Add correct cmem.dtsi to SRC_URI for each variant for a given machine | ||
42 | python do_unpack() { | ||
43 | old_overrides = d.getVar('OVERRIDES', False) | ||
44 | |||
45 | # Initialize with empty string to simplify logic to append to SRC_URI | ||
46 | cmem_dtsi = set(['']) | ||
47 | |||
48 | for cmem_machine in (d.getVar('CMEM_MACHINE') or '').split(): | ||
49 | # Create copy of data for additional override | ||
50 | localdata = bb.data.createCopy(d) | ||
51 | localdata.setVar('OVERRIDES', '%s:%s' % (cmem_machine, old_overrides)) | ||
52 | bb.data.update_data(localdata) | ||
53 | |||
54 | cmem_dtsi.add(localdata.getVar('CMEM_DTSI')) | ||
55 | |||
56 | d.appendVar('SRC_URI', ' file://'.join(cmem_dtsi)) | ||
57 | bb.build.exec_func('base_do_unpack', d) | ||
58 | } | ||
59 | |||
60 | python do_setup_cmem() { | ||
61 | import shutil | ||
62 | |||
63 | old_overrides = d.getVar('OVERRIDES', False) | ||
64 | |||
65 | if d.getVar('RESERVE_CMEM') is '1': | ||
66 | for cmem_machine in (d.getVar('CMEM_MACHINE') or '').split(): | ||
67 | # Create copy of data for additional override | ||
68 | localdata = bb.data.createCopy(d) | ||
69 | localdata.setVar('OVERRIDES', '%s:%s' % (cmem_machine, old_overrides)) | ||
70 | bb.data.update_data(localdata) | ||
71 | |||
72 | # Get source directory and dtsi filename | ||
73 | src_dir = localdata.getVar('WORKDIR') | ||
74 | src_dtsi = localdata.getVar('CMEM_DTSI') | ||
75 | |||
76 | # Get destination directory and destination dtsi filename which adds | ||
77 | # the MACHINE prefix. | ||
78 | dst_dir = os.path.join(localdata.getVar('S'), localdata.expand('arch/${ARCH}/boot/dts')) | ||
79 | dst_dtsi = localdata.expand('${MACHINE}-${CMEM_DTSI}') | ||
80 | |||
81 | # Copy cmem.dtsi into source tree | ||
82 | if localdata.getVar('ARCH') is 'arm64': | ||
83 | shutil.copy(os.path.join(src_dir,src_dtsi), os.path.join(dst_dir,'ti',dst_dtsi)) | ||
84 | else: | ||
85 | shutil.copy(os.path.join(src_dir,src_dtsi), os.path.join(dst_dir,dst_dtsi)) | ||
86 | |||
87 | # Inject dtsi into each dts in list | ||
88 | for dtb in (localdata.getVar('CMEM_DEVICETREE') or '').split(): | ||
89 | dts = dtb[:-4] + '.dts' | ||
90 | |||
91 | with open(os.path.join(dst_dir,dts), 'a') as dts_file: | ||
92 | dts_file.write('\n#include "%s"\n' % dst_dtsi) | ||
93 | } | ||
94 | |||
95 | do_patch[postfuncs] += "do_setup_cmem" | ||
96 | do_patch[vardeps] += "${CMEM_VARS}" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/cmem.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/cmem.dtsi new file mode 100644 index 00000000..23119861 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/cmem.dtsi | |||
@@ -0,0 +1,38 @@ | |||
1 | /* | ||
2 | * This is a placeholder for CMEM reserved memory declarations. This | ||
3 | * is simply an example and does not actually reserve any memory for | ||
4 | * CMEM. | ||
5 | * | ||
6 | * The commented sections below provide an example for how to provide | ||
7 | * a reserved memory region for CMEM to use as a buffer pool. | ||
8 | */ | ||
9 | / { | ||
10 | /* | ||
11 | reserved-memory { | ||
12 | cmem_block_mem_0: cmem_block_mem@a0000000 { | ||
13 | reg = <0x0 0xa0000000 0x0 0x0a000000>; | ||
14 | no-map; | ||
15 | status = "okay"; | ||
16 | }; | ||
17 | }; | ||
18 | */ | ||
19 | |||
20 | cmem { | ||
21 | compatible = "ti,cmem"; | ||
22 | #address-cells = <1>; | ||
23 | #size-cells = <0>; | ||
24 | |||
25 | #pool-size-cells = <2>; | ||
26 | |||
27 | status = "disabled"; | ||
28 | /* | ||
29 | status = "okay"; | ||
30 | |||
31 | cmem_block_0: cmem_block@0 { | ||
32 | reg = <0>; | ||
33 | memory-region = <&cmem_block_mem_0>; | ||
34 | cmem-buf-pools = <1 0x0 0x0a000000>; | ||
35 | }; | ||
36 | */ | ||
37 | }; | ||
38 | }; | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/configs/empty b/meta-ti-bsp/recipes-kernel/linux/files/configs/empty new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/configs/empty | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/am571x-pru-uio.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/am571x-pru-uio.dtsi new file mode 100644 index 00000000..8ca11c78 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/am571x-pru-uio.dtsi | |||
@@ -0,0 +1,272 @@ | |||
1 | &pruss_soc_bus1 { | ||
2 | uio_pruss1_mdio: uio_mdio@4b232400 { | ||
3 | status = "okay"; | ||
4 | |||
5 | compatible = "ti,davinci_mdio"; | ||
6 | reg = <0x4b232400 0x90>; | ||
7 | #address-cells = <1>; | ||
8 | #size-cells = <0>; | ||
9 | clocks = <&dpll_gmac_h13x2_ck>; | ||
10 | clock-names = "fck"; | ||
11 | bus_freq = <1000000>; | ||
12 | |||
13 | reset-gpios = <&gpio5 8 GPIO_ACTIVE_LOW>; | ||
14 | reset-delay-us = <2>; /* PHY datasheet states 1uS min */ | ||
15 | uio_pruss1_eth0_phy: uio_ethernet-phy@0 { | ||
16 | reg = <0>; | ||
17 | }; | ||
18 | |||
19 | uio_pruss1_eth1_phy: uio_ethernet-phy@1 { | ||
20 | reg = <1>; | ||
21 | }; | ||
22 | }; | ||
23 | |||
24 | uio_pruss1_mem: uio_pruss1_mem { | ||
25 | compatible = "ti,uio-module-drv"; | ||
26 | mem = <0x4b200000 0x2000>, | ||
27 | <0x4b202000 0x2000>, | ||
28 | <0x4b210000 0x8000>, | ||
29 | <0x4b220000 0x5404>, | ||
30 | <0x4b226000 0x474>, | ||
31 | <0x4b22e000 0xc04>, | ||
32 | <0x4b232000 0x154>; | ||
33 | mem-names = "dram0", "dram1", "shrdram2", "intc", "cfg", | ||
34 | "iep", "mii_rt"; | ||
35 | status = "okay"; | ||
36 | }; | ||
37 | uio_pruss1_mem2: uio_pruss1_mem2 { | ||
38 | compatible = "ti,uio-module-drv"; | ||
39 | mem = <0x4b228000 0xd4>, | ||
40 | <0x4b230000 0x174>, | ||
41 | <0x4b232400 0x234>, | ||
42 | <0x40300000 0x40000>; | ||
43 | mem-names = "uart", "ecap", "mdio", "ocmc"; | ||
44 | status = "okay"; | ||
45 | }; | ||
46 | uio_pruss1_evt0: uio_pruss1_evt0 { | ||
47 | compatible = "ti,uio-module-drv"; | ||
48 | interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>; | ||
49 | interrupt-mode = <1>; | ||
50 | status = "okay"; | ||
51 | }; | ||
52 | uio_pruss1_evt1: uio_pruss1_evt1 { | ||
53 | compatible = "ti,uio-module-drv"; | ||
54 | interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>; | ||
55 | interrupt-mode = <1>; | ||
56 | status = "okay"; | ||
57 | }; | ||
58 | uio_pruss1_evt2: uio_pruss1_evt2 { | ||
59 | compatible = "ti,uio-module-drv"; | ||
60 | interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>; | ||
61 | interrupt-mode = <1>; | ||
62 | status = "okay"; | ||
63 | }; | ||
64 | uio_pruss1_evt3: uio_pruss1_evt3 { | ||
65 | compatible = "ti,uio-module-drv"; | ||
66 | interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>; | ||
67 | interrupt-mode = <1>; | ||
68 | status = "okay"; | ||
69 | }; | ||
70 | uio_pruss1_evt4: uio_pruss1_evt4 { | ||
71 | compatible = "ti,uio-module-drv"; | ||
72 | interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>; | ||
73 | interrupt-mode = <1>; | ||
74 | status = "okay"; | ||
75 | }; | ||
76 | uio_pruss1_evt5: uio_pruss1_evt5 { | ||
77 | compatible = "ti,uio-module-drv"; | ||
78 | interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>; | ||
79 | interrupt-mode = <1>; | ||
80 | status = "okay"; | ||
81 | }; | ||
82 | uio_pruss1_evt6: uio_pruss1_evt6 { | ||
83 | compatible = "ti,uio-module-drv"; | ||
84 | interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>; | ||
85 | interrupt-mode = <1>; | ||
86 | status = "okay"; | ||
87 | }; | ||
88 | uio_pruss1_evt7: uio_pruss1_evt7 { | ||
89 | compatible = "ti,uio-module-drv"; | ||
90 | interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>; | ||
91 | interrupt-mode = <1>; | ||
92 | status = "okay"; | ||
93 | }; | ||
94 | |||
95 | uio_pruss1_0_mem: uio_pruss1_0_mem { | ||
96 | compatible = "ti,uio-module-drv"; | ||
97 | mem = <0x4b234000 0x3000>, | ||
98 | <0x4b222000 0xb4>, | ||
99 | <0x4b222400 0x3f4>; | ||
100 | mem-names = "iram", "control", "debug"; | ||
101 | status = "okay"; | ||
102 | }; | ||
103 | |||
104 | uio_pruss1_1_mem: uio_pruss1_1_mem { | ||
105 | compatible = "ti,uio-module-drv"; | ||
106 | mem = <0x4b238000 0x3000>, | ||
107 | <0x4b224000 0xb4>, | ||
108 | <0x4b224400 0x3f4>; | ||
109 | mem-names = "iram", "control", "debug"; | ||
110 | status = "okay"; | ||
111 | }; | ||
112 | }; | ||
113 | |||
114 | &pruss_soc_bus2 { | ||
115 | uio_pruss2_mdio: uio_mdio@4b2b2400 { | ||
116 | compatible = "ti,davinci_mdio"; | ||
117 | reg = <0x4b2b2400 0x90>; | ||
118 | #address-cells = <1>; | ||
119 | #size-cells = <0>; | ||
120 | clocks = <&dpll_gmac_h13x2_ck>; | ||
121 | clock-names = "fck"; | ||
122 | bus_freq = <1000000>; | ||
123 | status = "okay"; | ||
124 | |||
125 | reset-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>; | ||
126 | reset-delay-us = <2>; /* PHY datasheet states 1uS min */ | ||
127 | |||
128 | uio_pruss2_eth0_phy: ethernet-phy@0 { | ||
129 | reg = <0>; | ||
130 | }; | ||
131 | |||
132 | uio_pruss2_eth1_phy: ethernet-phy@1 { | ||
133 | reg = <1>; | ||
134 | }; | ||
135 | }; | ||
136 | |||
137 | uio_pruss2_mem: uio_pruss2_mem { | ||
138 | compatible = "ti,uio-module-drv"; | ||
139 | mem = <0x4b280000 0x2000>, | ||
140 | <0x4b282000 0x2000>, | ||
141 | <0x4b290000 0x8000>, | ||
142 | <0x4b2a0000 0x5404>, | ||
143 | <0x4b2a6000 0x474>, | ||
144 | <0x4b2ae000 0xc04>, | ||
145 | <0x4b2b2000 0x154>; | ||
146 | mem-names = "dram0", "dram1", "shrdram2", "intc", "cfg", | ||
147 | "iep", "mii_rt"; | ||
148 | status = "okay"; | ||
149 | }; | ||
150 | uio_pruss2_mem2: uio_pruss2_mem2 { | ||
151 | compatible = "ti,uio-module-drv"; | ||
152 | mem = <0x4b2a8000 0xd4>, | ||
153 | <0x4b2b0000 0x174>, | ||
154 | <0x4b2b2400 0x234>, | ||
155 | <0x40340000 0x40000>; | ||
156 | mem-names = "uart", "ecap", "mdio", "ocmc"; | ||
157 | status = "okay"; | ||
158 | }; | ||
159 | uio_pruss2_evt0: uio_pruss2_evt0 { | ||
160 | compatible = "ti,uio-module-drv"; | ||
161 | interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>; | ||
162 | interrupt-mode = <1>; | ||
163 | status = "okay"; | ||
164 | }; | ||
165 | uio_pruss2_evt1: uio_pruss2_evt1 { | ||
166 | compatible = "ti,uio-module-drv"; | ||
167 | interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>; | ||
168 | interrupt-mode = <1>; | ||
169 | status = "okay"; | ||
170 | }; | ||
171 | uio_pruss2_evt2: uio_pruss2_evt2 { | ||
172 | compatible = "ti,uio-module-drv"; | ||
173 | interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>; | ||
174 | interrupt-mode = <1>; | ||
175 | status = "okay"; | ||
176 | }; | ||
177 | uio_pruss2_evt3: uio_pruss2_evt3 { | ||
178 | compatible = "ti,uio-module-drv"; | ||
179 | interrupts = <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>; | ||
180 | interrupt-mode = <1>; | ||
181 | status = "okay"; | ||
182 | }; | ||
183 | uio_pruss2_evt4: uio_pruss2_evt4 { | ||
184 | compatible = "ti,uio-module-drv"; | ||
185 | interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>; | ||
186 | interrupt-mode = <1>; | ||
187 | status = "okay"; | ||
188 | }; | ||
189 | uio_pruss2_evt5: uio_pruss2_evt5 { | ||
190 | compatible = "ti,uio-module-drv"; | ||
191 | interrupts = <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>; | ||
192 | interrupt-mode = <1>; | ||
193 | status = "okay"; | ||
194 | }; | ||
195 | uio_pruss2_evt6: uio_pruss2_evt6 { | ||
196 | compatible = "ti,uio-module-drv"; | ||
197 | interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>; | ||
198 | interrupt-mode = <1>; | ||
199 | status = "okay"; | ||
200 | }; | ||
201 | uio_pruss2_evt7: uio_pruss2_evt7 { | ||
202 | compatible = "ti,uio-module-drv"; | ||
203 | interrupts = <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>; | ||
204 | interrupt-mode = <1>; | ||
205 | status = "okay"; | ||
206 | }; | ||
207 | |||
208 | uio_pruss2_0_mem: uio_pruss2_0_mem { | ||
209 | compatible = "ti,uio-module-drv"; | ||
210 | mem = <0x4b2b4000 0x3000>, | ||
211 | <0x4b2a2000 0xb4>, | ||
212 | <0x4b2a2400 0x3f4>; | ||
213 | mem-names = "iram", "control", "debug"; | ||
214 | status = "okay"; | ||
215 | }; | ||
216 | uio_pruss2_1_mem: uio_pruss2_1_mem { | ||
217 | compatible = "ti,uio-module-drv"; | ||
218 | mem = <0x4b2b8000 0x3000>, | ||
219 | <0x4b2a4000 0xb4>, | ||
220 | <0x4b2a4400 0x3f4>; | ||
221 | mem-names = "iram", "control", "debug"; | ||
222 | status = "okay"; | ||
223 | }; | ||
224 | }; | ||
225 | |||
226 | &pruss2_emac0 { | ||
227 | status = "disabled"; | ||
228 | }; | ||
229 | |||
230 | &pruss2_emac1 { | ||
231 | status = "disabled"; | ||
232 | }; | ||
233 | |||
234 | &pruss1 { | ||
235 | status = "disabled"; | ||
236 | }; | ||
237 | |||
238 | &pru1_0 { | ||
239 | status = "disabled"; | ||
240 | }; | ||
241 | |||
242 | &pru1_1 { | ||
243 | status = "disabled"; | ||
244 | }; | ||
245 | |||
246 | &pruss1_intc { | ||
247 | status = "disabled"; | ||
248 | }; | ||
249 | |||
250 | &pruss1_mdio { | ||
251 | status = "disabled"; | ||
252 | }; | ||
253 | |||
254 | &pruss2 { | ||
255 | status = "disabled"; | ||
256 | }; | ||
257 | |||
258 | &pru2_0 { | ||
259 | status = "disabled"; | ||
260 | }; | ||
261 | |||
262 | &pru2_1 { | ||
263 | status = "disabled"; | ||
264 | }; | ||
265 | |||
266 | &pruss2_intc { | ||
267 | status = "disabled"; | ||
268 | }; | ||
269 | |||
270 | &pruss2_mdio { | ||
271 | status = "disabled"; | ||
272 | }; | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/am57xx-pru-uio.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/am57xx-pru-uio.dtsi new file mode 100644 index 00000000..4cc57118 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/am57xx-pru-uio.dtsi | |||
@@ -0,0 +1,252 @@ | |||
1 | &pruss_soc_bus1 { | ||
2 | uio_pruss1_mem: uio_pruss1_mem { | ||
3 | compatible = "ti,uio-module-drv"; | ||
4 | mem = <0x4b200000 0x2000>, | ||
5 | <0x4b202000 0x2000>, | ||
6 | <0x4b210000 0x8000>, | ||
7 | <0x4b220000 0x2000>, | ||
8 | <0x4b226000 0x2000>, | ||
9 | <0x4b22e000 0x31c>, | ||
10 | <0x4b232000 0x58>; | ||
11 | mem-names = "dram0", "dram1", "shrdram2", "intc", "cfg", | ||
12 | "iep", "mii_rt"; | ||
13 | status = "okay"; | ||
14 | }; | ||
15 | uio_pruss1_mem2: uio_pruss1_mem2 { | ||
16 | compatible = "ti,uio-module-drv"; | ||
17 | mem = <0x4b228000 0x38>, | ||
18 | <0x4b230000 0x60>, | ||
19 | <0x4b232400 0x90>, | ||
20 | <0x40340000 0x40000>; | ||
21 | mem-names = "uart", "ecap", "mdio", "ocmc"; | ||
22 | status = "okay"; | ||
23 | }; | ||
24 | uio_pruss1_evt0: uio_pruss1_evt0 { | ||
25 | compatible = "ti,uio-module-drv"; | ||
26 | interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>; | ||
27 | interrupt-mode = <1>; | ||
28 | status = "okay"; | ||
29 | }; | ||
30 | uio_pruss1_evt1: uio_pruss1_evt1 { | ||
31 | compatible = "ti,uio-module-drv"; | ||
32 | interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>; | ||
33 | interrupt-mode = <1>; | ||
34 | status = "okay"; | ||
35 | }; | ||
36 | uio_pruss1_evt2: uio_pruss1_evt2 { | ||
37 | compatible = "ti,uio-module-drv"; | ||
38 | interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>; | ||
39 | interrupt-mode = <1>; | ||
40 | status = "okay"; | ||
41 | }; | ||
42 | uio_pruss1_evt3: uio_pruss1_evt3 { | ||
43 | compatible = "ti,uio-module-drv"; | ||
44 | interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>; | ||
45 | interrupt-mode = <1>; | ||
46 | status = "okay"; | ||
47 | }; | ||
48 | uio_pruss1_evt4: uio_pruss1_evt4 { | ||
49 | compatible = "ti,uio-module-drv"; | ||
50 | interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>; | ||
51 | interrupt-mode = <1>; | ||
52 | status = "okay"; | ||
53 | }; | ||
54 | uio_pruss1_evt5: uio_pruss1_evt5 { | ||
55 | compatible = "ti,uio-module-drv"; | ||
56 | interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>; | ||
57 | interrupt-mode = <1>; | ||
58 | status = "okay"; | ||
59 | }; | ||
60 | uio_pruss1_evt6: uio_pruss1_evt6 { | ||
61 | compatible = "ti,uio-module-drv"; | ||
62 | interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>; | ||
63 | interrupt-mode = <1>; | ||
64 | status = "okay"; | ||
65 | }; | ||
66 | uio_pruss1_evt7: uio_pruss1_evt7 { | ||
67 | compatible = "ti,uio-module-drv"; | ||
68 | interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>; | ||
69 | interrupt-mode = <1>; | ||
70 | status = "okay"; | ||
71 | }; | ||
72 | |||
73 | uio_pruss1_0_mem: uio_pruss1_0_mem { | ||
74 | compatible = "ti,uio-module-drv"; | ||
75 | mem = <0x4b234000 0x3000>, | ||
76 | <0x4b222000 0x400>, | ||
77 | <0x4b222400 0x100>; | ||
78 | mem-names = "iram", "control", "debug"; | ||
79 | status = "okay"; | ||
80 | }; | ||
81 | |||
82 | uio_pruss1_1_mem: uio_pruss1_1_mem { | ||
83 | compatible = "ti,uio-module-drv"; | ||
84 | mem = <0x4b238000 0x3000>, | ||
85 | <0x4b224000 0x400>, | ||
86 | <0x4b224400 0x100>; | ||
87 | mem-names = "iram", "control", "debug"; | ||
88 | status = "okay"; | ||
89 | }; | ||
90 | }; | ||
91 | |||
92 | &pruss1 { | ||
93 | status = "disabled"; | ||
94 | }; | ||
95 | |||
96 | &pru1_0 { | ||
97 | status = "disabled"; | ||
98 | }; | ||
99 | |||
100 | &pru1_1 { | ||
101 | status = "disabled"; | ||
102 | }; | ||
103 | |||
104 | &pruss1_intc { | ||
105 | status = "disabled"; | ||
106 | }; | ||
107 | |||
108 | &pruss_soc_bus2 { | ||
109 | uio_pruss2_mdio: uio_mdio@4b2b2400 { | ||
110 | compatible = "ti,davinci_mdio"; | ||
111 | reg = <0x4b2b2400 0x90>; | ||
112 | #address-cells = <1>; | ||
113 | #size-cells = <0>; | ||
114 | clocks = <&dpll_gmac_h13x2_ck>; | ||
115 | clock-names = "fck"; | ||
116 | bus_freq = <1000000>; | ||
117 | status = "disabled"; | ||
118 | }; | ||
119 | |||
120 | uio_pruss2_mem: uio_pruss2_mem { | ||
121 | compatible = "ti,uio-module-drv"; | ||
122 | mem = <0x4b280000 0x2000>, | ||
123 | <0x4b282000 0x2000>, | ||
124 | <0x4b290000 0x8000>, | ||
125 | <0x4b2a0000 0x2000>, | ||
126 | <0x4b2a6000 0x2000>, | ||
127 | <0x4b2ae000 0x31c>, | ||
128 | <0x4b2b2000 0x58>; | ||
129 | mem-names = "dram0", "dram1", "shrdram2", "intc", "cfg", | ||
130 | "iep", "mii_rt"; | ||
131 | status = "okay"; | ||
132 | }; | ||
133 | uio_pruss2_mem2: uio_pruss2_mem2 { | ||
134 | compatible = "ti,uio-module-drv"; | ||
135 | mem = <0x4b2a8000 0x38>, | ||
136 | <0x4b2b0000 0x60>, | ||
137 | <0x4b2b2400 0x90>, | ||
138 | <0x40300000 0x40000>; | ||
139 | mem-names = "uart", "ecap", "mdio", "ocmc"; | ||
140 | status = "okay"; | ||
141 | }; | ||
142 | uio_pruss2_evt0: uio_pruss2_evt0 { | ||
143 | compatible = "ti,uio-module-drv"; | ||
144 | interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>; | ||
145 | interrupt-mode = <1>; | ||
146 | status = "okay"; | ||
147 | }; | ||
148 | uio_pruss2_evt1: uio_pruss2_evt1 { | ||
149 | compatible = "ti,uio-module-drv"; | ||
150 | interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>; | ||
151 | interrupt-mode = <1>; | ||
152 | status = "okay"; | ||
153 | }; | ||
154 | uio_pruss2_evt2: uio_pruss2_evt2 { | ||
155 | compatible = "ti,uio-module-drv"; | ||
156 | interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>; | ||
157 | interrupt-mode = <1>; | ||
158 | status = "okay"; | ||
159 | }; | ||
160 | uio_pruss2_evt3: uio_pruss2_evt3 { | ||
161 | compatible = "ti,uio-module-drv"; | ||
162 | interrupts = <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>; | ||
163 | interrupt-mode = <1>; | ||
164 | status = "okay"; | ||
165 | }; | ||
166 | uio_pruss2_evt4: uio_pruss2_evt4 { | ||
167 | compatible = "ti,uio-module-drv"; | ||
168 | interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>; | ||
169 | interrupt-mode = <1>; | ||
170 | status = "okay"; | ||
171 | }; | ||
172 | uio_pruss2_evt5: uio_pruss2_evt5 { | ||
173 | compatible = "ti,uio-module-drv"; | ||
174 | interrupts = <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>; | ||
175 | interrupt-mode = <1>; | ||
176 | status = "okay"; | ||
177 | }; | ||
178 | uio_pruss2_evt6: uio_pruss2_evt6 { | ||
179 | compatible = "ti,uio-module-drv"; | ||
180 | interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>; | ||
181 | interrupt-mode = <1>; | ||
182 | status = "okay"; | ||
183 | }; | ||
184 | uio_pruss2_evt7: uio_pruss2_evt7 { | ||
185 | compatible = "ti,uio-module-drv"; | ||
186 | interrupts = <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>; | ||
187 | interrupt-mode = <1>; | ||
188 | status = "okay"; | ||
189 | }; | ||
190 | |||
191 | uio_pruss2_0_mem: uio_pruss2_0_mem { | ||
192 | compatible = "ti,uio-module-drv"; | ||
193 | mem = <0x4b2b4000 0x3000>, | ||
194 | <0x4b2a2000 0x400>, | ||
195 | <0x4b2a2400 0x100>; | ||
196 | mem-names = "iram", "control", "debug"; | ||
197 | status = "okay"; | ||
198 | }; | ||
199 | uio_pruss2_1_mem: uio_pruss2_1_mem { | ||
200 | compatible = "ti,uio-module-drv"; | ||
201 | mem = <0x4b2b8000 0x3000>, | ||
202 | <0x4b2a4000 0x400>, | ||
203 | <0x4b2a4400 0x100>; | ||
204 | mem-names = "iram", "control", "debug"; | ||
205 | status = "okay"; | ||
206 | }; | ||
207 | }; | ||
208 | |||
209 | &uio_pruss2_mdio { | ||
210 | reset-gpios = <&gpio5 8 GPIO_ACTIVE_LOW>, | ||
211 | <&gpio5 9 GPIO_ACTIVE_LOW>; | ||
212 | reset-delay-us = <2>; /* PHY datasheet states 1uS min */ | ||
213 | }; | ||
214 | |||
215 | &uio_pruss2_mdio { | ||
216 | status = "okay"; | ||
217 | uio_pruss2_eth0_phy: uio_pruss2_eth0_phy@0 { | ||
218 | reg = <0>; | ||
219 | }; | ||
220 | |||
221 | uio_pruss2_eth1_phy: uio_pruss2_eth1_phy@1 { | ||
222 | reg = <1>; | ||
223 | }; | ||
224 | }; | ||
225 | |||
226 | &pruss2_emac0 { | ||
227 | status = "disabled"; | ||
228 | }; | ||
229 | |||
230 | &pruss2_emac1 { | ||
231 | status = "disabled"; | ||
232 | }; | ||
233 | |||
234 | &pruss2 { | ||
235 | status = "disabled"; | ||
236 | }; | ||
237 | |||
238 | &pru2_0 { | ||
239 | status = "disabled"; | ||
240 | }; | ||
241 | |||
242 | &pru2_1 { | ||
243 | status = "disabled"; | ||
244 | }; | ||
245 | |||
246 | &pruss2_intc { | ||
247 | status = "disabled"; | ||
248 | }; | ||
249 | |||
250 | &pruss2_mdio { | ||
251 | status = "disabled"; | ||
252 | }; | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am571x.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am571x.dtsi new file mode 100644 index 00000000..ebd61296 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am571x.dtsi | |||
@@ -0,0 +1,29 @@ | |||
1 | / { | ||
2 | reserved-memory { | ||
3 | #address-cells = <2>; | ||
4 | #size-cells = <2>; | ||
5 | ranges; | ||
6 | |||
7 | cmem_block_mem_0: cmem_block_mem@a0000000 { | ||
8 | reg = <0x0 0xa0000000 0x0 0x0c000000>; | ||
9 | no-map; | ||
10 | status = "okay"; | ||
11 | }; | ||
12 | }; | ||
13 | |||
14 | cmem { | ||
15 | compatible = "ti,cmem"; | ||
16 | #address-cells = <1>; | ||
17 | #size-cells = <0>; | ||
18 | |||
19 | #pool-size-cells = <2>; | ||
20 | |||
21 | status = "okay"; | ||
22 | |||
23 | cmem_block_0: cmem_block@0 { | ||
24 | reg = <0>; | ||
25 | memory-region = <&cmem_block_mem_0>; | ||
26 | cmem-buf-pools = <1 0x0 0x0c000000>; | ||
27 | }; | ||
28 | }; | ||
29 | }; | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am5729-beagleboneai.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am5729-beagleboneai.dtsi new file mode 100644 index 00000000..e0511d08 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am5729-beagleboneai.dtsi | |||
@@ -0,0 +1,40 @@ | |||
1 | / { | ||
2 | reserved-memory { | ||
3 | #address-cells = <2>; | ||
4 | #size-cells = <2>; | ||
5 | ranges; | ||
6 | |||
7 | cmem_block_mem_0: cmem_block_mem@a0000000 { | ||
8 | reg = <0x0 0xa0000000 0x0 0x18000000>; | ||
9 | no-map; | ||
10 | status = "okay"; | ||
11 | }; | ||
12 | |||
13 | cmem_block_mem_1_ocmc3: cmem_block_mem@40500000 { | ||
14 | reg = <0x0 0x40500000 0x0 0x100000>; | ||
15 | no-map; | ||
16 | status = "okay"; | ||
17 | }; | ||
18 | }; | ||
19 | |||
20 | cmem { | ||
21 | compatible = "ti,cmem"; | ||
22 | #address-cells = <1>; | ||
23 | #size-cells = <0>; | ||
24 | |||
25 | #pool-size-cells = <2>; | ||
26 | |||
27 | status = "okay"; | ||
28 | |||
29 | cmem_block_0: cmem_block@0 { | ||
30 | reg = <0>; | ||
31 | memory-region = <&cmem_block_mem_0>; | ||
32 | cmem-buf-pools = <1 0x0 0x18000000>; | ||
33 | }; | ||
34 | |||
35 | cmem_block_1: cmem_block@1 { | ||
36 | reg = <1>; | ||
37 | memory-region = <&cmem_block_mem_1_ocmc3>; | ||
38 | }; | ||
39 | }; | ||
40 | }; | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am572idk.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am572idk.dtsi new file mode 100644 index 00000000..6c39e22c --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am572idk.dtsi | |||
@@ -0,0 +1,40 @@ | |||
1 | / { | ||
2 | reserved-memory { | ||
3 | #address-cells = <2>; | ||
4 | #size-cells = <2>; | ||
5 | ranges; | ||
6 | |||
7 | cmem_block_mem_0: cmem_block_mem@a0000000 { | ||
8 | reg = <0x0 0xa0000000 0x0 0x20000000>; | ||
9 | no-map; | ||
10 | status = "okay"; | ||
11 | }; | ||
12 | |||
13 | cmem_block_mem_1_ocmc3: cmem_block_mem@40500000 { | ||
14 | reg = <0x0 0x40500000 0x0 0x100000>; | ||
15 | no-map; | ||
16 | status = "okay"; | ||
17 | }; | ||
18 | }; | ||
19 | |||
20 | cmem { | ||
21 | compatible = "ti,cmem"; | ||
22 | #address-cells = <1>; | ||
23 | #size-cells = <0>; | ||
24 | |||
25 | #pool-size-cells = <2>; | ||
26 | |||
27 | status = "okay"; | ||
28 | |||
29 | cmem_block_0: cmem_block@0 { | ||
30 | reg = <0>; | ||
31 | memory-region = <&cmem_block_mem_0>; | ||
32 | cmem-buf-pools = <1 0x0 0x20000000>; | ||
33 | }; | ||
34 | |||
35 | cmem_block_1: cmem_block@1 { | ||
36 | reg = <1>; | ||
37 | memory-region = <&cmem_block_mem_1_ocmc3>; | ||
38 | }; | ||
39 | }; | ||
40 | }; | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am574x.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am574x.dtsi new file mode 100644 index 00000000..8fb3e871 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am574x.dtsi | |||
@@ -0,0 +1,40 @@ | |||
1 | / { | ||
2 | reserved-memory { | ||
3 | #address-cells = <2>; | ||
4 | #size-cells = <2>; | ||
5 | ranges; | ||
6 | |||
7 | cmem_block_mem_0: cmem_block_mem@a0000000 { | ||
8 | reg = <0x0 0xa0000000 0x0 0x18000000>; | ||
9 | no-map; | ||
10 | status = "okay"; | ||
11 | }; | ||
12 | |||
13 | cmem_block_mem_1_ocmc3: cmem_block_mem@40500000 { | ||
14 | reg = <0x0 0x40500000 0x0 0x100000>; | ||
15 | no-map; | ||
16 | status = "okay"; | ||
17 | }; | ||
18 | }; | ||
19 | |||
20 | cmem { | ||
21 | compatible = "ti,cmem"; | ||
22 | #address-cells = <1>; | ||
23 | #size-cells = <0>; | ||
24 | |||
25 | #pool-size-cells = <2>; | ||
26 | |||
27 | status = "okay"; | ||
28 | |||
29 | cmem_block_0: cmem_block@0 { | ||
30 | reg = <0>; | ||
31 | memory-region = <&cmem_block_mem_0>; | ||
32 | cmem-buf-pools = <1 0x0 0x18000000>; | ||
33 | }; | ||
34 | |||
35 | cmem_block_1: cmem_block@1 { | ||
36 | reg = <1>; | ||
37 | memory-region = <&cmem_block_mem_1_ocmc3>; | ||
38 | }; | ||
39 | }; | ||
40 | }; | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra71x.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra71x.dtsi new file mode 100644 index 00000000..ebd61296 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra71x.dtsi | |||
@@ -0,0 +1,29 @@ | |||
1 | / { | ||
2 | reserved-memory { | ||
3 | #address-cells = <2>; | ||
4 | #size-cells = <2>; | ||
5 | ranges; | ||
6 | |||
7 | cmem_block_mem_0: cmem_block_mem@a0000000 { | ||
8 | reg = <0x0 0xa0000000 0x0 0x0c000000>; | ||
9 | no-map; | ||
10 | status = "okay"; | ||
11 | }; | ||
12 | }; | ||
13 | |||
14 | cmem { | ||
15 | compatible = "ti,cmem"; | ||
16 | #address-cells = <1>; | ||
17 | #size-cells = <0>; | ||
18 | |||
19 | #pool-size-cells = <2>; | ||
20 | |||
21 | status = "okay"; | ||
22 | |||
23 | cmem_block_0: cmem_block@0 { | ||
24 | reg = <0>; | ||
25 | memory-region = <&cmem_block_mem_0>; | ||
26 | cmem-buf-pools = <1 0x0 0x0c000000>; | ||
27 | }; | ||
28 | }; | ||
29 | }; | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra72x.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra72x.dtsi new file mode 100644 index 00000000..ebd61296 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra72x.dtsi | |||
@@ -0,0 +1,29 @@ | |||
1 | / { | ||
2 | reserved-memory { | ||
3 | #address-cells = <2>; | ||
4 | #size-cells = <2>; | ||
5 | ranges; | ||
6 | |||
7 | cmem_block_mem_0: cmem_block_mem@a0000000 { | ||
8 | reg = <0x0 0xa0000000 0x0 0x0c000000>; | ||
9 | no-map; | ||
10 | status = "okay"; | ||
11 | }; | ||
12 | }; | ||
13 | |||
14 | cmem { | ||
15 | compatible = "ti,cmem"; | ||
16 | #address-cells = <1>; | ||
17 | #size-cells = <0>; | ||
18 | |||
19 | #pool-size-cells = <2>; | ||
20 | |||
21 | status = "okay"; | ||
22 | |||
23 | cmem_block_0: cmem_block@0 { | ||
24 | reg = <0>; | ||
25 | memory-region = <&cmem_block_mem_0>; | ||
26 | cmem-buf-pools = <1 0x0 0x0c000000>; | ||
27 | }; | ||
28 | }; | ||
29 | }; | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra76x.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra76x.dtsi new file mode 100644 index 00000000..9d207db5 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra76x.dtsi | |||
@@ -0,0 +1,29 @@ | |||
1 | / { | ||
2 | reserved-memory { | ||
3 | #address-cells = <2>; | ||
4 | #size-cells = <2>; | ||
5 | ranges; | ||
6 | |||
7 | cmem_block_mem_0: cmem_block_mem@a0000000 { | ||
8 | reg = <0x0 0xa0000000 0x0 0x18000000>; | ||
9 | no-map; | ||
10 | status = "okay"; | ||
11 | }; | ||
12 | }; | ||
13 | |||
14 | cmem { | ||
15 | compatible = "ti,cmem"; | ||
16 | #address-cells = <1>; | ||
17 | #size-cells = <0>; | ||
18 | |||
19 | #pool-size-cells = <2>; | ||
20 | |||
21 | status = "okay"; | ||
22 | |||
23 | cmem_block_0: cmem_block@0 { | ||
24 | reg = <0>; | ||
25 | memory-region = <&cmem_block_mem_0>; | ||
26 | cmem-buf-pools = <1 0x0 0x18000000>; | ||
27 | }; | ||
28 | }; | ||
29 | }; | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem.dtsi new file mode 100644 index 00000000..c7781c48 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem.dtsi | |||
@@ -0,0 +1,40 @@ | |||
1 | / { | ||
2 | reserved-memory { | ||
3 | #address-cells = <2>; | ||
4 | #size-cells = <2>; | ||
5 | ranges; | ||
6 | |||
7 | cmem_block_mem_0: cmem_block_mem@a0000000 { | ||
8 | reg = <0x0 0xa0000000 0x0 0x0c000000>; | ||
9 | no-map; | ||
10 | status = "okay"; | ||
11 | }; | ||
12 | |||
13 | cmem_block_mem_1_ocmc3: cmem_block_mem@40500000 { | ||
14 | reg = <0x0 0x40500000 0x0 0x100000>; | ||
15 | no-map; | ||
16 | status = "okay"; | ||
17 | }; | ||
18 | }; | ||
19 | |||
20 | cmem { | ||
21 | compatible = "ti,cmem"; | ||
22 | #address-cells = <1>; | ||
23 | #size-cells = <0>; | ||
24 | |||
25 | #pool-size-cells = <2>; | ||
26 | |||
27 | status = "okay"; | ||
28 | |||
29 | cmem_block_0: cmem_block@0 { | ||
30 | reg = <0>; | ||
31 | memory-region = <&cmem_block_mem_0>; | ||
32 | cmem-buf-pools = <1 0x0 0x0c000000>; | ||
33 | }; | ||
34 | |||
35 | cmem_block_1: cmem_block@1 { | ||
36 | reg = <1>; | ||
37 | memory-region = <&cmem_block_mem_1_ocmc3>; | ||
38 | }; | ||
39 | }; | ||
40 | }; | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/ti33x/am335x-pru-uio.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/ti33x/am335x-pru-uio.dtsi new file mode 100644 index 00000000..93a40ab5 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/ti33x/am335x-pru-uio.dtsi | |||
@@ -0,0 +1,192 @@ | |||
1 | &pruss_soc_bus { | ||
2 | uio_pruss_mdio: uio_mdio@4a332400 { | ||
3 | compatible = "ti,davinci_mdio"; | ||
4 | reg = <0x4a332400 0x90>; | ||
5 | clocks = <&dpll_core_m4_ck>; | ||
6 | clock-names = "fck"; | ||
7 | bus_freq = <1000000>; | ||
8 | #address-cells = <1>; | ||
9 | #size-cells = <0>; | ||
10 | status = "disabled"; | ||
11 | }; | ||
12 | |||
13 | uio_pruss_mem: uio_pruss_mem { | ||
14 | compatible = "ti,uio-module-drv"; | ||
15 | mem = <0x4a300000 0x2000>, | ||
16 | <0x4a302000 0x2000>, | ||
17 | <0x4a310000 0x3000>, | ||
18 | <0x4a320000 0x2000>, | ||
19 | <0x4a326000 0x2000>, | ||
20 | <0x4a32e000 0x31c>, | ||
21 | <0x4a332000 0x58>; | ||
22 | mem-names = "dram0", "dram1", "shrdram2", "intc", "cfg", | ||
23 | "iep", "mii_rt"; | ||
24 | |||
25 | status = "okay"; | ||
26 | }; | ||
27 | uio_pruss_mem2: uio_pruss_mem2 { | ||
28 | compatible = "ti,uio-module-drv"; | ||
29 | mem = <0x4a328000 0xd4>, | ||
30 | <0x4a330000 0x174>, | ||
31 | <0x4a332400 0x90>, | ||
32 | <0x40302000 0x0e000>; | ||
33 | mem-names = "uart", "ecap", "mdio", "ocmc"; | ||
34 | status = "okay"; | ||
35 | }; | ||
36 | |||
37 | uio_pruss_evt0: uio_pruss_evt0 { | ||
38 | compatible = "ti,uio-module-drv"; | ||
39 | interrupts = <20>; | ||
40 | interrupt-mode = <1>; | ||
41 | status = "okay"; | ||
42 | }; | ||
43 | uio_pruss_evt1: uio_pruss_evt1 { | ||
44 | compatible = "ti,uio-module-drv"; | ||
45 | interrupts = <21>; | ||
46 | interrupt-mode = <1>; | ||
47 | status = "okay"; | ||
48 | }; | ||
49 | uio_pruss_evt2: uio_pruss_evt2 { | ||
50 | compatible = "ti,uio-module-drv"; | ||
51 | interrupts = <22>; | ||
52 | interrupt-mode = <1>; | ||
53 | status = "okay"; | ||
54 | }; | ||
55 | uio_pruss_evt3: uio_pruss_evt3 { | ||
56 | compatible = "ti,uio-module-drv"; | ||
57 | interrupts = <23>; | ||
58 | interrupt-mode = <1>; | ||
59 | status = "okay"; | ||
60 | }; | ||
61 | uio_pruss_evt4: uio_pruss_evt4 { | ||
62 | compatible = "ti,uio-module-drv"; | ||
63 | interrupts = <24>; | ||
64 | interrupt-mode = <1>; | ||
65 | status = "okay"; | ||
66 | }; | ||
67 | uio_pruss_evt5: uio_pruss_evt5 { | ||
68 | compatible = "ti,uio-module-drv"; | ||
69 | interrupts = <25>; | ||
70 | interrupt-mode = <1>; | ||
71 | status = "okay"; | ||
72 | }; | ||
73 | uio_pruss_evt6: uio_pruss_evt6 { | ||
74 | compatible = "ti,uio-module-drv"; | ||
75 | interrupts = <26>; | ||
76 | interrupt-mode = <1>; | ||
77 | status = "okay"; | ||
78 | }; | ||
79 | uio_pruss_evt7: uio_pruss_evt7 { | ||
80 | compatible = "ti,uio-module-drv"; | ||
81 | interrupts = <27>; | ||
82 | interrupt-mode = <1>; | ||
83 | status = "okay"; | ||
84 | }; | ||
85 | |||
86 | uio_pruss_0_mem: uio_pruss_0_mem { | ||
87 | compatible = "ti,uio-module-drv"; | ||
88 | mem = <0x4a334000 0x2000>, | ||
89 | <0x4a322000 0x400>, | ||
90 | <0x4a322400 0x100>; | ||
91 | mem-names = "iram", "control", "debug"; | ||
92 | status = "okay"; | ||
93 | }; | ||
94 | |||
95 | uio_pruss_1_mem: uio_pruss_1_mem { | ||
96 | compatible = "ti,uio-module-drv"; | ||
97 | mem = <0x4a338000 0x2000>, | ||
98 | <0x4a324000 0x400>, | ||
99 | <0x4a324400 0x100>; | ||
100 | mem-names = "iram", "control", "debug"; | ||
101 | status = "okay"; | ||
102 | }; | ||
103 | }; | ||
104 | |||
105 | &am33xx_pinmux { | ||
106 | uio_pruss_mdio_eth_default: uio_pruss_mdio_eht_default { | ||
107 | pinctrl-single,pins = < | ||
108 | AM33XX_IOPAD(0x88c, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_clk.pr1_mdio_mdclk */ | ||
109 | AM33XX_IOPAD(0x888, (PIN_INPUT | MUX_MODE5)) /* gpmc_csn3.pr1_mdio_data */ | ||
110 | AM33XX_IOPAD(0x89c, (PIN_INPUT_PULLUP | MUX_MODE7)) /* gpmc_ben0_cle.gpio2_5 */ | ||
111 | /* disable CPSW MDIO */ | ||
112 | AM33XX_IOPAD(0x948, (PIN_INPUT_PULLUP | MUX_MODE7)) /* mdio_data.gpio0_0 */ | ||
113 | AM33XX_IOPAD(0x94c, (PIN_INPUT_PULLUP | MUX_MODE7)) /* mdio_clk.gpio0_1 */ | ||
114 | AM33XX_IOPAD(0x8a0, (PIN_INPUT | MUX_MODE2)) /* dss_data0.pr1_mii_mt0_clk */ | ||
115 | AM33XX_IOPAD(0x8b4, (PIN_OUTPUT | MUX_MODE2)) /* dss_data5.pr1_mii0_txd0 */ | ||
116 | AM33XX_IOPAD(0x8b0, (PIN_OUTPUT | MUX_MODE2)) /* dss_data4.pr1_mii0_txd1 */ | ||
117 | AM33XX_IOPAD(0x8ac, (PIN_OUTPUT | MUX_MODE2)) /* dss_data3.pr1_mii0_txd2 */ | ||
118 | AM33XX_IOPAD(0x8a8, (PIN_OUTPUT | MUX_MODE2)) /* dss_data2.pr1_mii0_txd3 */ | ||
119 | AM33XX_IOPAD(0x8cc, (PIN_INPUT | MUX_MODE5)) /* dss_data11.pr1_mii0_rxd0 */ | ||
120 | AM33XX_IOPAD(0x8c8, (PIN_INPUT | MUX_MODE5)) /* dss_data10.pr1_mii0_rxd1 */ | ||
121 | AM33XX_IOPAD(0x8c4, (PIN_INPUT | MUX_MODE5)) /* dss_data9.pr1_mii0_rxd2 */ | ||
122 | AM33XX_IOPAD(0x8c0, (PIN_INPUT | MUX_MODE5)) /* dss_data8.pr1_mii0_rxd3 */ | ||
123 | AM33XX_IOPAD(0x8a4, (PIN_OUTPUT | MUX_MODE2)) /* dss_data1.pr1_mii0_txen */ | ||
124 | AM33XX_IOPAD(0x8d8, (PIN_INPUT | MUX_MODE5)) /* dss_data14.pr1_mii_mr0_clk */ | ||
125 | AM33XX_IOPAD(0x8dc, (PIN_INPUT | MUX_MODE5)) /* dss_data15.pr1_mii0_rxdv */ | ||
126 | AM33XX_IOPAD(0x8d4, (PIN_INPUT | MUX_MODE5)) /* dss_data13.pr1_mii0_rxer */ | ||
127 | AM33XX_IOPAD(0x8d0, (PIN_INPUT | MUX_MODE5)) /* dss_data12.pr1_mii0_rxlink */ | ||
128 | AM33XX_IOPAD(0x8e8, (PIN_INPUT | MUX_MODE2)) /* dss_pclk.pr1_mii0_crs */ | ||
129 | |||
130 | AM33XX_IOPAD(0x840, (PIN_INPUT | MUX_MODE5)) /* gpmc_a0.pr1_mii_mt1_clk */ | ||
131 | AM33XX_IOPAD(0x850, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a4.pr1_mii1_txd0 */ | ||
132 | AM33XX_IOPAD(0x84c, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a3.pr1_mii1_txd1 */ | ||
133 | AM33XX_IOPAD(0x848, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a2.pr1_mii1_txd2 */ | ||
134 | AM33XX_IOPAD(0x844, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a1.pr1_mii1_txd3 */ | ||
135 | AM33XX_IOPAD(0x860, (PIN_INPUT | MUX_MODE5)) /* gpmc_a8.pr1_mii1_rxd0 */ | ||
136 | AM33XX_IOPAD(0x85c, (PIN_INPUT | MUX_MODE5)) /* gpmc_a7.pr1_mii1_rxd1 */ | ||
137 | AM33XX_IOPAD(0x858, (PIN_INPUT | MUX_MODE5)) /* gpmc_a6.pr1_mii1_rxd2 */ | ||
138 | AM33XX_IOPAD(0x854, (PIN_INPUT | MUX_MODE5)) /* gpmc_a5.pr1_mii1_rxd3 */ | ||
139 | AM33XX_IOPAD(0x874, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_wpn.pr1_mii1_txen */ | ||
140 | AM33XX_IOPAD(0x864, (PIN_INPUT | MUX_MODE5)) /* gpmc_a9.pr1_mii_mr1_clk */ | ||
141 | AM33XX_IOPAD(0x868, (PIN_INPUT | MUX_MODE5)) /* gpmc_a10.pr1_mii1_rxdv */ | ||
142 | AM33XX_IOPAD(0x86c, (PIN_INPUT | MUX_MODE5)) /* gpmc_a11.pr1_mii1_rxer */ | ||
143 | AM33XX_IOPAD(0x878, (PIN_INPUT | MUX_MODE5)) /* gpmc_ben1.pr1_mii1_rxlink */ | ||
144 | AM33XX_IOPAD(0x8ec, (PIN_INPUT | MUX_MODE2)) /* lcd_ac_bias_en.pr1_mii1_crs */ | ||
145 | AM33XX_IOPAD(0x870, (PIN_INPUT | MUX_MODE5)) /* gpmc_wait0.pr1_mii1_col */ | ||
146 | >; | ||
147 | }; | ||
148 | }; | ||
149 | |||
150 | &uio_pruss_mdio { | ||
151 | pinctrl-0 = <&uio_pruss_mdio_eth_default>; | ||
152 | pinctrl-names = "default"; | ||
153 | reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; | ||
154 | reset-delay-us = <2>; /* PHY datasheet states 1uS min */ | ||
155 | status = "okay"; | ||
156 | |||
157 | uio_pruss_eth0_phy: ethernet-phy@1 { | ||
158 | reg = <1>; | ||
159 | }; | ||
160 | |||
161 | uio_pruss_eth1_phy: ethernet-phy@3 { | ||
162 | reg = <3>; | ||
163 | }; | ||
164 | }; | ||
165 | |||
166 | &pruss { | ||
167 | status = "disabled"; | ||
168 | }; | ||
169 | |||
170 | &pru0 { | ||
171 | status = "disabled"; | ||
172 | }; | ||
173 | |||
174 | &pru1 { | ||
175 | status = "disabled"; | ||
176 | }; | ||
177 | |||
178 | &pruss_intc { | ||
179 | status = "disabled"; | ||
180 | }; | ||
181 | |||
182 | &pruss_mdio { | ||
183 | status = "disabled"; | ||
184 | }; | ||
185 | |||
186 | &pruss_emac0 { | ||
187 | status = "disabled"; | ||
188 | }; | ||
189 | |||
190 | &pruss_emac1 { | ||
191 | status = "disabled"; | ||
192 | }; | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/ti43x/am437x-pru-uio.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/ti43x/am437x-pru-uio.dtsi new file mode 100644 index 00000000..80993c4b --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/ti43x/am437x-pru-uio.dtsi | |||
@@ -0,0 +1,292 @@ | |||
1 | &pruss_soc_bus { | ||
2 | uio_pruss2_mdio: uio_mdio@54432400 { | ||
3 | compatible = "ti,davinci_mdio"; | ||
4 | reg = <0x54432400 0x90>; | ||
5 | clocks = <&dpll_core_m4_ck>; | ||
6 | clock-names = "fck"; | ||
7 | bus_freq = <1000000>; | ||
8 | #address-cells = <1>; | ||
9 | #size-cells = <0>; | ||
10 | status = "disabled"; | ||
11 | }; | ||
12 | |||
13 | uio_pruss2_mem: uio_pruss2_mem { | ||
14 | compatible = "ti,uio-module-drv"; | ||
15 | mem = <0x54400000 0x2000>, | ||
16 | <0x54402000 0x2000>, | ||
17 | <0x54410000 0x8000>, | ||
18 | <0x54420000 0x2000>, | ||
19 | <0x54426000 0x2000>, | ||
20 | <0x5442e000 0x31c>, | ||
21 | <0x54432000 0x58>; | ||
22 | mem-names = "dram0", "dram1", "shrdram2", "intc", "cfg", | ||
23 | "iep", "mii_rt"; | ||
24 | status = "okay"; | ||
25 | }; | ||
26 | uio_pruss2_mem2: uio_pruss2_mem2 { | ||
27 | compatible = "ti,uio-module-drv"; | ||
28 | mem = <0x54428000 0x38>, | ||
29 | <0x54430000 0x60>, | ||
30 | <0x54432400 0x90>, | ||
31 | <0x40320000 0x20000>; | ||
32 | mem-names = "uart", "ecap", "mdio", "ocmc"; | ||
33 | status = "okay"; | ||
34 | }; | ||
35 | uio_pruss2_evt0: uio_pruss2_evt0 { | ||
36 | compatible = "ti,uio-module-drv"; | ||
37 | interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; | ||
38 | interrupt-mode = <1>; | ||
39 | status = "okay"; | ||
40 | }; | ||
41 | uio_pruss2_evt1: uio_pruss2_evt1 { | ||
42 | compatible = "ti,uio-module-drv"; | ||
43 | interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; | ||
44 | interrupt-mode = <1>; | ||
45 | status = "okay"; | ||
46 | }; | ||
47 | uio_pruss2_evt2: uio_pruss2_evt2 { | ||
48 | compatible = "ti,uio-module-drv"; | ||
49 | interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>; | ||
50 | interrupt-mode = <1>; | ||
51 | status = "okay"; | ||
52 | }; | ||
53 | uio_pruss2_evt3: uio_pruss2_evt3 { | ||
54 | compatible = "ti,uio-module-drv"; | ||
55 | interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; | ||
56 | interrupt-mode = <1>; | ||
57 | status = "okay"; | ||
58 | }; | ||
59 | uio_pruss2_evt4: uio_pruss2_evt4 { | ||
60 | compatible = "ti,uio-module-drv"; | ||
61 | interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; | ||
62 | interrupt-mode = <1>; | ||
63 | status = "okay"; | ||
64 | }; | ||
65 | uio_pruss2_evt5: uio_pruss2_evt5 { | ||
66 | compatible = "ti,uio-module-drv"; | ||
67 | interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; | ||
68 | interrupt-mode = <1>; | ||
69 | status = "okay"; | ||
70 | }; | ||
71 | uio_pruss2_evt6: uio_pruss2_evt6 { | ||
72 | compatible = "ti,uio-module-drv"; | ||
73 | interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; | ||
74 | interrupt-mode = <1>; | ||
75 | status = "okay"; | ||
76 | }; | ||
77 | uio_pruss2_evt7: uio_pruss2_evt7 { | ||
78 | compatible = "ti,uio-module-drv"; | ||
79 | interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; | ||
80 | interrupt-mode = <1>; | ||
81 | status = "okay"; | ||
82 | }; | ||
83 | |||
84 | uio_pruss2_0_mem: uio_pruss2_0_mem { | ||
85 | compatible = "ti,uio-module-drv"; | ||
86 | mem = <0x54434000 0x3000>, | ||
87 | <0x54422000 0x400>, | ||
88 | <0x54422400 0x100>; | ||
89 | mem-names = "iram", "control", "debug"; | ||
90 | status = "okay"; | ||
91 | }; | ||
92 | |||
93 | uio_pruss2_1_mem: uio_pruss2_1_mem { | ||
94 | compatible = "ti,uio-module-drv"; | ||
95 | mem = <0x54438000 0x3000>, | ||
96 | <0x54424000 0x400>, | ||
97 | <0x54424400 0x100>; | ||
98 | mem-names = "iram", "control", "debug"; | ||
99 | status = "okay"; | ||
100 | }; | ||
101 | |||
102 | uio_pruss1_mem: uio_pruss1_mem { | ||
103 | compatible = "ti,uio-module-drv"; | ||
104 | mem = <0x54440000 0x1000>, | ||
105 | <0x54442000 0x1000>, | ||
106 | <0x54450000 0x8000>, | ||
107 | <0x54460000 0x2000>, | ||
108 | <0x54466000 0x2000>, | ||
109 | <0x5446e000 0x31c>, | ||
110 | <0x54472000 0x58>; | ||
111 | mem-names = "dram0", "dram1", "shrdram2", "intc", "cfg", | ||
112 | "iep", "mii_rt"; | ||
113 | status = "okay"; | ||
114 | }; | ||
115 | uio_pruss1_mem2: uio_pruss1_mem2 { | ||
116 | compatible = "ti,uio-module-drv"; | ||
117 | mem = <0x54468000 0x38>, | ||
118 | <0x54470000 0x60>, | ||
119 | <0x54472400 0x90>, | ||
120 | <0x40302000 0x1e000>; | ||
121 | mem-names = "uart", "ecap", "mdio", "ocmc"; | ||
122 | status = "okay"; | ||
123 | }; | ||
124 | uio_pruss1_evt0: uio_pruss1_evt0 { | ||
125 | compatible = "ti,uio-module-drv"; | ||
126 | interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>; | ||
127 | interrupt-mode = <1>; | ||
128 | status = "okay"; | ||
129 | }; | ||
130 | uio_pruss1_evt1: uio_pruss1_evt1 { | ||
131 | compatible = "ti,uio-module-drv"; | ||
132 | interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>; | ||
133 | interrupt-mode = <1>; | ||
134 | status = "okay"; | ||
135 | }; | ||
136 | uio_pruss1_evt2: uio_pruss1_evt2 { | ||
137 | compatible = "ti,uio-module-drv"; | ||
138 | interrupts = <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>; | ||
139 | interrupt-mode = <1>; | ||
140 | status = "okay"; | ||
141 | }; | ||
142 | uio_pruss1_evt3: uio_pruss1_evt3 { | ||
143 | compatible = "ti,uio-module-drv"; | ||
144 | interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>; | ||
145 | interrupt-mode = <1>; | ||
146 | status = "okay"; | ||
147 | }; | ||
148 | uio_pruss1_evt4: uio_pruss1_evt4 { | ||
149 | compatible = "ti,uio-module-drv"; | ||
150 | interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>; | ||
151 | interrupt-mode = <1>; | ||
152 | status = "okay"; | ||
153 | }; | ||
154 | uio_pruss1_evt5: uio_pruss1_evt5 { | ||
155 | compatible = "ti,uio-module-drv"; | ||
156 | interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>; | ||
157 | interrupt-mode = <1>; | ||
158 | status = "okay"; | ||
159 | }; | ||
160 | uio_pruss1_evt6: uio_pruss1_evt6 { | ||
161 | compatible = "ti,uio-module-drv"; | ||
162 | interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>; | ||
163 | interrupt-mode = <1>; | ||
164 | status = "okay"; | ||
165 | }; | ||
166 | uio_pruss1_evt7: uio_pruss1_evt7 { | ||
167 | compatible = "ti,uio-module-drv"; | ||
168 | interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>; | ||
169 | interrupt-mode = <1>; | ||
170 | status = "okay"; | ||
171 | }; | ||
172 | |||
173 | uio_pruss1_0_mem: uio_pruss1_0_mem { | ||
174 | compatible = "ti,uio-module-drv"; | ||
175 | mem = <0x54474000 0x1000>, | ||
176 | <0x54462000 0x400>, | ||
177 | <0x54462400 0x100>; | ||
178 | mem-names = "iram", "control", "debug"; | ||
179 | status = "okay"; | ||
180 | }; | ||
181 | uio_pruss1_1_mem: uio_pruss1_1_mem { | ||
182 | compatible = "ti,uio-module-drv"; | ||
183 | mem = <0x54478000 0x1000>, | ||
184 | <0x54464000 0x400>, | ||
185 | <0x54464400 0x100>; | ||
186 | mem-names = "iram", "control", "debug"; | ||
187 | status = "okay"; | ||
188 | }; | ||
189 | }; | ||
190 | |||
191 | &am43xx_pinmux { | ||
192 | uio_pruss2_mdio_eth_default: uio_pruss2_mdio_eth_default { | ||
193 | pinctrl-single,pins = < | ||
194 | AM4372_IOPAD(0x88c, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_clk.pr1_mdio_mdclk */ | ||
195 | AM4372_IOPAD(0xa70, (PIN_INPUT | MUX_MODE8)) /* xdma_event_intr0.pr1_mdio_data */ | ||
196 | AM4372_IOPAD(0xa00, (PIN_INPUT_PULLUP | MUX_MODE7)) /* cam1_data6.gpio4_20 */ | ||
197 | AM4372_IOPAD(0x8a0, (PIN_INPUT | MUX_MODE2)) /* dss_data0.pr1_mii_mt0_clk */ | ||
198 | AM4372_IOPAD(0x8b4, (PIN_OUTPUT | MUX_MODE2)) /* dss_data5.pr1_mii0_txd0 */ | ||
199 | AM4372_IOPAD(0x8b0, (PIN_OUTPUT | MUX_MODE2)) /* dss_data4.pr1_mii0_txd1 */ | ||
200 | AM4372_IOPAD(0x8ac, (PIN_OUTPUT | MUX_MODE2)) /* dss_data3.pr1_mii0_txd2 */ | ||
201 | AM4372_IOPAD(0x8a8, (PIN_OUTPUT | MUX_MODE2)) /* dss_data2.pr1_mii0_txd3 */ | ||
202 | AM4372_IOPAD(0x8cc, (PIN_INPUT | MUX_MODE5)) /* dss_data11.pr1_mii0_rxd0 */ | ||
203 | AM4372_IOPAD(0x8c8, (PIN_INPUT | MUX_MODE5)) /* dss_data10.pr1_mii0_rxd1 */ | ||
204 | AM4372_IOPAD(0x8c4, (PIN_INPUT | MUX_MODE5)) /* dss_data9.pr1_mii0_rxd2 */ | ||
205 | AM4372_IOPAD(0x8c0, (PIN_INPUT | MUX_MODE5)) /* dss_data8.pr1_mii0_rxd3 */ | ||
206 | AM4372_IOPAD(0x8a4, (PIN_OUTPUT | MUX_MODE2)) /* dss_data1.pr1_mii0_txen */ | ||
207 | AM4372_IOPAD(0x8d8, (PIN_INPUT | MUX_MODE5)) /* dss_data14.pr1_mii_mr0_clk */ | ||
208 | AM4372_IOPAD(0x8dc, (PIN_INPUT | MUX_MODE5)) /* dss_data15.pr1_mii0_rxdv */ | ||
209 | AM4372_IOPAD(0x8d4, (PIN_INPUT | MUX_MODE5)) /* dss_data13.pr1_mii0_rxer */ | ||
210 | AM4372_IOPAD(0x8d0, (PIN_INPUT | MUX_MODE5)) /* dss_data12.pr1_mii0_rxlink */ | ||
211 | AM4372_IOPAD(0xa40, (PIN_INPUT | MUX_MODE5)) /* gpio5_10.pr1_mii0_crs */ | ||
212 | AM4372_IOPAD(0xa38, (PIN_INPUT | MUX_MODE5)) /* gpio5_8.pr1_mii0_col */ | ||
213 | AM4372_IOPAD(0x858, (PIN_INPUT | MUX_MODE5)) /* gpmc_a6.pr1_mii_mt1_clk */ | ||
214 | AM4372_IOPAD(0x854, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a5.pr1_mii1_txd0 */ | ||
215 | AM4372_IOPAD(0x850, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a4.pr1_mii1_txd1 */ | ||
216 | AM4372_IOPAD(0x84c, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a3.pr1_mii1_txd2 */ | ||
217 | AM4372_IOPAD(0x848, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a2.pr1_mii1_txd3 */ | ||
218 | AM4372_IOPAD(0x86c, (PIN_INPUT | MUX_MODE5)) /* gpmc_a11.pr1_mii1_rxd0 */ | ||
219 | AM4372_IOPAD(0x868, (PIN_INPUT | MUX_MODE5)) /* gpmc_a10.pr1_mii1_rxd1 */ | ||
220 | AM4372_IOPAD(0x864, (PIN_INPUT | MUX_MODE5)) /* gpmc_a9.pr1_mii1_rxd2 */ | ||
221 | AM4372_IOPAD(0x860, (PIN_INPUT | MUX_MODE5)) /* gpmc_a8.pr1_mii1_rxd3 */ | ||
222 | AM4372_IOPAD(0x840, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a0.pr1_mii1_txen */ | ||
223 | AM4372_IOPAD(0x85c, (PIN_INPUT | MUX_MODE5)) /* gpmc_a7.pr1_mii_mr1_clk */ | ||
224 | AM4372_IOPAD(0x844, (PIN_INPUT | MUX_MODE5)) /* gpmc_a1.pr1_mii1_rxdv */ | ||
225 | AM4372_IOPAD(0x874, (PIN_INPUT | MUX_MODE5)) /* gpmc_wpn.pr1_mii1_rxer */ | ||
226 | AM4372_IOPAD(0xa4c, (PIN_INPUT | MUX_MODE5)) /* gpio5_13.pr1_mii1_rxlink */ | ||
227 | AM4372_IOPAD(0xa44, (PIN_INPUT | MUX_MODE5)) /* gpio5_11.pr1_mii1_crs */ | ||
228 | AM4372_IOPAD(0x878, (PIN_INPUT | MUX_MODE5)) /* gpmc_be1n.pr1_mii1_col */ | ||
229 | >; | ||
230 | }; | ||
231 | }; | ||
232 | |||
233 | &uio_pruss2_mdio { | ||
234 | pinctrl-0 = <&uio_pruss2_mdio_eth_default>; | ||
235 | pinctrl-names = "default"; | ||
236 | status = "okay"; | ||
237 | |||
238 | reset-gpios = <&gpio4 20 GPIO_ACTIVE_LOW>; | ||
239 | reset-delay-us = <2>; /* PHY datasheet states 1uS min */ | ||
240 | |||
241 | uio_pruss2_eth0_phy: uio_ethernet-phy@0 { | ||
242 | reg = <0>; | ||
243 | }; | ||
244 | |||
245 | uio_pruss2_eth1_phy: uio_ethernet-phy@1 { | ||
246 | reg = <1>; | ||
247 | }; | ||
248 | }; | ||
249 | |||
250 | &pruss1 { | ||
251 | status = "disabled"; | ||
252 | }; | ||
253 | |||
254 | &pru1_0 { | ||
255 | status = "disabled"; | ||
256 | }; | ||
257 | |||
258 | &pru1_1 { | ||
259 | status = "disabled"; | ||
260 | }; | ||
261 | |||
262 | &pruss1_intc { | ||
263 | status = "disabled"; | ||
264 | }; | ||
265 | |||
266 | &pruss1_mdio { | ||
267 | status = "disabled"; | ||
268 | }; | ||
269 | |||
270 | &pruss0 { | ||
271 | status = "disabled"; | ||
272 | }; | ||
273 | |||
274 | &pru0_0 { | ||
275 | status = "disabled"; | ||
276 | }; | ||
277 | |||
278 | &pru0_1 { | ||
279 | status = "disabled"; | ||
280 | }; | ||
281 | |||
282 | &pruss0_intc { | ||
283 | status = "disabled"; | ||
284 | }; | ||
285 | |||
286 | &pruss1_emac0 { | ||
287 | status = "disabled"; | ||
288 | }; | ||
289 | |||
290 | &pruss1_emac1 { | ||
291 | status = "disabled"; | ||
292 | }; | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc b/meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc new file mode 100644 index 00000000..0425c789 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc | |||
@@ -0,0 +1,27 @@ | |||
1 | # Pull in the devicetree files into the rootfs | ||
2 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base += "kernel-devicetree" | ||
3 | |||
4 | # Add run-time dependency for PM firmware to the rootfs | ||
5 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " amx3-cm3" | ||
6 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " amx3-cm3" | ||
7 | |||
8 | # Add run-time dependency for VPE VPDMA firmware to the rootfs | ||
9 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " vpdma-fw" | ||
10 | |||
11 | # Add run-time dependency for Goodix firmware to the rootfs | ||
12 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " goodix-fw" | ||
13 | |||
14 | # Add run-time dependency for PRU Ethernet firmware to the rootfs | ||
15 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am57xx-evm = " prueth-fw prusw-fw pruhsr-fw pruprp-fw" | ||
16 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am57xx-hs-evm = " prueth-fw prusw-fw pruhsr-fw pruprp-fw" | ||
17 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " prueth-fw pruhsr-fw pruprp-fw" | ||
18 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " prueth-fw pruhsr-fw pruprp-fw" | ||
19 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx = " prueth-fw-am65x" | ||
20 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx-evm = " prueth-fw-am65x-sr2 prusw-fw-am65x-sr2" | ||
21 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am64xx-evm = " prueth-fw-am65x-sr2" | ||
22 | |||
23 | # Add run-time dependency for Cadence MHDP firmware to the rootfs | ||
24 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j7 = " cadence-mhdp-fw" | ||
25 | |||
26 | # Add run-time dependency for Video Decoding firmware to the rootfs | ||
27 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j7 = " vxd-dec-fw" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/defconfig new file mode 100644 index 00000000..d083d182 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_omap2_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/dra7xx/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/dra7xx/defconfig new file mode 100644 index 00000000..dcb53bab --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/dra7xx/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_dra7x_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/k3/defconfig new file mode 100644 index 00000000..b9bc6137 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/k3/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_arm64_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/omapl138/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/omapl138/defconfig new file mode 100644 index 00000000..b3467853 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/omapl138/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_omapl138_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/ti33x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/ti33x/defconfig new file mode 100644 index 00000000..88f80fa9 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/ti33x/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_am3x_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/ti43x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/ti43x/defconfig new file mode 100644 index 00000000..4b9daaf9 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/ti43x/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_am4x_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb new file mode 100644 index 00000000..6fe21071 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb | |||
@@ -0,0 +1,75 @@ | |||
1 | SECTION = "kernel" | ||
2 | SUMMARY = "Mainline Linux kernel for TI devices (with ti-upstream-tools)" | ||
3 | LICENSE = "GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
5 | |||
6 | inherit kernel | ||
7 | |||
8 | DEFCONFIG_BUILDER = "${WORKDIR}/ti-upstream-tools/config/defconfig_builder.sh" | ||
9 | require recipes-kernel/linux/setup-defconfig.inc | ||
10 | require recipes-kernel/linux/kernel-rdepends.inc | ||
11 | require recipes-kernel/linux/ti-kernel.inc | ||
12 | |||
13 | DEPENDS += "gmp-native" | ||
14 | |||
15 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \ | ||
16 | ${EXTRA_DTC_ARGS}" | ||
17 | |||
18 | S = "${WORKDIR}/git" | ||
19 | |||
20 | BRANCH = "master" | ||
21 | TOOLS_BRANCH = "master" | ||
22 | |||
23 | # 5.15 Mainline version | ||
24 | SRCREV = "8bb7eca972ad531c9b149c0a51ab43a417385813" | ||
25 | PV = "5.15+git${SRCPV}" | ||
26 | |||
27 | # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild | ||
28 | MACHINE_KERNEL_PR:append = "b" | ||
29 | PR = "${MACHINE_KERNEL_PR}" | ||
30 | |||
31 | KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git" | ||
32 | KERNEL_GIT_PROTOCOL = "git" | ||
33 | SRC_URI += " \ | ||
34 | ${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH};name=linux \ | ||
35 | git://git.ti.com/ti-linux-kernel/ti-upstream-tools.git;branch=${TOOLS_BRANCH};protocol=${KERNEL_GIT_PROTOCOL};name=ti-upstream-tools;destsuffix=ti-upstream-tools \ | ||
36 | file://defconfig \ | ||
37 | " | ||
38 | |||
39 | SRCREV_ti-upstream-tools = "0f60697843bba6f8d721b14da92b1652563ccb95" | ||
40 | SRCREV_FORMAT = "linux" | ||
41 | |||
42 | KERNEL_DEVICETREE = "" | ||
43 | |||
44 | kernel_do_compile:append() { | ||
45 | oe_runmake dtbs CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS} | ||
46 | oe_runmake -C ${WORKDIR}/ti-upstream-tools LINUX=${S} DTC=${B}/scripts/dtc/dtc O=${B} CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS} | ||
47 | } | ||
48 | |||
49 | do_install:append() { | ||
50 | for dtbf in `find arch/${ARCH}/boot/dts/ \( -name '*.dtb' -or -name '*.dtbo' \)`; do | ||
51 | dtb="$dtbf" | ||
52 | dtb_ext=${dtb##*.} | ||
53 | dtb_base_name=`basename $dtb .$dtb_ext` | ||
54 | dtb_path=`get_real_dtb_path_in_kernel "$dtb"` | ||
55 | install -m 0644 $dtbf ${D}/${KERNEL_IMAGEDEST}/$dtb_base_name.$dtb_ext | ||
56 | done | ||
57 | } | ||
58 | |||
59 | do_deploy:append() { | ||
60 | for dtbf in `find arch/${ARCH}/boot/dts/ \( -name '*.dtb' -or -name '*.dtbo' \) -printf '%P\n'`; do | ||
61 | dtb="$dtbf" | ||
62 | dtb_ext=${dtb##*.} | ||
63 | dtb_base_name=`basename $dtb .$dtb_ext` | ||
64 | dtb_dir=`dirname $dtb` | ||
65 | install -d ${DEPLOYDIR} | ||
66 | install -m 0644 ${D}/${KERNEL_IMAGEDEST}/$dtb_base_name.$dtb_ext ${DEPLOYDIR}/$dtb_base_name.$dtb_ext | ||
67 | done | ||
68 | } | ||
69 | |||
70 | do_shared_workdir:prepend() { | ||
71 | cd ${B} | ||
72 | echo >> Module.symvers | ||
73 | } | ||
74 | |||
75 | FILES:${KERNEL_PACKAGE_NAME}-devicetree += "/${KERNEL_IMAGEDEST}/*.itb" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/defconfig new file mode 100644 index 00000000..d083d182 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_omap2_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/dra7xx/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/dra7xx/defconfig new file mode 100644 index 00000000..dcb53bab --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/dra7xx/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_dra7x_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/k3/defconfig new file mode 100644 index 00000000..b9bc6137 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/k3/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_arm64_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/omapl138/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/omapl138/defconfig new file mode 100644 index 00000000..b3467853 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/omapl138/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_omapl138_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/ti33x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/ti33x/defconfig new file mode 100644 index 00000000..88f80fa9 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/ti33x/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_am3x_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/ti43x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/ti43x/defconfig new file mode 100644 index 00000000..4b9daaf9 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/ti43x/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_am4x_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/defconfig new file mode 100644 index 00000000..d083d182 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_omap2_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/dra7xx/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/dra7xx/defconfig new file mode 100644 index 00000000..dcb53bab --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/dra7xx/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_dra7x_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/k3/defconfig new file mode 100644 index 00000000..b9bc6137 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/k3/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_arm64_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/omapl138/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/omapl138/defconfig new file mode 100644 index 00000000..b3467853 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/omapl138/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_omapl138_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/ti33x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/ti33x/defconfig new file mode 100644 index 00000000..88f80fa9 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/ti33x/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_am3x_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/ti43x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/ti43x/defconfig new file mode 100644 index 00000000..4b9daaf9 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/ti43x/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_am4x_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/defconfig new file mode 100644 index 00000000..f0b8bab0 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_omap2_rt_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/dra7xx/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/dra7xx/defconfig new file mode 100644 index 00000000..47e3d04a --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/dra7xx/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_dra7x_rt_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/k3/defconfig new file mode 100644 index 00000000..cc10bfda --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/k3/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_arm64_rt_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/ti33x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/ti33x/defconfig new file mode 100644 index 00000000..0a4fbac2 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/ti33x/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_am3x_rt_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/ti43x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/ti43x/defconfig new file mode 100644 index 00000000..99594c81 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/ti43x/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_am4x_rt_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/defconfig new file mode 100644 index 00000000..f0b8bab0 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_omap2_rt_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/dra7xx/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/dra7xx/defconfig new file mode 100644 index 00000000..47e3d04a --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/dra7xx/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_dra7x_rt_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/k3/defconfig new file mode 100644 index 00000000..cc10bfda --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/k3/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_arm64_rt_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/ti33x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/ti33x/defconfig new file mode 100644 index 00000000..0a4fbac2 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/ti33x/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_am3x_rt_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/ti43x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/ti43x/defconfig new file mode 100644 index 00000000..99594c81 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/ti43x/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_am4x_rt_release | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_5.10.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_5.10.bb new file mode 100644 index 00000000..10325a8b --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_5.10.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require linux-ti-staging_5.10.bb | ||
2 | |||
3 | # Look in the generic major.minor directory for files | ||
4 | # This will have priority over generic non-rt path | ||
5 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-5.10:" | ||
6 | |||
7 | BRANCH = "ti-rt-linux-5.10.y" | ||
8 | |||
9 | SRCREV = "541ec9a6995c3dd881d6f0b63cc714a08ded457d" | ||
10 | PV = "5.10.65+git${SRCPV}" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_5.4.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_5.4.bb new file mode 100644 index 00000000..8a0c0eaf --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_5.4.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require linux-ti-staging_5.4.bb | ||
2 | |||
3 | # Look in the generic major.minor directory for files | ||
4 | # This will have priority over generic non-rt path | ||
5 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-5.4:" | ||
6 | |||
7 | BRANCH = "ti-rt-linux-5.4.y" | ||
8 | |||
9 | SRCREV = "519667b0d81d74a6e55105dcd6072ae550352599" | ||
10 | PV = "5.4.106+git${SRCPV}" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/defconfig new file mode 100644 index 00000000..5d051bd1 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_omap2_debug | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/dra7xx/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/dra7xx/defconfig new file mode 100644 index 00000000..2b3635c3 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/dra7xx/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_dra7x_debug | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/k3/defconfig new file mode 100644 index 00000000..56cf9302 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/k3/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_arm64_debug | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/omapl138/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/omapl138/defconfig new file mode 100644 index 00000000..95b61168 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/omapl138/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_omapl138_debug | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/ti33x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/ti33x/defconfig new file mode 100644 index 00000000..9ab6733c --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/ti33x/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_am3x_debug | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/ti43x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/ti43x/defconfig new file mode 100644 index 00000000..825c31cd --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/ti43x/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_am4x_debug | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/defconfig new file mode 100644 index 00000000..5d051bd1 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_omap2_debug | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/dra7xx/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/dra7xx/defconfig new file mode 100644 index 00000000..2b3635c3 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/dra7xx/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_dra7x_debug | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/k3/defconfig new file mode 100644 index 00000000..56cf9302 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/k3/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_arm64_debug | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/omapl138/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/omapl138/defconfig new file mode 100644 index 00000000..95b61168 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/omapl138/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_omapl138_debug | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/ti33x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/ti33x/defconfig new file mode 100644 index 00000000..9ab6733c --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/ti33x/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_am3x_debug | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/ti43x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/ti43x/defconfig new file mode 100644 index 00000000..825c31cd --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/ti43x/defconfig | |||
@@ -0,0 +1 @@ | |||
use-tisdk-config=ti_sdk_am4x_debug | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_5.10.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_5.10.bb new file mode 100644 index 00000000..e57d82eb --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_5.10.bb | |||
@@ -0,0 +1,5 @@ | |||
1 | require linux-ti-staging_5.10.bb | ||
2 | |||
3 | # Look in the generic major.minor directory for files | ||
4 | # This will have priority over generic non-rt path | ||
5 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-5.10:" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_5.4.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_5.4.bb new file mode 100644 index 00000000..7a9a148b --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_5.4.bb | |||
@@ -0,0 +1,5 @@ | |||
1 | require linux-ti-staging_5.4.bb | ||
2 | |||
3 | # Look in the generic major.minor directory for files | ||
4 | # This will have priority over generic non-rt path | ||
5 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-5.4:" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.10.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.10.bb new file mode 100644 index 00000000..1a0ec5df --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.10.bb | |||
@@ -0,0 +1,51 @@ | |||
1 | SECTION = "kernel" | ||
2 | SUMMARY = "Linux kernel for TI devices" | ||
3 | LICENSE = "GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
5 | |||
6 | inherit kernel | ||
7 | |||
8 | DEFCONFIG_BUILDER = "${S}/ti_config_fragments/defconfig_builder.sh" | ||
9 | require recipes-kernel/linux/setup-defconfig.inc | ||
10 | require recipes-kernel/linux/cmem.inc | ||
11 | require recipes-kernel/linux/ti-uio.inc | ||
12 | require recipes-kernel/linux/bundle-devicetree.inc | ||
13 | require recipes-kernel/linux/kernel-rdepends.inc | ||
14 | require recipes-kernel/linux/ti-kernel.inc | ||
15 | |||
16 | # Look in the generic major.minor directory for files | ||
17 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-5.10:" | ||
18 | |||
19 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \ | ||
20 | ${EXTRA_DTC_ARGS}" | ||
21 | |||
22 | S = "${WORKDIR}/git" | ||
23 | |||
24 | BRANCH = "ti-linux-5.10.y" | ||
25 | |||
26 | SRCREV = "dcc6bedb2c2bdb509709e4ae08303206e95ce6c2" | ||
27 | PV = "5.10.65+git${SRCPV}" | ||
28 | |||
29 | # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild | ||
30 | MACHINE_KERNEL_PR:append = "b" | ||
31 | PR = "${MACHINE_KERNEL_PR}" | ||
32 | |||
33 | KERNEL_GIT_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git" | ||
34 | KERNEL_GIT_PROTOCOL = "git" | ||
35 | SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \ | ||
36 | file://defconfig" | ||
37 | |||
38 | FILES:${KERNEL_PACKAGE_NAME}-devicetree += "/${KERNEL_IMAGEDEST}/*.itb" | ||
39 | |||
40 | # Special configuration for remoteproc/rpmsg IPC modules | ||
41 | module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" | ||
42 | module_conf_ti_k3_r5_remoteproc = "softdep ti_k3_r5_remoteproc pre: virtio_rpmsg_bus" | ||
43 | module_conf_ti_k3_dsp_remoteproc = "softdep ti_k3_dsp_remoteproc pre: virtio_rpmsg_bus" | ||
44 | KERNEL_MODULE_PROBECONF += "rpmsg_client_sample ti_k3_r5_remoteproc ti_k3_dsp_remoteproc" | ||
45 | KERNEL_MODULE_AUTOLOAD:append:j7 = " rpmsg_kdrv_switch" | ||
46 | |||
47 | # Disable SA2UL for AM64x HS and J7200 HS | ||
48 | module_conf_sa2ul:am64xx-hs-evm = "blacklist sa2ul" | ||
49 | KERNEL_MODULE_PROBECONF:append:am64xx-hs-evm = " sa2ul" | ||
50 | module_conf_sa2ul:j7200-hs-evm = "blacklist sa2ul" | ||
51 | KERNEL_MODULE_PROBECONF:append:j7200-hs-evm = " sa2ul" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.4.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.4.bb new file mode 100644 index 00000000..fbfa497f --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.4.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | SECTION = "kernel" | ||
2 | SUMMARY = "Linux kernel for TI devices" | ||
3 | LICENSE = "GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" | ||
5 | |||
6 | inherit kernel | ||
7 | |||
8 | DEFCONFIG_BUILDER = "${S}/ti_config_fragments/defconfig_builder.sh" | ||
9 | require recipes-kernel/linux/setup-defconfig.inc | ||
10 | require recipes-kernel/linux/cmem.inc | ||
11 | require recipes-kernel/linux/ti-uio.inc | ||
12 | require recipes-kernel/linux/bundle-devicetree.inc | ||
13 | require recipes-kernel/linux/kernel-rdepends.inc | ||
14 | |||
15 | # Look in the generic major.minor directory for files | ||
16 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-5.4:" | ||
17 | |||
18 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" | ||
19 | |||
20 | S = "${WORKDIR}/git" | ||
21 | |||
22 | BRANCH = "ti-linux-5.4.y" | ||
23 | |||
24 | SRCREV = "023faefa70274929bff92dc41167b007f7523792" | ||
25 | PV = "5.4.106+git${SRCPV}" | ||
26 | |||
27 | # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild | ||
28 | MACHINE_KERNEL_PR:append = "a" | ||
29 | PR = "${MACHINE_KERNEL_PR}" | ||
30 | |||
31 | KERNEL_GIT_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git" | ||
32 | KERNEL_GIT_PROTOCOL = "git" | ||
33 | SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \ | ||
34 | file://defconfig" | ||
35 | |||
36 | FILES:${KERNEL_PACKAGE_NAME}-devicetree += "/${KERNEL_IMAGEDEST}/*.itb" | ||
37 | |||
38 | # Special configuration for remoteproc/rpmsg IPC modules | ||
39 | module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" | ||
40 | module_conf_ti_k3_r5_remoteproc = "softdep ti_k3_r5_remoteproc pre: virtio_rpmsg_bus" | ||
41 | module_conf_ti_k3_dsp_remoteproc = "softdep ti_k3_dsp_remoteproc pre: virtio_rpmsg_bus" | ||
42 | KERNEL_MODULE_PROBECONF += "rpmsg_client_sample ti_k3_r5_remoteproc ti_k3_dsp_remoteproc" | ||
43 | KERNEL_MODULE_AUTOLOAD:append:j7 = " rpmsg_kdrv_switch" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/setup-defconfig.inc b/meta-ti-bsp/recipes-kernel/linux/setup-defconfig.inc new file mode 100644 index 00000000..850a1dd8 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/setup-defconfig.inc | |||
@@ -0,0 +1,92 @@ | |||
1 | # KERNEL_LOCALVERSION can be set to add a tag to the end of the | ||
2 | # kernel version string. such as the commit id | ||
3 | def get_git_revision(p): | ||
4 | import subprocess | ||
5 | |||
6 | try: | ||
7 | return subprocess.Popen("git rev-parse HEAD 2>/dev/null ", cwd=p, shell=True, stdout=subprocess.PIPE, universal_newlines=True).communicate()[0].rstrip() | ||
8 | except OSError: | ||
9 | return None | ||
10 | |||
11 | KERNEL_LOCALVERSION = "-g${@get_git_revision('${S}').__str__()[:10]}" | ||
12 | |||
13 | # Check the defconfig file and see if it points to an in kernel | ||
14 | # defconfig that should be used, or if it is a complete config file | ||
15 | # Or if it points to a combined defconfig that lists both in kernel | ||
16 | # defconfig and associated config fragments. | ||
17 | |||
18 | do_configure() { | ||
19 | # Always copy the defconfig file to .config to keep consistency | ||
20 | # between the case where there is a real config and the in kernel | ||
21 | # tree config | ||
22 | cp ${WORKDIR}/defconfig ${B}/.config | ||
23 | |||
24 | echo ${KERNEL_LOCALVERSION} > ${B}/.scmversion | ||
25 | echo ${KERNEL_LOCALVERSION} > ${S}/.scmversion | ||
26 | |||
27 | # Zero, when using "tisdk" configs, pass control to defconfig_builder | ||
28 | config=`cat ${B}/.config | grep use-tisdk-config | cut -d= -f2` | ||
29 | if [ -n "$config" ] | ||
30 | then | ||
31 | ${DEFCONFIG_BUILDER} -w ${S} -t $config | ||
32 | oe_runmake -C ${S} O=${B} "$config"_defconfig | ||
33 | else | ||
34 | # First, check if pointing to a combined config with config fragments | ||
35 | config=`cat ${B}/.config | grep use-combined-config | cut -d= -f2` | ||
36 | if [ -n "$config" ] | ||
37 | then | ||
38 | cp ${S}/$config ${B}/.config | ||
39 | fi | ||
40 | |||
41 | # Second, extract any config fragments listed in the defconfig | ||
42 | config=`cat ${B}/.config | grep config-fragment | cut -d= -f2` | ||
43 | if [ -n "$config" ] | ||
44 | then | ||
45 | configfrags="" | ||
46 | for f in $config | ||
47 | do | ||
48 | # Check if the config fragment is available | ||
49 | if [ ! -e "${S}/$f" ] | ||
50 | then | ||
51 | echo "Could not find kernel config fragment $f" | ||
52 | exit 1 | ||
53 | else | ||
54 | # Sanitize config fragment files to be relative to sources | ||
55 | configfrags="$configfrags ${S}/$f" | ||
56 | fi | ||
57 | done | ||
58 | fi | ||
59 | |||
60 | # Third, check if pointing to a known in kernel defconfig | ||
61 | config=`cat ${B}/.config | grep use-kernel-config | cut -d= -f2` | ||
62 | if [ -n "$config" ] | ||
63 | then | ||
64 | oe_runmake -C ${S} O=${B} $config | ||
65 | else | ||
66 | yes '' | oe_runmake -C ${S} O=${B} oldconfig | ||
67 | fi | ||
68 | fi | ||
69 | |||
70 | # Fourth, handle config fragments specified in the recipe | ||
71 | # The assumption is that the config fragment will be specified with the absolute path. | ||
72 | # E.g. ${WORKDIR}/config1.cfg or ${S}/config2.cfg | ||
73 | if [ -n "${KERNEL_CONFIG_FRAGMENTS}" ] | ||
74 | then | ||
75 | for f in ${KERNEL_CONFIG_FRAGMENTS} | ||
76 | do | ||
77 | # Check if the config fragment is available | ||
78 | if [ ! -e "$f" ] | ||
79 | then | ||
80 | echo "Could not find kernel config fragment $f" | ||
81 | exit 1 | ||
82 | fi | ||
83 | done | ||
84 | fi | ||
85 | |||
86 | # Now that all the fragments are located merge them | ||
87 | if [ -n "${KERNEL_CONFIG_FRAGMENTS}" -o -n "$configfrags" ] | ||
88 | then | ||
89 | ( cd ${WORKDIR} && ${S}/scripts/kconfig/merge_config.sh -m -r -O ${B} ${B}/.config $configfrags ${KERNEL_CONFIG_FRAGMENTS} 1>&2 ) | ||
90 | yes '' | oe_runmake -C ${S} O=${B} oldconfig | ||
91 | fi | ||
92 | } | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc b/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc new file mode 100644 index 00000000..a7eb476e --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc | |||
@@ -0,0 +1,9 @@ | |||
1 | # Add DTC FLAGS -@ when KERNEL_DTB_OVERLAY_SUPPORT is enabled | ||
2 | |||
3 | def get_extra_dtc_args(d): | ||
4 | if d.getVar('KERNEL_DTB_OVERLAY_SUPPORT') == "1": | ||
5 | return "DTC_FLAGS=-@" | ||
6 | else: | ||
7 | return "" | ||
8 | |||
9 | EXTRA_DTC_ARGS += "${@get_extra_dtc_args(d)}" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-uio.inc b/meta-ti-bsp/recipes-kernel/linux/ti-uio.inc new file mode 100644 index 00000000..eea7866a --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/ti-uio.inc | |||
@@ -0,0 +1,71 @@ | |||
1 | SRC_URI:append:dra7xx = " file://am57xx-pru-uio.dtsi \ | ||
2 | file://am571x-pru-uio.dtsi \ | ||
3 | " | ||
4 | SRC_URI:append:ti33x = " file://am335x-pru-uio.dtsi" | ||
5 | SRC_URI:append:ti43x = " file://am437x-pru-uio.dtsi" | ||
6 | |||
7 | DTSI_LIST = "" | ||
8 | |||
9 | do_setup_uio() { | ||
10 | if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ] | ||
11 | then | ||
12 | for dtsi in ${DTSI_LIST} | ||
13 | do | ||
14 | cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/ | ||
15 | for dtb in ${KERNEL_DEVICETREE} | ||
16 | do | ||
17 | dts=`echo $dtb | sed -e 's|dtb$|dts|'` | ||
18 | echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts | ||
19 | done | ||
20 | done | ||
21 | fi | ||
22 | } | ||
23 | |||
24 | do_setup_uio:append:dra7xx() { | ||
25 | |||
26 | if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ] | ||
27 | then | ||
28 | dtsi="am57xx-pru-uio.dtsi" | ||
29 | cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/ | ||
30 | |||
31 | dts="am572x-idk-pru-excl-uio.dts" | ||
32 | cp ${S}/arch/arm/boot/dts/am572x-idk.dts ${S}/arch/arm/boot/dts/$dts | ||
33 | echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts | ||
34 | |||
35 | dts="am574x-idk-pru-excl-uio.dts" | ||
36 | cp ${S}/arch/arm/boot/dts/am574x-idk.dts ${S}/arch/arm/boot/dts/$dts | ||
37 | echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts | ||
38 | |||
39 | dts="am571x-idk-pru-excl-uio.dts" | ||
40 | dtsi="am571x-pru-uio.dtsi" | ||
41 | cp ${S}/arch/arm/boot/dts/am571x-idk.dts ${S}/arch/arm/boot/dts/$dts | ||
42 | cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/ | ||
43 | echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts | ||
44 | fi | ||
45 | } | ||
46 | |||
47 | do_setup_uio:append:ti33x() { | ||
48 | |||
49 | if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ] | ||
50 | then | ||
51 | dts="am335x-icev2-pru-excl-uio.dts" | ||
52 | dtsi="am335x-pru-uio.dtsi" | ||
53 | cp ${S}/arch/arm/boot/dts/am335x-icev2-prueth.dts ${S}/arch/arm/boot/dts/$dts | ||
54 | cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/ | ||
55 | echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts | ||
56 | fi | ||
57 | } | ||
58 | |||
59 | do_setup_uio:append:ti43x() { | ||
60 | |||
61 | if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ] | ||
62 | then | ||
63 | dts="am437x-idk-pru-excl-uio.dts" | ||
64 | dtsi="am437x-pru-uio.dtsi" | ||
65 | cp ${S}/arch/arm/boot/dts/am437x-idk-evm.dts ${S}/arch/arm/boot/dts/$dts | ||
66 | cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/ | ||
67 | echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts | ||
68 | fi | ||
69 | } | ||
70 | |||
71 | do_patch[postfuncs] += "do_setup_uio" | ||