2013-08-16 04:43:05 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2013 Marek Belisko <marek@goldelico.com>
|
|
|
|
*
|
|
|
|
* Based on omap3-beagle-xm.dts
|
|
|
|
*
|
|
|
|
* 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/;
|
|
|
|
|
|
|
|
#include "omap36xx.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "OMAP3 GTA04";
|
2014-03-01 21:58:48 +08:00
|
|
|
compatible = "ti,omap3-gta04", "ti,omap36xx", "ti,omap3";
|
2013-08-16 04:43:05 +08:00
|
|
|
|
|
|
|
cpus {
|
|
|
|
cpu@0 {
|
|
|
|
cpu0-supply = <&vcc>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
memory {
|
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x80000000 0x20000000>; /* 512 MB */
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
|
|
|
aux-button {
|
|
|
|
label = "aux";
|
|
|
|
linux,code = <169>;
|
2014-01-26 05:28:55 +08:00
|
|
|
gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
|
2013-08-16 04:43:05 +08:00
|
|
|
gpio-key,wakeup;
|
|
|
|
};
|
|
|
|
};
|
2014-03-01 21:58:52 +08:00
|
|
|
|
|
|
|
sound {
|
|
|
|
compatible = "ti,omap-twl4030";
|
|
|
|
ti,model = "gta04";
|
|
|
|
|
|
|
|
ti,mcbsp = <&mcbsp2>;
|
|
|
|
ti,codec = <&twl_audio>;
|
|
|
|
};
|
2013-08-16 04:43:05 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&omap3_pmx_core {
|
|
|
|
uart1_pins: pinmux_uart1_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
0x152 (PIN_INPUT | MUX_MODE0) /* uart1_rx.uart1_rx */
|
|
|
|
0x14c (PIN_OUTPUT |MUX_MODE0) /* uart1_tx.uart1_tx */
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
uart2_pins: pinmux_uart2_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
0x14a (PIN_INPUT | MUX_MODE0) /* uart2_rx.uart2_rx */
|
|
|
|
0x148 (PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
uart3_pins: pinmux_uart3_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
0x16e (PIN_INPUT | MUX_MODE0) /* uart3_rx.uart3_rx */
|
|
|
|
0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx.uart3_tx */
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
mmc1_pins: pinmux_mmc1_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
0x114 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
|
|
|
|
0x116 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
|
|
|
|
0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
|
|
|
|
0x11a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
|
|
|
|
0x11c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
|
|
|
|
0x11e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&i2c1 {
|
|
|
|
clock-frequency = <2600000>;
|
|
|
|
|
|
|
|
twl: twl@48 {
|
|
|
|
reg = <0x48>;
|
|
|
|
interrupts = <7>; /* SYS_NIRQ cascaded to intc */
|
|
|
|
interrupt-parent = <&intc>;
|
|
|
|
};
|
2014-03-01 21:58:52 +08:00
|
|
|
|
|
|
|
twl_audio: audio {
|
|
|
|
compatible = "ti,twl4030-audio";
|
|
|
|
codec {
|
|
|
|
};
|
|
|
|
};
|
2013-08-16 04:43:05 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#include "twl4030.dtsi"
|
|
|
|
#include "twl4030_omap3.dtsi"
|
|
|
|
|
|
|
|
&i2c2 {
|
|
|
|
clock-frequency = <400000>;
|
|
|
|
|
|
|
|
/* pressure sensor */
|
|
|
|
bmp085@77 {
|
|
|
|
compatible = "bosch,bmp085";
|
|
|
|
reg = <0x77>;
|
2013-12-21 23:12:23 +08:00
|
|
|
interrupt-parent = <&gpio4>;
|
|
|
|
interrupts = <17 IRQ_TYPE_EDGE_RISING>;
|
2013-08-16 04:43:05 +08:00
|
|
|
};
|
|
|
|
|
2014-03-01 21:58:54 +08:00
|
|
|
/* accelerometer */
|
|
|
|
bma180@41 {
|
|
|
|
compatible = "bosch,bma180";
|
|
|
|
reg = <0x41>;
|
|
|
|
interrupt-parent = <&gpio3>;
|
|
|
|
interrupts = <19 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
};
|
|
|
|
|
2013-08-16 04:43:05 +08:00
|
|
|
/* leds */
|
|
|
|
tca6507@45 {
|
|
|
|
compatible = "ti,tca6507";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x45>;
|
|
|
|
|
|
|
|
gta04_led0: red_aux@0 {
|
|
|
|
label = "gta04:red:aux";
|
|
|
|
reg = <0x0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gta04_led1: green_aux@1 {
|
|
|
|
label = "gta04:green:aux";
|
|
|
|
reg = <0x1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gta04_led3: red_power@3 {
|
|
|
|
label = "gta04:red:power";
|
|
|
|
reg = <0x3>;
|
|
|
|
linux,default-trigger = "default-on";
|
|
|
|
};
|
|
|
|
|
|
|
|
gta04_led4: green_power@4 {
|
|
|
|
label = "gta04:green:power";
|
|
|
|
reg = <0x4>;
|
|
|
|
};
|
|
|
|
};
|
2014-03-01 21:58:49 +08:00
|
|
|
|
|
|
|
/* compass aka magnetometer */
|
|
|
|
hmc5843@1e {
|
|
|
|
compatible = "honeywell,hmc5843";
|
|
|
|
reg = <0x1e>;
|
|
|
|
};
|
2014-03-01 21:58:50 +08:00
|
|
|
|
|
|
|
/* touchscreen */
|
|
|
|
tsc2007@48 {
|
|
|
|
compatible = "ti,tsc2007";
|
|
|
|
reg = <0x48>;
|
|
|
|
interrupt-parent = <&gpio6>;
|
|
|
|
interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
|
|
|
|
gpios = <&gpio6 0 GPIO_ACTIVE_LOW>;
|
|
|
|
ti,x-plate-ohms = <600>;
|
|
|
|
};
|
2013-08-16 04:43:05 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&i2c3 {
|
|
|
|
clock-frequency = <100000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb_otg_hs {
|
|
|
|
interface-type = <0>;
|
|
|
|
usb-phy = <&usb2_phy>;
|
2013-10-07 21:28:13 +08:00
|
|
|
phys = <&usb2_phy>;
|
|
|
|
phy-names = "usb2-phy";
|
2013-08-16 04:43:05 +08:00
|
|
|
mode = <3>;
|
|
|
|
power = <50>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&mmc1 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&mmc1_pins>;
|
|
|
|
vmmc-supply = <&vmmc1>;
|
|
|
|
bus-width = <4>;
|
2014-01-26 05:28:57 +08:00
|
|
|
ti,non-removable;
|
2013-08-16 04:43:05 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&mmc2 {
|
2014-03-01 21:58:53 +08:00
|
|
|
vmmc-supply = <&vaux4>;
|
|
|
|
bus-width = <4>;
|
|
|
|
ti,non-removable;
|
2013-08-16 04:43:05 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&mmc3 {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart1 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart1_pins>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart2 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart2_pins>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart3 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart3_pins>;
|
|
|
|
};
|
|
|
|
|
2014-03-01 21:58:51 +08:00
|
|
|
&charger {
|
|
|
|
bb_uvolt = <3200000>;
|
|
|
|
bb_uamp = <150>;
|
|
|
|
};
|
2014-03-01 21:58:53 +08:00
|
|
|
|
|
|
|
&vaux4 {
|
|
|
|
regulator-min-microvolt = <2800000>;
|
|
|
|
regulator-max-microvolt = <3150000>;
|
|
|
|
};
|