1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
4 * Copyright (C) 2018 Robert Bosch Power Tools GmbH
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
13 model = "Bosch AM335x Guardian";
14 compatible = "bosch,am335x-guardian", "ti,am33xx";
23 cpu0-supply = <&dcdc2_reg>;
28 device_type = "memory";
29 reg = <0x80000000 0x10000000>; /* 256 MB */
33 compatible = "gpio-keys";
36 pinctrl-names = "default";
37 pinctrl-0 = <&gpio_keys_pins>;
40 label = "guardian-power-button";
41 linux,code = <KEY_POWER>;
42 gpios = <&gpio2 21 0>;
48 compatible = "gpio-leds";
49 pinctrl-names = "default";
50 pinctrl-0 = <&leds_pins>;
53 label = "green:heartbeat";
54 gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>;
55 linux,default-trigger = "heartbeat";
56 default-state = "off";
61 gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
62 linux,default-trigger = "mmc0";
63 default-state = "off";
68 compatible = "ti,tilcdc,panel";
69 pinctrl-names = "default", "sleep";
70 pinctrl-0 = <&lcd_pins_default &lcd_disen_pins>;
71 pinctrl-1 = <&lcd_pins_sleep>;
83 clock-frequency = <9000000>;
104 compatible = "ti,omap-dmtimer-pwm";
105 ti,timers = <&timer7>;
106 pinctrl-names = "default";
107 pinctrl-0 = <&dmtimer7_pins>;
110 vmmcsd_fixed: regulator-3v3 {
111 compatible = "regulator-fixed";
112 regulator-name = "vmmcsd_fixed";
113 regulator-min-microvolt = <3300000>;
114 regulator-max-microvolt = <3300000>;
123 pinctrl-names = "default";
124 pinctrl-0 = <&nandflash_pins>;
125 ranges = <0 0 0x08000000 0x1000000>; /* CS0: 16MB for NAND */
129 compatible = "ti,omap2-nand";
130 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
131 interrupt-parent = <&gpmc>;
132 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
133 <1 IRQ_TYPE_NONE>; /* termcount */
134 rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
135 ti,nand-ecc-opt = "bch16";
137 nand-bus-width = <8>;
138 gpmc,device-width = <1>;
139 gpmc,sync-clk-ps = <0>;
141 gpmc,cs-rd-off-ns = <44>;
142 gpmc,cs-wr-off-ns = <44>;
143 gpmc,adv-on-ns = <6>;
144 gpmc,adv-rd-off-ns = <34>;
145 gpmc,adv-wr-off-ns = <44>;
147 gpmc,we-off-ns = <40>;
149 gpmc,oe-off-ns = <54>;
150 gpmc,access-ns = <64>;
151 gpmc,rd-cycle-ns = <82>;
152 gpmc,wr-cycle-ns = <82>;
153 gpmc,bus-turnaround-ns = <0>;
154 gpmc,cycle2cycle-delay-ns = <0>;
155 gpmc,clk-activation-ns = <0>;
156 gpmc,wr-access-ns = <40>;
157 gpmc,wr-data-mux-bus-ns = <0>;
160 * MTD partition table
162 * All SPL-* partitions are sized to minimal length which can
163 * be independently programmable. For NAND flash this is equal
164 * to size of erase-block.
166 #address-cells = <1>;
175 label = "SPL.backup1";
176 reg = <0x40000 0x40000>;
180 label = "SPL.backup2";
181 reg = <0x80000 0x40000>;
185 label = "SPL.backup3";
186 reg = <0xc0000 0x40000>;
191 reg = <0x100000 0x100000>;
195 label = "u-boot.backup1";
196 reg = <0x200000 0x100000>;
200 label = "u-boot-env";
201 reg = <0x300000 0x40000>;
205 label = "u-boot-env.backup1";
206 reg = <0x340000 0x40000>;
211 reg = <0x380000 0x1fc80000>;
217 pinctrl-names = "default";
218 pinctrl-0 = <&i2c0_pins>;
219 clock-frequency = <400000>;
228 blue-and-red-wiring = "crossed";
234 pinctrl-names = "default";
235 pinctrl-0 = <&mmc1_pins>;
236 cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
237 vmmc-supply = <&vmmcsd_fixed>;
242 clocks = <&clk_32768_ck>, <&clk_24mhz_clkctrl AM3_CLK_24MHZ_CLKDIV32K_CLKCTRL 0>;
243 clock-names = "ext-clk", "int-clk";
244 system-power-controller;
248 ti,pindir-d0-out-d1-in;
249 pinctrl-names = "default";
250 pinctrl-0 = <&spi0_pins>;
254 #include "tps65217.dtsi"
257 ti,pmic-shutdown-controller;
258 interrupt-parent = <&intc>;
259 interrupts = <7>; /* NMI */
262 isel = <1>; /* 1 - ISET1, 2 ISET2 */
263 fdim = <100>; /* TPS65217_BL_FDIM_100HZ */
264 default-brightness = <100>;
268 dcdc1_reg: regulator@0 {
269 regulator-name = "vdds_dpr";
273 dcdc2_reg: regulator@1 {
274 regulator-name = "vdd_mpu";
275 regulator-min-microvolt = <925000>;
276 regulator-max-microvolt = <1351500>;
281 dcdc3_reg: regulator@2 {
282 regulator-name = "vdd_core";
283 regulator-min-microvolt = <925000>;
284 regulator-max-microvolt = <1150000>;
289 ldo1_reg: regulator@3 {
290 regulator-name = "vio,vrtc,vdds";
294 ldo2_reg: regulator@4 {
295 regulator-name = "vdd_3v3aux";
299 ldo3_reg: regulator@5 {
300 regulator-name = "vdd_1v8";
301 regulator-min-microvolt = <1800000>;
302 regulator-max-microvolt = <1800000>;
306 ldo4_reg: regulator@6 {
307 regulator-name = "vdd_3v3a";
317 ti,adc-channels = <0 1 2 3 4 5 6>;
322 pinctrl-names = "default";
323 pinctrl-0 = <&uart0_pins>;
328 dr_mode = "peripheral";
336 pinctrl-names = "default";
337 pinctrl-0 = <&clkout2_pin &gpio_pins>;
339 clkout2_pin: pinmux_clkout2_pin {
340 pinctrl-single,pins = <
341 AM33XX_IOPAD(0x9b4, PIN_OUTPUT_PULLDOWN | MUX_MODE3)
345 dmtimer7_pins: pinmux_dmtimer7_pins {
346 pinctrl-single,pins = <
347 AM33XX_IOPAD(0x968, PIN_OUTPUT | MUX_MODE5)
351 gpio_keys_pins: pinmux_gpio_keys_pins {
352 pinctrl-single,pins = <
353 AM33XX_IOPAD(0x940, PIN_INPUT | MUX_MODE7)
357 gpio_pins: pinmux_gpio_pins {
358 pinctrl-single,pins = <
359 AM33XX_IOPAD(0x928, PIN_OUTPUT | MUX_MODE7)
360 AM33XX_IOPAD(0x990, PIN_OUTPUT | MUX_MODE7)
364 i2c0_pins: pinmux_i2c0_pins {
365 pinctrl-single,pins = <
366 AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0)
367 AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0)
371 lcd_disen_pins: pinmux_lcd_disen_pins {
372 pinctrl-single,pins = <
373 AM33XX_IOPAD(0x9a4, PIN_OUTPUT_PULLUP | SLEWCTRL_SLOW | MUX_MODE7)
377 lcd_pins_default: pinmux_lcd_pins_default {
378 pinctrl-single,pins = <
379 AM33XX_IOPAD(0x820, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE1)
380 AM33XX_IOPAD(0x824, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE1)
381 AM33XX_IOPAD(0x828, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE1)
382 AM33XX_IOPAD(0x82c, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE1)
383 AM33XX_IOPAD(0x830, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE1)
384 AM33XX_IOPAD(0x834, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE1)
385 AM33XX_IOPAD(0x838, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE1)
386 AM33XX_IOPAD(0x83c, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE1)
387 AM33XX_IOPAD(0x8a0, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
388 AM33XX_IOPAD(0x8a4, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
389 AM33XX_IOPAD(0x8a8, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
390 AM33XX_IOPAD(0x8ac, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
391 AM33XX_IOPAD(0x8b0, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
392 AM33XX_IOPAD(0x8b4, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
393 AM33XX_IOPAD(0x8b8, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
394 AM33XX_IOPAD(0x8bc, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
395 AM33XX_IOPAD(0x8c0, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
396 AM33XX_IOPAD(0x8c4, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
397 AM33XX_IOPAD(0x8c8, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
398 AM33XX_IOPAD(0x8cc, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
399 AM33XX_IOPAD(0x8d0, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
400 AM33XX_IOPAD(0x8d4, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
401 AM33XX_IOPAD(0x8d8, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
402 AM33XX_IOPAD(0x8dc, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
403 AM33XX_IOPAD(0x8e0, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
404 AM33XX_IOPAD(0x8e4, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
405 AM33XX_IOPAD(0x8e8, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
406 AM33XX_IOPAD(0x8ec, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
410 lcd_pins_sleep: pinmux_lcd_pins_sleep {
411 pinctrl-single,pins = <
412 AM33XX_IOPAD(0x8a0, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
413 AM33XX_IOPAD(0x8a4, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
414 AM33XX_IOPAD(0x8a8, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
415 AM33XX_IOPAD(0x8ac, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
416 AM33XX_IOPAD(0x8b0, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
417 AM33XX_IOPAD(0x8b4, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
418 AM33XX_IOPAD(0x8b8, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
419 AM33XX_IOPAD(0x8bc, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
420 AM33XX_IOPAD(0x8c0, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
421 AM33XX_IOPAD(0x8c4, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
422 AM33XX_IOPAD(0x8c8, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
423 AM33XX_IOPAD(0x8cc, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
424 AM33XX_IOPAD(0x8d0, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
425 AM33XX_IOPAD(0x8d4, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
426 AM33XX_IOPAD(0x8d8, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
427 AM33XX_IOPAD(0x8dc, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
428 AM33XX_IOPAD(0x8e0, PIN_INPUT_PULLDOWN | SLEWCTRL_SLOW | MUX_MODE7)
429 AM33XX_IOPAD(0x8e4, PIN_INPUT_PULLDOWN | SLEWCTRL_SLOW | MUX_MODE7)
430 AM33XX_IOPAD(0x8e8, PIN_INPUT_PULLDOWN | SLEWCTRL_SLOW | MUX_MODE7)
431 AM33XX_IOPAD(0x8ec, PIN_INPUT_PULLDOWN | SLEWCTRL_SLOW | MUX_MODE7)
435 leds_pins: pinmux_leds_pins {
436 pinctrl-single,pins = <
437 AM33XX_IOPAD(0x868, PIN_OUTPUT | MUX_MODE7)
438 AM33XX_IOPAD(0x86c, PIN_OUTPUT | MUX_MODE7)
442 mmc1_pins: pinmux_mmc1_pins {
443 pinctrl-single,pins = <
444 AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0)
445 AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0)
446 AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0)
447 AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0)
448 AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0)
449 AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0)
450 AM33XX_IOPAD(0x960, PIN_INPUT | MUX_MODE7)
454 spi0_pins: pinmux_spi0_pins {
455 pinctrl-single,pins = <
456 AM33XX_IOPAD(0x950, PIN_OUTPUT_PULLDOWN | MUX_MODE0)
457 AM33XX_IOPAD(0x954, PIN_OUTPUT_PULLUP | MUX_MODE0)
458 AM33XX_IOPAD(0x958, PIN_INPUT_PULLUP | MUX_MODE0)
459 AM33XX_IOPAD(0x95c, PIN_OUTPUT_PULLUP | MUX_MODE0)
463 uart0_pins: pinmux_uart0_pins {
464 pinctrl-single,pins = <
465 AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0)
466 AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0)
470 nandflash_pins: pinmux_nandflash_pins {
471 pinctrl-single,pins = <
472 AM33XX_IOPAD(0x800, PIN_INPUT | MUX_MODE0)
473 AM33XX_IOPAD(0x804, PIN_INPUT | MUX_MODE0)
474 AM33XX_IOPAD(0x808, PIN_INPUT | MUX_MODE0)
475 AM33XX_IOPAD(0x80c, PIN_INPUT | MUX_MODE0)
476 AM33XX_IOPAD(0x810, PIN_INPUT | MUX_MODE0)
477 AM33XX_IOPAD(0x814, PIN_INPUT | MUX_MODE0)
478 AM33XX_IOPAD(0x818, PIN_INPUT | MUX_MODE0)
479 AM33XX_IOPAD(0x81c, PIN_INPUT | MUX_MODE0)
480 AM33XX_IOPAD(0x870, PIN_INPUT | MUX_MODE0)
481 AM33XX_IOPAD(0x874, PIN_OUTPUT | MUX_MODE0)
482 AM33XX_IOPAD(0x87c, PIN_OUTPUT | MUX_MODE0)
483 AM33XX_IOPAD(0x890, PIN_OUTPUT | MUX_MODE0)
484 AM33XX_IOPAD(0x894, PIN_OUTPUT | MUX_MODE0)
485 AM33XX_IOPAD(0x898, PIN_OUTPUT | MUX_MODE0)
486 AM33XX_IOPAD(0x89c, PIN_OUTPUT | MUX_MODE0)