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"
|
2018-07-31 15:11:18 +08:00
|
|
|
#include <dt-bindings/input/input.h>
|
2013-08-16 04:43:05 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
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>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-08-31 18:35:27 +08:00
|
|
|
memory@80000000 {
|
2013-08-16 04:43:05 +08:00
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x80000000 0x20000000>; /* 512 MB */
|
|
|
|
};
|
|
|
|
|
2014-07-23 03:30:19 +08:00
|
|
|
aliases {
|
|
|
|
display0 = &lcd;
|
2018-07-31 15:11:09 +08:00
|
|
|
display1 = &tv0;
|
2014-07-23 03:30:19 +08:00
|
|
|
};
|
|
|
|
|
2018-04-06 00:05:16 +08:00
|
|
|
/* fixed 26MHz oscillator */
|
|
|
|
hfclk_26m: oscillator {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <26000000>;
|
|
|
|
};
|
|
|
|
|
2013-08-16 04:43:05 +08:00
|
|
|
gpio-keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
|
|
|
aux-button {
|
|
|
|
label = "aux";
|
2018-07-31 15:11:18 +08:00
|
|
|
linux,code = <KEY_PHONE>;
|
2014-01-26 05:28:55 +08:00
|
|
|
gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
|
2015-10-21 18:10:12 +08:00
|
|
|
wakeup-source;
|
2013-08-16 04:43:05 +08:00
|
|
|
};
|
|
|
|
};
|
2014-03-01 21:58:52 +08:00
|
|
|
|
2018-07-31 15:11:19 +08:00
|
|
|
antenna-detect {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
|
|
|
gps_antenna_button: gps-antenna-button {
|
|
|
|
label = "GPS_EXT_ANT";
|
|
|
|
linux,input-type = <EV_SW>;
|
|
|
|
linux,code = <SW_LINEIN_INSERT>;
|
|
|
|
gpios = <&gpio5 16 GPIO_ACTIVE_HIGH>; /* GPIO144 */
|
|
|
|
interrupt-parent = <&gpio5>;
|
|
|
|
interrupts = <16 IRQ_TYPE_EDGE_BOTH>;
|
|
|
|
debounce-interval = <10>;
|
|
|
|
wakeup-source;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-03-01 21:58:52 +08:00
|
|
|
sound {
|
|
|
|
compatible = "ti,omap-twl4030";
|
|
|
|
ti,model = "gta04";
|
|
|
|
|
|
|
|
ti,mcbsp = <&mcbsp2>;
|
|
|
|
};
|
2014-05-09 04:16:51 +08:00
|
|
|
|
2018-07-31 15:11:05 +08:00
|
|
|
/* GSM audio */
|
2015-05-08 03:35:05 +08:00
|
|
|
sound_telephony {
|
|
|
|
compatible = "simple-audio-card";
|
|
|
|
simple-audio-card,name = "GTA04 voice";
|
|
|
|
simple-audio-card,bitclock-master = <&telephony_link_master>;
|
|
|
|
simple-audio-card,frame-master = <&telephony_link_master>;
|
|
|
|
simple-audio-card,format = "i2s";
|
2017-04-28 18:27:35 +08:00
|
|
|
simple-audio-card,bitclock-inversion;
|
|
|
|
simple-audio-card,frame-inversion;
|
2015-05-08 03:35:05 +08:00
|
|
|
simple-audio-card,cpu {
|
|
|
|
sound-dai = <&mcbsp4>;
|
|
|
|
};
|
|
|
|
|
|
|
|
telephony_link_master: simple-audio-card,codec {
|
|
|
|
sound-dai = <>m601_codec>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gtm601_codec: gsm_codec {
|
|
|
|
compatible = "option,gtm601";
|
|
|
|
#sound-dai-cells = <0>;
|
|
|
|
};
|
|
|
|
|
2018-07-31 15:11:06 +08:00
|
|
|
spi_lcd: spi_lcd {
|
2014-05-09 04:16:51 +08:00
|
|
|
compatible = "spi-gpio";
|
|
|
|
#address-cells = <0x1>;
|
|
|
|
#size-cells = <0x0>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&spi_gpio_pins>;
|
|
|
|
|
2015-10-06 17:03:39 +08:00
|
|
|
gpio-sck = <&gpio1 12 GPIO_ACTIVE_HIGH>;
|
|
|
|
gpio-miso = <&gpio1 18 GPIO_ACTIVE_HIGH>;
|
|
|
|
gpio-mosi = <&gpio1 20 GPIO_ACTIVE_HIGH>;
|
|
|
|
cs-gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>;
|
2014-05-09 04:16:51 +08:00
|
|
|
num-chipselects = <1>;
|
|
|
|
|
|
|
|
/* lcd panel */
|
|
|
|
lcd: td028ttec1@0 {
|
2017-12-01 15:41:22 +08:00
|
|
|
compatible = "tpo,td028ttec1";
|
2014-05-09 04:16:51 +08:00
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <100000>;
|
|
|
|
spi-cpol;
|
|
|
|
spi-cpha;
|
|
|
|
|
|
|
|
label = "lcd";
|
|
|
|
port {
|
|
|
|
lcd_in: endpoint {
|
|
|
|
remote-endpoint = <&dpi_out>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2014-07-23 03:30:18 +08:00
|
|
|
|
2016-05-18 03:48:47 +08:00
|
|
|
backlight {
|
|
|
|
compatible = "pwm-backlight";
|
2016-09-05 17:16:38 +08:00
|
|
|
pwms = <&pwm11 0 12000000 0>;
|
2016-05-18 03:48:47 +08:00
|
|
|
pwm-names = "backlight";
|
|
|
|
brightness-levels = <0 11 20 30 40 50 60 70 80 90 100>;
|
|
|
|
default-brightness-level = <9>; /* => 90 */
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&backlight_pins>;
|
|
|
|
};
|
|
|
|
|
2016-06-28 03:20:51 +08:00
|
|
|
pwm11: dmtimer-pwm {
|
2016-05-18 03:48:47 +08:00
|
|
|
compatible = "ti,omap-dmtimer-pwm";
|
|
|
|
ti,timers = <&timer11>;
|
|
|
|
#pwm-cells = <3>;
|
|
|
|
};
|
|
|
|
|
2014-07-23 03:30:18 +08:00
|
|
|
hsusb2_phy: hsusb2_phy {
|
|
|
|
compatible = "usb-nop-xceiv";
|
|
|
|
reset-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
|
2017-11-10 06:26:13 +08:00
|
|
|
#phy-cells = <0>;
|
2014-07-23 03:30:18 +08:00
|
|
|
};
|
2014-12-04 05:33:22 +08:00
|
|
|
|
2016-06-28 03:20:51 +08:00
|
|
|
tv0: connector {
|
2018-07-31 15:11:07 +08:00
|
|
|
compatible = "composite-video-connector";
|
2014-12-04 05:33:22 +08:00
|
|
|
label = "tv";
|
|
|
|
|
|
|
|
port {
|
|
|
|
tv_connector_in: endpoint {
|
|
|
|
remote-endpoint = <&opa_out>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
tv_amp: opa362 {
|
|
|
|
compatible = "ti,opa362";
|
2018-07-31 15:11:07 +08:00
|
|
|
enable-gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>; /* GPIO_23 to enable video out amplifier */
|
2014-12-04 05:33:22 +08:00
|
|
|
|
|
|
|
ports {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
port@0 {
|
|
|
|
reg = <0>;
|
2016-06-28 03:20:51 +08:00
|
|
|
opa_in: endpoint {
|
2014-12-04 05:33:22 +08:00
|
|
|
remote-endpoint = <&venc_out>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
port@1 {
|
|
|
|
reg = <1>;
|
2016-06-28 03:20:51 +08:00
|
|
|
opa_out: endpoint {
|
2014-12-04 05:33:22 +08:00
|
|
|
remote-endpoint = <&tv_connector_in>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2016-05-18 03:48:51 +08:00
|
|
|
|
|
|
|
wifi_pwrseq: wifi_pwrseq {
|
|
|
|
compatible = "mmc-pwrseq-simple";
|
|
|
|
reset-gpios = <&tca6507 0 GPIO_ACTIVE_LOW>; /* W2CBW003 reset through tca6507 */
|
|
|
|
};
|
2018-07-31 15:11:08 +08:00
|
|
|
|
|
|
|
/* devconf1 setup for tvout pins */
|
|
|
|
pinmux_tv_out@480022d8 {
|
|
|
|
compatible = "pinctrl-single";
|
|
|
|
reg = <0x480022d8 4>; /* CONTROL_DEVCONF1 */
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
pinctrl-single,bit-per-mux;
|
|
|
|
pinctrl-single,register-width = <32>;
|
|
|
|
pinctrl-single,function-mask = <0x81>; /* TV out pin control */
|
|
|
|
#pinctrl-cells = <2>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&tv_acbias_devconf1_pins>;
|
|
|
|
tv_acbias_devconf1_pins: pinmux_tv_acbias_devconf1_pins {
|
|
|
|
/* offset bits mask */
|
|
|
|
pinctrl-single,bits = <0x00 0x40800 0x40800>; /* set TVOUTBYPASS and TVOUTACEN */
|
|
|
|
};
|
|
|
|
};
|
2013-08-16 04:43:05 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&omap3_pmx_core {
|
2014-07-23 03:30:18 +08:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <
|
|
|
|
&hsusb2_pins
|
|
|
|
>;
|
|
|
|
|
|
|
|
hsusb2_pins: pinmux_hsusb2_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2013-08-16 04:43:05 +08:00
|
|
|
uart1_pins: pinmux_uart1_pins {
|
|
|
|
pinctrl-single,pins = <
|
2014-10-18 04:32:03 +08:00
|
|
|
OMAP3_CORE1_IOPAD(0x2182, PIN_INPUT | MUX_MODE0) /* uart1_rx.uart1_rx */
|
|
|
|
OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_tx */
|
2013-08-16 04:43:05 +08:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
uart2_pins: pinmux_uart2_pins {
|
|
|
|
pinctrl-single,pins = <
|
2014-10-18 04:32:03 +08:00
|
|
|
OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0) /* uart2_rx.uart2_rx */
|
|
|
|
OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
|
2013-08-16 04:43:05 +08:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
uart3_pins: pinmux_uart3_pins {
|
|
|
|
pinctrl-single,pins = <
|
2014-10-18 04:32:03 +08:00
|
|
|
OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0) /* uart3_rx.uart3_rx */
|
|
|
|
OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx.uart3_tx */
|
2013-08-16 04:43:05 +08:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
mmc1_pins: pinmux_mmc1_pins {
|
|
|
|
pinctrl-single,pins = <
|
2014-10-18 04:32:03 +08:00
|
|
|
OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
|
|
|
|
OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
|
|
|
|
OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
|
2013-08-16 04:43:05 +08:00
|
|
|
>;
|
|
|
|
};
|
2014-05-09 04:16:51 +08:00
|
|
|
|
2018-07-31 15:11:04 +08:00
|
|
|
backlight_pins: backlight_pins_pinmux {
|
2016-05-18 03:48:47 +08:00
|
|
|
pinctrl-single,pins = <
|
|
|
|
OMAP3_CORE1_IOPAD(0x20ba, MUX_MODE3) /* gpt11/gpio57 */
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2014-05-09 04:16:51 +08:00
|
|
|
dss_dpi_pins: pinmux_dss_dpi_pins {
|
2018-07-31 15:11:05 +08:00
|
|
|
pinctrl-single,pins = <
|
2014-10-18 04:32:03 +08:00
|
|
|
OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0) /* dss_data16.dss_data16 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0) /* dss_data17.dss_data17 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0) /* dss_data18.dss_data18 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0) /* dss_data19.dss_data19 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0) /* dss_data20.dss_data20 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0) /* dss_data21.dss_data21 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0) /* dss_data22.dss_data22 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0) /* dss_data23.dss_data23 */
|
|
|
|
>;
|
2014-05-09 04:16:51 +08:00
|
|
|
};
|
2015-04-29 04:54:27 +08:00
|
|
|
|
|
|
|
hdq_pins: hdq_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
OMAP3_CORE1_IOPAD(0x21c6, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda.hdq */
|
|
|
|
>;
|
|
|
|
};
|
2016-05-18 03:48:48 +08:00
|
|
|
|
2018-07-31 15:11:11 +08:00
|
|
|
bmp085_pins: pinmux_bmp085_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
OMAP3_CORE1_IOPAD(0x2136, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio113 */
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2016-05-18 03:48:48 +08:00
|
|
|
bma180_pins: pinmux_bma180_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
OMAP3_CORE1_IOPAD(0x213a, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio115 */
|
|
|
|
>;
|
|
|
|
};
|
2016-05-18 03:48:49 +08:00
|
|
|
|
|
|
|
itg3200_pins: pinmux_itg3200_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
OMAP3_CORE1_IOPAD(0x20b8, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio56 */
|
|
|
|
>;
|
|
|
|
};
|
2016-05-18 03:48:50 +08:00
|
|
|
|
|
|
|
hmc5843_pins: pinmux_hmc5843_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
OMAP3_CORE1_IOPAD(0x2134, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio112 */
|
|
|
|
>;
|
|
|
|
};
|
2018-07-31 15:11:10 +08:00
|
|
|
|
|
|
|
penirq_pins: pinmux_penirq_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
/* here we could enable to wakeup the cpu from suspend by a pen touch */
|
|
|
|
OMAP3_CORE1_IOPAD(0x2194, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio160 */
|
|
|
|
>;
|
|
|
|
};
|
2014-07-23 03:30:17 +08:00
|
|
|
};
|
2014-05-09 04:16:51 +08:00
|
|
|
|
2014-07-23 03:30:17 +08:00
|
|
|
&omap3_pmx_core2 {
|
2014-07-23 03:30:18 +08:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <
|
|
|
|
&hsusb2_2_pins
|
|
|
|
>;
|
|
|
|
|
|
|
|
hsusb2_2_pins: pinmux_hsusb2_2_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
OMAP3630_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */
|
|
|
|
OMAP3630_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */
|
|
|
|
OMAP3630_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */
|
|
|
|
OMAP3630_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */
|
|
|
|
OMAP3630_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */
|
|
|
|
OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2014-05-09 04:16:51 +08:00
|
|
|
spi_gpio_pins: spi_gpio_pinmux {
|
2014-07-23 03:30:17 +08:00
|
|
|
pinctrl-single,pins = <
|
|
|
|
OMAP3630_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE4) /* clk */
|
|
|
|
OMAP3630_CORE2_IOPAD(0x25e6, PIN_OUTPUT | MUX_MODE4) /* cs */
|
|
|
|
OMAP3630_CORE2_IOPAD(0x25e8, PIN_OUTPUT | MUX_MODE4) /* tx */
|
|
|
|
OMAP3630_CORE2_IOPAD(0x25e4, PIN_INPUT | MUX_MODE4) /* rx */
|
2014-05-09 04:16:51 +08:00
|
|
|
>;
|
|
|
|
};
|
2013-08-16 04:43:05 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&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
|
|
|
|
2018-04-06 00:05:16 +08:00
|
|
|
clocks = <&hfclk_26m>;
|
|
|
|
clock-names = "fck";
|
|
|
|
|
2015-01-23 04:38:08 +08:00
|
|
|
twl_audio: audio {
|
|
|
|
compatible = "ti,twl4030-audio";
|
2015-01-23 04:38:10 +08:00
|
|
|
ti,enable-vibra = <1>;
|
2015-01-23 04:38:08 +08:00
|
|
|
codec {
|
2015-01-23 04:38:13 +08:00
|
|
|
ti,ramp_delay_value = <3>;
|
2015-01-23 04:38:08 +08:00
|
|
|
};
|
2014-03-01 21:58:52 +08:00
|
|
|
};
|
2015-01-23 04:38:12 +08:00
|
|
|
|
|
|
|
twl_power: power {
|
|
|
|
compatible = "ti,twl4030-power";
|
|
|
|
ti,use_poweroff;
|
|
|
|
};
|
2014-03-01 21:58:52 +08:00
|
|
|
};
|
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>;
|
2018-07-31 15:11:11 +08:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&bmp085_pins>;
|
2013-12-21 23:12:23 +08:00
|
|
|
interrupt-parent = <&gpio4>;
|
2015-01-23 04:38:14 +08:00
|
|
|
interrupts = <17 IRQ_TYPE_EDGE_RISING>; /* GPIO_113 */
|
2013-08-16 04:43:05 +08:00
|
|
|
};
|
|
|
|
|
2014-03-01 21:58:54 +08:00
|
|
|
/* accelerometer */
|
|
|
|
bma180@41 {
|
|
|
|
compatible = "bosch,bma180";
|
|
|
|
reg = <0x41>;
|
2016-05-18 03:48:48 +08:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pintcrl-0 = <&bma180_pins>;
|
2015-01-23 04:38:11 +08:00
|
|
|
interrupt-parent = <&gpio4>;
|
2015-01-23 04:38:14 +08:00
|
|
|
interrupts = <19 IRQ_TYPE_LEVEL_HIGH>; /* GPIO_115 */
|
2014-03-01 21:58:54 +08:00
|
|
|
};
|
|
|
|
|
2015-01-23 04:38:16 +08:00
|
|
|
/* gyroscope */
|
|
|
|
itg3200@68 {
|
|
|
|
compatible = "invensense,itg3200";
|
|
|
|
reg = <0x68>;
|
2016-05-18 03:48:49 +08:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&itg3200_pins>;
|
2015-01-23 04:38:16 +08:00
|
|
|
interrupt-parent = <&gpio2>;
|
2016-05-18 03:48:49 +08:00
|
|
|
interrupts = <24 IRQ_TYPE_EDGE_FALLING>; /* GPIO_56 */
|
2015-01-23 04:38:16 +08:00
|
|
|
};
|
|
|
|
|
2016-05-18 03:48:51 +08:00
|
|
|
/* leds + gpios */
|
|
|
|
tca6507: tca6507@45 {
|
2013-08-16 04:43:05 +08:00
|
|
|
compatible = "ti,tca6507";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x45>;
|
|
|
|
|
2014-07-23 03:30:16 +08:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
|
2013-08-16 04:43:05 +08:00
|
|
|
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-07-23 03:30:16 +08:00
|
|
|
|
2018-07-31 15:11:15 +08:00
|
|
|
wifi_reset: wifi_reset@6 { /* reference as <&tca_gpios 0 0> since it is currently the only GPIO */
|
2014-07-23 03:30:16 +08:00
|
|
|
reg = <0x6>;
|
|
|
|
compatible = "gpio";
|
|
|
|
};
|
2013-08-16 04:43:05 +08:00
|
|
|
};
|
2014-03-01 21:58:49 +08:00
|
|
|
|
|
|
|
/* compass aka magnetometer */
|
|
|
|
hmc5843@1e {
|
2014-07-23 03:59:08 +08:00
|
|
|
compatible = "honeywell,hmc5883l";
|
2014-03-01 21:58:49 +08:00
|
|
|
reg = <0x1e>;
|
2016-05-18 03:48:50 +08:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&hmc5843_pins>;
|
|
|
|
interrupt-parent = <&gpio4>;
|
|
|
|
interrupts = <16 IRQ_TYPE_EDGE_FALLING>; /* gpio112 */
|
2014-03-01 21:58:49 +08:00
|
|
|
};
|
2014-03-01 21:58:50 +08:00
|
|
|
|
|
|
|
/* touchscreen */
|
|
|
|
tsc2007@48 {
|
|
|
|
compatible = "ti,tsc2007";
|
|
|
|
reg = <0x48>;
|
2018-07-31 15:11:10 +08:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&penirq_pins>;
|
2014-03-01 21:58:50 +08:00
|
|
|
interrupt-parent = <&gpio6>;
|
2015-01-23 04:38:14 +08:00
|
|
|
interrupts = <0 IRQ_TYPE_EDGE_FALLING>; /* GPIO_160 */
|
2018-07-31 15:11:10 +08:00
|
|
|
gpios = <&gpio6 0 GPIO_ACTIVE_LOW>; /* GPIO_160 */
|
2014-03-01 21:58:50 +08:00
|
|
|
ti,x-plate-ohms = <600>;
|
2018-07-31 15:11:10 +08:00
|
|
|
touchscreen-size-x = <480>;
|
|
|
|
touchscreen-size-y = <640>;
|
|
|
|
touchscreen-max-pressure = <1000>;
|
|
|
|
touchscreen-fuzz-x = <3>;
|
|
|
|
touchscreen-fuzz-y = <8>;
|
|
|
|
touchscreen-fuzz-pressure = <10>;
|
|
|
|
touchscreen-inverted-y;
|
2014-03-01 21:58:50 +08:00
|
|
|
};
|
2016-06-04 20:05:55 +08:00
|
|
|
|
|
|
|
/* RFID EEPROM */
|
|
|
|
m24lr64@50 {
|
2017-05-23 21:34:31 +08:00
|
|
|
compatible = "atmel,24c64";
|
2016-06-04 20:05:55 +08:00
|
|
|
reg = <0x50>;
|
|
|
|
};
|
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>;
|
|
|
|
};
|
|
|
|
|
2014-07-23 03:30:18 +08:00
|
|
|
&usbhshost {
|
|
|
|
port2-mode = "ehci-phy";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usbhsehci {
|
|
|
|
phys = <0 &hsusb2_phy>;
|
|
|
|
};
|
|
|
|
|
2013-08-16 04:43:05 +08:00
|
|
|
&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;
|
2018-07-31 15:11:17 +08:00
|
|
|
broken-cd; /* hardware has no CD */
|
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;
|
2015-01-23 04:38:15 +08:00
|
|
|
cap-power-off-card;
|
2016-05-18 03:48:51 +08:00
|
|
|
mmc-pwrseq = <&wifi_pwrseq>;
|
2013-08-16 04:43:05 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&mmc3 {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2015-01-23 04:38:19 +08:00
|
|
|
&twl_keypad {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2013-08-16 04:43:05 +08:00
|
|
|
&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 {
|
2015-01-23 04:38:07 +08:00
|
|
|
ti,bb-uvolt = <3200000>;
|
|
|
|
ti,bb-uamp = <150>;
|
2014-03-01 21:58:51 +08:00
|
|
|
};
|
2014-03-01 21:58:53 +08:00
|
|
|
|
2014-07-23 03:30:20 +08:00
|
|
|
/* spare */
|
|
|
|
&vaux1 {
|
|
|
|
regulator-min-microvolt = <2500000>;
|
|
|
|
regulator-max-microvolt = <3000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* sensors */
|
|
|
|
&vaux2 {
|
|
|
|
regulator-min-microvolt = <2800000>;
|
|
|
|
regulator-max-microvolt = <2800000>;
|
2018-07-31 15:11:16 +08:00
|
|
|
regulator-always-on; /* we should never switch off while vio is on! */
|
2014-07-23 03:30:20 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
/* camera */
|
|
|
|
&vaux3 {
|
|
|
|
regulator-min-microvolt = <2500000>;
|
|
|
|
regulator-max-microvolt = <2500000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* WLAN/BT */
|
2014-03-01 21:58:53 +08:00
|
|
|
&vaux4 {
|
|
|
|
regulator-min-microvolt = <2800000>;
|
|
|
|
regulator-max-microvolt = <3150000>;
|
|
|
|
};
|
2014-05-09 04:16:51 +08:00
|
|
|
|
2014-07-23 03:30:20 +08:00
|
|
|
/* GPS LNA */
|
|
|
|
&vsim {
|
|
|
|
regulator-min-microvolt = <2800000>;
|
|
|
|
regulator-max-microvolt = <3150000>;
|
|
|
|
};
|
|
|
|
|
2018-07-31 15:11:14 +08:00
|
|
|
/* Needed to power the DPI pins */
|
|
|
|
|
|
|
|
&vpll2 {
|
|
|
|
regulator-always-on;
|
|
|
|
};
|
|
|
|
|
2014-05-09 04:16:51 +08:00
|
|
|
&dss {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = < &dss_dpi_pins >;
|
|
|
|
|
|
|
|
status = "okay";
|
2015-01-23 04:38:17 +08:00
|
|
|
vdds_dsi-supply = <&vpll2>;
|
2014-05-09 04:16:51 +08:00
|
|
|
|
|
|
|
port {
|
|
|
|
dpi_out: endpoint {
|
|
|
|
remote-endpoint = <&lcd_in>;
|
|
|
|
data-lines = <24>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2014-07-23 03:30:14 +08:00
|
|
|
|
2014-12-04 05:33:22 +08:00
|
|
|
&venc {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
vdda-supply = <&vdac>;
|
|
|
|
|
2018-07-31 15:11:07 +08:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2014-12-04 05:33:22 +08:00
|
|
|
port {
|
2018-07-31 15:11:07 +08:00
|
|
|
reg = <0>;
|
2014-12-04 05:33:22 +08:00
|
|
|
venc_out: endpoint {
|
|
|
|
remote-endpoint = <&opa_in>;
|
2018-07-31 15:11:07 +08:00
|
|
|
ti,channels = <1>;
|
2014-12-04 05:33:22 +08:00
|
|
|
ti,invert-polarity;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-07-23 03:30:14 +08:00
|
|
|
&gpmc {
|
2014-10-30 08:16:47 +08:00
|
|
|
ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */
|
2014-07-23 03:30:14 +08:00
|
|
|
|
|
|
|
nand@0,0 {
|
2016-02-24 00:37:25 +08:00
|
|
|
compatible = "ti,omap2-nand";
|
2014-10-30 08:16:47 +08:00
|
|
|
reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
|
2016-02-24 00:37:25 +08:00
|
|
|
interrupt-parent = <&gpmc>;
|
|
|
|
interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
|
|
|
|
<1 IRQ_TYPE_NONE>; /* termcount */
|
2018-07-31 15:11:13 +08:00
|
|
|
ti,nand-ecc-opt = "ham1";
|
|
|
|
rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
|
2014-07-23 03:30:14 +08:00
|
|
|
nand-bus-width = <16>;
|
2018-07-31 15:11:13 +08:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2014-07-23 03:30:14 +08:00
|
|
|
|
2018-07-31 15:11:13 +08:00
|
|
|
gpmc,device-width = <2>;
|
2014-07-23 03:30:14 +08:00
|
|
|
gpmc,cs-on-ns = <0>;
|
|
|
|
gpmc,cs-rd-off-ns = <44>;
|
|
|
|
gpmc,cs-wr-off-ns = <44>;
|
|
|
|
gpmc,adv-on-ns = <6>;
|
|
|
|
gpmc,adv-rd-off-ns = <34>;
|
|
|
|
gpmc,adv-wr-off-ns = <44>;
|
|
|
|
gpmc,oe-off-ns = <54>;
|
2018-07-31 15:11:13 +08:00
|
|
|
gpmc,we-off-ns = <40>;
|
2014-07-23 03:30:14 +08:00
|
|
|
gpmc,access-ns = <64>;
|
|
|
|
gpmc,rd-cycle-ns = <82>;
|
|
|
|
gpmc,wr-cycle-ns = <82>;
|
|
|
|
gpmc,wr-access-ns = <40>;
|
|
|
|
gpmc,wr-data-mux-bus-ns = <0>;
|
2018-07-31 15:11:13 +08:00
|
|
|
gpmc,sync-clk-ps = <0>;
|
2014-07-23 03:30:14 +08:00
|
|
|
|
|
|
|
x-loader@0 {
|
|
|
|
label = "X-Loader";
|
|
|
|
reg = <0 0x80000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
bootloaders@80000 {
|
|
|
|
label = "U-Boot";
|
2018-07-31 15:11:12 +08:00
|
|
|
reg = <0x80000 0x1c0000>;
|
2014-07-23 03:30:14 +08:00
|
|
|
};
|
|
|
|
|
2018-07-31 15:11:12 +08:00
|
|
|
bootloaders_env@240000 {
|
2014-07-23 03:30:14 +08:00
|
|
|
label = "U-Boot Env";
|
2018-07-31 15:11:12 +08:00
|
|
|
reg = <0x240000 0x40000>;
|
2014-07-23 03:30:14 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
kernel@280000 {
|
|
|
|
label = "Kernel";
|
2018-07-31 15:11:12 +08:00
|
|
|
reg = <0x280000 0x600000>;
|
2014-07-23 03:30:14 +08:00
|
|
|
};
|
|
|
|
|
2018-07-31 15:11:12 +08:00
|
|
|
filesystem@880000 {
|
2014-07-23 03:30:14 +08:00
|
|
|
label = "File System";
|
2018-07-31 15:11:12 +08:00
|
|
|
reg = <0x880000 0>; /* 0 = MTDPART_SIZ_FULL */
|
2014-07-23 03:30:14 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2015-01-23 04:38:09 +08:00
|
|
|
|
|
|
|
&mcbsp2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2015-04-29 04:54:27 +08:00
|
|
|
|
|
|
|
&hdqw1w {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&hdq_pins>;
|
|
|
|
};
|
2015-05-08 03:35:05 +08:00
|
|
|
|
|
|
|
&mcbsp4 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2018-07-31 15:11:20 +08:00
|
|
|
|
|
|
|
/* image signal processor within OMAP3 SoC */
|
|
|
|
&isp {
|
|
|
|
ports {
|
|
|
|
port@0 {
|
|
|
|
reg = <0>;
|
|
|
|
parallel_ep: endpoint {
|
|
|
|
ti,isp-clock-divisor = <1>;
|
|
|
|
ti,strobe-mode;
|
|
|
|
bus-width = <8>;/* Used data lines */
|
|
|
|
data-shift = <2>; /* Lines 9:2 are used */
|
|
|
|
hsync-active = <0>; /* Active low */
|
|
|
|
vsync-active = <1>; /* Active high */
|
|
|
|
data-active = <1>;/* Active high */
|
|
|
|
pclk-sample = <1>;/* Falling */
|
|
|
|
};
|
|
|
|
};
|
|
|
|
/* port@1 and port@2 are not used by GTA04 */
|
|
|
|
};
|
|
|
|
};
|