1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
4 *
5 * Author: Robert Nelson <robertcnelson@gmail.com>
6 */
7
8/ {
9	cpus {
10		cpu@0 {
11			cpu0-supply = <&dcdc2_reg>;
12		};
13	};
14
15	memory@80000000 {
16		device_type = "memory";
17		reg = <0x80000000 0x20000000>; /* 512 MB */
18	};
19};
20
21&cpu0_opp_table {
22	/*
23	* Octavo Systems:
24	* The EFUSE_SMA register is not programmed for any of the AM335x wafers
25	* we get and we are not programming them during our production test.
26	* Therefore, from a DEVICE_ID revision point of view, the silicon looks
27	* like it is Revision 2.1.  However, from an EFUSE_SMA point of view for
28	* the HW OPP table, the silicon looks like it is Revision 1.0 (ie the
29	* EFUSE_SMA register reads as all zeros).
30	*/
31	opp-1000000000 {
32		/* OPP Nitro */
33		opp-supported-hw = <0x06 0x0100>;
34	};
35};
36
37&am33xx_pinmux {
38	i2c0_pins: pinmux-i2c0-pins {
39		pinctrl-single,pins = <
40			AM33XX_PADCONF(AM335X_PIN_I2C0_SDA, PIN_INPUT_PULLUP, MUX_MODE0)
41			AM33XX_PADCONF(AM335X_PIN_I2C0_SCL, PIN_INPUT_PULLUP, MUX_MODE0)
42		>;
43	};
44};
45
46&i2c0 {
47	pinctrl-names = "default";
48	pinctrl-0 = <&i2c0_pins>;
49
50	status = "okay";
51	clock-frequency = <400000>;
52
53	tps: tps@24 {
54		reg = <0x24>;
55	};
56};
57
58/include/ "../../tps65217.dtsi"
59
60&tps {
61	interrupts = <7>; /* NMI */
62	interrupt-parent = <&intc>;
63
64	ti,pmic-shutdown-controller;
65
66	pwrbutton {
67		interrupts = <2>;
68		status = "okay";
69	};
70
71	regulators {
72		dcdc1_reg: regulator@0 {
73			regulator-name = "vdds_dpr";
74			regulator-always-on;
75		};
76
77		dcdc2_reg: regulator@1 {
78			/* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
79			regulator-name = "vdd_mpu";
80			regulator-min-microvolt = <925000>;
81			regulator-max-microvolt = <1351500>;
82			regulator-boot-on;
83			regulator-always-on;
84		};
85
86		dcdc3_reg: regulator@2 {
87			/* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
88			regulator-name = "vdd_core";
89			regulator-min-microvolt = <925000>;
90			regulator-max-microvolt = <1150000>;
91			regulator-boot-on;
92			regulator-always-on;
93		};
94
95		ldo1_reg: regulator@3 {
96			regulator-name = "vio,vrtc,vdds";
97			regulator-always-on;
98		};
99
100		ldo2_reg: regulator@4 {
101			regulator-name = "vdd_3v3aux";
102			regulator-always-on;
103		};
104
105		ldo3_reg: regulator@5 {
106			regulator-name = "vdd_1v8";
107			regulator-min-microvolt = <1800000>;
108			regulator-max-microvolt = <1800000>;
109			regulator-always-on;
110		};
111
112		ldo4_reg: regulator@6 {
113			regulator-name = "vdd_3v3a";
114			regulator-always-on;
115		};
116	};
117};
118
119&aes {
120	status = "okay";
121};
122
123&sham {
124	status = "okay";
125};
126