xref: /linux/scripts/dtc/include-prefixes/arm64/apple/s8000.dtsi (revision 2f24482304ebd32c5aa374f31465b9941a860b92)
1// SPDX-License-Identifier: GPL-2.0+ OR MIT
2/*
3 * Apple S8000 "A9" (Samsung) SoC
4 *
5 * Other names: H8P, "Maui"
6 *
7 * Copyright (c) 2024, Nick Chan <towinchenmi@gmail.com>
8 */
9
10#include "s800-0-3.dtsi"
11
12/ {
13	twister_opp: opp-table {
14		compatible = "operating-points-v2";
15
16		opp01 {
17			opp-hz = /bits/ 64 <300000000>;
18			opp-level = <1>;
19			clock-latency-ns = <650>;
20		};
21		opp02 {
22			opp-hz = /bits/ 64 <396000000>;
23			opp-level = <2>;
24			clock-latency-ns = <75000>;
25		};
26		opp03 {
27			opp-hz = /bits/ 64 <600000000>;
28			opp-level = <3>;
29			clock-latency-ns = <27000>;
30		};
31		opp04 {
32			opp-hz = /bits/ 64 <912000000>;
33			opp-level = <4>;
34			clock-latency-ns = <32000>;
35		};
36		opp05 {
37			opp-hz = /bits/ 64 <1200000000>;
38			opp-level = <5>;
39			clock-latency-ns = <35000>;
40		};
41		opp06 {
42			opp-hz = /bits/ 64 <1512000000>;
43			opp-level = <6>;
44			clock-latency-ns = <45000>;
45		};
46		opp07 {
47			opp-hz = /bits/ 64 <1800000000>;
48			opp-level = <7>;
49			clock-latency-ns = <58000>;
50		};
51#if 0
52		/* Not available until CPU deep sleep is implemented */
53		opp08 {
54			opp-hz = /bits/ 64 <1844000000>;
55			opp-level = <8>;
56			clock-latency-ns = <58000>;
57			turbo-mode;
58		};
59#endif
60	};
61};
62
63/*
64 * The A9 was made by two separate fabs on two different process
65 * nodes: Samsung made the S8000 (APL0898) on 14nm and TSMC made
66 * the S8003 (APL1022) on 16nm. There are some minor differences
67 * such as timing in cpufreq state transistions.
68 */
69