]>
Commit | Line | Data |
---|---|---|
15be8179 IL |
1 | /* |
2 | * am335x-cm-t335.dts - Device Tree file for Compulab CM-T335 | |
3 | * | |
4 | * Copyright (C) 2014 - 2015 CompuLab Ltd. - http://www.compulab.co.il/ | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License version 2 as | |
8 | * published by the Free Software Foundation. | |
9 | */ | |
10 | ||
11 | /dts-v1/; | |
12 | ||
13 | #include "am33xx.dtsi" | |
14 | ||
15 | / { | |
16 | model = "CompuLab CM-T335"; | |
17 | compatible = "compulab,cm-t335", "ti,am33xx"; | |
18 | ||
19 | memory { | |
20 | device_type = "memory"; | |
21 | reg = <0x80000000 0x8000000>; /* 128 MB */ | |
22 | }; | |
23 | ||
24 | leds { | |
25 | compatible = "gpio-leds"; | |
26 | pinctrl-names = "default"; | |
27 | pinctrl-0 = <&gpio_led_pins>; | |
28 | led@0 { | |
29 | label = "cm_t335:green"; | |
30 | gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; /* gpio2_0 */ | |
31 | linux,default-trigger = "heartbeat"; | |
32 | }; | |
33 | }; | |
34 | }; | |
35 | ||
36 | &am33xx_pinmux { | |
37 | pinctrl-names = "default"; | |
38 | pinctrl-0 = <>; | |
39 | ||
43577ecf IL |
40 | i2c0_pins: pinmux_i2c0_pins { |
41 | pinctrl-single,pins = < | |
42 | /* i2c0_sda.i2c0_sda */ | |
43 | AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0) | |
44 | /* i2c0_scl.i2c0_scl */ | |
45 | AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0) | |
46 | >; | |
47 | }; | |
48 | ||
49 | i2c1_pins: pinmux_i2c1_pins { | |
50 | pinctrl-single,pins = < | |
51 | /* uart0_ctsn.i2c1_sda */ | |
52 | AM33XX_IOPAD(0x968, PIN_INPUT_PULLUP | MUX_MODE2) | |
53 | /* uart0_rtsn.i2c1_scl */ | |
54 | AM33XX_IOPAD(0x96c, PIN_INPUT_PULLUP | MUX_MODE2) | |
55 | >; | |
56 | }; | |
57 | ||
15be8179 IL |
58 | gpio_led_pins: pinmux_gpio_led_pins { |
59 | pinctrl-single,pins = < | |
60 | /* gpmc_csn3.gpio2_0 */ | |
61 | AM33XX_IOPAD(0x888, PIN_OUTPUT | MUX_MODE7) | |
62 | >; | |
63 | }; | |
64 | ||
65 | uart0_pins: pinmux_uart0_pins { | |
66 | pinctrl-single,pins = < | |
67 | /* uart0_rxd.uart0_rxd */ | |
68 | AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0) | |
69 | /* uart0_txd.uart0_txd */ | |
70 | AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0) | |
71 | >; | |
72 | }; | |
73 | }; | |
74 | ||
75 | &uart0 { | |
76 | pinctrl-names = "default"; | |
77 | pinctrl-0 = <&uart0_pins>; | |
78 | ||
79 | status = "okay"; | |
80 | }; | |
43577ecf IL |
81 | |
82 | &i2c0 { | |
83 | pinctrl-names = "default"; | |
84 | pinctrl-0 = <&i2c0_pins>; | |
85 | ||
86 | status = "okay"; | |
87 | clock-frequency = <400000>; | |
88 | /* CM-T335 board EEPROM */ | |
89 | eeprom: 24c02@50 { | |
90 | compatible = "atmel,24c02"; | |
91 | reg = <0x50>; | |
92 | pagesize = <16>; | |
93 | }; | |
94 | /* Real Time Clock */ | |
95 | ext_rtc: em3027@56 { | |
96 | compatible = "emmicro,em3027"; | |
97 | reg = <0x56>; | |
98 | }; | |
99 | }; |