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