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 | }; | |
ab8e2f8c PK |
20 | |
21 | pwmleds { | |
22 | compatible = "pwm-leds"; | |
23 | ||
24 | green { | |
25 | label = "green"; | |
26 | pwms = <&twl_pwm 0 7812500>; | |
27 | max-brightness = <127>; | |
28 | }; | |
29 | ||
30 | orange { | |
31 | label = "orange"; | |
32 | pwms = <&twl_pwm 1 7812500>; | |
33 | max-brightness = <127>; | |
34 | }; | |
35 | }; | |
f81ad054 PK |
36 | }; |
37 | ||
38 | &omap4_pmx_core { | |
39 | pinctrl-names = "default"; | |
40 | ||
41 | uart3_pins: pinmux_uart3_pins { | |
42 | pinctrl-single,pins = < | |
43 | OMAP4_IOPAD(0x144, PIN_INPUT | MUX_MODE0) /* uart3_rx_irrx */ | |
44 | OMAP4_IOPAD(0x146, PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx */ | |
45 | >; | |
46 | }; | |
47 | ||
48 | i2c1_pins: pinmux_i2c1_pins { | |
49 | pinctrl-single,pins = < | |
50 | OMAP4_IOPAD(0x122, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */ | |
51 | OMAP4_IOPAD(0x124, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */ | |
52 | >; | |
53 | }; | |
54 | ||
55 | i2c2_pins: pinmux_i2c2_pins { | |
56 | pinctrl-single,pins = < | |
57 | OMAP4_IOPAD(0x126, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */ | |
58 | OMAP4_IOPAD(0x128, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */ | |
59 | >; | |
60 | }; | |
61 | ||
62 | i2c3_pins: pinmux_i2c3_pins { | |
63 | pinctrl-single,pins = < | |
64 | OMAP4_IOPAD(0x12a, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */ | |
65 | OMAP4_IOPAD(0x12c, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */ | |
66 | >; | |
67 | }; | |
68 | ||
69 | i2c4_pins: pinmux_i2c4_pins { | |
70 | pinctrl-single,pins = < | |
71 | OMAP4_IOPAD(0x12e, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_scl */ | |
72 | OMAP4_IOPAD(0x130, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_sda */ | |
73 | >; | |
74 | }; | |
75 | ||
76 | mmc2_pins: pinmux_mmc2_pins { | |
77 | pinctrl-single,pins = < | |
78 | OMAP4_IOPAD(0x040, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat0 */ | |
79 | OMAP4_IOPAD(0x042, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat1 */ | |
80 | OMAP4_IOPAD(0x044, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat2 */ | |
81 | OMAP4_IOPAD(0x046, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat3 */ | |
82 | OMAP4_IOPAD(0x048, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat4 */ | |
83 | OMAP4_IOPAD(0x04a, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat5 */ | |
84 | OMAP4_IOPAD(0x04c, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat6 */ | |
85 | OMAP4_IOPAD(0x04e, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat7 */ | |
86 | OMAP4_IOPAD(0x082, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_clk */ | |
87 | OMAP4_IOPAD(0x084, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_cmd */ | |
88 | >; | |
89 | }; | |
abb68f64 PK |
90 | |
91 | usb_otg_hs_pins: pinmux_usb_otg_hs_pins { | |
92 | pinctrl-single,pins = < | |
93 | OMAP4_IOPAD(0x194, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* usba0_otg_ce */ | |
94 | OMAP4_IOPAD(0x196, PIN_INPUT | MUX_MODE0) /* usba0_otg_dp */ | |
95 | OMAP4_IOPAD(0x198, PIN_INPUT | MUX_MODE0) /* usba0_otg_dm */ | |
96 | >; | |
97 | }; | |
f81ad054 PK |
98 | }; |
99 | ||
100 | &uart3 { | |
101 | pinctrl-names = "default"; | |
102 | pinctrl-0 = <&uart3_pins>; | |
103 | ||
104 | interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH | |
105 | &omap4_pmx_core OMAP4_UART3_RX>; | |
106 | }; | |
107 | ||
108 | &i2c1 { | |
109 | pinctrl-names = "default"; | |
110 | pinctrl-0 = <&i2c1_pins>; | |
111 | ||
112 | clock-frequency = <400000>; | |
113 | ||
114 | twl: twl@48 { | |
115 | reg = <0x48>; | |
116 | /* IRQ# = 7 */ | |
117 | interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_1N cascaded to gic */ | |
354fe2e7 PK |
118 | |
119 | twl_power: power { | |
120 | compatible = "ti,twl6030-power"; | |
121 | ti,system-power-controller; | |
122 | }; | |
f81ad054 PK |
123 | }; |
124 | }; | |
125 | ||
126 | &i2c2 { | |
127 | pinctrl-names = "default"; | |
128 | pinctrl-0 = <&i2c2_pins>; | |
129 | ||
130 | clock-frequency = <400000>; | |
131 | }; | |
132 | ||
133 | &i2c3 { | |
134 | pinctrl-names = "default"; | |
135 | pinctrl-0 = <&i2c3_pins>; | |
136 | ||
137 | clock-frequency = <400000>; | |
138 | }; | |
139 | ||
140 | &i2c4 { | |
141 | pinctrl-names = "default"; | |
142 | pinctrl-0 = <&i2c4_pins>; | |
143 | ||
144 | clock-frequency = <400000>; | |
145 | }; | |
146 | ||
147 | &mmc1 { | |
148 | status = "disabled"; | |
149 | }; | |
150 | ||
151 | &mmc2 { | |
152 | pinctrl-names = "default"; | |
153 | pinctrl-0 = <&mmc2_pins>; | |
154 | ||
155 | vmmc-supply = <&vaux1>; | |
156 | ti,non-removable; | |
157 | bus-width = <8>; | |
158 | }; | |
159 | ||
160 | &mmc3 { | |
161 | status = "disabled"; | |
162 | }; | |
163 | ||
164 | &mmc4 { | |
165 | status = "disabled"; | |
166 | }; | |
167 | ||
abb68f64 PK |
168 | &usb_otg_hs { |
169 | pinctrl-names = "default"; | |
170 | pinctrl-0 = <&usb_otg_hs_pins>; | |
171 | ||
172 | interface-type = <1>; | |
173 | mode = <3>; | |
174 | power = <50>; | |
175 | }; | |
176 | ||
f81ad054 PK |
177 | #include "twl6030.dtsi" |
178 | #include "twl6030_omap4.dtsi" | |
abb68f64 PK |
179 | |
180 | &twl_usb_comparator { | |
181 | usb-supply = <&vusb>; | |
182 | }; |