ARM: dts: AM33XX: Use existing constants for GPIOs
[deliverable/linux.git] / arch / arm / boot / dts / am335x-bone.dts
1 /*
2 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8 /dts-v1/;
9
10 #include "am33xx.dtsi"
11
12 / {
13 model = "TI AM335x BeagleBone";
14 compatible = "ti,am335x-bone", "ti,am33xx";
15
16 cpus {
17 cpu@0 {
18 cpu0-supply = <&dcdc2_reg>;
19 };
20 };
21
22 memory {
23 device_type = "memory";
24 reg = <0x80000000 0x10000000>; /* 256 MB */
25 };
26
27 am33xx_pinmux: pinmux@44e10800 {
28 pinctrl-names = "default";
29 pinctrl-0 = <&clkout2_pin>;
30
31 user_leds_s0: user_leds_s0 {
32 pinctrl-single,pins = <
33 0x54 0x7 /* gpmc_a5.gpio1_21, OUTPUT | MODE7 */
34 0x58 0x17 /* gpmc_a6.gpio1_22, OUTPUT_PULLUP | MODE7 */
35 0x5c 0x7 /* gpmc_a7.gpio1_23, OUTPUT | MODE7 */
36 0x60 0x17 /* gpmc_a8.gpio1_24, OUTPUT_PULLUP | MODE7 */
37 >;
38 };
39
40 i2c0_pins: pinmux_i2c0_pins {
41 pinctrl-single,pins = <
42 0x188 0x30 /* i2c0_sda.i2c0_sda PULLUP | INPUTENABLE | MODE0 */
43 0x18c 0x30 /* i2c0_scl.i2c0_scl PULLUP | INPUTENABLE | MODE0 */
44 >;
45 };
46
47 uart0_pins: pinmux_uart0_pins {
48 pinctrl-single,pins = <
49 0x170 0x30 /* uart0_rxd.uart0_rxd PULLUP | INPUTENABLE | MODE0 */
50 0x174 0x00 /* uart0_txd.uart0_txd PULLDOWN | MODE0 */
51 >;
52 };
53
54 clkout2_pin: pinmux_clkout2_pin {
55 pinctrl-single,pins = <
56 0x1b4 0x03 /* xdma_event_intr1.clkout2 OMAP_MUX_MODE3 | AM33XX_PIN_OUTPUT */
57 >;
58 };
59 };
60
61 ocp {
62 uart0: serial@44e09000 {
63 pinctrl-names = "default";
64 pinctrl-0 = <&uart0_pins>;
65
66 status = "okay";
67 };
68
69 i2c0: i2c@44e0b000 {
70 pinctrl-names = "default";
71 pinctrl-0 = <&i2c0_pins>;
72
73 status = "okay";
74 clock-frequency = <400000>;
75
76 tps: tps@24 {
77 reg = <0x24>;
78 };
79
80 };
81 };
82
83 leds {
84 pinctrl-names = "default";
85 pinctrl-0 = <&user_leds_s0>;
86
87 compatible = "gpio-leds";
88
89 led@2 {
90 label = "beaglebone:green:heartbeat";
91 gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
92 linux,default-trigger = "heartbeat";
93 default-state = "off";
94 };
95
96 led@3 {
97 label = "beaglebone:green:mmc0";
98 gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
99 linux,default-trigger = "mmc0";
100 default-state = "off";
101 };
102
103 led@4 {
104 label = "beaglebone:green:usr2";
105 gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
106 default-state = "off";
107 };
108
109 led@5 {
110 label = "beaglebone:green:usr3";
111 gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
112 default-state = "off";
113 };
114 };
115 };
116
117 /include/ "tps65217.dtsi"
118
119 &tps {
120 regulators {
121 dcdc1_reg: regulator@0 {
122 regulator-always-on;
123 };
124
125 dcdc2_reg: regulator@1 {
126 /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
127 regulator-name = "vdd_mpu";
128 regulator-min-microvolt = <925000>;
129 regulator-max-microvolt = <1325000>;
130 regulator-boot-on;
131 regulator-always-on;
132 };
133
134 dcdc3_reg: regulator@2 {
135 /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
136 regulator-name = "vdd_core";
137 regulator-min-microvolt = <925000>;
138 regulator-max-microvolt = <1150000>;
139 regulator-boot-on;
140 regulator-always-on;
141 };
142
143 ldo1_reg: regulator@3 {
144 regulator-always-on;
145 };
146
147 ldo2_reg: regulator@4 {
148 regulator-always-on;
149 };
150
151 ldo3_reg: regulator@5 {
152 regulator-always-on;
153 };
154
155 ldo4_reg: regulator@6 {
156 regulator-always-on;
157 };
158 };
159 };
160
161 &cpsw_emac0 {
162 phy_id = <&davinci_mdio>, <0>;
163 };
164
165 &cpsw_emac1 {
166 phy_id = <&davinci_mdio>, <1>;
167 };
This page took 0.043707 seconds and 5 git commands to generate.