2014-06-11 05:22:00 +07:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Gumstix, Inc. - https://www.gumstix.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/;
|
|
|
|
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
#include "am33xx.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Gumstix Pepper";
|
|
|
|
compatible = "gumstix,am335x-pepper", "ti,am33xx";
|
|
|
|
|
|
|
|
cpus {
|
|
|
|
cpu@0 {
|
|
|
|
cpu0-supply = <&dcdc3_reg>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-08-31 17:35:30 +07:00
|
|
|
memory@80000000 {
|
2014-06-11 05:22:00 +07:00
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x80000000 0x20000000>; /* 512 MB */
|
|
|
|
};
|
|
|
|
|
|
|
|
buttons: user_buttons {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
};
|
|
|
|
|
|
|
|
leds: user_leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
};
|
|
|
|
|
|
|
|
panel: lcd_panel {
|
|
|
|
compatible = "ti,tilcdc,panel";
|
|
|
|
};
|
|
|
|
|
|
|
|
sound: sound_iface {
|
|
|
|
compatible = "ti,da830-evm-audio";
|
|
|
|
};
|
|
|
|
|
2016-08-01 23:46:58 +07:00
|
|
|
vbat: fixedregulator0 {
|
2014-06-11 05:22:00 +07:00
|
|
|
compatible = "regulator-fixed";
|
|
|
|
};
|
|
|
|
|
2016-08-01 23:46:58 +07:00
|
|
|
v3v3c_reg: fixedregulator1 {
|
2014-06-11 05:22:00 +07:00
|
|
|
compatible = "regulator-fixed";
|
|
|
|
};
|
|
|
|
|
2016-08-01 23:46:58 +07:00
|
|
|
vdd5_reg: fixedregulator2 {
|
2014-06-11 05:22:00 +07:00
|
|
|
compatible = "regulator-fixed";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* I2C Busses */
|
|
|
|
&i2c0 {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&i2c0_pins>;
|
|
|
|
|
|
|
|
clock-frequency = <400000>;
|
|
|
|
|
|
|
|
tps: tps@24 {
|
|
|
|
reg = <0x24>;
|
|
|
|
};
|
|
|
|
|
|
|
|
eeprom: eeprom@50 {
|
2017-05-23 20:34:31 +07:00
|
|
|
compatible = "atmel,24c256";
|
2014-06-11 05:22:00 +07:00
|
|
|
reg = <0x50>;
|
|
|
|
};
|
|
|
|
|
|
|
|
audio_codec: tlv320aic3106@1b {
|
|
|
|
compatible = "ti,tlv320aic3106";
|
|
|
|
reg = <0x1b>;
|
2015-07-15 01:17:24 +07:00
|
|
|
ai3x-micbias-vg = <0x2>;
|
2014-06-11 05:22:00 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
accel: lis331dlh@1d {
|
|
|
|
compatible = "st,lis3lv02d";
|
|
|
|
reg = <0x1d>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&i2c1 {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&i2c1_pins>;
|
|
|
|
clock-frequency = <400000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&am33xx_pinmux {
|
|
|
|
i2c0_pins: pinmux_i2c0 {
|
|
|
|
pinctrl-single,pins = <
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
|
|
|
|
AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
|
2014-06-11 05:22:00 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
i2c1_pins: pinmux_i2c1 {
|
|
|
|
pinctrl-single,pins = <
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x90C, PIN_INPUT_PULLUP | MUX_MODE3) /* mii1_crs,i2c1_sda */
|
|
|
|
AM33XX_IOPAD(0x910, PIN_INPUT_PULLUP | MUX_MODE3) /* mii1_rxerr,i2c1_scl */
|
2014-06-11 05:22:00 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Accelerometer */
|
|
|
|
&accel {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&accel_pins>;
|
|
|
|
|
|
|
|
Vdd-supply = <&ldo3_reg>;
|
|
|
|
Vdd_IO-supply = <&ldo3_reg>;
|
|
|
|
st,irq1-click;
|
|
|
|
st,wakeup-x-lo;
|
|
|
|
st,wakeup-x-hi;
|
|
|
|
st,wakeup-y-lo;
|
|
|
|
st,wakeup-y-hi;
|
|
|
|
st,wakeup-z-lo;
|
|
|
|
st,wakeup-z-hi;
|
|
|
|
st,min-limit-x = <92>;
|
|
|
|
st,max-limit-x = <14>;
|
|
|
|
st,min-limit-y = <14>;
|
|
|
|
st,max-limit-y = <92>;
|
|
|
|
st,min-limit-z = <92>;
|
|
|
|
st,max-limit-z = <14>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&am33xx_pinmux {
|
|
|
|
accel_pins: pinmux_accel {
|
|
|
|
pinctrl-single,pins = <
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x898, PIN_INPUT | MUX_MODE7) /* gpmc_wen.gpio2_4 */
|
2014-06-11 05:22:00 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Audio */
|
|
|
|
&audio_codec {
|
|
|
|
status = "okay";
|
|
|
|
|
2017-11-30 00:13:56 +07:00
|
|
|
reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
|
2014-06-11 05:22:00 +07:00
|
|
|
AVDD-supply = <&ldo3_reg>;
|
|
|
|
IOVDD-supply = <&ldo3_reg>;
|
|
|
|
DRVDD-supply = <&ldo3_reg>;
|
|
|
|
DVDD-supply = <&dcdc1_reg>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&sound {
|
|
|
|
ti,model = "AM335x-EVM";
|
|
|
|
ti,audio-codec = <&audio_codec>;
|
|
|
|
ti,mcasp-controller = <&mcasp0>;
|
|
|
|
ti,codec-clock-rate = <12000000>;
|
|
|
|
ti,audio-routing =
|
|
|
|
"Headphone Jack", "HPLOUT",
|
|
|
|
"Headphone Jack", "HPROUT",
|
2015-07-15 01:17:24 +07:00
|
|
|
"MIC3L", "Mic3L Switch";
|
2014-06-11 05:22:00 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
&mcasp0 {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&audio_pins>;
|
|
|
|
|
|
|
|
op-mode = <0>; /* MCASP_ISS_MODE */
|
|
|
|
tdm-slots = <2>;
|
|
|
|
serial-dir = <
|
|
|
|
1 2 0 0
|
|
|
|
0 0 0 0
|
|
|
|
0 0 0 0
|
|
|
|
0 0 0 0
|
|
|
|
>;
|
|
|
|
tx-num-evt = <1>;
|
|
|
|
rx-num-evt = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&am33xx_pinmux {
|
|
|
|
audio_pins: pinmux_audio {
|
|
|
|
pinctrl-single,pins = <
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x9ac, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_ahcklx.mcasp0_ahclkx */
|
|
|
|
AM33XX_IOPAD(0x994, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_fsx.mcasp0_fsx */
|
|
|
|
AM33XX_IOPAD(0x990, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_aclkx.mcasp0_aclkx */
|
|
|
|
AM33XX_IOPAD(0x998, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_axr0.mcasp0_axr0 */
|
|
|
|
AM33XX_IOPAD(0x9a8, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_axr1.mcasp0_axr1 */
|
|
|
|
AM33XX_IOPAD(0x840, PIN_OUTPUT | MUX_MODE7) /* gpmc_a0.gpio1_16 */
|
2014-06-11 05:22:00 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Display: 24-bit LCD Screen */
|
|
|
|
&panel {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&lcd_pins>;
|
|
|
|
panel-info {
|
|
|
|
ac-bias = <255>;
|
|
|
|
ac-bias-intrpt = <0>;
|
|
|
|
dma-burst-sz = <16>;
|
|
|
|
bpp = <32>;
|
|
|
|
fdd = <0x80>;
|
|
|
|
sync-edge = <0>;
|
|
|
|
sync-ctrl = <1>;
|
|
|
|
raster-order = <0>;
|
|
|
|
fifo-th = <0>;
|
|
|
|
};
|
|
|
|
display-timings {
|
|
|
|
native-mode = <&timing0>;
|
|
|
|
timing0: 480x272 {
|
|
|
|
clock-frequency = <18400000>;
|
|
|
|
hactive = <480>;
|
|
|
|
vactive = <272>;
|
|
|
|
hfront-porch = <8>;
|
|
|
|
hback-porch = <4>;
|
|
|
|
hsync-len = <41>;
|
|
|
|
vfront-porch = <4>;
|
|
|
|
vback-porch = <2>;
|
|
|
|
vsync-len = <10>;
|
|
|
|
hsync-active = <1>;
|
|
|
|
vsync-active = <1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&lcdc {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&am33xx_pinmux {
|
|
|
|
lcd_pins: pinmux_lcd {
|
|
|
|
pinctrl-single,pins = <
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x8a0, PIN_OUTPUT | MUX_MODE0) /* lcd_data0.lcd_data0 */
|
|
|
|
AM33XX_IOPAD(0x8a4, PIN_OUTPUT | MUX_MODE0) /* lcd_data1.lcd_data1 */
|
|
|
|
AM33XX_IOPAD(0x8a8, PIN_OUTPUT | MUX_MODE0) /* lcd_data2.lcd_data2 */
|
|
|
|
AM33XX_IOPAD(0x8ac, PIN_OUTPUT | MUX_MODE0) /* lcd_data3.lcd_data3 */
|
|
|
|
AM33XX_IOPAD(0x8b0, PIN_OUTPUT | MUX_MODE0) /* lcd_data4.lcd_data4 */
|
|
|
|
AM33XX_IOPAD(0x8b4, PIN_OUTPUT | MUX_MODE0) /* lcd_data5.lcd_data5 */
|
|
|
|
AM33XX_IOPAD(0x8b8, PIN_OUTPUT | MUX_MODE0) /* lcd_data6.lcd_data6 */
|
|
|
|
AM33XX_IOPAD(0x8bc, PIN_OUTPUT | MUX_MODE0) /* lcd_data7.lcd_data7 */
|
|
|
|
AM33XX_IOPAD(0x8c0, PIN_OUTPUT | MUX_MODE0) /* lcd_data8.lcd_data8 */
|
|
|
|
AM33XX_IOPAD(0x8c4, PIN_OUTPUT | MUX_MODE0) /* lcd_data9.lcd_data9 */
|
|
|
|
AM33XX_IOPAD(0x8c8, PIN_OUTPUT | MUX_MODE0) /* lcd_data10.lcd_data10 */
|
|
|
|
AM33XX_IOPAD(0x8cc, PIN_OUTPUT | MUX_MODE0) /* lcd_data11.lcd_data11 */
|
|
|
|
AM33XX_IOPAD(0x8d0, PIN_OUTPUT | MUX_MODE0) /* lcd_data12.lcd_data12 */
|
|
|
|
AM33XX_IOPAD(0x8d4, PIN_OUTPUT | MUX_MODE0) /* lcd_data13.lcd_data13 */
|
|
|
|
AM33XX_IOPAD(0x8d8, PIN_OUTPUT | MUX_MODE0) /* lcd_data14.lcd_data14 */
|
|
|
|
AM33XX_IOPAD(0x8dc, PIN_OUTPUT | MUX_MODE0) /* lcd_data15.lcd_data15 */
|
|
|
|
AM33XX_IOPAD(0x820, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad8.lcd_data16 */
|
|
|
|
AM33XX_IOPAD(0x824, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad9.lcd_data17 */
|
|
|
|
AM33XX_IOPAD(0x828, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad10.lcd_data18 */
|
|
|
|
AM33XX_IOPAD(0x82c, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad11.lcd_data19 */
|
|
|
|
AM33XX_IOPAD(0x830, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad12.lcd_data20 */
|
|
|
|
AM33XX_IOPAD(0x834, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad13.lcd_data21 */
|
|
|
|
AM33XX_IOPAD(0x838, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad14.lcd_data22 */
|
|
|
|
AM33XX_IOPAD(0x83c, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad15.lcd_data23 */
|
|
|
|
AM33XX_IOPAD(0x8e0, PIN_OUTPUT | MUX_MODE0) /* lcd_vsync.lcd_vsync */
|
|
|
|
AM33XX_IOPAD(0x8e4, PIN_OUTPUT | MUX_MODE0) /* lcd_hsync.lcd_hsync */
|
|
|
|
AM33XX_IOPAD(0x8e8, PIN_OUTPUT | MUX_MODE0) /* lcd_pclk.lcd_pclk */
|
|
|
|
AM33XX_IOPAD(0x8ec, PIN_OUTPUT | MUX_MODE0) /* lcd_ac_bias_en.lcd_ac_bias_en */
|
2014-06-11 05:22:00 +07:00
|
|
|
/* Display Enable */
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x86c, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a11.gpio1_27 */
|
2014-06-11 05:22:00 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Ethernet */
|
|
|
|
&cpsw_emac0 {
|
|
|
|
status = "okay";
|
|
|
|
phy_id = <&davinci_mdio>, <0>;
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
};
|
|
|
|
|
|
|
|
&cpsw_emac1 {
|
|
|
|
status = "okay";
|
|
|
|
phy_id = <&davinci_mdio>, <1>;
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
};
|
|
|
|
|
|
|
|
&davinci_mdio {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&mdio_pins>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&mac {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <ðernet_pins>;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
&am33xx_pinmux {
|
|
|
|
ethernet_pins: pinmux_ethernet {
|
|
|
|
pinctrl-single,pins = <
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_tctl */
|
|
|
|
AM33XX_IOPAD(0x918, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxdv.rgmii1_rctl */
|
|
|
|
AM33XX_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd3.rgmii1_td3 */
|
|
|
|
AM33XX_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd2.rgmii1_td2 */
|
|
|
|
AM33XX_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_td1 */
|
|
|
|
AM33XX_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_td0 */
|
|
|
|
AM33XX_IOPAD(0x92c, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_txclk.rgmii1_tclk */
|
|
|
|
AM33XX_IOPAD(0x930, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxclk.rgmii1_rclk */
|
|
|
|
AM33XX_IOPAD(0x934, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd3.rgmii1_rxd3 */
|
|
|
|
AM33XX_IOPAD(0x938, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd2.rgmii1_rxd2 */
|
|
|
|
AM33XX_IOPAD(0x93c, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd1.rgmii1_rxd1 */
|
|
|
|
AM33XX_IOPAD(0x940, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd0.rgmii1_rxd0 */
|
2014-06-11 05:22:00 +07:00
|
|
|
/* ethernet interrupt */
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x944, PIN_INPUT_PULLUP | MUX_MODE7) /* rmii2_refclk.gpio0_29 */
|
2014-06-11 05:22:00 +07:00
|
|
|
/* ethernet PHY nReset */
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x908, PIN_OUTPUT_PULLUP | MUX_MODE7) /* mii1_col.gpio3_0 */
|
2014-06-11 05:22:00 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
mdio_pins: pinmux_mdio {
|
|
|
|
pinctrl-single,pins = <
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
|
|
|
|
AM33XX_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
|
2014-06-11 05:22:00 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* MMC */
|
|
|
|
&mmc1 {
|
|
|
|
/* Bootable SD card slot */
|
|
|
|
status = "okay";
|
|
|
|
vmmc-supply = <&ldo3_reg>;
|
|
|
|
bus-width = <4>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&sd_pins>;
|
|
|
|
cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&mmc2 {
|
|
|
|
/* eMMC (not populated) on MMC #2 */
|
|
|
|
status = "disabled";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&emmc_pins>;
|
|
|
|
vmmc-supply = <&ldo3_reg>;
|
|
|
|
bus-width = <8>;
|
|
|
|
ti,non-removable;
|
|
|
|
};
|
|
|
|
|
|
|
|
&mmc3 {
|
|
|
|
/* Wifi & Bluetooth on MMC #3 */
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&wireless_pins>;
|
|
|
|
vmmmc-supply = <&v3v3c_reg>;
|
|
|
|
bus-width = <4>;
|
|
|
|
ti,non-removable;
|
2015-12-17 20:33:36 +07:00
|
|
|
dmas = <&edma_xbar 12 0 1
|
|
|
|
&edma_xbar 13 0 2>;
|
2014-06-11 05:22:00 +07:00
|
|
|
dma-names = "tx", "rx";
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
&am33xx_pinmux {
|
|
|
|
sd_pins: pinmux_sd_card {
|
|
|
|
pinctrl-single,pins = <
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */
|
|
|
|
AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */
|
|
|
|
AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */
|
|
|
|
AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */
|
|
|
|
AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_clk.mmc0_clk */
|
|
|
|
AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */
|
|
|
|
AM33XX_IOPAD(0x960, PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
|
2014-06-11 05:22:00 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
emmc_pins: pinmux_emmc {
|
|
|
|
pinctrl-single,pins = <
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x880, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
|
|
|
|
AM33XX_IOPAD(0x884, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
|
|
|
|
AM33XX_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
|
|
|
|
AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
|
|
|
|
AM33XX_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
|
|
|
|
AM33XX_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
|
|
|
|
AM33XX_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */
|
|
|
|
AM33XX_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */
|
|
|
|
AM33XX_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */
|
|
|
|
AM33XX_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */
|
2014-06-11 05:22:00 +07:00
|
|
|
/* EMMC nReset */
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x874, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpio0_31 */
|
2014-06-11 05:22:00 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
wireless_pins: pinmux_wireless {
|
|
|
|
pinctrl-single,pins = <
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x844, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a1.mmc2_dat0 */
|
|
|
|
AM33XX_IOPAD(0x848, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a2.mmc2_dat1 */
|
|
|
|
AM33XX_IOPAD(0x84c, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a3.mmc2_dat2 */
|
|
|
|
AM33XX_IOPAD(0x878, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_ben1.mmc2_dat3 */
|
|
|
|
AM33XX_IOPAD(0x888, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_csn3.mmc2_cmd */
|
|
|
|
AM33XX_IOPAD(0x88c, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_clk.mmc1_clk */
|
2014-06-11 05:22:00 +07:00
|
|
|
/* WLAN nReset */
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x860, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio1_24 */
|
2014-06-11 05:22:00 +07:00
|
|
|
/* WLAN nPower down */
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x870, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wait0.gpio0_30 */
|
2014-06-11 05:22:00 +07:00
|
|
|
/* 32kHz Clock */
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x9b4, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
|
2014-06-11 05:22:00 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Power */
|
|
|
|
&vbat {
|
|
|
|
regulator-name = "vbat";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&v3v3c_reg {
|
|
|
|
regulator-name = "v3v3c_reg";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
vin-supply = <&vbat>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&vdd5_reg {
|
|
|
|
regulator-name = "vdd5_reg";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
vin-supply = <&vbat>;
|
|
|
|
};
|
|
|
|
|
2016-02-19 21:12:19 +07:00
|
|
|
/include/ "tps65217.dtsi"
|
2015-10-27 19:36:36 +07:00
|
|
|
|
2016-02-19 21:12:19 +07:00
|
|
|
&tps {
|
2014-06-11 05:22:00 +07:00
|
|
|
backlight {
|
|
|
|
isel = <1>; /* ISET1 */
|
|
|
|
fdim = <200>; /* TPS65217_BL_FDIM_200HZ */
|
|
|
|
default-brightness = <80>;
|
|
|
|
};
|
|
|
|
|
|
|
|
regulators {
|
|
|
|
dcdc1_reg: regulator@0 {
|
|
|
|
/* VDD_1V8 system supply */
|
2015-07-10 05:37:57 +07:00
|
|
|
regulator-always-on;
|
2014-06-11 05:22:00 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
dcdc2_reg: regulator@1 {
|
|
|
|
/* VDD_CORE voltage limits 0.95V - 1.26V with +/-4% tolerance */
|
|
|
|
regulator-name = "vdd_core";
|
|
|
|
regulator-min-microvolt = <925000>;
|
2015-06-05 01:08:19 +07:00
|
|
|
regulator-max-microvolt = <1150000>;
|
2014-06-11 05:22:00 +07:00
|
|
|
regulator-boot-on;
|
2015-07-10 05:37:57 +07:00
|
|
|
regulator-always-on;
|
2014-06-11 05:22:00 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
dcdc3_reg: regulator@2 {
|
|
|
|
/* VDD_MPU voltage limits 0.95V - 1.1V with +/-4% tolerance */
|
|
|
|
regulator-name = "vdd_mpu";
|
|
|
|
regulator-min-microvolt = <925000>;
|
2015-06-05 01:08:19 +07:00
|
|
|
regulator-max-microvolt = <1325000>;
|
2014-06-11 05:22:00 +07:00
|
|
|
regulator-boot-on;
|
2015-07-10 05:37:57 +07:00
|
|
|
regulator-always-on;
|
2014-06-11 05:22:00 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
ldo1_reg: regulator@3 {
|
|
|
|
/* VRTC 1.8V always-on supply */
|
2015-07-10 05:37:57 +07:00
|
|
|
regulator-name = "vrtc,vdds";
|
2014-06-11 05:22:00 +07:00
|
|
|
regulator-always-on;
|
|
|
|
};
|
|
|
|
|
|
|
|
ldo2_reg: regulator@4 {
|
|
|
|
/* 3.3V rail */
|
2015-07-10 05:37:57 +07:00
|
|
|
regulator-name = "vdd_3v3aux";
|
|
|
|
regulator-always-on;
|
2014-06-11 05:22:00 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
ldo3_reg: regulator@5 {
|
|
|
|
/* VDD_3V3A 3.3V rail */
|
2015-07-10 05:37:57 +07:00
|
|
|
regulator-name = "vdd_3v3a";
|
2014-06-11 05:22:00 +07:00
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
ldo4_reg: regulator@6 {
|
|
|
|
/* VDD_3V3B 3.3V rail */
|
2015-07-10 05:37:57 +07:00
|
|
|
regulator-name = "vdd_3v3b";
|
|
|
|
regulator-always-on;
|
2014-06-11 05:22:00 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* SPI Busses */
|
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&spi0_pins>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&am33xx_pinmux {
|
|
|
|
spi0_pins: pinmux_spi0 {
|
|
|
|
pinctrl-single,pins = <
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x950, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_sclk.spi0_sclk */
|
|
|
|
AM33XX_IOPAD(0x95C, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_cs0.spi0_cs0 */
|
|
|
|
AM33XX_IOPAD(0x954, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_d0.spi0_d0 */
|
|
|
|
AM33XX_IOPAD(0x958, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_d1.spi0_d1 */
|
2014-06-11 05:22:00 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Touch Screen */
|
|
|
|
&tscadc {
|
|
|
|
status = "okay";
|
|
|
|
tsc {
|
|
|
|
ti,wires = <4>;
|
|
|
|
ti,x-plate-resistance = <200>;
|
|
|
|
ti,coordinate-readouts = <5>;
|
|
|
|
ti,wire-config = <0x00 0x11 0x22 0x33>;
|
|
|
|
};
|
|
|
|
|
|
|
|
adc {
|
|
|
|
ti,adc-channels = <4 5 6 7>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* UARTs */
|
|
|
|
&uart0 {
|
|
|
|
/* Serial Console */
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart0_pins>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart1 {
|
|
|
|
/* Broken out to J6 header */
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart1_pins>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&am33xx_pinmux {
|
|
|
|
uart0_pins: pinmux_uart0 {
|
|
|
|
pinctrl-single,pins = <
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
|
|
|
|
AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
|
2014-06-11 05:22:00 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
uart1_pins: pinmux_uart1 {
|
|
|
|
pinctrl-single,pins = <
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x978, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_ctsn.uart1_ctsn */
|
|
|
|
AM33XX_IOPAD(0x97C, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_rtsn.uart1_rtsn */
|
|
|
|
AM33XX_IOPAD(0x980, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rxd.uart1_rxd */
|
|
|
|
AM33XX_IOPAD(0x984, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_txd.uart1_txd */
|
2014-06-11 05:22:00 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* USB */
|
|
|
|
&usb {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&usb_pins>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb_ctrl_mod {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb0_phy {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb1_phy {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb0 {
|
|
|
|
status = "okay";
|
|
|
|
dr_mode = "host";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb1 {
|
|
|
|
status = "okay";
|
|
|
|
dr_mode = "host";
|
|
|
|
};
|
|
|
|
|
|
|
|
&cppi41dma {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&am33xx_pinmux {
|
|
|
|
usb_pins: pinmux_usb {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
/* USB0 Over-Current (active low) */
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x864, PIN_INPUT | MUX_MODE7) /* gpmc_a9.gpio1_25 */
|
2014-06-11 05:22:00 +07:00
|
|
|
/* USB1 Over-Current (active low) */
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x868, PIN_INPUT | MUX_MODE7) /* gpmc_a10.gpio1_26 */
|
2014-06-11 05:22:00 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* User IO */
|
|
|
|
&leds {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&user_leds_pins>;
|
|
|
|
|
2016-08-01 23:47:03 +07:00
|
|
|
led0 {
|
2014-06-11 05:22:00 +07:00
|
|
|
label = "pepper:user0:blue";
|
|
|
|
gpios = <&gpio1 20 GPIO_ACTIVE_HIGH>;
|
|
|
|
linux,default-trigger = "none";
|
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
|
2016-08-01 23:47:03 +07:00
|
|
|
led1 {
|
2014-06-11 05:22:00 +07:00
|
|
|
label = "pepper:user1:red";
|
|
|
|
gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
|
|
|
|
linux,default-trigger = "none";
|
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&buttons {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&user_buttons_pins>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2016-08-01 23:47:01 +07:00
|
|
|
button0 {
|
2014-06-11 05:22:00 +07:00
|
|
|
label = "home";
|
|
|
|
linux,code = <KEY_HOME>;
|
|
|
|
gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
|
2015-10-21 17:10:06 +07:00
|
|
|
wakeup-source;
|
2014-06-11 05:22:00 +07:00
|
|
|
};
|
|
|
|
|
2016-08-01 23:47:01 +07:00
|
|
|
button1 {
|
2014-06-11 05:22:00 +07:00
|
|
|
label = "menu";
|
|
|
|
linux,code = <KEY_MENU>;
|
|
|
|
gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
|
2015-10-21 17:10:06 +07:00
|
|
|
wakeup-source;
|
2014-06-11 05:22:00 +07:00
|
|
|
};
|
|
|
|
|
2016-08-01 23:47:01 +07:00
|
|
|
buttons2 {
|
2014-06-11 05:22:00 +07:00
|
|
|
label = "power";
|
|
|
|
linux,code = <KEY_POWER>;
|
|
|
|
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
|
2015-10-21 17:10:06 +07:00
|
|
|
wakeup-source;
|
2014-06-11 05:22:00 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&am33xx_pinmux {
|
|
|
|
user_leds_pins: pinmux_user_leds {
|
|
|
|
pinctrl-single,pins = <
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x850, PIN_OUTPUT | MUX_MODE7) /* gpmc_a4.gpio1_20 */
|
|
|
|
AM33XX_IOPAD(0x854, PIN_OUTPUT | MUX_MODE7) /* gpmc_a5.gpio1_21 */
|
2014-06-11 05:22:00 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
user_buttons_pins: pinmux_user_buttons {
|
|
|
|
pinctrl-single,pins = <
|
2015-11-13 11:53:50 +07:00
|
|
|
AM33XX_IOPAD(0x858, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a6.gpio1_22 */
|
|
|
|
AM33XX_IOPAD(0x85C, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a7.gpio1_21 */
|
|
|
|
AM33XX_IOPAD(0x964, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio0_7 */
|
2014-06-11 05:22:00 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|