Commit | Line | Data |
---|---|---|
f81ad054 PK |
1 | /* |
2 | * Copyright (C) 2016 Paul Kocialkowski <contact@paulk.fr> | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or modify | |
5 | * it under the terms of the GNU General Public License version 2 as | |
6 | * published by the Free Software Foundation. | |
7 | */ | |
8 | /dts-v1/; | |
9 | ||
10 | #include "omap443x.dtsi" | |
11 | ||
12 | / { | |
13 | model = "Amazon Kindle Fire (first generation)"; | |
14 | compatible = "amazon,omap4-kc1", "ti,omap4430", "ti,omap4"; | |
15 | ||
16 | memory { | |
17 | device_type = "memory"; | |
18 | reg = <0x80000000 0x20000000>; /* 512 MB */ | |
19 | }; | |
20 | }; | |
21 | ||
22 | &omap4_pmx_core { | |
23 | pinctrl-names = "default"; | |
24 | ||
25 | uart3_pins: pinmux_uart3_pins { | |
26 | pinctrl-single,pins = < | |
27 | OMAP4_IOPAD(0x144, PIN_INPUT | MUX_MODE0) /* uart3_rx_irrx */ | |
28 | OMAP4_IOPAD(0x146, PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx */ | |
29 | >; | |
30 | }; | |
31 | ||
32 | i2c1_pins: pinmux_i2c1_pins { | |
33 | pinctrl-single,pins = < | |
34 | OMAP4_IOPAD(0x122, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */ | |
35 | OMAP4_IOPAD(0x124, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */ | |
36 | >; | |
37 | }; | |
38 | ||
39 | i2c2_pins: pinmux_i2c2_pins { | |
40 | pinctrl-single,pins = < | |
41 | OMAP4_IOPAD(0x126, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */ | |
42 | OMAP4_IOPAD(0x128, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */ | |
43 | >; | |
44 | }; | |
45 | ||
46 | i2c3_pins: pinmux_i2c3_pins { | |
47 | pinctrl-single,pins = < | |
48 | OMAP4_IOPAD(0x12a, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */ | |
49 | OMAP4_IOPAD(0x12c, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */ | |
50 | >; | |
51 | }; | |
52 | ||
53 | i2c4_pins: pinmux_i2c4_pins { | |
54 | pinctrl-single,pins = < | |
55 | OMAP4_IOPAD(0x12e, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_scl */ | |
56 | OMAP4_IOPAD(0x130, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_sda */ | |
57 | >; | |
58 | }; | |
59 | ||
60 | mmc2_pins: pinmux_mmc2_pins { | |
61 | pinctrl-single,pins = < | |
62 | OMAP4_IOPAD(0x040, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat0 */ | |
63 | OMAP4_IOPAD(0x042, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat1 */ | |
64 | OMAP4_IOPAD(0x044, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat2 */ | |
65 | OMAP4_IOPAD(0x046, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat3 */ | |
66 | OMAP4_IOPAD(0x048, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat4 */ | |
67 | OMAP4_IOPAD(0x04a, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat5 */ | |
68 | OMAP4_IOPAD(0x04c, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat6 */ | |
69 | OMAP4_IOPAD(0x04e, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat7 */ | |
70 | OMAP4_IOPAD(0x082, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_clk */ | |
71 | OMAP4_IOPAD(0x084, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_cmd */ | |
72 | >; | |
73 | }; | |
74 | }; | |
75 | ||
76 | &uart3 { | |
77 | pinctrl-names = "default"; | |
78 | pinctrl-0 = <&uart3_pins>; | |
79 | ||
80 | interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH | |
81 | &omap4_pmx_core OMAP4_UART3_RX>; | |
82 | }; | |
83 | ||
84 | &i2c1 { | |
85 | pinctrl-names = "default"; | |
86 | pinctrl-0 = <&i2c1_pins>; | |
87 | ||
88 | clock-frequency = <400000>; | |
89 | ||
90 | twl: twl@48 { | |
91 | reg = <0x48>; | |
92 | /* IRQ# = 7 */ | |
93 | interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_1N cascaded to gic */ | |
94 | }; | |
95 | }; | |
96 | ||
97 | &i2c2 { | |
98 | pinctrl-names = "default"; | |
99 | pinctrl-0 = <&i2c2_pins>; | |
100 | ||
101 | clock-frequency = <400000>; | |
102 | }; | |
103 | ||
104 | &i2c3 { | |
105 | pinctrl-names = "default"; | |
106 | pinctrl-0 = <&i2c3_pins>; | |
107 | ||
108 | clock-frequency = <400000>; | |
109 | }; | |
110 | ||
111 | &i2c4 { | |
112 | pinctrl-names = "default"; | |
113 | pinctrl-0 = <&i2c4_pins>; | |
114 | ||
115 | clock-frequency = <400000>; | |
116 | }; | |
117 | ||
118 | &mmc1 { | |
119 | status = "disabled"; | |
120 | }; | |
121 | ||
122 | &mmc2 { | |
123 | pinctrl-names = "default"; | |
124 | pinctrl-0 = <&mmc2_pins>; | |
125 | ||
126 | vmmc-supply = <&vaux1>; | |
127 | ti,non-removable; | |
128 | bus-width = <8>; | |
129 | }; | |
130 | ||
131 | &mmc3 { | |
132 | status = "disabled"; | |
133 | }; | |
134 | ||
135 | &mmc4 { | |
136 | status = "disabled"; | |
137 | }; | |
138 | ||
139 | #include "twl6030.dtsi" | |
140 | #include "twl6030_omap4.dtsi" |