ad4edd95b5b189a6fab7da88e6e50e97c1bcf418
[platform/adaptation/renesas_rcar/renesas_kernel.git] / arch / arm / boot / dts / omap3-n900.dts
1 /*
2  * Copyright (C) 2013 Pavel Machek <pavel@ucw.cz>
3  * Copyright 2013 Aaro Koskinen <aaro.koskinen@iki.fi>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 (or later) as
7  * published by the Free Software Foundation.
8  */
9
10 /dts-v1/;
11
12 #include "omap34xx.dtsi"
13
14 / {
15         model = "Nokia N900";
16         compatible = "nokia,omap3-n900", "ti,omap3";
17
18         cpus {
19                 cpu@0 {
20                         cpu0-supply = <&vcc>;
21                 };
22         };
23
24         memory {
25                 device_type = "memory";
26                 reg = <0x80000000 0x10000000>; /* 256 MB */
27         };
28
29 };
30
31 &omap3_pmx_core {
32         pinctrl-names = "default";
33
34         i2c1_pins: pinmux_i2c1_pins {
35                 pinctrl-single,pins = <
36                         0x18a (PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c1_scl */
37                         0x18c (PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c1_sda */
38                 >;
39         };
40
41         i2c2_pins: pinmux_i2c2_pins {
42                 pinctrl-single,pins = <
43                         0x18e (PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c2_scl */
44                         0x190 (PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c2_sda */
45                 >;
46         };
47
48         i2c3_pins: pinmux_i2c3_pins {
49                 pinctrl-single,pins = <
50                         0x192 (PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c3_scl */
51                         0x194 (PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c3_sda */
52                 >;
53         };
54 };
55
56 &i2c1 {
57         pinctrl-names = "default";
58         pinctrl-0 = <&i2c1_pins>;
59
60         clock-frequency = <2200000>;
61
62         twl: twl@48 {
63                 reg = <0x48>;
64                 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
65                 interrupt-parent = <&intc>;
66         };
67 };
68
69 #include "twl4030.dtsi"
70 #include "twl4030_omap3.dtsi"
71
72 &twl_gpio {
73         ti,pullups      = <0x0>;
74         ti,pulldowns    = <0x03ff3f>; /* BIT(0..5) | BIT(8..17) */
75 };
76
77 &i2c2 {
78         pinctrl-names = "default";
79         pinctrl-0 = <&i2c2_pins>;
80
81         clock-frequency = <400000>;
82 };
83
84 &i2c3 {
85         pinctrl-names = "default";
86         pinctrl-0 = <&i2c3_pins>;
87
88         clock-frequency = <100000>;
89 };
90
91 &mmc1 {
92         status = "disabled";
93 };
94
95 &mmc2 {
96         status = "disabled";
97 };
98
99 &mmc3 {
100         status = "disabled";
101 };
102
103 &mcspi1 {
104         /*
105          * For some reason, touchscreen is necessary for screen to work at
106          * all on real hw. It works well without it on emulator.
107          *
108          * Also... order in the device tree actually matters here.
109          */
110         tsc2005@0 {
111                 compatible = "tsc2005";
112                 spi-max-frequency = <6000000>;
113                 reg = <0>;
114         };
115         mipid@2 {
116                 compatible = "acx565akm";
117                 spi-max-frequency = <6000000>;
118                 reg = <2>;
119         };
120 };
121
122 &usb_otg_hs {
123         interface-type = <0>;
124         usb-phy = <&usb2_phy>;
125         phys = <&usb2_phy>;
126         phy-names = "usb2-phy";
127         mode = <2>;
128         power = <50>;
129 };