2012-06-22 17:40:50 +08:00
|
|
|
/*
|
|
|
|
* 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/;
|
|
|
|
|
2013-06-03 22:12:22 +08:00
|
|
|
#include "am33xx.dtsi"
|
2012-06-22 17:40:50 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "TI AM335x BeagleBone";
|
|
|
|
compatible = "ti,am335x-bone", "ti,am33xx";
|
|
|
|
|
2012-08-31 17:37:20 +08:00
|
|
|
cpus {
|
|
|
|
cpu@0 {
|
|
|
|
cpu0-supply = <&dcdc2_reg>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2012-06-22 17:40:50 +08:00
|
|
|
memory {
|
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x80000000 0x10000000>; /* 256 MB */
|
|
|
|
};
|
2012-08-15 19:23:25 +08:00
|
|
|
|
2012-11-06 21:48:33 +08:00
|
|
|
am33xx_pinmux: pinmux@44e10800 {
|
|
|
|
pinctrl-names = "default";
|
2013-05-20 21:28:10 +08:00
|
|
|
pinctrl-0 = <&clkout2_pin>;
|
2012-11-06 21:48:33 +08:00
|
|
|
|
|
|
|
user_leds_s0: user_leds_s0 {
|
|
|
|
pinctrl-single,pins = <
|
2013-06-03 22:12:25 +08:00
|
|
|
0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a5.gpio1_21 */
|
|
|
|
0x58 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a6.gpio1_22 */
|
|
|
|
0x5c (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a7.gpio1_23 */
|
|
|
|
0x60 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio1_24 */
|
2012-11-06 21:48:33 +08:00
|
|
|
>;
|
|
|
|
};
|
2013-03-26 16:44:01 +08:00
|
|
|
|
|
|
|
i2c0_pins: pinmux_i2c0_pins {
|
|
|
|
pinctrl-single,pins = <
|
2013-06-03 22:12:25 +08:00
|
|
|
0x188 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
|
|
|
|
0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
|
2013-03-26 16:44:01 +08:00
|
|
|
>;
|
|
|
|
};
|
2013-03-27 19:01:34 +08:00
|
|
|
|
|
|
|
uart0_pins: pinmux_uart0_pins {
|
|
|
|
pinctrl-single,pins = <
|
2013-06-03 22:12:25 +08:00
|
|
|
0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
|
|
|
|
0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
|
2013-03-27 19:01:34 +08:00
|
|
|
>;
|
|
|
|
};
|
2013-05-20 21:28:10 +08:00
|
|
|
|
|
|
|
clkout2_pin: pinmux_clkout2_pin {
|
|
|
|
pinctrl-single,pins = <
|
2013-06-03 22:12:25 +08:00
|
|
|
0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
|
2013-05-20 21:28:10 +08:00
|
|
|
>;
|
|
|
|
};
|
2013-06-07 19:32:52 +08:00
|
|
|
|
|
|
|
cpsw_default: cpsw_default {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
/* Slave 1 */
|
|
|
|
0x110 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxerr.mii1_rxerr */
|
|
|
|
0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txen.mii1_txen */
|
|
|
|
0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxdv.mii1_rxdv */
|
|
|
|
0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd3.mii1_txd3 */
|
|
|
|
0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd2.mii1_txd2 */
|
|
|
|
0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd1.mii1_txd1 */
|
|
|
|
0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd0.mii1_txd0 */
|
|
|
|
0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_txclk.mii1_txclk */
|
|
|
|
0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxclk.mii1_rxclk */
|
|
|
|
0x134 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd3.mii1_rxd3 */
|
|
|
|
0x138 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd2.mii1_rxd2 */
|
|
|
|
0x13c (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd1.mii1_rxd1 */
|
|
|
|
0x140 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd0.mii1_rxd0 */
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
cpsw_sleep: cpsw_sleep {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
/* Slave 1 reset value */
|
|
|
|
0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7)
|
|
|
|
0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
|
|
|
|
0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
|
|
|
|
0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
|
|
|
|
0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
|
|
|
|
0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
|
|
|
|
0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
|
|
|
|
0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
|
|
|
|
0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
|
|
|
|
0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
|
|
|
|
0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
|
|
|
|
0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
|
|
|
|
0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
davinci_mdio_default: davinci_mdio_default {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
/* MDIO */
|
|
|
|
0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
|
|
|
|
0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
davinci_mdio_sleep: davinci_mdio_sleep {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
/* MDIO reset value */
|
|
|
|
0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
|
|
|
|
0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
|
|
|
|
>;
|
|
|
|
};
|
2012-11-06 21:48:33 +08:00
|
|
|
};
|
|
|
|
|
2012-08-15 19:23:25 +08:00
|
|
|
ocp {
|
2013-03-28 14:06:05 +08:00
|
|
|
uart0: serial@44e09000 {
|
2013-03-27 19:01:34 +08:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart0_pins>;
|
|
|
|
|
2012-08-15 19:23:25 +08:00
|
|
|
status = "okay";
|
|
|
|
};
|
2012-08-21 19:17:30 +08:00
|
|
|
|
2013-07-05 20:51:33 +08:00
|
|
|
musb: usb@47400000 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
control@44e10000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
phy@47401300 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
usb@47401000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2012-11-21 19:52:17 +08:00
|
|
|
i2c0: i2c@44e0b000 {
|
2013-03-26 16:44:01 +08:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&i2c0_pins>;
|
|
|
|
|
2012-08-21 19:17:30 +08:00
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <400000>;
|
|
|
|
|
|
|
|
tps: tps@24 {
|
|
|
|
reg = <0x24>;
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
2012-11-06 21:48:34 +08:00
|
|
|
|
|
|
|
leds {
|
2013-03-26 18:12:15 +08:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&user_leds_s0>;
|
|
|
|
|
2012-11-06 21:48:34 +08:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
led@2 {
|
|
|
|
label = "beaglebone:green:heartbeat";
|
2013-06-03 22:12:23 +08:00
|
|
|
gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
|
2012-11-06 21:48:34 +08:00
|
|
|
linux,default-trigger = "heartbeat";
|
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
|
|
|
|
led@3 {
|
|
|
|
label = "beaglebone:green:mmc0";
|
2013-06-03 22:12:23 +08:00
|
|
|
gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
|
2012-11-06 21:48:34 +08:00
|
|
|
linux,default-trigger = "mmc0";
|
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
|
|
|
|
led@4 {
|
|
|
|
label = "beaglebone:green:usr2";
|
2013-06-03 22:12:23 +08:00
|
|
|
gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
|
2012-11-06 21:48:34 +08:00
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
|
|
|
|
led@5 {
|
|
|
|
label = "beaglebone:green:usr3";
|
2013-06-03 22:12:23 +08:00
|
|
|
gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
|
2012-11-06 21:48:34 +08:00
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
};
|
2012-08-21 19:17:30 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
/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;
|
|
|
|
};
|
2012-08-15 19:23:25 +08:00
|
|
|
};
|
2012-06-22 17:40:50 +08:00
|
|
|
};
|
2012-11-14 17:08:00 +08:00
|
|
|
|
|
|
|
&cpsw_emac0 {
|
|
|
|
phy_id = <&davinci_mdio>, <0>;
|
2013-06-04 04:10:11 +08:00
|
|
|
phy-mode = "mii";
|
2012-11-14 17:08:00 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&cpsw_emac1 {
|
|
|
|
phy_id = <&davinci_mdio>, <1>;
|
2013-06-04 04:10:11 +08:00
|
|
|
phy-mode = "mii";
|
2012-11-14 17:08:00 +08:00
|
|
|
};
|
2013-06-07 19:32:52 +08:00
|
|
|
|
|
|
|
&mac {
|
|
|
|
pinctrl-names = "default", "sleep";
|
|
|
|
pinctrl-0 = <&cpsw_default>;
|
|
|
|
pinctrl-1 = <&cpsw_sleep>;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
&davinci_mdio {
|
|
|
|
pinctrl-names = "default", "sleep";
|
|
|
|
pinctrl-0 = <&davinci_mdio_default>;
|
|
|
|
pinctrl-1 = <&davinci_mdio_sleep>;
|
|
|
|
};
|