Krzysztof Kozlowski | cc4637f | 2017-12-25 11:40:09 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Chanho Park | df09df6f | 2015-07-30 23:11:00 +0900 | [diff] [blame] | 2 | /* |
| 3 | * SAMSUNG EXYNOS5422 SoC cpu device tree source |
| 4 | * |
| 5 | * Copyright (c) 2015 Samsung Electronics Co., Ltd. |
| 6 | * http://www.samsung.com |
| 7 | * |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 8 | * This file provides desired ordering for Exynos5422: CPU[0123] being the A7. |
Chanho Park | df09df6f | 2015-07-30 23:11:00 +0900 | [diff] [blame] | 9 | * |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 10 | * The Exynos5420, 5422 and 5800 actually share the same CPU configuration |
| 11 | * but particular boards choose different booting order. |
| 12 | * |
| 13 | * Exynos5420 and Exynos5800 always boot from Cortex-A15. On Exynos5422 |
| 14 | * booting cluster (big or LITTLE) is chosen by IROM code by reading |
| 15 | * the gpg2-1 GPIO. By default all Exynos5422 based boards choose booting |
| 16 | * from the LITTLE: Cortex-A7. |
Chanho Park | df09df6f | 2015-07-30 23:11:00 +0900 | [diff] [blame] | 17 | */ |
| 18 | |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 19 | / { |
| 20 | cpus { |
| 21 | #address-cells = <1>; |
| 22 | #size-cells = <0>; |
Chanho Park | df09df6f | 2015-07-30 23:11:00 +0900 | [diff] [blame] | 23 | |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 24 | cpu0: cpu@100 { |
| 25 | device_type = "cpu"; |
| 26 | compatible = "arm,cortex-a7"; |
| 27 | reg = <0x100>; |
Thomas Abraham | 66a4a1f | 2015-12-15 18:33:17 +0100 | [diff] [blame] | 28 | clocks = <&clock CLK_KFC_CLK>; |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 29 | clock-frequency = <1000000000>; |
| 30 | cci-control-port = <&cci_control0>; |
Thomas Abraham | 66a4a1f | 2015-12-15 18:33:17 +0100 | [diff] [blame] | 31 | operating-points-v2 = <&cluster_a7_opp_table>; |
Krzysztof Kozlowski | 3b93fc0f | 2016-02-18 14:13:02 +0900 | [diff] [blame] | 32 | #cooling-cells = <2>; /* min followed by max */ |
Dietmar Eggemann | 1784654 | 2017-08-30 15:41:19 +0100 | [diff] [blame] | 33 | capacity-dmips-mhz = <539>; |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 34 | }; |
Chanho Park | df09df6f | 2015-07-30 23:11:00 +0900 | [diff] [blame] | 35 | |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 36 | cpu1: cpu@101 { |
| 37 | device_type = "cpu"; |
| 38 | compatible = "arm,cortex-a7"; |
| 39 | reg = <0x101>; |
| 40 | clock-frequency = <1000000000>; |
| 41 | cci-control-port = <&cci_control0>; |
Thomas Abraham | 66a4a1f | 2015-12-15 18:33:17 +0100 | [diff] [blame] | 42 | operating-points-v2 = <&cluster_a7_opp_table>; |
Krzysztof Kozlowski | 3b93fc0f | 2016-02-18 14:13:02 +0900 | [diff] [blame] | 43 | #cooling-cells = <2>; /* min followed by max */ |
Dietmar Eggemann | 1784654 | 2017-08-30 15:41:19 +0100 | [diff] [blame] | 44 | capacity-dmips-mhz = <539>; |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 45 | }; |
Chanho Park | df09df6f | 2015-07-30 23:11:00 +0900 | [diff] [blame] | 46 | |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 47 | cpu2: cpu@102 { |
| 48 | device_type = "cpu"; |
| 49 | compatible = "arm,cortex-a7"; |
| 50 | reg = <0x102>; |
| 51 | clock-frequency = <1000000000>; |
| 52 | cci-control-port = <&cci_control0>; |
Thomas Abraham | 66a4a1f | 2015-12-15 18:33:17 +0100 | [diff] [blame] | 53 | operating-points-v2 = <&cluster_a7_opp_table>; |
Krzysztof Kozlowski | 3b93fc0f | 2016-02-18 14:13:02 +0900 | [diff] [blame] | 54 | #cooling-cells = <2>; /* min followed by max */ |
Dietmar Eggemann | 1784654 | 2017-08-30 15:41:19 +0100 | [diff] [blame] | 55 | capacity-dmips-mhz = <539>; |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 56 | }; |
Chanho Park | df09df6f | 2015-07-30 23:11:00 +0900 | [diff] [blame] | 57 | |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 58 | cpu3: cpu@103 { |
| 59 | device_type = "cpu"; |
| 60 | compatible = "arm,cortex-a7"; |
| 61 | reg = <0x103>; |
| 62 | clock-frequency = <1000000000>; |
| 63 | cci-control-port = <&cci_control0>; |
Thomas Abraham | 66a4a1f | 2015-12-15 18:33:17 +0100 | [diff] [blame] | 64 | operating-points-v2 = <&cluster_a7_opp_table>; |
Krzysztof Kozlowski | 3b93fc0f | 2016-02-18 14:13:02 +0900 | [diff] [blame] | 65 | #cooling-cells = <2>; /* min followed by max */ |
Dietmar Eggemann | 1784654 | 2017-08-30 15:41:19 +0100 | [diff] [blame] | 66 | capacity-dmips-mhz = <539>; |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 67 | }; |
Chanho Park | df09df6f | 2015-07-30 23:11:00 +0900 | [diff] [blame] | 68 | |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 69 | cpu4: cpu@0 { |
| 70 | device_type = "cpu"; |
| 71 | compatible = "arm,cortex-a15"; |
Thomas Abraham | 66a4a1f | 2015-12-15 18:33:17 +0100 | [diff] [blame] | 72 | clocks = <&clock CLK_ARM_CLK>; |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 73 | reg = <0x0>; |
| 74 | clock-frequency = <1800000000>; |
| 75 | cci-control-port = <&cci_control1>; |
Thomas Abraham | 66a4a1f | 2015-12-15 18:33:17 +0100 | [diff] [blame] | 76 | operating-points-v2 = <&cluster_a15_opp_table>; |
Krzysztof Kozlowski | 3b93fc0f | 2016-02-18 14:13:02 +0900 | [diff] [blame] | 77 | #cooling-cells = <2>; /* min followed by max */ |
Dietmar Eggemann | 1784654 | 2017-08-30 15:41:19 +0100 | [diff] [blame] | 78 | capacity-dmips-mhz = <1024>; |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 79 | }; |
Chanho Park | df09df6f | 2015-07-30 23:11:00 +0900 | [diff] [blame] | 80 | |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 81 | cpu5: cpu@1 { |
| 82 | device_type = "cpu"; |
| 83 | compatible = "arm,cortex-a15"; |
| 84 | reg = <0x1>; |
| 85 | clock-frequency = <1800000000>; |
| 86 | cci-control-port = <&cci_control1>; |
Thomas Abraham | 66a4a1f | 2015-12-15 18:33:17 +0100 | [diff] [blame] | 87 | operating-points-v2 = <&cluster_a15_opp_table>; |
Krzysztof Kozlowski | 3b93fc0f | 2016-02-18 14:13:02 +0900 | [diff] [blame] | 88 | #cooling-cells = <2>; /* min followed by max */ |
Dietmar Eggemann | 1784654 | 2017-08-30 15:41:19 +0100 | [diff] [blame] | 89 | capacity-dmips-mhz = <1024>; |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 90 | }; |
Chanho Park | df09df6f | 2015-07-30 23:11:00 +0900 | [diff] [blame] | 91 | |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 92 | cpu6: cpu@2 { |
| 93 | device_type = "cpu"; |
| 94 | compatible = "arm,cortex-a15"; |
| 95 | reg = <0x2>; |
| 96 | clock-frequency = <1800000000>; |
| 97 | cci-control-port = <&cci_control1>; |
Thomas Abraham | 66a4a1f | 2015-12-15 18:33:17 +0100 | [diff] [blame] | 98 | operating-points-v2 = <&cluster_a15_opp_table>; |
Krzysztof Kozlowski | 3b93fc0f | 2016-02-18 14:13:02 +0900 | [diff] [blame] | 99 | #cooling-cells = <2>; /* min followed by max */ |
Dietmar Eggemann | 1784654 | 2017-08-30 15:41:19 +0100 | [diff] [blame] | 100 | capacity-dmips-mhz = <1024>; |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 101 | }; |
| 102 | |
| 103 | cpu7: cpu@3 { |
| 104 | device_type = "cpu"; |
| 105 | compatible = "arm,cortex-a15"; |
| 106 | reg = <0x3>; |
| 107 | clock-frequency = <1800000000>; |
| 108 | cci-control-port = <&cci_control1>; |
Thomas Abraham | 66a4a1f | 2015-12-15 18:33:17 +0100 | [diff] [blame] | 109 | operating-points-v2 = <&cluster_a15_opp_table>; |
Krzysztof Kozlowski | 3b93fc0f | 2016-02-18 14:13:02 +0900 | [diff] [blame] | 110 | #cooling-cells = <2>; /* min followed by max */ |
Dietmar Eggemann | 1784654 | 2017-08-30 15:41:19 +0100 | [diff] [blame] | 111 | capacity-dmips-mhz = <1024>; |
Krzysztof Kozlowski | 4f0d20e | 2015-12-11 15:05:56 +0900 | [diff] [blame] | 112 | }; |
| 113 | }; |
Chanho Park | df09df6f | 2015-07-30 23:11:00 +0900 | [diff] [blame] | 114 | }; |
Marian Mihailescu | c4f2fc0 | 2017-11-23 15:34:30 +0100 | [diff] [blame] | 115 | |
| 116 | &arm_a7_pmu { |
| 117 | interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; |
| 118 | status = "okay"; |
| 119 | }; |
| 120 | |
| 121 | &arm_a15_pmu { |
| 122 | interrupt-affinity = <&cpu4>, <&cpu5>, <&cpu6>, <&cpu7>; |
| 123 | status = "okay"; |
| 124 | }; |