Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'omap-for-v5.4/ti-sysc-drop-pdata-take2-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into arm/late

Drop legacy platform data omap variants for v5.4

We can now drop more platform data in favor of dts data for most
devices like cpsw, gpio, i2c, mmc, uart and watchdog.

In general we can do this by dropping legacy "ti,hwmods" custom dts
property, and the platform data assuming the related dts data is correct.
This is best done as single patch as otherwise we'd have to revert two
patches in case of any unexpected issues, and we're just removing data.

Fro cpsw, before we can do this, we need to configure the cpsw mdio clocks
properly in dts though in the first patch. For omap4 i2c, we've already
dropped the platform data earlier, but have been still allocting it
dynamically based on the dts data based on the "ti,hwmods" property, but
that is no longer needed. For d2d, we are missing the dts data, so we
first add it and then drop the platform data.

For dra7, we drop platform data and "ti,hwmods" for mcasp and mcspi.
We've already dropped platform data earlier for gpio, i2c, mmc, and
uart so we just need to drop "ti,hwmods" property for those.

Note that this branch is based on earlier ti-sysc-fixes branch.

* tag 'omap-for-v5.4/ti-sysc-drop-pdata-take2-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
ARM: dts: Drop legacy custom hwmods property for dra7 gpio
ARM: dts: Drop legacy custom hwmods property for dra7 mmc
ARM: dts: Drop legacy custom hwmods property for dra7 i2c
ARM: dts: Drop legacy custom hwmods property for dra7 uart
ARM: OMAP2+: Drop legacy platform data for dra7 mcasp
ARM: OMAP2+: Drop legacy platform data for dra7 mcspi
ARM: OMAP2+: Drop legacy platform data for omap4 d2d
ARM: dts: Configure d2d dts data for omap4
ARM: OMAP2+: Drop legacy watchdog platform data for omap4
ARM: dts: Drop custom hwmod property for omap4 i2c
ARM: OMAP2+: Drop legacy platform data for cpsw on dra7
ARM: OMAP2+: Drop legacy platform data for cpsw on am3 and am4
ARM: dts: Add fck for cpsw mdio for omap variants

Link: https://lore.kernel.org/r/pull-1567016893-318461@atomide.com-3
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+36 -724
+2 -2
arch/arm/boot/dts/am33xx-l4.dtsi
··· 673 673 674 674 target-module@100000 { /* 0x4a100000, ap 3 08.0 */ 675 675 compatible = "ti,sysc-omap4-simple", "ti,sysc"; 676 - ti,hwmods = "cpgmac0"; 677 676 reg = <0x101200 0x4>, 678 677 <0x101208 0x4>, 679 678 <0x101204 0x4>; ··· 718 719 719 720 davinci_mdio: mdio@1000 { 720 721 compatible = "ti,cpsw-mdio","ti,davinci_mdio"; 722 + clocks = <&cpsw_125mhz_clkctrl AM3_CPSW_125MHZ_CPGMAC0_CLKCTRL 0>; 723 + clock-names = "fck"; 721 724 #address-cells = <1>; 722 725 #size-cells = <0>; 723 - ti,hwmods = "davinci_mdio"; 724 726 bus_freq = <1000000>; 725 727 reg = <0x1000 0x100>; 726 728 status = "disabled";
+2 -4
arch/arm/boot/dts/am437x-l4.dtsi
··· 512 512 513 513 target-module@100000 { /* 0x4a100000, ap 3 04.0 */ 514 514 compatible = "ti,sysc-omap4-simple", "ti,sysc"; 515 - ti,hwmods = "cpgmac0"; 516 515 reg = <0x101200 0x4>, 517 516 <0x101208 0x4>, 518 517 <0x101204 0x4>; ··· 558 559 davinci_mdio: mdio@1000 { 559 560 compatible = "ti,am4372-mdio","ti,cpsw-mdio","ti,davinci_mdio"; 560 561 reg = <0x1000 0x100>; 562 + clocks = <&cpsw_125mhz_clkctrl AM4_CPSW_125MHZ_CPGMAC0_CLKCTRL 0>; 563 + clock-names = "fck"; 561 564 #address-cells = <1>; 562 565 #size-cells = <0>; 563 - clocks = <&cpsw_125mhz_gclk>; 564 - clock-names = "fck"; 565 - ti,hwmods = "davinci_mdio"; 566 566 bus_freq = <1000000>; 567 567 status = "disabled"; 568 568 };
+2 -41
arch/arm/boot/dts/dra7-l4.dtsi
··· 1118 1118 1119 1119 target-module@20000 { /* 0x48020000, ap 3 04.0 */ 1120 1120 compatible = "ti,sysc-omap2", "ti,sysc"; 1121 - ti,hwmods = "uart3"; 1122 1121 reg = <0x20050 0x4>, 1123 1122 <0x20054 0x4>, 1124 1123 <0x20058 0x4>; ··· 1262 1263 1263 1264 gpio7_target: target-module@51000 { /* 0x48051000, ap 45 2e.0 */ 1264 1265 compatible = "ti,sysc-omap2", "ti,sysc"; 1265 - ti,hwmods = "gpio7"; 1266 1266 reg = <0x51000 0x4>, 1267 1267 <0x51010 0x4>, 1268 1268 <0x51114 0x4>; ··· 1295 1297 1296 1298 target-module@53000 { /* 0x48053000, ap 35 36.0 */ 1297 1299 compatible = "ti,sysc-omap2", "ti,sysc"; 1298 - ti,hwmods = "gpio8"; 1299 1300 reg = <0x53000 0x4>, 1300 1301 <0x53010 0x4>, 1301 1302 <0x53114 0x4>; ··· 1328 1331 1329 1332 target-module@55000 { /* 0x48055000, ap 13 0e.0 */ 1330 1333 compatible = "ti,sysc-omap2", "ti,sysc"; 1331 - ti,hwmods = "gpio2"; 1332 1334 reg = <0x55000 0x4>, 1333 1335 <0x55010 0x4>, 1334 1336 <0x55114 0x4>; ··· 1361 1365 1362 1366 target-module@57000 { /* 0x48057000, ap 15 06.0 */ 1363 1367 compatible = "ti,sysc-omap2", "ti,sysc"; 1364 - ti,hwmods = "gpio3"; 1365 1368 reg = <0x57000 0x4>, 1366 1369 <0x57010 0x4>, 1367 1370 <0x57114 0x4>; ··· 1394 1399 1395 1400 target-module@59000 { /* 0x48059000, ap 17 16.0 */ 1396 1401 compatible = "ti,sysc-omap2", "ti,sysc"; 1397 - ti,hwmods = "gpio4"; 1398 1402 reg = <0x59000 0x4>, 1399 1403 <0x59010 0x4>, 1400 1404 <0x59114 0x4>; ··· 1427 1433 1428 1434 target-module@5b000 { /* 0x4805b000, ap 19 1e.0 */ 1429 1435 compatible = "ti,sysc-omap2", "ti,sysc"; 1430 - ti,hwmods = "gpio5"; 1431 1436 reg = <0x5b000 0x4>, 1432 1437 <0x5b010 0x4>, 1433 1438 <0x5b114 0x4>; ··· 1460 1467 1461 1468 target-module@5d000 { /* 0x4805d000, ap 21 26.0 */ 1462 1469 compatible = "ti,sysc-omap2", "ti,sysc"; 1463 - ti,hwmods = "gpio6"; 1464 1470 reg = <0x5d000 0x4>, 1465 1471 <0x5d010 0x4>, 1466 1472 <0x5d114 0x4>; ··· 1493 1501 1494 1502 target-module@60000 { /* 0x48060000, ap 23 32.0 */ 1495 1503 compatible = "ti,sysc-omap2", "ti,sysc"; 1496 - ti,hwmods = "i2c3"; 1497 1504 reg = <0x60000 0x8>, 1498 1505 <0x60010 0x8>, 1499 1506 <0x60090 0x8>; ··· 1525 1534 1526 1535 target-module@66000 { /* 0x48066000, ap 63 14.0 */ 1527 1536 compatible = "ti,sysc-omap2", "ti,sysc"; 1528 - ti,hwmods = "uart5"; 1529 1537 reg = <0x66050 0x4>, 1530 1538 <0x66054 0x4>, 1531 1539 <0x66058 0x4>; ··· 1557 1567 1558 1568 target-module@68000 { /* 0x48068000, ap 53 1c.0 */ 1559 1569 compatible = "ti,sysc-omap2", "ti,sysc"; 1560 - ti,hwmods = "uart6"; 1561 1570 reg = <0x68050 0x4>, 1562 1571 <0x68054 0x4>, 1563 1572 <0x68058 0x4>; ··· 1589 1600 1590 1601 target-module@6a000 { /* 0x4806a000, ap 24 24.0 */ 1591 1602 compatible = "ti,sysc-omap2", "ti,sysc"; 1592 - ti,hwmods = "uart1"; 1593 1603 reg = <0x6a050 0x4>, 1594 1604 <0x6a054 0x4>, 1595 1605 <0x6a058 0x4>; ··· 1621 1633 1622 1634 target-module@6c000 { /* 0x4806c000, ap 26 2c.0 */ 1623 1635 compatible = "ti,sysc-omap2", "ti,sysc"; 1624 - ti,hwmods = "uart2"; 1625 1636 reg = <0x6c050 0x4>, 1626 1637 <0x6c054 0x4>, 1627 1638 <0x6c058 0x4>; ··· 1653 1666 1654 1667 target-module@6e000 { /* 0x4806e000, ap 28 0c.1 */ 1655 1668 compatible = "ti,sysc-omap2", "ti,sysc"; 1656 - ti,hwmods = "uart4"; 1657 1669 reg = <0x6e050 0x4>, 1658 1670 <0x6e054 0x4>, 1659 1671 <0x6e058 0x4>; ··· 1685 1699 1686 1700 target-module@70000 { /* 0x48070000, ap 30 22.0 */ 1687 1701 compatible = "ti,sysc-omap2", "ti,sysc"; 1688 - ti,hwmods = "i2c1"; 1689 1702 reg = <0x70000 0x8>, 1690 1703 <0x70010 0x8>, 1691 1704 <0x70090 0x8>; ··· 1717 1732 1718 1733 target-module@72000 { /* 0x48072000, ap 32 2a.0 */ 1719 1734 compatible = "ti,sysc-omap2", "ti,sysc"; 1720 - ti,hwmods = "i2c2"; 1721 1735 reg = <0x72000 0x8>, 1722 1736 <0x72010 0x8>, 1723 1737 <0x72090 0x8>; ··· 1779 1795 1780 1796 target-module@7a000 { /* 0x4807a000, ap 81 3a.0 */ 1781 1797 compatible = "ti,sysc-omap2", "ti,sysc"; 1782 - ti,hwmods = "i2c4"; 1783 1798 reg = <0x7a000 0x8>, 1784 1799 <0x7a010 0x8>, 1785 1800 <0x7a090 0x8>; ··· 1811 1828 1812 1829 target-module@7c000 { /* 0x4807c000, ap 83 4a.0 */ 1813 1830 compatible = "ti,sysc-omap2", "ti,sysc"; 1814 - ti,hwmods = "i2c5"; 1815 1831 reg = <0x7c000 0x8>, 1816 1832 <0x7c010 0x8>, 1817 1833 <0x7c090 0x8>; ··· 1924 1942 1925 1943 target-module@98000 { /* 0x48098000, ap 47 08.0 */ 1926 1944 compatible = "ti,sysc-omap4", "ti,sysc"; 1927 - ti,hwmods = "mcspi1"; 1928 1945 reg = <0x98000 0x4>, 1929 1946 <0x98010 0x4>; 1930 1947 reg-names = "rev", "sysc"; ··· 1963 1982 1964 1983 target-module@9a000 { /* 0x4809a000, ap 49 10.0 */ 1965 1984 compatible = "ti,sysc-omap4", "ti,sysc"; 1966 - ti,hwmods = "mcspi2"; 1967 1985 reg = <0x9a000 0x4>, 1968 1986 <0x9a010 0x4>; 1969 1987 reg-names = "rev", "sysc"; ··· 1997 2017 1998 2018 target-module@9c000 { /* 0x4809c000, ap 51 38.0 */ 1999 2019 compatible = "ti,sysc-omap4", "ti,sysc"; 2000 - ti,hwmods = "mmc1"; 2001 2020 reg = <0x9c000 0x4>, 2002 2021 <0x9c010 0x4>; 2003 2022 reg-names = "rev", "sysc"; ··· 2056 2077 2057 2078 target-module@ad000 { /* 0x480ad000, ap 61 20.0 */ 2058 2079 compatible = "ti,sysc-omap4", "ti,sysc"; 2059 - ti,hwmods = "mmc3"; 2060 2080 reg = <0xad000 0x4>, 2061 2081 <0xad010 0x4>; 2062 2082 reg-names = "rev", "sysc"; ··· 2115 2137 2116 2138 target-module@b4000 { /* 0x480b4000, ap 65 40.0 */ 2117 2139 compatible = "ti,sysc-omap4", "ti,sysc"; 2118 - ti,hwmods = "mmc2"; 2119 2140 reg = <0xb4000 0x4>, 2120 2141 <0xb4010 0x4>; 2121 2142 reg-names = "rev", "sysc"; ··· 2151 2174 2152 2175 target-module@b8000 { /* 0x480b8000, ap 67 48.0 */ 2153 2176 compatible = "ti,sysc-omap4", "ti,sysc"; 2154 - ti,hwmods = "mcspi3"; 2155 2177 reg = <0xb8000 0x4>, 2156 2178 <0xb8010 0x4>; 2157 2179 reg-names = "rev", "sysc"; ··· 2182 2206 2183 2207 target-module@ba000 { /* 0x480ba000, ap 69 18.0 */ 2184 2208 compatible = "ti,sysc-omap4", "ti,sysc"; 2185 - ti,hwmods = "mcspi4"; 2186 2209 reg = <0xba000 0x4>, 2187 2210 <0xba010 0x4>; 2188 2211 reg-names = "rev", "sysc"; ··· 2213 2238 2214 2239 target-module@d1000 { /* 0x480d1000, ap 71 28.0 */ 2215 2240 compatible = "ti,sysc-omap4", "ti,sysc"; 2216 - ti,hwmods = "mmc4"; 2217 2241 reg = <0xd1000 0x4>, 2218 2242 <0xd1010 0x4>; 2219 2243 reg-names = "rev", "sysc"; ··· 2358 2384 2359 2385 target-module@20000 { /* 0x48420000, ap 47 02.0 */ 2360 2386 compatible = "ti,sysc-omap2", "ti,sysc"; 2361 - ti,hwmods = "uart7"; 2362 2387 reg = <0x20050 0x4>, 2363 2388 <0x20054 0x4>, 2364 2389 <0x20058 0x4>; ··· 2388 2415 2389 2416 target-module@22000 { /* 0x48422000, ap 49 0a.0 */ 2390 2417 compatible = "ti,sysc-omap2", "ti,sysc"; 2391 - ti,hwmods = "uart8"; 2392 2418 reg = <0x22050 0x4>, 2393 2419 <0x22054 0x4>, 2394 2420 <0x22058 0x4>; ··· 2418 2446 2419 2447 target-module@24000 { /* 0x48424000, ap 51 12.0 */ 2420 2448 compatible = "ti,sysc-omap2", "ti,sysc"; 2421 - ti,hwmods = "uart9"; 2422 2449 reg = <0x24050 0x4>, 2423 2450 <0x24054 0x4>, 2424 2451 <0x24058 0x4>; ··· 2706 2735 2707 2736 target-module@60000 { /* 0x48460000, ap 9 0e.0 */ 2708 2737 compatible = "ti,sysc-dra7-mcasp", "ti,sysc"; 2709 - ti,hwmods = "mcasp1"; 2710 2738 reg = <0x60000 0x4>, 2711 2739 <0x60004 0x4>; 2712 2740 reg-names = "rev", "sysc"; ··· 2742 2772 2743 2773 target-module@64000 { /* 0x48464000, ap 11 1e.0 */ 2744 2774 compatible = "ti,sysc-dra7-mcasp", "ti,sysc"; 2745 - ti,hwmods = "mcasp2"; 2746 2775 reg = <0x64000 0x4>, 2747 2776 <0x64004 0x4>; 2748 2777 reg-names = "rev", "sysc"; ··· 2778 2809 2779 2810 target-module@68000 { /* 0x48468000, ap 13 26.0 */ 2780 2811 compatible = "ti,sysc-dra7-mcasp", "ti,sysc"; 2781 - ti,hwmods = "mcasp3"; 2782 2812 reg = <0x68000 0x4>, 2783 2813 <0x68004 0x4>; 2784 2814 reg-names = "rev", "sysc"; ··· 2813 2845 2814 2846 target-module@6c000 { /* 0x4846c000, ap 15 2e.0 */ 2815 2847 compatible = "ti,sysc-dra7-mcasp", "ti,sysc"; 2816 - ti,hwmods = "mcasp4"; 2817 2848 reg = <0x6c000 0x4>, 2818 2849 <0x6c004 0x4>; 2819 2850 reg-names = "rev", "sysc"; ··· 2848 2881 2849 2882 target-module@70000 { /* 0x48470000, ap 19 36.0 */ 2850 2883 compatible = "ti,sysc-dra7-mcasp", "ti,sysc"; 2851 - ti,hwmods = "mcasp5"; 2852 2884 reg = <0x70000 0x4>, 2853 2885 <0x70004 0x4>; 2854 2886 reg-names = "rev", "sysc"; ··· 2883 2917 2884 2918 target-module@74000 { /* 0x48474000, ap 35 14.0 */ 2885 2919 compatible = "ti,sysc-dra7-mcasp", "ti,sysc"; 2886 - ti,hwmods = "mcasp6"; 2887 2920 reg = <0x74000 0x4>, 2888 2921 <0x74004 0x4>; 2889 2922 reg-names = "rev", "sysc"; ··· 2918 2953 2919 2954 target-module@78000 { /* 0x48478000, ap 39 0c.0 */ 2920 2955 compatible = "ti,sysc-dra7-mcasp", "ti,sysc"; 2921 - ti,hwmods = "mcasp7"; 2922 2956 reg = <0x78000 0x4>, 2923 2957 <0x78004 0x4>; 2924 2958 reg-names = "rev", "sysc"; ··· 2953 2989 2954 2990 target-module@7c000 { /* 0x4847c000, ap 43 04.0 */ 2955 2991 compatible = "ti,sysc-dra7-mcasp", "ti,sysc"; 2956 - ti,hwmods = "mcasp8"; 2957 2992 reg = <0x7c000 0x4>, 2958 2993 <0x7c004 0x4>; 2959 2994 reg-names = "rev", "sysc"; ··· 3008 3045 3009 3046 target-module@84000 { /* 0x48484000, ap 3 10.0 */ 3010 3047 compatible = "ti,sysc-omap4-simple", "ti,sysc"; 3011 - ti,hwmods = "gmac"; 3012 3048 reg = <0x85200 0x4>, 3013 3049 <0x85208 0x4>, 3014 3050 <0x85204 0x4>; ··· 3065 3103 3066 3104 davinci_mdio: mdio@1000 { 3067 3105 compatible = "ti,cpsw-mdio","ti,davinci_mdio"; 3106 + clocks = <&gmac_clkctrl DRA7_GMAC_GMAC_CLKCTRL 0>; 3107 + clock-names = "fck"; 3068 3108 #address-cells = <1>; 3069 3109 #size-cells = <0>; 3070 - ti,hwmods = "davinci_mdio"; 3071 3110 bus_freq = <1000000>; 3072 3111 reg = <0x1000 0x100>; 3073 3112 }; ··· 4274 4311 4275 4312 target-module@0 { /* 0x4ae10000, ap 5 20.0 */ 4276 4313 compatible = "ti,sysc-omap2", "ti,sysc"; 4277 - ti,hwmods = "gpio1"; 4278 4314 reg = <0x0 0x4>, 4279 4315 <0x10 0x4>, 4280 4316 <0x114 0x4>; ··· 4441 4479 4442 4480 target-module@b000 { /* 0x4ae2b000, ap 28 02.0 */ 4443 4481 compatible = "ti,sysc-omap2", "ti,sysc"; 4444 - ti,hwmods = "uart10"; 4445 4482 reg = <0xb050 0x4>, 4446 4483 <0xb054 0x4>, 4447 4484 <0xb058 0x4>;
-1
arch/arm/boot/dts/omap4-l4-abe.dtsi
··· 255 255 256 256 target-module@30000 { /* 0x40130000, ap 14 0e.0 */ 257 257 compatible = "ti,sysc-omap2", "ti,sysc"; 258 - ti,hwmods = "wd_timer3"; 259 258 reg = <0x30000 0x4>, 260 259 <0x30010 0x4>, 261 260 <0x30014 0x4>;
+30 -9
arch/arm/boot/dts/omap4-l4.dtsi
··· 456 456 }; 457 457 }; 458 458 459 + /* d2d mdm */ 459 460 target-module@36000 { /* 0x4a0b6000, ap 69 60.0 */ 460 - compatible = "ti,sysc"; 461 - status = "disabled"; 461 + compatible = "ti,sysc-omap2", "ti,sysc"; 462 + reg = <0x36000 0x4>, 463 + <0x36010 0x4>, 464 + <0x36014 0x4>; 465 + reg-names = "rev", "sysc", "syss"; 466 + ti,sysc-mask = <(SYSC_OMAP2_SOFTRESET | SYSC_OMAP2_AUTOIDLE)>; 467 + ti,sysc-sidle = <SYSC_IDLE_FORCE>, 468 + <SYSC_IDLE_NO>, 469 + <SYSC_IDLE_SMART>, 470 + <SYSC_IDLE_SMART_WKUP>; 471 + ti,syss-mask = <1>; 472 + /* Domains (V, P, C): core, core_pwrdm, d2d_clkdm */ 473 + clocks = <&d2d_clkctrl OMAP4_C2C_CLKCTRL 0>; 474 + clock-names = "fck"; 462 475 #address-cells = <1>; 463 476 #size-cells = <1>; 464 477 ranges = <0x0 0x36000 0x1000>; 465 478 }; 466 479 480 + /* d2d mpu */ 467 481 target-module@4d000 { /* 0x4a0cd000, ap 78 58.0 */ 468 - compatible = "ti,sysc"; 469 - status = "disabled"; 482 + compatible = "ti,sysc-omap2", "ti,sysc"; 483 + reg = <0x4d000 0x4>, 484 + <0x4d010 0x4>, 485 + <0x4d014 0x4>; 486 + reg-names = "rev", "sysc", "syss"; 487 + ti,sysc-mask = <(SYSC_OMAP2_SOFTRESET | SYSC_OMAP2_AUTOIDLE)>; 488 + ti,sysc-sidle = <SYSC_IDLE_FORCE>, 489 + <SYSC_IDLE_NO>, 490 + <SYSC_IDLE_SMART>, 491 + <SYSC_IDLE_SMART_WKUP>; 492 + ti,syss-mask = <1>; 493 + /* Domains (V, P, C): core, core_pwrdm, d2d_clkdm */ 494 + clocks = <&d2d_clkctrl OMAP4_C2C_CLKCTRL 0>; 495 + clock-names = "fck"; 470 496 #address-cells = <1>; 471 497 #size-cells = <1>; 472 498 ranges = <0x0 0x4d000 0x1000>; ··· 1120 1094 1121 1095 target-module@4000 { /* 0x4a314000, ap 7 18.0 */ 1122 1096 compatible = "ti,sysc-omap2", "ti,sysc"; 1123 - ti,hwmods = "wd_timer2"; 1124 1097 reg = <0x4000 0x4>, 1125 1098 <0x4010 0x4>, 1126 1099 <0x4014 0x4>; ··· 1720 1695 1721 1696 target-module@60000 { /* 0x48060000, ap 25 1e.0 */ 1722 1697 compatible = "ti,sysc-omap2", "ti,sysc"; 1723 - ti,hwmods = "i2c3"; 1724 1698 reg = <0x60000 0x8>, 1725 1699 <0x60010 0x8>, 1726 1700 <0x60090 0x8>; ··· 1838 1814 1839 1815 target-module@70000 { /* 0x48070000, ap 32 28.0 */ 1840 1816 compatible = "ti,sysc-omap2", "ti,sysc"; 1841 - ti,hwmods = "i2c1"; 1842 1817 reg = <0x70000 0x8>, 1843 1818 <0x70010 0x8>, 1844 1819 <0x70090 0x8>; ··· 1869 1846 1870 1847 target-module@72000 { /* 0x48072000, ap 34 30.0 */ 1871 1848 compatible = "ti,sysc-omap2", "ti,sysc"; 1872 - ti,hwmods = "i2c2"; 1873 1849 reg = <0x72000 0x8>, 1874 1850 <0x72010 0x8>, 1875 1851 <0x72090 0x8>; ··· 2423 2401 2424 2402 target-module@150000 { /* 0x48350000, ap 77 4c.0 */ 2425 2403 compatible = "ti,sysc-omap2", "ti,sysc"; 2426 - ti,hwmods = "i2c4"; 2427 2404 reg = <0x150000 0x8>, 2428 2405 <0x150010 0x8>, 2429 2406 <0x150090 0x8>;
-3
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_common_data.h
··· 30 30 extern struct omap_hwmod_ocp_if am33xx_l4_wkup__rtc; 31 31 extern struct omap_hwmod_ocp_if am33xx_l4_per__dcan0; 32 32 extern struct omap_hwmod_ocp_if am33xx_l4_per__dcan1; 33 - extern struct omap_hwmod_ocp_if am33xx_cpgmac0__mdio; 34 33 extern struct omap_hwmod_ocp_if am33xx_l4_ls__elm; 35 34 extern struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss0; 36 35 extern struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss1; ··· 71 72 extern struct omap_hwmod am33xx_ocmcram_hwmod; 72 73 extern struct omap_hwmod am33xx_smartreflex0_hwmod; 73 74 extern struct omap_hwmod am33xx_smartreflex1_hwmod; 74 - extern struct omap_hwmod am33xx_cpgmac0_hwmod; 75 - extern struct omap_hwmod am33xx_mdio_hwmod; 76 75 extern struct omap_hwmod am33xx_dcan0_hwmod; 77 76 extern struct omap_hwmod am33xx_dcan1_hwmod; 78 77 extern struct omap_hwmod am33xx_elm_hwmod;
-6
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c
··· 122 122 .user = OCP_USER_MPU | OCP_USER_SDMA, 123 123 }; 124 124 125 - struct omap_hwmod_ocp_if am33xx_cpgmac0__mdio = { 126 - .master = &am33xx_cpgmac0_hwmod, 127 - .slave = &am33xx_mdio_hwmod, 128 - .user = OCP_USER_MPU, 129 - }; 130 - 131 125 struct omap_hwmod_ocp_if am33xx_l4_ls__elm = { 132 126 .master = &am33xx_l4_ls_hwmod, 133 127 .slave = &am33xx_elm_hwmod,
-50
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
··· 350 350 }; 351 351 352 352 /* 353 - * 'cpgmac' class 354 - * cpsw/cpgmac sub system 355 - */ 356 - static struct omap_hwmod_class_sysconfig am33xx_cpgmac_sysc = { 357 - .rev_offs = 0x0, 358 - .sysc_offs = 0x8, 359 - .syss_offs = 0x4, 360 - .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE | 361 - SYSS_HAS_RESET_STATUS), 362 - .idlemodes = (SIDLE_FORCE | SIDLE_NO | MSTANDBY_FORCE | 363 - MSTANDBY_NO), 364 - .sysc_fields = &omap_hwmod_sysc_type3, 365 - }; 366 - 367 - static struct omap_hwmod_class am33xx_cpgmac0_hwmod_class = { 368 - .name = "cpgmac0", 369 - .sysc = &am33xx_cpgmac_sysc, 370 - }; 371 - 372 - struct omap_hwmod am33xx_cpgmac0_hwmod = { 373 - .name = "cpgmac0", 374 - .class = &am33xx_cpgmac0_hwmod_class, 375 - .clkdm_name = "cpsw_125mhz_clkdm", 376 - .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY), 377 - .main_clk = "cpsw_125mhz_gclk", 378 - .mpu_rt_idx = 1, 379 - .prcm = { 380 - .omap4 = { 381 - .modulemode = MODULEMODE_SWCTRL, 382 - }, 383 - }, 384 - }; 385 - 386 - /* 387 - * mdio class 388 - */ 389 - static struct omap_hwmod_class am33xx_mdio_hwmod_class = { 390 - .name = "davinci_mdio", 391 - }; 392 - 393 - struct omap_hwmod am33xx_mdio_hwmod = { 394 - .name = "davinci_mdio", 395 - .class = &am33xx_mdio_hwmod_class, 396 - .clkdm_name = "cpsw_125mhz_clkdm", 397 - .main_clk = "cpsw_125mhz_gclk", 398 - }; 399 - 400 - /* 401 353 * dcan class 402 354 */ 403 355 static struct omap_hwmod_class am33xx_dcan_hwmod_class = { ··· 1024 1072 CLKCTRL(am33xx_tptc1_hwmod, AM33XX_CM_PER_TPTC1_CLKCTRL_OFFSET); 1025 1073 CLKCTRL(am33xx_tptc2_hwmod, AM33XX_CM_PER_TPTC2_CLKCTRL_OFFSET); 1026 1074 CLKCTRL(am33xx_gfx_hwmod, AM33XX_CM_GFX_GFX_CLKCTRL_OFFSET); 1027 - CLKCTRL(am33xx_cpgmac0_hwmod, AM33XX_CM_PER_CPGMAC0_CLKCTRL_OFFSET); 1028 1075 CLKCTRL(am33xx_pruss_hwmod, AM33XX_CM_PER_PRUSS_CLKCTRL_OFFSET); 1029 1076 CLKCTRL(am33xx_mpu_hwmod , AM33XX_CM_MPU_MPU_CLKCTRL_OFFSET); 1030 1077 CLKCTRL(am33xx_l3_instr_hwmod , AM33XX_CM_PER_L3_INSTR_CLKCTRL_OFFSET); ··· 1085 1134 CLKCTRL(am33xx_tptc1_hwmod, AM43XX_CM_PER_TPTC1_CLKCTRL_OFFSET); 1086 1135 CLKCTRL(am33xx_tptc2_hwmod, AM43XX_CM_PER_TPTC2_CLKCTRL_OFFSET); 1087 1136 CLKCTRL(am33xx_gfx_hwmod, AM43XX_CM_GFX_GFX_CLKCTRL_OFFSET); 1088 - CLKCTRL(am33xx_cpgmac0_hwmod, AM43XX_CM_PER_CPGMAC0_CLKCTRL_OFFSET); 1089 1137 CLKCTRL(am33xx_pruss_hwmod, AM43XX_CM_PER_PRUSS_CLKCTRL_OFFSET); 1090 1138 CLKCTRL(am33xx_mpu_hwmod , AM43XX_CM_MPU_MPU_CLKCTRL_OFFSET); 1091 1139 CLKCTRL(am33xx_l3_instr_hwmod , AM43XX_CM_PER_L3_INSTR_CLKCTRL_OFFSET);
-9
arch/arm/mach-omap2/omap_hwmod_33xx_data.c
··· 372 372 .user = OCP_USER_MPU, 373 373 }; 374 374 375 - static struct omap_hwmod_ocp_if am33xx_l4_hs__cpgmac0 = { 376 - .master = &am33xx_l4_hs_hwmod, 377 - .slave = &am33xx_cpgmac0_hwmod, 378 - .clk = "cpsw_125mhz_gclk", 379 - .user = OCP_USER_MPU, 380 - }; 381 - 382 375 static struct omap_hwmod_ocp_if am33xx_l3_main__lcdc = { 383 376 .master = &am33xx_l3_main_hwmod, 384 377 .slave = &am33xx_lcdc_hwmod, ··· 455 462 &am33xx_l3_main__tptc2, 456 463 &am33xx_l3_main__ocmc, 457 464 &am33xx_l3_s__usbss, 458 - &am33xx_l4_hs__cpgmac0, 459 - &am33xx_cpgmac0__mdio, 460 465 &am33xx_l3_main__sha0, 461 466 &am33xx_l3_main__aes0, 462 467 &am33xx_l4_per__rng,
-9
arch/arm/mach-omap2/omap_hwmod_43xx_data.c
··· 597 597 .user = OCP_USER_MPU, 598 598 }; 599 599 600 - static struct omap_hwmod_ocp_if am43xx_l4_hs__cpgmac0 = { 601 - .master = &am43xx_l4_hs_hwmod, 602 - .slave = &am33xx_cpgmac0_hwmod, 603 - .clk = "cpsw_125mhz_gclk", 604 - .user = OCP_USER_MPU, 605 - }; 606 - 607 600 static struct omap_hwmod_ocp_if am43xx_l4_wkup__timer1 = { 608 601 .master = &am33xx_l4_wkup_hwmod, 609 602 .slave = &am33xx_timer1_hwmod, ··· 852 859 &am33xx_l3_main__tptc1, 853 860 &am33xx_l3_main__tptc2, 854 861 &am33xx_l3_main__ocmc, 855 - &am43xx_l4_hs__cpgmac0, 856 - &am33xx_cpgmac0__mdio, 857 862 &am33xx_l3_main__sha0, 858 863 &am33xx_l3_main__aes0, 859 864 &am43xx_l3_main__des,
-115
arch/arm/mach-omap2/omap_hwmod_44xx_data.c
··· 28 28 #include "cm2_44xx.h" 29 29 #include "prm44xx.h" 30 30 #include "prm-regbits-44xx.h" 31 - #include "wd_timer.h" 32 31 33 32 /* Base offset for all OMAP4 interrupts external to MPUSS */ 34 33 #define OMAP44XX_IRQ_GIC_START 32 ··· 270 271 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET, 271 272 .lostcontext_mask = OMAP4430_LOSTCONTEXT_DFF_MASK, 272 273 .modulemode = MODULEMODE_SWCTRL, 273 - }, 274 - }, 275 - }; 276 - 277 - /* 278 - * 'c2c' class 279 - * chip 2 chip interface used to plug the ape soc (omap) with an external modem 280 - * soc 281 - */ 282 - 283 - static struct omap_hwmod_class omap44xx_c2c_hwmod_class = { 284 - .name = "c2c", 285 - }; 286 - 287 - /* c2c */ 288 - static struct omap_hwmod omap44xx_c2c_hwmod = { 289 - .name = "c2c", 290 - .class = &omap44xx_c2c_hwmod_class, 291 - .clkdm_name = "d2d_clkdm", 292 - .prcm = { 293 - .omap4 = { 294 - .clkctrl_offs = OMAP4_CM_D2D_SAD2D_CLKCTRL_OFFSET, 295 - .context_offs = OMAP4_RM_D2D_SAD2D_CONTEXT_OFFSET, 296 274 }, 297 275 }, 298 276 }; ··· 2410 2434 }; 2411 2435 2412 2436 /* 2413 - * 'wd_timer' class 2414 - * 32-bit watchdog upward counter that generates a pulse on the reset pin on 2415 - * overflow condition 2416 - */ 2417 - 2418 - static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = { 2419 - .rev_offs = 0x0000, 2420 - .sysc_offs = 0x0010, 2421 - .syss_offs = 0x0014, 2422 - .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE | 2423 - SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS), 2424 - .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | 2425 - SIDLE_SMART_WKUP), 2426 - .sysc_fields = &omap_hwmod_sysc_type1, 2427 - }; 2428 - 2429 - static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = { 2430 - .name = "wd_timer", 2431 - .sysc = &omap44xx_wd_timer_sysc, 2432 - .pre_shutdown = &omap2_wd_timer_disable, 2433 - .reset = &omap2_wd_timer_reset, 2434 - }; 2435 - 2436 - /* wd_timer2 */ 2437 - static struct omap_hwmod omap44xx_wd_timer2_hwmod = { 2438 - .name = "wd_timer2", 2439 - .class = &omap44xx_wd_timer_hwmod_class, 2440 - .clkdm_name = "l4_wkup_clkdm", 2441 - .main_clk = "sys_32k_ck", 2442 - .prcm = { 2443 - .omap4 = { 2444 - .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET, 2445 - .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET, 2446 - .modulemode = MODULEMODE_SWCTRL, 2447 - }, 2448 - }, 2449 - }; 2450 - 2451 - /* wd_timer3 */ 2452 - static struct omap_hwmod omap44xx_wd_timer3_hwmod = { 2453 - .name = "wd_timer3", 2454 - .class = &omap44xx_wd_timer_hwmod_class, 2455 - .clkdm_name = "abe_clkdm", 2456 - .main_clk = "sys_32k_ck", 2457 - .prcm = { 2458 - .omap4 = { 2459 - .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET, 2460 - .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET, 2461 - .modulemode = MODULEMODE_SWCTRL, 2462 - }, 2463 - }, 2464 - }; 2465 - 2466 - 2467 - /* 2468 2437 * interfaces 2469 2438 */ 2470 2439 ··· 2707 2786 .slave = &omap44xx_aess_hwmod, 2708 2787 .clk = "ocp_abe_iclk", 2709 2788 .user = OCP_USER_SDMA, 2710 - }; 2711 - 2712 - /* l3_main_2 -> c2c */ 2713 - static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c = { 2714 - .master = &omap44xx_l3_main_2_hwmod, 2715 - .slave = &omap44xx_c2c_hwmod, 2716 - .clk = "l3_div_ck", 2717 - .user = OCP_USER_MPU | OCP_USER_SDMA, 2718 2789 }; 2719 2790 2720 2791 /* l4_wkup -> counter_32k */ ··· 3309 3396 .user = OCP_USER_MPU | OCP_USER_SDMA, 3310 3397 }; 3311 3398 3312 - /* l4_wkup -> wd_timer2 */ 3313 - static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = { 3314 - .master = &omap44xx_l4_wkup_hwmod, 3315 - .slave = &omap44xx_wd_timer2_hwmod, 3316 - .clk = "l4_wkup_clk_mux_ck", 3317 - .user = OCP_USER_MPU | OCP_USER_SDMA, 3318 - }; 3319 - 3320 - /* l4_abe -> wd_timer3 */ 3321 - static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = { 3322 - .master = &omap44xx_l4_abe_hwmod, 3323 - .slave = &omap44xx_wd_timer3_hwmod, 3324 - .clk = "ocp_abe_iclk", 3325 - .user = OCP_USER_MPU, 3326 - }; 3327 - 3328 - /* l4_abe -> wd_timer3 (dma) */ 3329 - static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = { 3330 - .master = &omap44xx_l4_abe_hwmod, 3331 - .slave = &omap44xx_wd_timer3_hwmod, 3332 - .clk = "ocp_abe_iclk", 3333 - .user = OCP_USER_SDMA, 3334 - }; 3335 - 3336 3399 /* mpu -> emif1 */ 3337 3400 static struct omap_hwmod_ocp_if omap44xx_mpu__emif1 = { 3338 3401 .master = &omap44xx_mpu_hwmod, ··· 3363 3474 &omap44xx_l4_cfg__ocp_wp_noc, 3364 3475 &omap44xx_l4_abe__aess, 3365 3476 &omap44xx_l4_abe__aess_dma, 3366 - &omap44xx_l3_main_2__c2c, 3367 3477 &omap44xx_l4_wkup__counter_32k, 3368 3478 &omap44xx_l4_cfg__ctrl_module_core, 3369 3479 &omap44xx_l4_cfg__ctrl_module_pad_core, ··· 3439 3551 &omap44xx_l4_cfg__usb_host_hs, 3440 3552 &omap44xx_l4_cfg__usb_otg_hs, 3441 3553 &omap44xx_l4_cfg__usb_tll_hs, 3442 - &omap44xx_l4_wkup__wd_timer2, 3443 - &omap44xx_l4_abe__wd_timer3, 3444 - &omap44xx_l4_abe__wd_timer3_dma, 3445 3554 &omap44xx_mpu__emif1, 3446 3555 &omap44xx_mpu__emif2, 3447 3556 &omap44xx_l3_main_2__aes1,
-475
arch/arm/mach-omap2/omap_hwmod_7xx_data.c
··· 285 285 }; 286 286 287 287 /* 288 - * 'gmac' class 289 - * cpsw/gmac sub system 290 - */ 291 - static struct omap_hwmod_class_sysconfig dra7xx_gmac_sysc = { 292 - .rev_offs = 0x0, 293 - .sysc_offs = 0x8, 294 - .syss_offs = 0x4, 295 - .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE | 296 - SYSS_HAS_RESET_STATUS), 297 - .idlemodes = (SIDLE_FORCE | SIDLE_NO | MSTANDBY_FORCE | 298 - MSTANDBY_NO), 299 - .sysc_fields = &omap_hwmod_sysc_type3, 300 - }; 301 - 302 - static struct omap_hwmod_class dra7xx_gmac_hwmod_class = { 303 - .name = "gmac", 304 - .sysc = &dra7xx_gmac_sysc, 305 - }; 306 - 307 - static struct omap_hwmod dra7xx_gmac_hwmod = { 308 - .name = "gmac", 309 - .class = &dra7xx_gmac_hwmod_class, 310 - .clkdm_name = "gmac_clkdm", 311 - .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY), 312 - .main_clk = "dpll_gmac_ck", 313 - .mpu_rt_idx = 1, 314 - .prcm = { 315 - .omap4 = { 316 - .clkctrl_offs = DRA7XX_CM_GMAC_GMAC_CLKCTRL_OFFSET, 317 - .context_offs = DRA7XX_RM_GMAC_GMAC_CONTEXT_OFFSET, 318 - .modulemode = MODULEMODE_SWCTRL, 319 - }, 320 - }, 321 - }; 322 - 323 - /* 324 - * 'mdio' class 325 - */ 326 - static struct omap_hwmod_class dra7xx_mdio_hwmod_class = { 327 - .name = "davinci_mdio", 328 - }; 329 - 330 - static struct omap_hwmod dra7xx_mdio_hwmod = { 331 - .name = "davinci_mdio", 332 - .class = &dra7xx_mdio_hwmod_class, 333 - .clkdm_name = "gmac_clkdm", 334 - .main_clk = "dpll_gmac_ck", 335 - }; 336 - 337 - /* 338 288 * 'dcan' class 339 289 * 340 290 */ ··· 994 1044 .context_offs = DRA7XX_RM_L4CFG_MAILBOX13_CONTEXT_OFFSET, 995 1045 }, 996 1046 }, 997 - }; 998 - 999 - /* 1000 - * 'mcspi' class 1001 - * 1002 - */ 1003 - 1004 - static struct omap_hwmod_class_sysconfig dra7xx_mcspi_sysc = { 1005 - .rev_offs = 0x0000, 1006 - .sysc_offs = 0x0010, 1007 - .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS | 1008 - SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET), 1009 - .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | 1010 - SIDLE_SMART_WKUP), 1011 - .sysc_fields = &omap_hwmod_sysc_type2, 1012 - }; 1013 - 1014 - static struct omap_hwmod_class dra7xx_mcspi_hwmod_class = { 1015 - .name = "mcspi", 1016 - .sysc = &dra7xx_mcspi_sysc, 1017 - }; 1018 - 1019 - /* mcspi1 */ 1020 - static struct omap_hwmod dra7xx_mcspi1_hwmod = { 1021 - .name = "mcspi1", 1022 - .class = &dra7xx_mcspi_hwmod_class, 1023 - .clkdm_name = "l4per_clkdm", 1024 - .main_clk = "func_48m_fclk", 1025 - .prcm = { 1026 - .omap4 = { 1027 - .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET, 1028 - .context_offs = DRA7XX_RM_L4PER_MCSPI1_CONTEXT_OFFSET, 1029 - .modulemode = MODULEMODE_SWCTRL, 1030 - }, 1031 - }, 1032 - }; 1033 - 1034 - /* mcspi2 */ 1035 - static struct omap_hwmod dra7xx_mcspi2_hwmod = { 1036 - .name = "mcspi2", 1037 - .class = &dra7xx_mcspi_hwmod_class, 1038 - .clkdm_name = "l4per_clkdm", 1039 - .main_clk = "func_48m_fclk", 1040 - .prcm = { 1041 - .omap4 = { 1042 - .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET, 1043 - .context_offs = DRA7XX_RM_L4PER_MCSPI2_CONTEXT_OFFSET, 1044 - .modulemode = MODULEMODE_SWCTRL, 1045 - }, 1046 - }, 1047 - }; 1048 - 1049 - /* mcspi3 */ 1050 - static struct omap_hwmod dra7xx_mcspi3_hwmod = { 1051 - .name = "mcspi3", 1052 - .class = &dra7xx_mcspi_hwmod_class, 1053 - .clkdm_name = "l4per_clkdm", 1054 - .main_clk = "func_48m_fclk", 1055 - .prcm = { 1056 - .omap4 = { 1057 - .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET, 1058 - .context_offs = DRA7XX_RM_L4PER_MCSPI3_CONTEXT_OFFSET, 1059 - .modulemode = MODULEMODE_SWCTRL, 1060 - }, 1061 - }, 1062 - }; 1063 - 1064 - /* mcspi4 */ 1065 - static struct omap_hwmod dra7xx_mcspi4_hwmod = { 1066 - .name = "mcspi4", 1067 - .class = &dra7xx_mcspi_hwmod_class, 1068 - .clkdm_name = "l4per_clkdm", 1069 - .main_clk = "func_48m_fclk", 1070 - .prcm = { 1071 - .omap4 = { 1072 - .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET, 1073 - .context_offs = DRA7XX_RM_L4PER_MCSPI4_CONTEXT_OFFSET, 1074 - .modulemode = MODULEMODE_SWCTRL, 1075 - }, 1076 - }, 1077 - }; 1078 - 1079 - /* 1080 - * 'mcasp' class 1081 - * 1082 - */ 1083 - static struct omap_hwmod_class_sysconfig dra7xx_mcasp_sysc = { 1084 - .rev_offs = 0, 1085 - .sysc_offs = 0x0004, 1086 - .sysc_flags = SYSC_HAS_SIDLEMODE, 1087 - .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), 1088 - .sysc_fields = &omap_hwmod_sysc_type3, 1089 - }; 1090 - 1091 - static struct omap_hwmod_class dra7xx_mcasp_hwmod_class = { 1092 - .name = "mcasp", 1093 - .sysc = &dra7xx_mcasp_sysc, 1094 - }; 1095 - 1096 - /* mcasp1 */ 1097 - static struct omap_hwmod_opt_clk mcasp1_opt_clks[] = { 1098 - { .role = "ahclkx", .clk = "mcasp1_ahclkx_mux" }, 1099 - { .role = "ahclkr", .clk = "mcasp1_ahclkr_mux" }, 1100 - }; 1101 - 1102 - static struct omap_hwmod dra7xx_mcasp1_hwmod = { 1103 - .name = "mcasp1", 1104 - .class = &dra7xx_mcasp_hwmod_class, 1105 - .clkdm_name = "ipu_clkdm", 1106 - .main_clk = "mcasp1_aux_gfclk_mux", 1107 - .flags = HWMOD_OPT_CLKS_NEEDED, 1108 - .prcm = { 1109 - .omap4 = { 1110 - .clkctrl_offs = DRA7XX_CM_IPU_MCASP1_CLKCTRL_OFFSET, 1111 - .context_offs = DRA7XX_RM_IPU_MCASP1_CONTEXT_OFFSET, 1112 - .modulemode = MODULEMODE_SWCTRL, 1113 - }, 1114 - }, 1115 - .opt_clks = mcasp1_opt_clks, 1116 - .opt_clks_cnt = ARRAY_SIZE(mcasp1_opt_clks), 1117 - }; 1118 - 1119 - /* mcasp2 */ 1120 - static struct omap_hwmod_opt_clk mcasp2_opt_clks[] = { 1121 - { .role = "ahclkx", .clk = "mcasp2_ahclkx_mux" }, 1122 - { .role = "ahclkr", .clk = "mcasp2_ahclkr_mux" }, 1123 - }; 1124 - 1125 - static struct omap_hwmod dra7xx_mcasp2_hwmod = { 1126 - .name = "mcasp2", 1127 - .class = &dra7xx_mcasp_hwmod_class, 1128 - .clkdm_name = "l4per2_clkdm", 1129 - .main_clk = "mcasp2_aux_gfclk_mux", 1130 - .flags = HWMOD_OPT_CLKS_NEEDED, 1131 - .prcm = { 1132 - .omap4 = { 1133 - .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP2_CLKCTRL_OFFSET, 1134 - .context_offs = DRA7XX_RM_L4PER2_MCASP2_CONTEXT_OFFSET, 1135 - .modulemode = MODULEMODE_SWCTRL, 1136 - }, 1137 - }, 1138 - .opt_clks = mcasp2_opt_clks, 1139 - .opt_clks_cnt = ARRAY_SIZE(mcasp2_opt_clks), 1140 - }; 1141 - 1142 - /* mcasp3 */ 1143 - static struct omap_hwmod_opt_clk mcasp3_opt_clks[] = { 1144 - { .role = "ahclkx", .clk = "mcasp3_ahclkx_mux" }, 1145 - }; 1146 - 1147 - static struct omap_hwmod dra7xx_mcasp3_hwmod = { 1148 - .name = "mcasp3", 1149 - .class = &dra7xx_mcasp_hwmod_class, 1150 - .clkdm_name = "l4per2_clkdm", 1151 - .main_clk = "mcasp3_aux_gfclk_mux", 1152 - .flags = HWMOD_OPT_CLKS_NEEDED, 1153 - .prcm = { 1154 - .omap4 = { 1155 - .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP3_CLKCTRL_OFFSET, 1156 - .context_offs = DRA7XX_RM_L4PER2_MCASP3_CONTEXT_OFFSET, 1157 - .modulemode = MODULEMODE_SWCTRL, 1158 - }, 1159 - }, 1160 - .opt_clks = mcasp3_opt_clks, 1161 - .opt_clks_cnt = ARRAY_SIZE(mcasp3_opt_clks), 1162 - }; 1163 - 1164 - /* mcasp4 */ 1165 - static struct omap_hwmod_opt_clk mcasp4_opt_clks[] = { 1166 - { .role = "ahclkx", .clk = "mcasp4_ahclkx_mux" }, 1167 - }; 1168 - 1169 - static struct omap_hwmod dra7xx_mcasp4_hwmod = { 1170 - .name = "mcasp4", 1171 - .class = &dra7xx_mcasp_hwmod_class, 1172 - .clkdm_name = "l4per2_clkdm", 1173 - .main_clk = "mcasp4_aux_gfclk_mux", 1174 - .flags = HWMOD_OPT_CLKS_NEEDED, 1175 - .prcm = { 1176 - .omap4 = { 1177 - .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP4_CLKCTRL_OFFSET, 1178 - .context_offs = DRA7XX_RM_L4PER2_MCASP4_CONTEXT_OFFSET, 1179 - .modulemode = MODULEMODE_SWCTRL, 1180 - }, 1181 - }, 1182 - .opt_clks = mcasp4_opt_clks, 1183 - .opt_clks_cnt = ARRAY_SIZE(mcasp4_opt_clks), 1184 - }; 1185 - 1186 - /* mcasp5 */ 1187 - static struct omap_hwmod_opt_clk mcasp5_opt_clks[] = { 1188 - { .role = "ahclkx", .clk = "mcasp5_ahclkx_mux" }, 1189 - }; 1190 - 1191 - static struct omap_hwmod dra7xx_mcasp5_hwmod = { 1192 - .name = "mcasp5", 1193 - .class = &dra7xx_mcasp_hwmod_class, 1194 - .clkdm_name = "l4per2_clkdm", 1195 - .main_clk = "mcasp5_aux_gfclk_mux", 1196 - .flags = HWMOD_OPT_CLKS_NEEDED, 1197 - .prcm = { 1198 - .omap4 = { 1199 - .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP5_CLKCTRL_OFFSET, 1200 - .context_offs = DRA7XX_RM_L4PER2_MCASP5_CONTEXT_OFFSET, 1201 - .modulemode = MODULEMODE_SWCTRL, 1202 - }, 1203 - }, 1204 - .opt_clks = mcasp5_opt_clks, 1205 - .opt_clks_cnt = ARRAY_SIZE(mcasp5_opt_clks), 1206 - }; 1207 - 1208 - /* mcasp6 */ 1209 - static struct omap_hwmod_opt_clk mcasp6_opt_clks[] = { 1210 - { .role = "ahclkx", .clk = "mcasp6_ahclkx_mux" }, 1211 - }; 1212 - 1213 - static struct omap_hwmod dra7xx_mcasp6_hwmod = { 1214 - .name = "mcasp6", 1215 - .class = &dra7xx_mcasp_hwmod_class, 1216 - .clkdm_name = "l4per2_clkdm", 1217 - .main_clk = "mcasp6_aux_gfclk_mux", 1218 - .flags = HWMOD_OPT_CLKS_NEEDED, 1219 - .prcm = { 1220 - .omap4 = { 1221 - .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP6_CLKCTRL_OFFSET, 1222 - .context_offs = DRA7XX_RM_L4PER2_MCASP6_CONTEXT_OFFSET, 1223 - .modulemode = MODULEMODE_SWCTRL, 1224 - }, 1225 - }, 1226 - .opt_clks = mcasp6_opt_clks, 1227 - .opt_clks_cnt = ARRAY_SIZE(mcasp6_opt_clks), 1228 - }; 1229 - 1230 - /* mcasp7 */ 1231 - static struct omap_hwmod_opt_clk mcasp7_opt_clks[] = { 1232 - { .role = "ahclkx", .clk = "mcasp7_ahclkx_mux" }, 1233 - }; 1234 - 1235 - static struct omap_hwmod dra7xx_mcasp7_hwmod = { 1236 - .name = "mcasp7", 1237 - .class = &dra7xx_mcasp_hwmod_class, 1238 - .clkdm_name = "l4per2_clkdm", 1239 - .main_clk = "mcasp7_aux_gfclk_mux", 1240 - .flags = HWMOD_OPT_CLKS_NEEDED, 1241 - .prcm = { 1242 - .omap4 = { 1243 - .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP7_CLKCTRL_OFFSET, 1244 - .context_offs = DRA7XX_RM_L4PER2_MCASP7_CONTEXT_OFFSET, 1245 - .modulemode = MODULEMODE_SWCTRL, 1246 - }, 1247 - }, 1248 - .opt_clks = mcasp7_opt_clks, 1249 - .opt_clks_cnt = ARRAY_SIZE(mcasp7_opt_clks), 1250 - }; 1251 - 1252 - /* mcasp8 */ 1253 - static struct omap_hwmod_opt_clk mcasp8_opt_clks[] = { 1254 - { .role = "ahclkx", .clk = "mcasp8_ahclkx_mux" }, 1255 - }; 1256 - 1257 - static struct omap_hwmod dra7xx_mcasp8_hwmod = { 1258 - .name = "mcasp8", 1259 - .class = &dra7xx_mcasp_hwmod_class, 1260 - .clkdm_name = "l4per2_clkdm", 1261 - .main_clk = "mcasp8_aux_gfclk_mux", 1262 - .flags = HWMOD_OPT_CLKS_NEEDED, 1263 - .prcm = { 1264 - .omap4 = { 1265 - .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP8_CLKCTRL_OFFSET, 1266 - .context_offs = DRA7XX_RM_L4PER2_MCASP8_CONTEXT_OFFSET, 1267 - .modulemode = MODULEMODE_SWCTRL, 1268 - }, 1269 - }, 1270 - .opt_clks = mcasp8_opt_clks, 1271 - .opt_clks_cnt = ARRAY_SIZE(mcasp8_opt_clks), 1272 1047 }; 1273 1048 1274 1049 /* ··· 1978 2303 .user = OCP_USER_MPU | OCP_USER_SDMA, 1979 2304 }; 1980 2305 1981 - static struct omap_hwmod_ocp_if dra7xx_l4_per2__cpgmac0 = { 1982 - .master = &dra7xx_l4_per2_hwmod, 1983 - .slave = &dra7xx_gmac_hwmod, 1984 - .clk = "dpll_gmac_ck", 1985 - .user = OCP_USER_MPU, 1986 - }; 1987 - 1988 - static struct omap_hwmod_ocp_if dra7xx_gmac__mdio = { 1989 - .master = &dra7xx_gmac_hwmod, 1990 - .slave = &dra7xx_mdio_hwmod, 1991 - .user = OCP_USER_MPU, 1992 - }; 1993 - 1994 2306 /* l4_wkup -> dcan1 */ 1995 2307 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__dcan1 = { 1996 2308 .master = &dra7xx_l4_wkup_hwmod, ··· 2071 2409 .master = &dra7xx_l3_main_1_hwmod, 2072 2410 .slave = &dra7xx_sha0_hwmod, 2073 2411 .clk = "l3_iclk_div", 2074 - .user = OCP_USER_MPU | OCP_USER_SDMA, 2075 - }; 2076 - 2077 - /* l4_per2 -> mcasp1 */ 2078 - static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp1 = { 2079 - .master = &dra7xx_l4_per2_hwmod, 2080 - .slave = &dra7xx_mcasp1_hwmod, 2081 - .clk = "l4_root_clk_div", 2082 - .user = OCP_USER_MPU | OCP_USER_SDMA, 2083 - }; 2084 - 2085 - /* l3_main_1 -> mcasp1 */ 2086 - static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp1 = { 2087 - .master = &dra7xx_l3_main_1_hwmod, 2088 - .slave = &dra7xx_mcasp1_hwmod, 2089 - .clk = "l3_iclk_div", 2090 - .user = OCP_USER_MPU | OCP_USER_SDMA, 2091 - }; 2092 - 2093 - /* l4_per2 -> mcasp2 */ 2094 - static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp2 = { 2095 - .master = &dra7xx_l4_per2_hwmod, 2096 - .slave = &dra7xx_mcasp2_hwmod, 2097 - .clk = "l4_root_clk_div", 2098 - .user = OCP_USER_MPU | OCP_USER_SDMA, 2099 - }; 2100 - 2101 - /* l3_main_1 -> mcasp2 */ 2102 - static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp2 = { 2103 - .master = &dra7xx_l3_main_1_hwmod, 2104 - .slave = &dra7xx_mcasp2_hwmod, 2105 - .clk = "l3_iclk_div", 2106 - .user = OCP_USER_MPU | OCP_USER_SDMA, 2107 - }; 2108 - 2109 - /* l4_per2 -> mcasp3 */ 2110 - static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp3 = { 2111 - .master = &dra7xx_l4_per2_hwmod, 2112 - .slave = &dra7xx_mcasp3_hwmod, 2113 - .clk = "l4_root_clk_div", 2114 - .user = OCP_USER_MPU | OCP_USER_SDMA, 2115 - }; 2116 - 2117 - /* l3_main_1 -> mcasp3 */ 2118 - static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp3 = { 2119 - .master = &dra7xx_l3_main_1_hwmod, 2120 - .slave = &dra7xx_mcasp3_hwmod, 2121 - .clk = "l3_iclk_div", 2122 - .user = OCP_USER_MPU | OCP_USER_SDMA, 2123 - }; 2124 - 2125 - /* l4_per2 -> mcasp4 */ 2126 - static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp4 = { 2127 - .master = &dra7xx_l4_per2_hwmod, 2128 - .slave = &dra7xx_mcasp4_hwmod, 2129 - .clk = "l4_root_clk_div", 2130 - .user = OCP_USER_MPU | OCP_USER_SDMA, 2131 - }; 2132 - 2133 - /* l4_per2 -> mcasp5 */ 2134 - static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp5 = { 2135 - .master = &dra7xx_l4_per2_hwmod, 2136 - .slave = &dra7xx_mcasp5_hwmod, 2137 - .clk = "l4_root_clk_div", 2138 - .user = OCP_USER_MPU | OCP_USER_SDMA, 2139 - }; 2140 - 2141 - /* l4_per2 -> mcasp6 */ 2142 - static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp6 = { 2143 - .master = &dra7xx_l4_per2_hwmod, 2144 - .slave = &dra7xx_mcasp6_hwmod, 2145 - .clk = "l4_root_clk_div", 2146 - .user = OCP_USER_MPU | OCP_USER_SDMA, 2147 - }; 2148 - 2149 - /* l4_per2 -> mcasp7 */ 2150 - static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp7 = { 2151 - .master = &dra7xx_l4_per2_hwmod, 2152 - .slave = &dra7xx_mcasp7_hwmod, 2153 - .clk = "l4_root_clk_div", 2154 - .user = OCP_USER_MPU | OCP_USER_SDMA, 2155 - }; 2156 - 2157 - /* l4_per2 -> mcasp8 */ 2158 - static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp8 = { 2159 - .master = &dra7xx_l4_per2_hwmod, 2160 - .slave = &dra7xx_mcasp8_hwmod, 2161 - .clk = "l4_root_clk_div", 2162 2412 .user = OCP_USER_MPU | OCP_USER_SDMA, 2163 2413 }; 2164 2414 ··· 2198 2624 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox13 = { 2199 2625 .master = &dra7xx_l4_per3_hwmod, 2200 2626 .slave = &dra7xx_mailbox13_hwmod, 2201 - .clk = "l3_iclk_div", 2202 - .user = OCP_USER_MPU | OCP_USER_SDMA, 2203 - }; 2204 - 2205 - /* l4_per1 -> mcspi1 */ 2206 - static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi1 = { 2207 - .master = &dra7xx_l4_per1_hwmod, 2208 - .slave = &dra7xx_mcspi1_hwmod, 2209 - .clk = "l3_iclk_div", 2210 - .user = OCP_USER_MPU | OCP_USER_SDMA, 2211 - }; 2212 - 2213 - /* l4_per1 -> mcspi2 */ 2214 - static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi2 = { 2215 - .master = &dra7xx_l4_per1_hwmod, 2216 - .slave = &dra7xx_mcspi2_hwmod, 2217 - .clk = "l3_iclk_div", 2218 - .user = OCP_USER_MPU | OCP_USER_SDMA, 2219 - }; 2220 - 2221 - /* l4_per1 -> mcspi3 */ 2222 - static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi3 = { 2223 - .master = &dra7xx_l4_per1_hwmod, 2224 - .slave = &dra7xx_mcspi3_hwmod, 2225 - .clk = "l3_iclk_div", 2226 - .user = OCP_USER_MPU | OCP_USER_SDMA, 2227 - }; 2228 - 2229 - /* l4_per1 -> mcspi4 */ 2230 - static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi4 = { 2231 - .master = &dra7xx_l4_per1_hwmod, 2232 - .slave = &dra7xx_mcspi4_hwmod, 2233 2627 .clk = "l3_iclk_div", 2234 2628 .user = OCP_USER_MPU | OCP_USER_SDMA, 2235 2629 }; ··· 2563 3021 &dra7xx_l4_wkup__ctrl_module_wkup, 2564 3022 &dra7xx_l4_wkup__dcan1, 2565 3023 &dra7xx_l4_per2__dcan2, 2566 - &dra7xx_l4_per2__cpgmac0, 2567 - &dra7xx_l4_per2__mcasp1, 2568 - &dra7xx_l3_main_1__mcasp1, 2569 - &dra7xx_l4_per2__mcasp2, 2570 - &dra7xx_l3_main_1__mcasp2, 2571 - &dra7xx_l4_per2__mcasp3, 2572 - &dra7xx_l3_main_1__mcasp3, 2573 - &dra7xx_l4_per2__mcasp4, 2574 - &dra7xx_l4_per2__mcasp5, 2575 - &dra7xx_l4_per2__mcasp6, 2576 - &dra7xx_l4_per2__mcasp7, 2577 - &dra7xx_l4_per2__mcasp8, 2578 - &dra7xx_gmac__mdio, 2579 3024 &dra7xx_l4_cfg__dma_system, 2580 3025 &dra7xx_l3_main_1__tpcc, 2581 3026 &dra7xx_l3_main_1__tptc0, ··· 2589 3060 &dra7xx_l4_per3__mailbox11, 2590 3061 &dra7xx_l4_per3__mailbox12, 2591 3062 &dra7xx_l4_per3__mailbox13, 2592 - &dra7xx_l4_per1__mcspi1, 2593 - &dra7xx_l4_per1__mcspi2, 2594 - &dra7xx_l4_per1__mcspi3, 2595 - &dra7xx_l4_per1__mcspi4, 2596 3063 &dra7xx_l4_cfg__mpu, 2597 3064 &dra7xx_l4_cfg__ocp2scp1, 2598 3065 &dra7xx_l4_cfg__ocp2scp3,