summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorJacob Stiffler <j-stiffler@ti.com>2016-02-02 19:32:14 +0000
committerDenys Dmytriyenko <denys@ti.com>2016-02-03 21:07:03 -0500
commit48467358feb2f934296d07093fdb2e28b7149c9e (patch)
tree0105fdbe4729cc34d1cde5d06a6e4e6466325f4c /recipes-kernel
parent907496285d43057c0c2f277b15ec46cd81b0e66a (diff)
downloadmeta-ti-48467358feb2f934296d07093fdb2e28b7149c9e.tar.gz
linux-ti-staging: Update to include uio device tree entries
- Adds device tree entries for multiple devices that use uio driver - These entries are added for k2h, k2l & k2e : keystone2 platforms Signed-off-by: Sam Nelson <sam.nelson@ti.com> Signed-off-by: Jacob Stiffler <j-stiffler@ti.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/files/k2e-evm/k2e-uio.dtsi32
-rw-r--r--recipes-kernel/linux/files/k2hk-evm/k2hk-uio.dtsi58
-rw-r--r--recipes-kernel/linux/files/k2l-evm/k2l-uio.dtsi10
-rw-r--r--recipes-kernel/linux/files/keystone/keystone-uio.dtsi186
-rw-r--r--recipes-kernel/linux/linux-ti-staging_4.1.bb3
-rw-r--r--recipes-kernel/linux/ti-uio.inc27
6 files changed, 315 insertions, 1 deletions
diff --git a/recipes-kernel/linux/files/k2e-evm/k2e-uio.dtsi b/recipes-kernel/linux/files/k2e-evm/k2e-uio.dtsi
new file mode 100644
index 00000000..36f41b0e
--- /dev/null
+++ b/recipes-kernel/linux/files/k2e-evm/k2e-uio.dtsi
@@ -0,0 +1,32 @@
1/ {
2 soc {
3 uio_hyperlink0: hyperlink0 {
4 compatible = "ti,uio-ti-pdrv";
5 mem = <0x21400000 0x00001000
6 0x40000000 0x10000000
7 0x0231a000 0x00002000>;
8 clocks = <&clkhyperlink0>;
9 interrupts = <0 387 0x101>;
10 cfg-params
11 {
12 ti,serdes_refclk_khz = <312500>;
13 ti,serdes_maxserrate_khz = <6250000>;
14 ti,serdes_lanerate = "half";
15 ti,serdes_numlanes = <4>;
16 ti,serdes_c1 = <4 4 4 4>;
17 ti,serdes_c2 = <0 0 0 0>;
18 ti,serdes_cm = <0 0 0 0>;
19 ti,serdes_tx_att = <12 12 12 12>;
20 ti,serdes_tx_vreg = <4 4 4 4>;
21 ti,serdes_rx_att = <11 11 11 11>;
22 ti,serdes_rx_boost = <3 3 3 3>;
23 };
24 };
25 uio_srss: srss {
26 compatible = "ti,uio-ti-pdrv";
27 mem = <0x02330000 0x0000400>;
28 clocks=<&clksr>;
29 interrupts = <0 0x173 0xf01>;
30 };
31 };
32};
diff --git a/recipes-kernel/linux/files/k2hk-evm/k2hk-uio.dtsi b/recipes-kernel/linux/files/k2hk-evm/k2hk-uio.dtsi
new file mode 100644
index 00000000..cabe0b8d
--- /dev/null
+++ b/recipes-kernel/linux/files/k2hk-evm/k2hk-uio.dtsi
@@ -0,0 +1,58 @@
1/ {
2 soc {
3 uio_hyperlink0: hyperlink0 {
4 compatible = "ti,uio-module-drv";
5 mem = <0x21400000 0x00001000
6 0x40000000 0x10000000
7 0x0231a000 0x00002000>;
8 clocks = <&clkhyperlink0>;
9 interrupts = <0 387 0x101>;
10 cfg-params
11 {
12 ti,serdes_refclk_khz = <312500>;
13 ti,serdes_maxserrate_khz = <6250000>;
14 ti,serdes_lanerate = "half";
15 ti,serdes_numlanes = <4>;
16 ti,serdes_c1 = <4 4 4 4>;
17 ti,serdes_c2 = <0 0 0 0>;
18 ti,serdes_cm = <0 0 0 0>;
19 ti,serdes_tx_att = <12 12 12 12>;
20 ti,serdes_tx_vreg = <4 4 4 4>;
21 ti,serdes_rx_att = <11 11 11 11>;
22 ti,serdes_rx_boost = <3 3 3 3>;
23 };
24 };
25
26 uio_hyperlink1: hyperlink1 {
27 compatible = "ti,uio-module-drv";
28 mem = <0x21400000 0x00001000
29 0x28000000 0x08000000
30 0x0231c000 0x00002000>;
31 clocks = <&clkhyperlink1>;
32 interrupts = <0 388 0x101>;
33 cfg-params
34 {
35 ti,serdes_refclk_khz = <312500>;
36 ti,serdes_maxserrate_khz = <6250000>;
37 ti,serdes_lanerate = "half";
38 ti,serdes_numlanes = <4>;
39 ti,serdes_c1 = <4 4 4 4>;
40 ti,serdes_c2 = <0 0 0 0>;
41 ti,serdes_cm = <0 0 0 0>;
42 ti,serdes_tx_att = <12 12 12 12>;
43 ti,serdes_tx_vreg = <4 4 4 4>;
44 ti,serdes_rx_att = <11 11 11 11>;
45 ti,serdes_rx_boost = <3 3 3 3>;
46 };
47 };
48
49 uio_srio: srio {
50 compatible = "ti,uio-module-drv";
51 mem = <0x0232C000 0x00002000
52 0x02900000 0x00040000
53 0x0232C000 0x00002000>;
54 clocks=<&clksrio>;
55 interrupts = <0 154 0xf01>;
56 };
57 };
58};
diff --git a/recipes-kernel/linux/files/k2l-evm/k2l-uio.dtsi b/recipes-kernel/linux/files/k2l-evm/k2l-uio.dtsi
new file mode 100644
index 00000000..03344838
--- /dev/null
+++ b/recipes-kernel/linux/files/k2l-evm/k2l-uio.dtsi
@@ -0,0 +1,10 @@
1/ {
2 soc {
3 uio_srss: srss {
4 compatible = "ti,uio-ti-pdrv";
5 mem = <0x02330000 0x0000400>;
6 clocks=<&clksr>;
7 interrupts = <0 0x173 0xf01>;
8 };
9 };
10};
diff --git a/recipes-kernel/linux/files/keystone/keystone-uio.dtsi b/recipes-kernel/linux/files/keystone/keystone-uio.dtsi
new file mode 100644
index 00000000..43b183db
--- /dev/null
+++ b/recipes-kernel/linux/files/keystone/keystone-uio.dtsi
@@ -0,0 +1,186 @@
1/ {
2 soc {
3 uio_mpax: mpax {
4 compatible = "ti,uio-module-drv";
5 mem = <0x00bc00000 0x00000a00>;
6 };
7
8 uio_edma3: edma3 {
9 compatible = "ti,uio-module-drv";
10 mem = <0x02700000 0x000C0000>;
11 };
12 uio_secmgr: secmgr {
13 compatible = "ti,uio-module-drv";
14 mem = <0x002500100 0x00000004>;
15 };
16 uio_qmss: qmss {
17 compatible = "ti,uio-module-drv";
18 mem = <0x02a00000 0x00100000
19 0x23a00000 0x00200000>;
20 };
21
22 uio_qpend0: qpend0 {
23 compatible = "ti,uio-module-drv";
24 interrupts = <0 44 0xf04>;
25 interrupt-mode = <1>; /* Interrupt mode oneshot */
26 cfg-params
27 {
28 ti,qm-queue = <662>;
29 };
30 };
31
32 uio_qpend1: qpend1 {
33 compatible = "ti,uio-module-drv";
34 interrupts = <0 45 0xf04>;
35 interrupt-mode = <1>; /* Interrupt mode oneshot */
36 cfg-params
37 {
38 ti,qm-queue = <663>;
39 };
40 };
41
42 uio_qpend2: qpend2 {
43 compatible = "ti,uio-module-drv";
44 interrupts = <0 46 0xf04>;
45 interrupt-mode = <1>; /* Interrupt mode oneshot */
46 cfg-params
47 {
48 ti,qm-queue = <664>;
49 };
50 };
51
52 uio_qpend3: qpend3 {
53 compatible = "ti,uio-module-drv";
54 interrupts = <0 47 0xf04>;
55 interrupt-mode = <1>; /* Interrupt mode oneshot */
56 cfg-params
57 {
58 ti,qm-queue = <665>;
59 };
60 };
61
62 /* The following uio cic2 entries allow access to interupt output
63 * by the cic2 controller: The actual input event triggering the
64 * interrupt is assumed to be programmed other drivers
65 */
66 uio_cic2_out32: cic2_out32 {
67 compatible = "ti,uio-module-drv";
68 interrupts = <0 451 0xf01>;
69 };
70
71 uio_cic2_out33: cic2_out33 {
72 compatible = "ti,uio-module-drv";
73 interrupts = <0 452 0xf01>;
74 };
75
76 uio_cic2_out34: cic2_out34 {
77 compatible = "ti,uio-module-drv";
78 interrupts = <0 453 0xf01>;
79 };
80
81 uio_cic2_out35: cic2_out35 {
82 compatible = "ti,uio-module-drv";
83 interrupts = <0 454 0xf01>;
84 };
85
86 uio_cic2_out36: cic2_out36 {
87 compatible = "ti,uio-module-drv";
88 interrupts = <0 455 0xf01>;
89 };
90
91 uio_cic2_out37: cic2_out37 {
92 compatible = "ti,uio-module-drv";
93 interrupts = <0 456 0xf01>;
94 };
95
96 uio_cic2_out38: cic2_out38 {
97 compatible = "ti,uio-module-drv";
98 interrupts = <0 457 0xf01>;
99 };
100
101 uio_cic2_out39: cic2_out39 {
102 compatible = "ti,uio-module-drv";
103 interrupts = <0 458 0xf01>;
104 };
105
106 uio_cic2_out40: cic2_out40 {
107 compatible = "ti,uio-module-drv";
108 interrupts = <0 459 0xf01>;
109 };
110
111 uio_cic2_out41: cic2_out41 {
112 compatible = "ti,uio-module-drv";
113 interrupts = <0 460 0xf01>;
114 };
115
116 uio_cic2_out42: cic2_out42 {
117 compatible = "ti,uio-module-drv";
118 interrupts = <0 461 0xf01>;
119 };
120
121 uio_cic2_out43: cic2_out43 {
122 compatible = "ti,uio-module-drv";
123 interrupts = <0 462 0xf01>;
124 };
125
126 uio_cic2_out44: cic2_out44 {
127 compatible = "ti,uio-module-drv";
128 interrupts = <0 463 0xf01>;
129 };
130
131 uio_cic2_out45: cic2_out45 {
132 compatible = "ti,uio-module-drv";
133 interrupts = <0 464 0xf01>;
134 };
135
136 uio_cic2_out46: cic2_out46 {
137 compatible = "ti,uio-module-drv";
138 interrupts = <0 465 0xf01>;
139 };
140
141 uio_cic2_out47: cic2_out47 {
142 compatible = "ti,uio-module-drv";
143 interrupts = <0 466 0xf01>;
144 };
145
146 uio_cic2_out18: cic2_out18 {
147 compatible = "ti,uio-module-drv";
148 interrupts = <0 467 0xf01>;
149 };
150
151 uio_cic2_out19: cic2_out19 {
152 compatible = "ti,uio-module-drv";
153 interrupts = <0 468 0xf01>;
154 };
155
156 uio_cic2_out22: cic2_out22 {
157 compatible = "ti,uio-module-drv";
158 interrupts = <0 469 0xf01>;
159 };
160
161 uio_cic2_out23: cic2_out23 {
162 compatible = "ti,uio-module-drv";
163 interrupts = <0 470 0xf01>;
164 };
165
166 uio_cic2_out50: cic2_out50 {
167 compatible = "ti,uio-module-drv";
168 interrupts = <0 471 0xf01>;
169 };
170
171 uio_cic2_out51: cic2_out51 {
172 compatible = "ti,uio-module-drv";
173 interrupts = <0 472 0xf01>;
174 };
175
176 uio_cic2_out66: cic2_out66 {
177 compatible = "ti,uio-module-drv";
178 interrupts = <0 473 0xf01>;
179 };
180
181 uio_cic2_out67: cic2_out67 {
182 compatible = "ti,uio-module-drv";
183 interrupts = <0 474 0xf01>;
184 };
185 };
186};
diff --git a/recipes-kernel/linux/linux-ti-staging_4.1.bb b/recipes-kernel/linux/linux-ti-staging_4.1.bb
index 7fe33ee1..3bb2ac6c 100644
--- a/recipes-kernel/linux/linux-ti-staging_4.1.bb
+++ b/recipes-kernel/linux/linux-ti-staging_4.1.bb
@@ -8,6 +8,7 @@ inherit kernel
8require recipes-kernel/linux/linux-dtb.inc 8require recipes-kernel/linux/linux-dtb.inc
9require recipes-kernel/linux/setup-defconfig.inc 9require recipes-kernel/linux/setup-defconfig.inc
10require recipes-kernel/linux/cmem.inc 10require recipes-kernel/linux/cmem.inc
11require recipes-kernel/linux/ti-uio.inc
11 12
12# Look in the generic major.minor directory for files 13# Look in the generic major.minor directory for files
13FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-4.1:" 14FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-4.1:"
@@ -68,7 +69,7 @@ SRCREV = "e4346cf990da13eb936de5e130d8a4baab5c5688"
68PV = "4.1.17+git${SRCPV}" 69PV = "4.1.17+git${SRCPV}"
69 70
70# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild 71# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
71MACHINE_KERNEL_PR_append = "a" 72MACHINE_KERNEL_PR_append = "b"
72PR = "${MACHINE_KERNEL_PR}" 73PR = "${MACHINE_KERNEL_PR}"
73 74
74KERNEL_CONFIG_DIR = "${S}/ti_config_fragments" 75KERNEL_CONFIG_DIR = "${S}/ti_config_fragments"
diff --git a/recipes-kernel/linux/ti-uio.inc b/recipes-kernel/linux/ti-uio.inc
new file mode 100644
index 00000000..776e4a43
--- /dev/null
+++ b/recipes-kernel/linux/ti-uio.inc
@@ -0,0 +1,27 @@
1SRC_URI_append_keystone = " file://keystone-uio.dtsi"
2SRC_URI_append_k2hk-evm = " file://k2hk-uio.dtsi"
3SRC_URI_append_k2l-evm = " file://k2l-uio.dtsi"
4SRC_URI_append_k2e-evm = " file://k2e-uio.dtsi"
5
6DTSI_LIST = ""
7DTSI_LIST_append_keystone = " keystone-uio.dtsi"
8DTSI_LIST_append_k2hk-evm = " k2hk-uio.dtsi"
9DTSI_LIST_append_k2l-evm = " k2l-uio.dtsi"
10DTSI_LIST_append_k2e-evm = " k2e-uio.dtsi"
11
12do_setup_uio() {
13 if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]
14 then
15 for dtsi in ${DTSI_LIST}
16 do
17 cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/
18 for dtb in ${KERNEL_DEVICETREE}
19 do
20 dts=`echo $dtb | sed -e 's|dtb$|dts|'`
21 echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts
22 done
23 done
24 fi
25}
26
27do_patch[postfuncs] += "do_setup_uio"