2019-06-04 10:11:33 +02:00
// SPDX-License-Identifier: GPL-2.0-only
2015-05-20 09:23:43 -07:00
#include <dt-bindings/input/input.h>
/ {
2017-05-22 09:13:45 -07:00
chosen {
stdout-path = &uart1;
};
2015-05-20 09:23:43 -07:00
cpus {
cpu@0 {
cpu0-supply = <&vcc>;
};
};
2016-10-21 09:12:31 -05:00
memory@80000000 {
2016-08-31 12:35:16 +02:00
device_type = "memory";
2016-10-21 09:12:31 -05:00
reg = <0x80000000 0>;
2016-08-31 12:35:16 +02:00
};
2015-05-20 09:23:43 -07:00
leds {
compatible = "gpio-leds";
user0 {
label = "user0";
gpios = <&twl_gpio 18 GPIO_ACTIVE_LOW>; /* LEDA */
linux,default-trigger = "none";
};
};
2018-05-04 16:00:10 -05:00
/* fixed 26MHz oscillator */
hfclk_26m: oscillator {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <26000000>;
};
2015-05-20 09:23:43 -07:00
};
2019-11-08 08:40:25 -06:00
/* The Torpedo doesn't route the USB host pins */
&usbhshost {
status = "disabled";
};
2015-05-20 09:23:43 -07:00
&gpmc {
2016-02-23 18:37:25 +02:00
ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */
2015-05-20 09:23:43 -07:00
nand@0,0 {
2016-02-23 18:37:25 +02:00
compatible = "ti,omap2-nand";
2015-05-20 09:23:43 -07:00
reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
2016-02-23 18:37:25 +02:00
interrupt-parent = <&gpmc>;
interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
<1 IRQ_TYPE_NONE>; /* termcount */
linux,mtd-name = "micron,mt29f4g16abbda3w";
2015-05-20 09:23:43 -07:00
nand-bus-width = <16>;
ti,nand-ecc-opt = "bch8";
2016-08-13 10:13:04 -05:00
rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
2015-05-20 09:23:43 -07:00
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>;
gpmc,device-width = <2>;
#address-cells = <1>;
#size-cells = <1>;
};
};
&i2c1 {
2018-01-25 14:10:37 -06:00
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
2015-05-20 09:23:43 -07:00
clock-frequency = <2600000>;
twl: twl@48 {
reg = <0x48>;
interrupts = <7>; /* SYS_NIRQ cascaded to intc */
interrupt-parent = <&intc>;
2018-05-04 16:00:10 -05:00
clocks = <&hfclk_26m>;
clock-names = "fck";
2015-10-23 07:20:23 -05:00
twl_audio: audio {
compatible = "ti,twl4030-audio";
codec {
};
};
2015-05-20 09:23:43 -07:00
};
};
2015-10-23 07:23:14 -05:00
&i2c2 {
2018-02-15 08:25:55 -06:00
pinctrl-names = "default";
pinctrl-0 = <&i2c2_pins>;
2015-10-23 07:23:14 -05:00
clock-frequency = <400000>;
};
&i2c3 {
2018-02-15 08:25:55 -06:00
pinctrl-names = "default";
pinctrl-0 = <&i2c3_pins>;
2015-10-23 07:23:14 -05:00
clock-frequency = <400000>;
2016-01-09 11:01:11 -06:00
at24@50 {
2017-03-06 12:56:55 -06:00
compatible = "atmel,24c64";
2016-01-09 11:01:11 -06:00
readonly;
reg = <0x50>;
};
2015-10-23 07:23:14 -05:00
};
2015-05-20 09:23:43 -07:00
&omap3_pmx_core {
2015-10-23 07:20:23 -05:00
mcbsp2_pins: pinmux_mcbsp2_pins {
pinctrl-single,pins = <
OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0) /* mcbsp2_fsx */
OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0) /* mcbsp2_clkx */
OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0) /* mcbsp2_dr */
OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0) /* mcbsp2_dx */
>;
};
2015-10-26 07:27:37 -05:00
uart2_pins: pinmux_uart2_pins {
pinctrl-single,pins = <
OMAP3_CORE1_IOPAD(0x2174, PIN_INPUT | MUX_MODE0) /* uart2_cts.uart2_cts */
OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT | MUX_MODE0) /* uart2_rts .uart2_rts*/
OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0) /* uart2_rx.uart2_rx */
OMAP3_CORE1_IOPAD(0x2198, PIN_OUTPUT | MUX_MODE4) /* GPIO_162,BT_EN */
>;
};
2016-01-11 22:57:58 -06:00
mcspi1_pins: pinmux_mcspi1_pins {
pinctrl-single,pins = <
OMAP3_CORE1_IOPAD(0x21c8, PIN_INPUT | MUX_MODE0) /* mcspi1_clk.mcspi1_clk */
OMAP3_CORE1_IOPAD(0x21ca, PIN_OUTPUT | MUX_MODE0) /* mcspi1_simo.mcspi1_simo */
OMAP3_CORE1_IOPAD(0x21cc, PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi1_somi.mcspi1_somi */
OMAP3_CORE1_IOPAD(0x21ce, PIN_OUTPUT | MUX_MODE0) /* mcspi1_cs0.mcspi1_cs0 */
>;
};
2016-01-17 17:53:48 -06:00
hsusb_otg_pins: pinmux_hsusb_otg_pins {
pinctrl-single,pins = <
OMAP3_CORE1_IOPAD(0x21a2, PIN_INPUT | MUX_MODE0) /* hsusb0_clk.hsusb0_clk */
OMAP3_CORE1_IOPAD(0x21a4, PIN_OUTPUT | MUX_MODE0) /* hsusb0_stp.hsusb0_stp */
OMAP3_CORE1_IOPAD(0x21a6, PIN_INPUT | MUX_MODE0) /* hsusb0_dir.hsusb0_dir */
OMAP3_CORE1_IOPAD(0x21a8, PIN_INPUT | MUX_MODE0) /* hsusb0_nxt.hsusb0_nxt */
OMAP3_CORE1_IOPAD(0x21aa, PIN_INPUT | MUX_MODE0) /* hsusb0_data0.hsusb0_data0 */
OMAP3_CORE1_IOPAD(0x21ac, PIN_INPUT | MUX_MODE0) /* hsusb0_data1.hsusb0_data1 */
OMAP3_CORE1_IOPAD(0x21ae, PIN_INPUT | MUX_MODE0) /* hsusb0_data2.hsusb0_data2 */
OMAP3_CORE1_IOPAD(0x21b0, PIN_INPUT | MUX_MODE0) /* hsusb0_data3.hsusb0_data3 */
OMAP3_CORE1_IOPAD(0x21b2, PIN_INPUT | MUX_MODE0) /* hsusb0_data4.hsusb0_data4 */
OMAP3_CORE1_IOPAD(0x21b4, PIN_INPUT | MUX_MODE0) /* hsusb0_data5.hsusb0_data5 */
OMAP3_CORE1_IOPAD(0x21b6, PIN_INPUT | MUX_MODE0) /* hsusb0_data6.hsusb0_data6 */
OMAP3_CORE1_IOPAD(0x21b8, PIN_INPUT | MUX_MODE0) /* hsusb0_data7.hsusb0_data7 */
>;
};
2018-01-25 14:10:37 -06:00
i2c1_pins: pinmux_i2c1_pins {
pinctrl-single,pins = <
OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0) /* i2c1_scl.i2c1_scl */
OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0) /* i2c1_sda.i2c1_sda */
>;
};
2018-02-15 08:25:55 -06:00
i2c2_pins: pinmux_i2c2_pins {
pinctrl-single,pins = <
OMAP3_CORE1_IOPAD(0x21be, PIN_INPUT | MUX_MODE0) /* i2c2_scl */
OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT | MUX_MODE0) /* i2c2_sda */
>;
};
i2c3_pins: pinmux_i2c3_pins {
pinctrl-single,pins = <
OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT | MUX_MODE0) /* i2c3_scl */
OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT | MUX_MODE0) /* i2c3_sda */
>;
};
2015-10-26 07:27:37 -05:00
};
&uart2 {
interrupts-extended = <&intc 73 &omap3_pmx_core OMAP3_UART2_RX>;
pinctrl-names = "default";
pinctrl-0 = <&uart2_pins>;
2015-05-20 09:23:43 -07:00
};
2016-01-11 22:57:58 -06:00
&mcspi1 {
pinctrl-names = "default";
pinctrl-0 = <&mcspi1_pins>;
};
2015-05-20 09:23:43 -07:00
#include "twl4030.dtsi"
#include "twl4030_omap3.dtsi"
&twl {
twl_power: power {
compatible = "ti,twl4030-power-idle-osc-off", "ti,twl4030-power-idle";
ti,use_poweroff;
};
};
&twl_gpio {
ti,use-leds;
};
2019-08-16 17:58:12 -05:00
&twl_keypad {
status = "disabled";
};