2012-12-19 20:33:08 +07:00
|
|
|
/*
|
2013-11-27 06:03:37 +07:00
|
|
|
* Common device tree for IGEP boards based on AM/DM37x
|
2012-12-19 20:33:08 +07:00
|
|
|
*
|
2015-10-14 17:00:30 +07:00
|
|
|
* Copyright (C) 2012 Javier Martinez Canillas <javier@osg.samsung.com>
|
2012-12-19 20:33:08 +07:00
|
|
|
* Copyright (C) 2012 Enric Balletbo i Serra <eballetbo@gmail.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-11-27 06:03:37 +07:00
|
|
|
#include "omap36xx.dtsi"
|
2012-12-19 20:33:08 +07:00
|
|
|
|
|
|
|
/ {
|
2016-08-31 17:35:27 +07:00
|
|
|
memory@80000000 {
|
2012-12-19 20:33:08 +07:00
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x80000000 0x20000000>; /* 512 MB */
|
|
|
|
};
|
|
|
|
|
2016-01-16 17:51:10 +07:00
|
|
|
chosen {
|
|
|
|
stdout-path = &uart3;
|
|
|
|
};
|
|
|
|
|
2012-12-19 20:33:08 +07:00
|
|
|
sound {
|
|
|
|
compatible = "ti,omap-twl4030";
|
|
|
|
ti,model = "igep2";
|
|
|
|
ti,mcbsp = <&mcbsp2>;
|
|
|
|
};
|
2013-11-27 06:03:37 +07:00
|
|
|
|
|
|
|
vdd33: regulator-vdd33 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "vdd33";
|
|
|
|
regulator-always-on;
|
|
|
|
};
|
|
|
|
|
2012-12-19 20:33:08 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
&omap3_pmx_core {
|
2012-12-12 22:33:42 +07:00
|
|
|
uart1_pins: pinmux_uart1_pins {
|
|
|
|
pinctrl-single,pins = <
|
2015-10-14 00:31:47 +07: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 */
|
2012-12-12 22:33:42 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2012-12-19 20:33:08 +07:00
|
|
|
uart3_pins: pinmux_uart3_pins {
|
|
|
|
pinctrl-single,pins = <
|
2015-10-14 00:31:47 +07: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 */
|
2012-12-19 20:33:08 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2013-09-10 22:35:23 +07:00
|
|
|
mcbsp2_pins: pinmux_mcbsp2_pins {
|
|
|
|
pinctrl-single,pins = <
|
2015-10-14 00:31:47 +07:00
|
|
|
OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0) /* mcbsp2_fsx.mcbsp2_fsx */
|
|
|
|
OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0) /* mcbsp2_clkx.mcbsp2_clkx */
|
|
|
|
OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0) /* mcbsp2_dr.mcbsp2.dr */
|
|
|
|
OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0) /* mcbsp2_dx.mcbsp2_dx */
|
2013-09-10 22:35:23 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2012-12-19 20:33:08 +07:00
|
|
|
mmc1_pins: pinmux_mmc1_pins {
|
|
|
|
pinctrl-single,pins = <
|
2015-10-14 00:31:47 +07: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 */
|
2012-12-19 20:33:08 +07:00
|
|
|
>;
|
|
|
|
};
|
2013-04-17 23:32:09 +07:00
|
|
|
|
2013-11-27 06:03:37 +07:00
|
|
|
mmc2_pins: pinmux_mmc2_pins {
|
|
|
|
pinctrl-single,pins = <
|
2015-10-14 00:31:47 +07:00
|
|
|
OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk.sdmmc2_clk */
|
|
|
|
OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd.sdmmc2_cmd */
|
|
|
|
OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0.sdmmc2_dat0 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1.sdmmc2_dat1 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2.sdmmc2_dat2 */
|
|
|
|
OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3.sdmmc2_dat3 */
|
2013-11-27 06:03:37 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2013-11-27 06:03:37 +07:00
|
|
|
i2c1_pins: pinmux_i2c1_pins {
|
|
|
|
pinctrl-single,pins = <
|
2015-10-14 00:31:47 +07:00
|
|
|
OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0) /* i2c1_scl.i2c1_scl */
|
|
|
|
OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0) /* i2c1_sda.i2c1_sda */
|
2013-11-27 06:03:37 +07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c3_pins: pinmux_i2c3_pins {
|
|
|
|
pinctrl-single,pins = <
|
2015-10-14 00:31:47 +07:00
|
|
|
OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT | MUX_MODE0) /* i2c3_scl.i2c3_scl */
|
|
|
|
OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT | MUX_MODE0) /* i2c3_sda.i2c3_sda */
|
2013-11-27 06:03:37 +07:00
|
|
|
>;
|
|
|
|
};
|
2012-12-19 20:33:08 +07:00
|
|
|
};
|
|
|
|
|
2014-11-06 19:01:42 +07:00
|
|
|
&gpmc {
|
|
|
|
nand@0,0 {
|
2016-02-23 23:37:25 +07:00
|
|
|
compatible = "ti,omap2-nand";
|
|
|
|
reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
|
|
|
|
interrupt-parent = <&gpmc>;
|
|
|
|
interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
|
|
|
|
<1 IRQ_TYPE_NONE>; /* termcount */
|
2014-11-06 19:01:42 +07:00
|
|
|
linux,mtd-name= "micron,mt29c4g96maz";
|
|
|
|
nand-bus-width = <16>;
|
|
|
|
gpmc,device-width = <2>;
|
|
|
|
ti,nand-ecc-opt = "bch8";
|
|
|
|
|
|
|
|
gpmc,sync-clk-ps = <0>;
|
|
|
|
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,we-off-ns = <40>;
|
|
|
|
gpmc,oe-off-ns = <54>;
|
|
|
|
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>;
|
|
|
|
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "SPL";
|
|
|
|
reg = <0 0x100000>;
|
|
|
|
};
|
|
|
|
partition@80000 {
|
|
|
|
label = "U-Boot";
|
|
|
|
reg = <0x100000 0x180000>;
|
|
|
|
};
|
|
|
|
partition@1c0000 {
|
|
|
|
label = "Environment";
|
|
|
|
reg = <0x280000 0x100000>;
|
|
|
|
};
|
|
|
|
partition@280000 {
|
|
|
|
label = "Kernel";
|
|
|
|
reg = <0x380000 0x300000>;
|
|
|
|
};
|
|
|
|
partition@780000 {
|
|
|
|
label = "Filesystem";
|
|
|
|
reg = <0x680000 0x1f980000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2012-12-19 20:33:08 +07:00
|
|
|
&i2c1 {
|
2013-11-27 06:03:37 +07:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&i2c1_pins>;
|
2012-12-19 20:33:08 +07:00
|
|
|
clock-frequency = <2600000>;
|
|
|
|
|
|
|
|
twl: twl@48 {
|
|
|
|
reg = <0x48>;
|
|
|
|
interrupts = <7>; /* SYS_NIRQ cascaded to intc */
|
|
|
|
interrupt-parent = <&intc>;
|
|
|
|
|
|
|
|
twl_audio: audio {
|
|
|
|
compatible = "ti,twl4030-audio";
|
|
|
|
codec {
|
2015-10-13 03:46:39 +07:00
|
|
|
};
|
2012-12-19 20:33:08 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2013-05-31 19:32:55 +07:00
|
|
|
#include "twl4030.dtsi"
|
2013-06-01 04:09:34 +07:00
|
|
|
#include "twl4030_omap3.dtsi"
|
2012-12-19 20:33:08 +07:00
|
|
|
|
2013-11-27 06:03:37 +07:00
|
|
|
&i2c3 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&i2c3_pins>;
|
|
|
|
};
|
|
|
|
|
2013-09-10 22:35:23 +07:00
|
|
|
&mcbsp2 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&mcbsp2_pins>;
|
2014-01-24 15:19:05 +07:00
|
|
|
status = "okay";
|
2013-09-10 22:35:23 +07:00
|
|
|
};
|
|
|
|
|
2012-12-19 20:33:08 +07:00
|
|
|
&mmc1 {
|
2015-10-13 03:46:39 +07:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&mmc1_pins>;
|
|
|
|
vmmc-supply = <&vmmc1>;
|
|
|
|
vmmc_aux-supply = <&vsim>;
|
|
|
|
bus-width = <4>;
|
2016-05-07 04:02:33 +07:00
|
|
|
cd-gpios = <&twl_gpio 0 GPIO_ACTIVE_LOW>;
|
2012-12-19 20:33:08 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
&mmc3 {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2012-12-12 22:33:42 +07:00
|
|
|
&uart1 {
|
2015-10-13 03:46:39 +07:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart1_pins>;
|
2012-12-12 22:33:42 +07:00
|
|
|
};
|
|
|
|
|
2012-12-19 20:33:08 +07:00
|
|
|
&uart3 {
|
2015-10-13 03:46:39 +07:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart3_pins>;
|
2012-12-19 20:33:08 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
&twl_gpio {
|
|
|
|
ti,use-leds;
|
|
|
|
};
|
2013-10-07 22:12:23 +07:00
|
|
|
|
|
|
|
&usb_otg_hs {
|
|
|
|
interface-type = <0>;
|
|
|
|
usb-phy = <&usb2_phy>;
|
|
|
|
phys = <&usb2_phy>;
|
|
|
|
phy-names = "usb2-phy";
|
|
|
|
mode = <3>;
|
|
|
|
power = <50>;
|
|
|
|
};
|