0001 // SPDX-License-Identifier: GPL-2.0-only
0002
0003 #include <dt-bindings/input/input.h>
0004
0005 / {
0006 chosen {
0007 stdout-path = &uart1;
0008 };
0009
0010 cpus {
0011 cpu@0 {
0012 cpu0-supply = <&vcc>;
0013 };
0014 };
0015
0016 memory@80000000 {
0017 device_type = "memory";
0018 reg = <0x80000000 0>;
0019 };
0020
0021 leds {
0022 compatible = "gpio-leds";
0023 user0 {
0024 label = "user0";
0025 gpios = <&twl_gpio 18 GPIO_ACTIVE_LOW>; /* LEDA */
0026 linux,default-trigger = "none";
0027 };
0028 };
0029
0030 /* fixed 26MHz oscillator */
0031 hfclk_26m: oscillator {
0032 #clock-cells = <0>;
0033 compatible = "fixed-clock";
0034 clock-frequency = <26000000>;
0035 };
0036 };
0037
0038 /* The Torpedo doesn't route the USB host pins */
0039 &usbhshost {
0040 status = "disabled";
0041 };
0042
0043 &gpmc {
0044 ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */
0045
0046 nand@0,0 {
0047 compatible = "ti,omap2-nand";
0048 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
0049 interrupt-parent = <&gpmc>;
0050 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
0051 <1 IRQ_TYPE_NONE>; /* termcount */
0052 linux,mtd-name = "micron,mt29f4g16abbda3w";
0053 nand-bus-width = <16>;
0054 ti,nand-ecc-opt = "bch8";
0055 rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
0056 gpmc,sync-clk-ps = <0>;
0057 gpmc,cs-on-ns = <0>;
0058 gpmc,cs-rd-off-ns = <44>;
0059 gpmc,cs-wr-off-ns = <44>;
0060 gpmc,adv-on-ns = <6>;
0061 gpmc,adv-rd-off-ns = <34>;
0062 gpmc,adv-wr-off-ns = <44>;
0063 gpmc,we-off-ns = <40>;
0064 gpmc,oe-off-ns = <54>;
0065 gpmc,access-ns = <64>;
0066 gpmc,rd-cycle-ns = <82>;
0067 gpmc,wr-cycle-ns = <82>;
0068 gpmc,wr-access-ns = <40>;
0069 gpmc,wr-data-mux-bus-ns = <0>;
0070 gpmc,device-width = <2>;
0071 #address-cells = <1>;
0072 #size-cells = <1>;
0073 };
0074 };
0075
0076 &i2c1 {
0077 pinctrl-names = "default";
0078 pinctrl-0 = <&i2c1_pins>;
0079 clock-frequency = <2600000>;
0080
0081 twl: twl@48 {
0082 reg = <0x48>;
0083 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
0084 interrupt-parent = <&intc>;
0085 clocks = <&hfclk_26m>;
0086 clock-names = "fck";
0087
0088 twl_audio: audio {
0089 compatible = "ti,twl4030-audio";
0090 codec {
0091 };
0092 };
0093 };
0094 };
0095
0096 &i2c2 {
0097 pinctrl-names = "default";
0098 pinctrl-0 = <&i2c2_pins>;
0099 clock-frequency = <400000>;
0100 };
0101
0102 &i2c3 {
0103 pinctrl-names = "default";
0104 pinctrl-0 = <&i2c3_pins>;
0105 clock-frequency = <400000>;
0106 at24@50 {
0107 compatible = "atmel,24c64";
0108 readonly;
0109 reg = <0x50>;
0110 };
0111 };
0112
0113 &omap3_pmx_core {
0114 mcbsp2_pins: pinmux_mcbsp2_pins {
0115 pinctrl-single,pins = <
0116 OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0) /* mcbsp2_fsx */
0117 OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0) /* mcbsp2_clkx */
0118 OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0) /* mcbsp2_dr */
0119 OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0) /* mcbsp2_dx */
0120 >;
0121 };
0122 uart2_pins: pinmux_uart2_pins {
0123 pinctrl-single,pins = <
0124 OMAP3_CORE1_IOPAD(0x2174, PIN_INPUT | MUX_MODE0) /* uart2_cts.uart2_cts */
0125 OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT | MUX_MODE0) /* uart2_rts .uart2_rts*/
0126 OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
0127 OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0) /* uart2_rx.uart2_rx */
0128 OMAP3_CORE1_IOPAD(0x2198, PIN_OUTPUT | MUX_MODE4) /* GPIO_162,BT_EN */
0129 >;
0130 };
0131 mcspi1_pins: pinmux_mcspi1_pins {
0132 pinctrl-single,pins = <
0133 OMAP3_CORE1_IOPAD(0x21c8, PIN_INPUT | MUX_MODE0) /* mcspi1_clk.mcspi1_clk */
0134 OMAP3_CORE1_IOPAD(0x21ca, PIN_OUTPUT | MUX_MODE0) /* mcspi1_simo.mcspi1_simo */
0135 OMAP3_CORE1_IOPAD(0x21cc, PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi1_somi.mcspi1_somi */
0136 OMAP3_CORE1_IOPAD(0x21ce, PIN_OUTPUT | MUX_MODE0) /* mcspi1_cs0.mcspi1_cs0 */
0137 >;
0138 };
0139 hsusb_otg_pins: pinmux_hsusb_otg_pins {
0140 pinctrl-single,pins = <
0141 OMAP3_CORE1_IOPAD(0x21a2, PIN_INPUT | MUX_MODE0) /* hsusb0_clk.hsusb0_clk */
0142 OMAP3_CORE1_IOPAD(0x21a4, PIN_OUTPUT | MUX_MODE0) /* hsusb0_stp.hsusb0_stp */
0143 OMAP3_CORE1_IOPAD(0x21a6, PIN_INPUT | MUX_MODE0) /* hsusb0_dir.hsusb0_dir */
0144 OMAP3_CORE1_IOPAD(0x21a8, PIN_INPUT | MUX_MODE0) /* hsusb0_nxt.hsusb0_nxt */
0145
0146 OMAP3_CORE1_IOPAD(0x21aa, PIN_INPUT | MUX_MODE0) /* hsusb0_data0.hsusb0_data0 */
0147 OMAP3_CORE1_IOPAD(0x21ac, PIN_INPUT | MUX_MODE0) /* hsusb0_data1.hsusb0_data1 */
0148 OMAP3_CORE1_IOPAD(0x21ae, PIN_INPUT | MUX_MODE0) /* hsusb0_data2.hsusb0_data2 */
0149 OMAP3_CORE1_IOPAD(0x21b0, PIN_INPUT | MUX_MODE0) /* hsusb0_data3.hsusb0_data3 */
0150 OMAP3_CORE1_IOPAD(0x21b2, PIN_INPUT | MUX_MODE0) /* hsusb0_data4.hsusb0_data4 */
0151 OMAP3_CORE1_IOPAD(0x21b4, PIN_INPUT | MUX_MODE0) /* hsusb0_data5.hsusb0_data5 */
0152 OMAP3_CORE1_IOPAD(0x21b6, PIN_INPUT | MUX_MODE0) /* hsusb0_data6.hsusb0_data6 */
0153 OMAP3_CORE1_IOPAD(0x21b8, PIN_INPUT | MUX_MODE0) /* hsusb0_data7.hsusb0_data7 */
0154 >;
0155 };
0156 i2c1_pins: pinmux_i2c1_pins {
0157 pinctrl-single,pins = <
0158 OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0) /* i2c1_scl.i2c1_scl */
0159 OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0) /* i2c1_sda.i2c1_sda */
0160 >;
0161 };
0162 i2c2_pins: pinmux_i2c2_pins {
0163 pinctrl-single,pins = <
0164 OMAP3_CORE1_IOPAD(0x21be, PIN_INPUT | MUX_MODE0) /* i2c2_scl */
0165 OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT | MUX_MODE0) /* i2c2_sda */
0166 >;
0167 };
0168 i2c3_pins: pinmux_i2c3_pins {
0169 pinctrl-single,pins = <
0170 OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT | MUX_MODE0) /* i2c3_scl */
0171 OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT | MUX_MODE0) /* i2c3_sda */
0172 >;
0173 };
0174 };
0175
0176 &uart2 {
0177 interrupts-extended = <&intc 73 &omap3_pmx_core OMAP3_UART2_RX>;
0178 pinctrl-names = "default";
0179 pinctrl-0 = <&uart2_pins>;
0180 };
0181
0182 &mcspi1 {
0183 pinctrl-names = "default";
0184 pinctrl-0 = <&mcspi1_pins>;
0185 };
0186
0187 #include "twl4030.dtsi"
0188 #include "twl4030_omap3.dtsi"
0189
0190 &twl {
0191 twl_power: power {
0192 compatible = "ti,twl4030-power-idle-osc-off", "ti,twl4030-power-idle";
0193 ti,use_poweroff;
0194 };
0195 };
0196
0197 &twl_gpio {
0198 ti,use-leds;
0199 };
0200
0201 &twl_keypad {
0202 status = "disabled";
0203 };