Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 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 | |
Sebastian Reichel | ac888a8 | 2013-10-23 00:49:30 +0200 | [diff] [blame] | 31 | &omap3_pmx_core { |
| 32 | pinctrl-names = "default"; |
| 33 | |
Sebastian Reichel | 7a89eec | 2013-10-23 00:49:32 +0200 | [diff] [blame^] | 34 | uart2_pins: pinmux_uart2_pins { |
| 35 | pinctrl-single,pins = < |
| 36 | 0x14a (PIN_INPUT | MUX_MODE0) /* uart2_rx */ |
| 37 | 0x148 (PIN_OUTPUT | MUX_MODE0) /* uart2_tx */ |
| 38 | >; |
| 39 | }; |
| 40 | |
| 41 | uart3_pins: pinmux_uart3_pins { |
| 42 | pinctrl-single,pins = < |
| 43 | 0x16e (PIN_INPUT | MUX_MODE0) /* uart3_rx */ |
| 44 | 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx */ |
| 45 | >; |
| 46 | }; |
| 47 | |
Sebastian Reichel | ac888a8 | 2013-10-23 00:49:30 +0200 | [diff] [blame] | 48 | i2c1_pins: pinmux_i2c1_pins { |
| 49 | pinctrl-single,pins = < |
| 50 | 0x18a (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */ |
| 51 | 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */ |
| 52 | >; |
| 53 | }; |
| 54 | |
| 55 | i2c2_pins: pinmux_i2c2_pins { |
| 56 | pinctrl-single,pins = < |
| 57 | 0x18e (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */ |
| 58 | 0x190 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */ |
| 59 | >; |
| 60 | }; |
| 61 | |
| 62 | i2c3_pins: pinmux_i2c3_pins { |
| 63 | pinctrl-single,pins = < |
| 64 | 0x192 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */ |
| 65 | 0x194 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */ |
| 66 | >; |
| 67 | }; |
| 68 | }; |
| 69 | |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 70 | &i2c1 { |
Sebastian Reichel | ac888a8 | 2013-10-23 00:49:30 +0200 | [diff] [blame] | 71 | pinctrl-names = "default"; |
| 72 | pinctrl-0 = <&i2c1_pins>; |
| 73 | |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 74 | clock-frequency = <2200000>; |
| 75 | |
| 76 | twl: twl@48 { |
| 77 | reg = <0x48>; |
| 78 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ |
| 79 | interrupt-parent = <&intc>; |
| 80 | }; |
| 81 | }; |
| 82 | |
| 83 | #include "twl4030.dtsi" |
Sebastian Reichel | ac888a8 | 2013-10-23 00:49:30 +0200 | [diff] [blame] | 84 | #include "twl4030_omap3.dtsi" |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 85 | |
| 86 | &twl_gpio { |
| 87 | ti,pullups = <0x0>; |
| 88 | ti,pulldowns = <0x03ff3f>; /* BIT(0..5) | BIT(8..17) */ |
| 89 | }; |
| 90 | |
| 91 | &i2c2 { |
Sebastian Reichel | ac888a8 | 2013-10-23 00:49:30 +0200 | [diff] [blame] | 92 | pinctrl-names = "default"; |
| 93 | pinctrl-0 = <&i2c2_pins>; |
| 94 | |
Sebastian Reichel | 48fc986 | 2013-10-23 00:49:31 +0200 | [diff] [blame] | 95 | clock-frequency = <100000>; |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 96 | }; |
| 97 | |
| 98 | &i2c3 { |
Sebastian Reichel | ac888a8 | 2013-10-23 00:49:30 +0200 | [diff] [blame] | 99 | pinctrl-names = "default"; |
| 100 | pinctrl-0 = <&i2c3_pins>; |
| 101 | |
Sebastian Reichel | 48fc986 | 2013-10-23 00:49:31 +0200 | [diff] [blame] | 102 | clock-frequency = <400000>; |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 103 | }; |
| 104 | |
| 105 | &mmc1 { |
| 106 | status = "disabled"; |
| 107 | }; |
| 108 | |
| 109 | &mmc2 { |
| 110 | status = "disabled"; |
| 111 | }; |
| 112 | |
| 113 | &mmc3 { |
| 114 | status = "disabled"; |
| 115 | }; |
| 116 | |
| 117 | &mcspi1 { |
| 118 | /* |
| 119 | * For some reason, touchscreen is necessary for screen to work at |
| 120 | * all on real hw. It works well without it on emulator. |
| 121 | * |
| 122 | * Also... order in the device tree actually matters here. |
| 123 | */ |
| 124 | tsc2005@0 { |
| 125 | compatible = "tsc2005"; |
| 126 | spi-max-frequency = <6000000>; |
| 127 | reg = <0>; |
| 128 | }; |
| 129 | mipid@2 { |
| 130 | compatible = "acx565akm"; |
| 131 | spi-max-frequency = <6000000>; |
| 132 | reg = <2>; |
| 133 | }; |
| 134 | }; |
| 135 | |
| 136 | &usb_otg_hs { |
| 137 | interface-type = <0>; |
| 138 | usb-phy = <&usb2_phy>; |
Roger Quadros | d2afcf0 | 2013-10-07 16:28:13 +0300 | [diff] [blame] | 139 | phys = <&usb2_phy>; |
| 140 | phy-names = "usb2-phy"; |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 141 | mode = <2>; |
| 142 | power = <50>; |
| 143 | }; |
Sebastian Reichel | 7a89eec | 2013-10-23 00:49:32 +0200 | [diff] [blame^] | 144 | |
| 145 | &uart1 { |
| 146 | status = "disabled"; |
| 147 | }; |
| 148 | |
| 149 | &uart2 { |
| 150 | pinctrl-names = "default"; |
| 151 | pinctrl-0 = <&uart2_pins>; |
| 152 | }; |
| 153 | |
| 154 | &uart3 { |
| 155 | pinctrl-names = "default"; |
| 156 | pinctrl-0 = <&uart3_pins>; |
| 157 | }; |