2016-11-12 23:57:59 +07:00
|
|
|
/*
|
|
|
|
* 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/;
|
|
|
|
|
ARM: dts: Add keypad support for droid 4
Let's configure the keypad in a way where it's usable out of the
box for Linux console use. We want to have the keyboard usable with
Linux console for example when stuck into an initramfs during boot,
for when installing a distro.
As we need to need to have keys mapped in the user space anyways
for some of the keys to match the labels, this non-standard mapping
or usability should be OK.
Some keys don't match the labels either as they don't follow the PC
keyboard style. For example we have "shift + ," produce "<", and
"shift + ." produce ">" instead of ";" and ":".
So let's follow the standard PC keyboard layout for ctrl, shift and
alt keys:
Ctrl = what is labeled as shift
Alt = what is labeled as SYM
Shift = what is lableled as caps lock
This way we have Ctrl key for console use. Who knows where they got
the caps lock idea.. Probably from some focus group popularity vote
or something.
For the OK key, let's keep it as the useless KEY_OK unless we can
come up with some standard mapping for it we can stick with.
We have at least Esc, Delete, Meta, and Page Down keys missing, but
none of them seem to be better than others. PC keyboard often has
Page Down in that location. Esc would be probably the most usable
one when installing a Linux distro but is the opposite of OK.
Note that the LCD keys are just touchscreen hot spots, so I'm not
sure if the driver or hardware allows setting them up as keys for
the console.
Anyways, the rest can be mapped in the user space.
Cc: Marcel Partap <mpartap@gmx.net>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Michael Scott <michael.scott@linaro.org>
Tested-By: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
2017-03-06 11:11:56 +07:00
|
|
|
#include <dt-bindings/input/input.h>
|
2016-11-12 23:57:59 +07:00
|
|
|
#include "omap443x.dtsi"
|
2017-03-06 11:11:56 +07:00
|
|
|
#include "motorola-cpcap-mapphone.dtsi"
|
2016-11-12 23:57:59 +07:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Motorola Droid 4 XT894";
|
|
|
|
compatible = "motorola,droid4", "ti,omap4430", "ti,omap4";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
stdout-path = &uart3;
|
|
|
|
};
|
|
|
|
|
2017-03-06 11:11:59 +07:00
|
|
|
aliases {
|
|
|
|
display0 = &lcd0;
|
|
|
|
display1 = &hdmi0;
|
|
|
|
};
|
|
|
|
|
2016-11-12 23:57:59 +07:00
|
|
|
/*
|
|
|
|
* We seem to have only 1021 MB accessible, 1021 - 1022 is locked,
|
|
|
|
* then 1023 - 1024 seems to contain mbm. For SRAM, see the notes
|
|
|
|
* below about SRAM and L3_ICLK2 being unused by default,
|
|
|
|
*/
|
|
|
|
memory {
|
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x80000000 0x3fd00000>; /* 1021 MB */
|
|
|
|
};
|
|
|
|
|
2017-03-06 11:11:58 +07:00
|
|
|
/* Poweroff GPIO probably connected to CPCAP */
|
|
|
|
gpio-poweroff {
|
|
|
|
compatible = "gpio-poweroff";
|
|
|
|
pinctrl-0 = <&poweroff_gpio>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; /* gpio50 */
|
|
|
|
};
|
|
|
|
|
2017-03-06 11:11:59 +07:00
|
|
|
hdmi0: connector {
|
|
|
|
compatible = "hdmi-connector";
|
|
|
|
pinctrl-0 = <&hdmi_hpd_gpio>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
label = "hdmi";
|
|
|
|
type = "d";
|
|
|
|
|
|
|
|
hpd-gpios = <&gpio2 31 GPIO_ACTIVE_HIGH>; /* gpio63 */
|
|
|
|
|
|
|
|
port {
|
|
|
|
hdmi_connector_in: endpoint {
|
|
|
|
remote-endpoint = <&hdmi_out>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* HDMI 5V regulator probably sourced from battery. Let's keep
|
|
|
|
* keep this as always enabled for HDMI to work until we've
|
|
|
|
* figured what the encoder chip is.
|
|
|
|
*/
|
|
|
|
hdmi_regulator: regulator-hdmi {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "hdmi";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
gpio = <&gpio2 27 GPIO_ACTIVE_HIGH>; /* gpio59 */
|
|
|
|
enable-active-high;
|
|
|
|
regulator-always-on;
|
|
|
|
};
|
|
|
|
|
2017-03-06 11:11:59 +07:00
|
|
|
/* LCD regulator from sw5 source */
|
|
|
|
lcd_regulator: regulator-lcd {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "lcd";
|
|
|
|
regulator-min-microvolt = <5050000>;
|
|
|
|
regulator-max-microvolt = <5050000>;
|
|
|
|
gpio = <&gpio4 0 GPIO_ACTIVE_HIGH>; /* gpio96 */
|
|
|
|
enable-active-high;
|
|
|
|
vin-supply = <&sw5>;
|
|
|
|
};
|
|
|
|
|
2017-03-06 11:11:56 +07:00
|
|
|
/* This is probably coming straight from the battery.. */
|
2016-11-12 23:57:59 +07:00
|
|
|
wl12xx_vmmc: regulator-wl12xx {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "vwl1271";
|
|
|
|
regulator-min-microvolt = <1650000>;
|
|
|
|
regulator-max-microvolt = <1650000>;
|
|
|
|
gpio = <&gpio3 30 GPIO_ACTIVE_HIGH>; /* gpio94 */
|
|
|
|
startup-delay-us = <70000>;
|
|
|
|
enable-active-high;
|
|
|
|
};
|
2017-03-06 11:11:56 +07:00
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
|
|
|
volume_down {
|
|
|
|
label = "Volume Down";
|
|
|
|
gpios = <&gpio5 26 GPIO_ACTIVE_LOW>; /* gpio154 */
|
|
|
|
linux,code = <KEY_VOLUMEDOWN>;
|
|
|
|
linux,can-disable;
|
|
|
|
};
|
|
|
|
|
|
|
|
slider {
|
|
|
|
label = "Keypad Slide";
|
|
|
|
gpios = <&gpio4 26 GPIO_ACTIVE_HIGH>; /* gpio122 */
|
|
|
|
linux,input-type = <EV_SW>;
|
|
|
|
linux,code = <SW_KEYPAD_SLIDE>;
|
|
|
|
linux,can-disable;
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
2016-11-12 23:57:59 +07:00
|
|
|
};
|
|
|
|
|
2017-03-06 11:11:59 +07:00
|
|
|
&dss {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2017-03-06 11:11:58 +07:00
|
|
|
&gpio6 {
|
|
|
|
touchscreen_reset {
|
|
|
|
gpio-hog;
|
|
|
|
gpios = <13 0>;
|
|
|
|
output-high;
|
|
|
|
line-name = "touchscreen-reset";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-03-06 11:11:59 +07:00
|
|
|
&dsi1 {
|
|
|
|
status = "okay";
|
|
|
|
vdd-supply = <&vcsi>;
|
|
|
|
|
|
|
|
port {
|
|
|
|
dsi1_out_ep: endpoint {
|
|
|
|
remote-endpoint = <&lcd0_in>;
|
|
|
|
lanes = <0 1 2 3 4 5>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
lcd0: display {
|
|
|
|
compatible = "panel-dsi-cm";
|
|
|
|
label = "lcd0";
|
|
|
|
vddi-supply = <&lcd_regulator>;
|
|
|
|
reset-gpios = <&gpio4 5 GPIO_ACTIVE_HIGH>; /* gpio101 */
|
|
|
|
|
|
|
|
panel-timing {
|
|
|
|
clock-frequency = <0>; /* Calculated by dsi */
|
|
|
|
|
|
|
|
hback-porch = <2>;
|
|
|
|
hactive = <540>;
|
|
|
|
hfront-porch = <0>;
|
|
|
|
hsync-len = <2>;
|
|
|
|
|
|
|
|
vback-porch = <1>;
|
|
|
|
vactive = <960>;
|
|
|
|
vfront-porch = <0>;
|
|
|
|
vsync-len = <1>;
|
|
|
|
|
|
|
|
hsync-active = <0>;
|
|
|
|
vsync-active = <0>;
|
|
|
|
de-active = <1>;
|
|
|
|
pixelclk-active = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
port {
|
|
|
|
lcd0_in: endpoint {
|
|
|
|
remote-endpoint = <&dsi1_out_ep>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-11-12 23:57:59 +07:00
|
|
|
/* L3_2 interconnect is unused, SRAM, GPMC and L3_ICLK2 disabled */
|
|
|
|
&gpmc {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2017-03-06 11:11:59 +07:00
|
|
|
&hdmi {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&dss_hdmi_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
vdda-supply = <&vdac>;
|
|
|
|
|
|
|
|
port {
|
|
|
|
hdmi_out: endpoint {
|
|
|
|
remote-endpoint = <&hdmi_connector_in>;
|
|
|
|
lanes = <1 0 3 2 5 4 7 6>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-03-06 11:11:58 +07:00
|
|
|
&i2c1 {
|
|
|
|
tmp105@48 {
|
|
|
|
compatible = "ti,tmp105";
|
|
|
|
reg = <0x48>;
|
|
|
|
pinctrl-0 = <&tmp105_irq>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
/* kpd_row0.gpio_178 */
|
|
|
|
interrupts-extended = <&gpio6 18 IRQ_TYPE_EDGE_FALLING
|
|
|
|
&omap4_pmx_core 0x14e>;
|
|
|
|
interrupt-names = "irq", "wakeup";
|
|
|
|
wakeup-source;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
ARM: dts: Add keypad support for droid 4
Let's configure the keypad in a way where it's usable out of the
box for Linux console use. We want to have the keyboard usable with
Linux console for example when stuck into an initramfs during boot,
for when installing a distro.
As we need to need to have keys mapped in the user space anyways
for some of the keys to match the labels, this non-standard mapping
or usability should be OK.
Some keys don't match the labels either as they don't follow the PC
keyboard style. For example we have "shift + ," produce "<", and
"shift + ." produce ">" instead of ";" and ":".
So let's follow the standard PC keyboard layout for ctrl, shift and
alt keys:
Ctrl = what is labeled as shift
Alt = what is labeled as SYM
Shift = what is lableled as caps lock
This way we have Ctrl key for console use. Who knows where they got
the caps lock idea.. Probably from some focus group popularity vote
or something.
For the OK key, let's keep it as the useless KEY_OK unless we can
come up with some standard mapping for it we can stick with.
We have at least Esc, Delete, Meta, and Page Down keys missing, but
none of them seem to be better than others. PC keyboard often has
Page Down in that location. Esc would be probably the most usable
one when installing a Linux distro but is the opposite of OK.
Note that the LCD keys are just touchscreen hot spots, so I'm not
sure if the driver or hardware allows setting them up as keys for
the console.
Anyways, the rest can be mapped in the user space.
Cc: Marcel Partap <mpartap@gmx.net>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Michael Scott <michael.scott@linaro.org>
Tested-By: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
2017-03-06 11:11:56 +07:00
|
|
|
&keypad {
|
|
|
|
keypad,num-rows = <8>;
|
|
|
|
keypad,num-columns = <8>;
|
|
|
|
linux,keymap = <
|
|
|
|
|
|
|
|
/* Row 1 */
|
|
|
|
MATRIX_KEY(0, 2, KEY_1)
|
|
|
|
MATRIX_KEY(0, 6, KEY_2)
|
|
|
|
MATRIX_KEY(2, 3, KEY_3)
|
|
|
|
MATRIX_KEY(0, 7, KEY_4)
|
|
|
|
MATRIX_KEY(0, 4, KEY_5)
|
|
|
|
MATRIX_KEY(5, 5, KEY_6)
|
|
|
|
MATRIX_KEY(0, 1, KEY_7)
|
|
|
|
MATRIX_KEY(0, 5, KEY_8)
|
|
|
|
MATRIX_KEY(0, 0, KEY_9)
|
|
|
|
MATRIX_KEY(1, 6, KEY_0)
|
|
|
|
|
|
|
|
/* Row 2 */
|
|
|
|
MATRIX_KEY(3, 4, KEY_APOSTROPHE)
|
|
|
|
MATRIX_KEY(7, 6, KEY_Q)
|
|
|
|
MATRIX_KEY(7, 7, KEY_W)
|
|
|
|
MATRIX_KEY(7, 2, KEY_E)
|
|
|
|
MATRIX_KEY(1, 0, KEY_R)
|
|
|
|
MATRIX_KEY(4, 4, KEY_T)
|
|
|
|
MATRIX_KEY(1, 2, KEY_Y)
|
|
|
|
MATRIX_KEY(6, 7, KEY_U)
|
|
|
|
MATRIX_KEY(2, 2, KEY_I)
|
|
|
|
MATRIX_KEY(5, 6, KEY_O)
|
|
|
|
MATRIX_KEY(3, 7, KEY_P)
|
|
|
|
MATRIX_KEY(6, 5, KEY_BACKSPACE)
|
|
|
|
|
|
|
|
/* Row 3 */
|
|
|
|
MATRIX_KEY(5, 4, KEY_TAB)
|
|
|
|
MATRIX_KEY(5, 7, KEY_A)
|
|
|
|
MATRIX_KEY(2, 7, KEY_S)
|
|
|
|
MATRIX_KEY(7, 0, KEY_D)
|
|
|
|
MATRIX_KEY(2, 6, KEY_F)
|
|
|
|
MATRIX_KEY(6, 2, KEY_G)
|
|
|
|
MATRIX_KEY(6, 6, KEY_H)
|
|
|
|
MATRIX_KEY(1, 4, KEY_J)
|
|
|
|
MATRIX_KEY(3, 1, KEY_K)
|
|
|
|
MATRIX_KEY(2, 1, KEY_L)
|
|
|
|
MATRIX_KEY(4, 6, KEY_ENTER)
|
|
|
|
|
|
|
|
/* Row 4 */
|
|
|
|
MATRIX_KEY(3, 6, KEY_LEFTSHIFT) /* KEY_CAPSLOCK */
|
|
|
|
MATRIX_KEY(6, 1, KEY_Z)
|
|
|
|
MATRIX_KEY(7, 4, KEY_X)
|
|
|
|
MATRIX_KEY(5, 1, KEY_C)
|
|
|
|
MATRIX_KEY(1, 7, KEY_V)
|
|
|
|
MATRIX_KEY(2, 4, KEY_B)
|
|
|
|
MATRIX_KEY(4, 1, KEY_N)
|
|
|
|
MATRIX_KEY(1, 1, KEY_M)
|
|
|
|
MATRIX_KEY(3, 5, KEY_COMMA)
|
|
|
|
MATRIX_KEY(5, 2, KEY_DOT)
|
|
|
|
MATRIX_KEY(6, 3, KEY_UP)
|
|
|
|
MATRIX_KEY(7, 3, KEY_OK)
|
|
|
|
|
|
|
|
/* Row 5 */
|
|
|
|
MATRIX_KEY(2, 5, KEY_LEFTCTRL) /* KEY_LEFTSHIFT */
|
|
|
|
MATRIX_KEY(4, 5, KEY_LEFTALT) /* SYM */
|
|
|
|
MATRIX_KEY(6, 0, KEY_MINUS)
|
|
|
|
MATRIX_KEY(4, 7, KEY_EQUAL)
|
|
|
|
MATRIX_KEY(1, 5, KEY_SPACE)
|
|
|
|
MATRIX_KEY(3, 2, KEY_SLASH)
|
|
|
|
MATRIX_KEY(4, 3, KEY_LEFT)
|
|
|
|
MATRIX_KEY(5, 3, KEY_DOWN)
|
|
|
|
MATRIX_KEY(3, 3, KEY_RIGHT)
|
|
|
|
|
|
|
|
/* Side buttons, KEY_VOLUMEDOWN and KEY_PWER are on CPCAP? */
|
|
|
|
MATRIX_KEY(5, 0, KEY_VOLUMEUP)
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2016-11-12 23:57:59 +07:00
|
|
|
&mmc1 {
|
2017-03-06 11:11:56 +07:00
|
|
|
vmmc-supply = <&vsimcard>;
|
2016-11-12 23:57:59 +07:00
|
|
|
bus-width = <4>;
|
|
|
|
cd-gpios = <&gpio4 10 GPIO_ACTIVE_LOW>; /* gpio106 */
|
|
|
|
};
|
|
|
|
|
|
|
|
&mmc2 {
|
2017-03-06 11:11:56 +07:00
|
|
|
vmmc-supply = <&vsdio>;
|
2016-11-12 23:57:59 +07:00
|
|
|
bus-width = <8>;
|
|
|
|
non-removable;
|
|
|
|
};
|
|
|
|
|
|
|
|
&mmc3 {
|
|
|
|
vmmc-supply = <&wl12xx_vmmc>;
|
|
|
|
interrupts-extended = <&wakeupgen GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH
|
|
|
|
&omap4_pmx_core 0xde>;
|
|
|
|
|
|
|
|
non-removable;
|
|
|
|
bus-width = <4>;
|
|
|
|
cap-power-off-card;
|
|
|
|
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
wlcore: wlcore@2 {
|
|
|
|
compatible = "ti,wl1283";
|
|
|
|
reg = <2>;
|
|
|
|
interrupt-parent = <&gpio4>;
|
|
|
|
interrupts = <4 IRQ_TYPE_LEVEL_HIGH>; /* gpio100 */
|
|
|
|
ref-clock-frequency = <26000000>;
|
|
|
|
tcxo-clock-frequency = <26000000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-03-06 11:11:58 +07:00
|
|
|
&i2c1 {
|
|
|
|
lm3532@38 {
|
|
|
|
compatible = "ti,lm3532";
|
|
|
|
reg = <0x38>;
|
|
|
|
|
|
|
|
enable-gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
|
|
|
backlight {
|
|
|
|
compatible = "ti,lm3532-backlight";
|
|
|
|
|
|
|
|
lcd {
|
|
|
|
led-sources = <0 1 2>;
|
|
|
|
ramp-up-msec = <1>;
|
|
|
|
ramp-down-msec = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-03-06 11:11:58 +07:00
|
|
|
/*
|
|
|
|
* REVISIT: Add gpio173 reset pin handling to the driver, see gpio-hog above.
|
|
|
|
* If the GPIO reset is used, we probably need to have /lib/firmware/maxtouch.fw
|
|
|
|
* available. See "mxt-app" and "droid4-touchscreen-firmware" tools for more
|
|
|
|
* information.
|
|
|
|
*/
|
|
|
|
&i2c2 {
|
|
|
|
tsp@4a {
|
|
|
|
compatible = "atmel,maxtouch";
|
|
|
|
reg = <0x4a>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&touchscreen_pins>;
|
|
|
|
|
|
|
|
/* gpio_183 with sys_nirq2 pad as wakeup */
|
|
|
|
interrupts-extended = <&gpio6 23 IRQ_TYPE_EDGE_FALLING
|
|
|
|
&omap4_pmx_core 0x160>;
|
|
|
|
interrupt-names = "irq", "wakeup";
|
|
|
|
wakeup-source;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-11-12 23:57:59 +07:00
|
|
|
/* L3_2 interconnect is unused, SRAM, GPMC and L3_ICLK2 disabled */
|
|
|
|
&ocmcram {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
&omap4_pmx_core {
|
2017-03-06 11:11:58 +07:00
|
|
|
|
2017-03-06 11:11:59 +07:00
|
|
|
/* hdmi_hpd.gpio_63 */
|
|
|
|
hdmi_hpd_gpio: pinmux_hdmi_hpd_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
OMAP4_IOPAD(0x098, PIN_INPUT | MUX_MODE3)
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* hdmi_cec.hdmi_cec, hdmi_scl.hdmi_scl, hdmi_sda.hdmi_sda */
|
|
|
|
dss_hdmi_pins: pinmux_dss_hdmi_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
OMAP4_IOPAD(0x09a, PIN_INPUT_PULLUP | MUX_MODE0)
|
|
|
|
OMAP4_IOPAD(0x09c, PIN_INPUT | MUX_MODE0)
|
|
|
|
OMAP4_IOPAD(0x09e, PIN_INPUT | MUX_MODE0)
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2017-03-06 11:11:58 +07:00
|
|
|
/* gpmc_ncs0.gpio_50 */
|
|
|
|
poweroff_gpio: pinmux_poweroff_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
OMAP4_IOPAD(0x074, PIN_OUTPUT_PULLUP | MUX_MODE3)
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2017-03-06 11:11:58 +07:00
|
|
|
/* kpd_row0.gpio_178 */
|
|
|
|
tmp105_irq: pinmux_tmp105_irq {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
OMAP4_IOPAD(0x18e, PIN_INPUT_PULLUP | MUX_MODE3)
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2016-11-12 23:57:59 +07:00
|
|
|
usb_gpio_mux_sel1: pinmux_usb_gpio_mux_sel1_pins {
|
|
|
|
/* gpio_60 */
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
OMAP4_IOPAD(0x088, PIN_OUTPUT | MUX_MODE3)
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2017-03-06 11:11:58 +07:00
|
|
|
touchscreen_pins: pinmux_touchscreen_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
OMAP4_IOPAD(0x1a0, PIN_INPUT_PULLUP | MUX_MODE3)
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2016-11-12 23:57:59 +07:00
|
|
|
usb_ulpi_pins: pinmux_usb_ulpi_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
OMAP4_IOPAD(0x196, MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x198, MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1b2, PIN_INPUT_PULLUP | MUX_MODE0)
|
|
|
|
OMAP4_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE0)
|
|
|
|
OMAP4_IOPAD(0x1b6, PIN_INPUT_PULLUP | MUX_MODE0)
|
|
|
|
OMAP4_IOPAD(0x1b8, PIN_INPUT_PULLUP | MUX_MODE0)
|
|
|
|
OMAP4_IOPAD(0x1ba, PIN_INPUT_PULLUP | MUX_MODE0)
|
|
|
|
OMAP4_IOPAD(0x1bc, PIN_INPUT_PULLUP | MUX_MODE0)
|
|
|
|
OMAP4_IOPAD(0x1be, PIN_INPUT_PULLUP | MUX_MODE0)
|
|
|
|
OMAP4_IOPAD(0x1c0, PIN_INPUT_PULLUP | MUX_MODE0)
|
|
|
|
OMAP4_IOPAD(0x1c2, PIN_INPUT_PULLUP | MUX_MODE0)
|
|
|
|
OMAP4_IOPAD(0x1c4, PIN_INPUT_PULLUP | MUX_MODE0)
|
|
|
|
OMAP4_IOPAD(0x1c6, PIN_INPUT_PULLUP | MUX_MODE0)
|
|
|
|
OMAP4_IOPAD(0x1c8, PIN_INPUT_PULLUP | MUX_MODE0)
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* usb0_otg_dp and usb0_otg_dm */
|
|
|
|
usb_utmi_pins: pinmux_usb_utmi_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
OMAP4_IOPAD(0x196, PIN_INPUT | MUX_MODE0)
|
|
|
|
OMAP4_IOPAD(0x198, PIN_INPUT | MUX_MODE0)
|
|
|
|
OMAP4_IOPAD(0x1b2, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1b6, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1b8, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1ba, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1bc, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1be, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1c0, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1c2, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1c4, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1c6, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1c8, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* uart3_tx_irtx and uart3_rx_irrx */
|
|
|
|
uart3_pins: pinmux_uart3_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
OMAP4_IOPAD(0x196, MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x198, MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1b2, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1b6, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1b8, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1ba, MUX_MODE2)
|
|
|
|
OMAP4_IOPAD(0x1bc, PIN_INPUT | MUX_MODE2)
|
|
|
|
OMAP4_IOPAD(0x1be, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1c0, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1c2, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1c4, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1c6, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
OMAP4_IOPAD(0x1c8, PIN_INPUT_PULLUP | MUX_MODE7)
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&omap4_pmx_wkup {
|
|
|
|
usb_gpio_mux_sel2: pinmux_usb_gpio_mux_sel2_pins {
|
|
|
|
/* gpio_wk0 */
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
OMAP4_IOPAD(0x040, PIN_OUTPUT_PULLDOWN | MUX_MODE3)
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart3 {
|
|
|
|
interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH
|
|
|
|
&omap4_pmx_core 0x17c>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Internal UTMI+ PHY used for OTG, CPCAP ULPI PHY for detection and charger */
|
|
|
|
&usb_otg_hs {
|
|
|
|
interface-type = <1>;
|
|
|
|
mode = <3>;
|
|
|
|
power = <50>;
|
|
|
|
};
|
2017-03-06 11:11:57 +07:00
|
|
|
|
|
|
|
&i2c4 {
|
|
|
|
ak8975: magnetometer@c {
|
|
|
|
compatible = "asahi-kasei,ak8975";
|
|
|
|
reg = <0x0c>;
|
|
|
|
|
|
|
|
vdd-supply = <&vhvio>;
|
|
|
|
|
|
|
|
interrupt-parent = <&gpio6>;
|
|
|
|
interrupts = <15 IRQ_TYPE_EDGE_RISING>; /* gpio175 */
|
|
|
|
|
|
|
|
rotation-matrix = "-1", "0", "0",
|
|
|
|
"0", "1", "0",
|
|
|
|
"0", "0", "-1";
|
|
|
|
|
|
|
|
};
|
2017-03-06 11:11:57 +07:00
|
|
|
|
|
|
|
lis3dh: accelerometer@18 {
|
|
|
|
compatible = "st,lis3dh-accel";
|
|
|
|
reg = <0x18>;
|
|
|
|
|
|
|
|
vdd-supply = <&vhvio>;
|
|
|
|
|
|
|
|
interrupt-parent = <&gpio2>;
|
|
|
|
interrupts = <2 IRQ_TYPE_EDGE_BOTH>; /* gpio34 */
|
|
|
|
|
|
|
|
rotation-matrix = "0", "-1", "0",
|
|
|
|
"1", "0", "0",
|
|
|
|
"0", "0", "1";
|
|
|
|
};
|
2017-03-06 11:11:57 +07:00
|
|
|
};
|