am335x-bone.dts 3.3 KB
Newer Older
1 2 3 4 5 6 7 8 9
/*
 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */
/dts-v1/;

10
#include "am33xx.dtsi"
11 12 13 14 15

/ {
	model = "TI AM335x BeagleBone";
	compatible = "ti,am335x-bone", "ti,am33xx";

16 17 18 19 20 21
	cpus {
		cpu@0 {
			cpu0-supply = <&dcdc2_reg>;
		};
	};

22 23 24 25
	memory {
		device_type = "memory";
		reg = <0x80000000 0x10000000>; /* 256 MB */
	};
26

27 28
	am33xx_pinmux: pinmux@44e10800 {
		pinctrl-names = "default";
29
		pinctrl-0 = <&clkout2_pin>;
30 31 32 33 34 35 36 37 38

		user_leds_s0: user_leds_s0 {
			pinctrl-single,pins = <
				0x54 0x7	/* gpmc_a5.gpio1_21, OUTPUT | MODE7 */
				0x58 0x17	/* gpmc_a6.gpio1_22, OUTPUT_PULLUP | MODE7 */
				0x5c 0x7	/* gpmc_a7.gpio1_23, OUTPUT | MODE7 */
				0x60 0x17	/* gpmc_a8.gpio1_24, OUTPUT_PULLUP | MODE7 */
			>;
		};
39 40 41 42 43 44 45

		i2c0_pins: pinmux_i2c0_pins {
			pinctrl-single,pins = <
				0x188 0x30	/* i2c0_sda.i2c0_sda PULLUP | INPUTENABLE | MODE0 */
				0x18c 0x30	/* i2c0_scl.i2c0_scl PULLUP | INPUTENABLE | MODE0 */
			>;
		};
46 47 48 49 50 51 52

		uart0_pins: pinmux_uart0_pins {
			pinctrl-single,pins = <
				0x170 0x30	/* uart0_rxd.uart0_rxd PULLUP | INPUTENABLE | MODE0 */
				0x174 0x00	/* uart0_txd.uart0_txd PULLDOWN | MODE0 */
			>;
		};
53 54 55 56 57 58

		clkout2_pin: pinmux_clkout2_pin {
			pinctrl-single,pins = <
				0x1b4 0x03	/* xdma_event_intr1.clkout2 OMAP_MUX_MODE3 | AM33XX_PIN_OUTPUT */
			>;
		};
59 60
	};

61
	ocp {
62
		uart0: serial@44e09000 {
63 64 65
			pinctrl-names = "default";
			pinctrl-0 = <&uart0_pins>;

66 67
			status = "okay";
		};
68

69
		i2c0: i2c@44e0b000 {
70 71 72
			pinctrl-names = "default";
			pinctrl-0 = <&i2c0_pins>;

73 74 75 76 77 78 79 80 81
			status = "okay";
			clock-frequency = <400000>;

			tps: tps@24 {
				reg = <0x24>;
			};

		};
	};
82 83

	leds {
84 85 86
		pinctrl-names = "default";
		pinctrl-0 = <&user_leds_s0>;

87 88 89 90
		compatible = "gpio-leds";

		led@2 {
			label = "beaglebone:green:heartbeat";
91
			gpios = <&gpio1 21 0>;
92 93 94 95 96 97
			linux,default-trigger = "heartbeat";
			default-state = "off";
		};

		led@3 {
			label = "beaglebone:green:mmc0";
98
			gpios = <&gpio1 22 0>;
99 100 101 102 103 104
			linux,default-trigger = "mmc0";
			default-state = "off";
		};

		led@4 {
			label = "beaglebone:green:usr2";
105
			gpios = <&gpio1 23 0>;
106 107 108 109 110
			default-state = "off";
		};

		led@5 {
			label = "beaglebone:green:usr3";
111
			gpios = <&gpio1 24 0>;
112 113 114
			default-state = "off";
		};
	};
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
};

/include/ "tps65217.dtsi"

&tps {
	regulators {
		dcdc1_reg: regulator@0 {
			regulator-always-on;
		};

		dcdc2_reg: regulator@1 {
			/* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
			regulator-name = "vdd_mpu";
			regulator-min-microvolt = <925000>;
			regulator-max-microvolt = <1325000>;
			regulator-boot-on;
			regulator-always-on;
		};

		dcdc3_reg: regulator@2 {
			/* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
			regulator-name = "vdd_core";
			regulator-min-microvolt = <925000>;
			regulator-max-microvolt = <1150000>;
			regulator-boot-on;
			regulator-always-on;
		};

		ldo1_reg: regulator@3 {
			regulator-always-on;
		};

		ldo2_reg: regulator@4 {
			regulator-always-on;
		};

		ldo3_reg: regulator@5 {
			regulator-always-on;
		};

		ldo4_reg: regulator@6 {
			regulator-always-on;
		};
158
	};
159
};
160 161 162 163 164 165 166 167

&cpsw_emac0 {
	phy_id = <&davinci_mdio>, <0>;
};

&cpsw_emac1 {
	phy_id = <&davinci_mdio>, <1>;
};