Merge tag 'hsi-for-4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / logicpd-torpedo-som.dtsi
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License version 2 as
4  * published by the Free Software Foundation.
5  */
6
7 #include <dt-bindings/input/input.h>
8
9 / {
10         chosen {
11                 stdout-path = &uart1;
12         };
13
14         cpus {
15                 cpu@0 {
16                         cpu0-supply = <&vcc>;
17                 };
18         };
19
20         memory@80000000 {
21                 device_type = "memory";
22                 reg = <0x80000000 0>;
23         };
24
25         leds {
26                 compatible = "gpio-leds";
27                 user0 {
28                         label = "user0";
29                         gpios = <&twl_gpio 18 GPIO_ACTIVE_LOW>; /* LEDA */
30                         linux,default-trigger = "none";
31                 };
32         };
33 };
34
35 &gpmc {
36         ranges = <0 0 0x30000000 0x1000000>;    /* CS0: 16MB for NAND */
37
38         nand@0,0 {
39                 compatible = "ti,omap2-nand";
40                 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
41                 interrupt-parent = <&gpmc>;
42                 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
43                              <1 IRQ_TYPE_NONE>; /* termcount */
44                 linux,mtd-name = "micron,mt29f4g16abbda3w";
45                 nand-bus-width = <16>;
46                 ti,nand-ecc-opt = "bch8";
47                 rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
48                 gpmc,sync-clk-ps = <0>;
49                 gpmc,cs-on-ns = <0>;
50                 gpmc,cs-rd-off-ns = <44>;
51                 gpmc,cs-wr-off-ns = <44>;
52                 gpmc,adv-on-ns = <6>;
53                 gpmc,adv-rd-off-ns = <34>;
54                 gpmc,adv-wr-off-ns = <44>;
55                 gpmc,we-off-ns = <40>;
56                 gpmc,oe-off-ns = <54>;
57                 gpmc,access-ns = <64>;
58                 gpmc,rd-cycle-ns = <82>;
59                 gpmc,wr-cycle-ns = <82>;
60                 gpmc,wr-access-ns = <40>;
61                 gpmc,wr-data-mux-bus-ns = <0>;
62                 gpmc,device-width = <2>;
63                 #address-cells = <1>;
64                 #size-cells = <1>;
65         };
66 };
67
68 &i2c1 {
69         pinctrl-names = "default";
70         pinctrl-0 = <&i2c1_pins>;
71         clock-frequency = <2600000>;
72
73         twl: twl@48 {
74                 reg = <0x48>;
75                 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
76                 interrupt-parent = <&intc>;
77                 twl_audio: audio {
78                         compatible = "ti,twl4030-audio";
79                         codec {
80                         };
81                 };
82         };
83 };
84
85 &i2c2 {
86         clock-frequency = <400000>;
87 };
88
89 &i2c3 {
90         clock-frequency = <400000>;
91         at24@50 {
92                 compatible = "atmel,24c64";
93                 readonly;
94                 reg = <0x50>;
95         };
96 };
97
98 &omap3_pmx_core {
99         mcbsp2_pins: pinmux_mcbsp2_pins {
100                 pinctrl-single,pins = <
101                         OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0)        /* mcbsp2_fsx */
102                         OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0)        /* mcbsp2_clkx */
103                         OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0)        /* mcbsp2_dr */
104                         OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0)       /* mcbsp2_dx */
105                 >;
106         };
107         uart2_pins: pinmux_uart2_pins {
108                 pinctrl-single,pins = <
109                         OMAP3_CORE1_IOPAD(0x2174, PIN_INPUT | MUX_MODE0)        /* uart2_cts.uart2_cts */
110                         OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT | MUX_MODE0)       /* uart2_rts .uart2_rts*/
111                         OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0)       /* uart2_tx.uart2_tx */
112                         OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0)        /* uart2_rx.uart2_rx */
113                         OMAP3_CORE1_IOPAD(0x2198, PIN_OUTPUT | MUX_MODE4)       /* GPIO_162,BT_EN */
114                 >;
115         };
116         mcspi1_pins: pinmux_mcspi1_pins {
117                 pinctrl-single,pins = <
118                         OMAP3_CORE1_IOPAD(0x21c8, PIN_INPUT | MUX_MODE0)        /* mcspi1_clk.mcspi1_clk */
119                         OMAP3_CORE1_IOPAD(0x21ca, PIN_OUTPUT | MUX_MODE0)       /* mcspi1_simo.mcspi1_simo */
120                         OMAP3_CORE1_IOPAD(0x21cc, PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi1_somi.mcspi1_somi */
121                         OMAP3_CORE1_IOPAD(0x21ce, PIN_OUTPUT | MUX_MODE0)       /* mcspi1_cs0.mcspi1_cs0 */
122                 >;
123         };
124         hsusb_otg_pins: pinmux_hsusb_otg_pins {
125                 pinctrl-single,pins = <
126                         OMAP3_CORE1_IOPAD(0x21a2, PIN_INPUT | MUX_MODE0)        /* hsusb0_clk.hsusb0_clk */
127                         OMAP3_CORE1_IOPAD(0x21a4, PIN_OUTPUT | MUX_MODE0)       /* hsusb0_stp.hsusb0_stp */
128                         OMAP3_CORE1_IOPAD(0x21a6, PIN_INPUT | MUX_MODE0)        /* hsusb0_dir.hsusb0_dir */
129                         OMAP3_CORE1_IOPAD(0x21a8, PIN_INPUT | MUX_MODE0)        /* hsusb0_nxt.hsusb0_nxt */
130
131                         OMAP3_CORE1_IOPAD(0x21aa, PIN_INPUT | MUX_MODE0)        /* hsusb0_data0.hsusb0_data0 */
132                         OMAP3_CORE1_IOPAD(0x21ac, PIN_INPUT | MUX_MODE0)        /* hsusb0_data1.hsusb0_data1 */
133                         OMAP3_CORE1_IOPAD(0x21ae, PIN_INPUT | MUX_MODE0)        /* hsusb0_data2.hsusb0_data2 */
134                         OMAP3_CORE1_IOPAD(0x21b0, PIN_INPUT | MUX_MODE0)        /* hsusb0_data3.hsusb0_data3 */
135                         OMAP3_CORE1_IOPAD(0x21b2, PIN_INPUT | MUX_MODE0)        /* hsusb0_data4.hsusb0_data4 */
136                         OMAP3_CORE1_IOPAD(0x21b4, PIN_INPUT | MUX_MODE0)        /* hsusb0_data5.hsusb0_data5 */
137                         OMAP3_CORE1_IOPAD(0x21b6, PIN_INPUT | MUX_MODE0)        /* hsusb0_data6.hsusb0_data6 */
138                         OMAP3_CORE1_IOPAD(0x21b8, PIN_INPUT | MUX_MODE0)        /* hsusb0_data7.hsusb0_data7 */
139                 >;
140         };
141         i2c1_pins: pinmux_i2c1_pins {
142                 pinctrl-single,pins = <
143                         OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0)        /* i2c1_scl.i2c1_scl */
144                         OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0)        /* i2c1_sda.i2c1_sda */
145                 >;
146         };
147 };
148
149 &uart2 {
150         interrupts-extended = <&intc 73 &omap3_pmx_core OMAP3_UART2_RX>;
151         pinctrl-names = "default";
152         pinctrl-0 = <&uart2_pins>;
153 };
154
155 &mcspi1 {
156         pinctrl-names = "default";
157         pinctrl-0 = <&mcspi1_pins>;
158 };
159
160 #include "twl4030.dtsi"
161 #include "twl4030_omap3.dtsi"
162
163 &twl {
164         twl_power: power {
165                 compatible = "ti,twl4030-power-idle-osc-off", "ti,twl4030-power-idle";
166                 ti,use_poweroff;
167         };
168 };
169
170 &twl_gpio {
171         ti,use-leds;
172 };