xref: /freebsd/sys/contrib/device-tree/src/arm/ti/omap/omap443x.dtsi (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Device Tree Source for OMAP443x SoC
4f126890aSEmmanuel Vadot *
5f126890aSEmmanuel Vadot * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
6f126890aSEmmanuel Vadot */
7f126890aSEmmanuel Vadot
8f126890aSEmmanuel Vadot#include "omap4.dtsi"
9f126890aSEmmanuel Vadot
10f126890aSEmmanuel Vadot/ {
11f126890aSEmmanuel Vadot	cpus {
12f126890aSEmmanuel Vadot		cpu0: cpu@0 {
13f126890aSEmmanuel Vadot			/* OMAP443x variants OPP50-OPPNT */
14f126890aSEmmanuel Vadot			operating-points = <
15f126890aSEmmanuel Vadot				/* kHz    uV */
16f126890aSEmmanuel Vadot				300000  1025000
17f126890aSEmmanuel Vadot				600000  1200000
18f126890aSEmmanuel Vadot				800000  1313000
19f126890aSEmmanuel Vadot				1008000 1375000
20f126890aSEmmanuel Vadot			>;
21f126890aSEmmanuel Vadot			clock-latency = <300000>; /* From legacy driver */
22f126890aSEmmanuel Vadot
23f126890aSEmmanuel Vadot			/* cooling options */
24f126890aSEmmanuel Vadot			#cooling-cells = <2>; /* min followed by max */
25f126890aSEmmanuel Vadot		};
26f126890aSEmmanuel Vadot	};
27f126890aSEmmanuel Vadot
28f126890aSEmmanuel Vadot	thermal-zones {
29f126890aSEmmanuel Vadot		#include "omap4-cpu-thermal.dtsi"
30f126890aSEmmanuel Vadot	};
31f126890aSEmmanuel Vadot
32f126890aSEmmanuel Vadot	ocp {
33f126890aSEmmanuel Vadot		/* 4430 has only gpio_86 tshut and no talert interrupt */
34f126890aSEmmanuel Vadot		bandgap: bandgap@4a002260 {
35f126890aSEmmanuel Vadot			reg = <0x4a002260 0x4
36f126890aSEmmanuel Vadot			       0x4a00232C 0x4>;
37f126890aSEmmanuel Vadot			compatible = "ti,omap4430-bandgap";
38f126890aSEmmanuel Vadot			gpios = <&gpio3 22 GPIO_ACTIVE_HIGH>;
39f126890aSEmmanuel Vadot
40f126890aSEmmanuel Vadot			#thermal-sensor-cells = <0>;
41f126890aSEmmanuel Vadot		};
42f126890aSEmmanuel Vadot	};
43f126890aSEmmanuel Vadot
44f126890aSEmmanuel Vadot	ocp {
45f126890aSEmmanuel Vadot		abb_mpu: regulator-abb-mpu {
46f126890aSEmmanuel Vadot			status = "okay";
47f126890aSEmmanuel Vadot
48f126890aSEmmanuel Vadot			reg = <0x4a307bd0 0x8>, <0x4a306014 0x4>;
49f126890aSEmmanuel Vadot			reg-names = "base-address", "int-address";
50f126890aSEmmanuel Vadot
51f126890aSEmmanuel Vadot			ti,abb_info = <
52f126890aSEmmanuel Vadot			/*uV		ABB	efuse	rbb_m	fbb_m	vset_m*/
53f126890aSEmmanuel Vadot			1025000		0	0	0	0	0
54f126890aSEmmanuel Vadot			1200000		0	0	0	0	0
55f126890aSEmmanuel Vadot			1313000		0	0	0	0	0
56f126890aSEmmanuel Vadot			1375000		1	0	0	0	0
57f126890aSEmmanuel Vadot			1389000		1	0	0	0	0
58f126890aSEmmanuel Vadot			>;
59f126890aSEmmanuel Vadot		};
60f126890aSEmmanuel Vadot
61f126890aSEmmanuel Vadot		/* Default unused, just provide register info for record */
62f126890aSEmmanuel Vadot		abb_iva: regulator-abb-iva {
63f126890aSEmmanuel Vadot			reg = <0x4a307bd8 0x8>, <0x4a306010 0x4>;
64f126890aSEmmanuel Vadot			reg-names = "base-address", "int-address";
65f126890aSEmmanuel Vadot		};
66f126890aSEmmanuel Vadot
67f126890aSEmmanuel Vadot	};
68f126890aSEmmanuel Vadot
69f126890aSEmmanuel Vadot};
70f126890aSEmmanuel Vadot
71f126890aSEmmanuel Vadot&cpu_thermal {
72*aa1a8ff2SEmmanuel Vadot	thermal-sensors = <&bandgap>;
73f126890aSEmmanuel Vadot	coefficients = <0 20000>;
74f126890aSEmmanuel Vadot};
75f126890aSEmmanuel Vadot
76f126890aSEmmanuel Vadot/include/ "omap443x-clocks.dtsi"
77f126890aSEmmanuel Vadot
78f126890aSEmmanuel Vadot/*
79f126890aSEmmanuel Vadot * Use dpll_per for sgx at 307.2MHz like droid4 stock v3.0.8 Android kernel
80f126890aSEmmanuel Vadot */
81f126890aSEmmanuel Vadot&sgx_module {
82f126890aSEmmanuel Vadot	assigned-clocks = <&l3_gfx_clkctrl OMAP4_GPU_CLKCTRL 24>,
83f126890aSEmmanuel Vadot			  <&dpll_per_m7x2_ck>;
84f126890aSEmmanuel Vadot	assigned-clock-rates = <0>, <307200000>;
85f126890aSEmmanuel Vadot	assigned-clock-parents = <&dpll_per_m7x2_ck>;
86f126890aSEmmanuel Vadot};
87