blob: a131b971315eb316b0676bede6a68f5bf4ad37ca [file] [log] [blame]
Nikita Kiryanov686c47f2015-12-01 15:54:56 +02001/*
2 * Copyright (C) 2015 CompuLab, Ltd. - http://www.compulab.co.il/
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
9/dts-v1/;
10
11#include <dt-bindings/pinctrl/am43xx.h>
12#include <dt-bindings/gpio/gpio.h>
13#include <dt-bindings/interrupt-controller/irq.h>
14#include "am4372.dtsi"
15
16/ {
17 model = "CompuLab CM-T43";
18 compatible = "compulab,am437x-cm-t43", "ti,am4372", "ti,am43";
19
20 leds {
21 compatible = "gpio-leds";
22
23 ledb {
24 label = "cm-t43:green";
25 gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
26 linux,default-trigger = "heartbeat";
27 };
28 };
29};
30
31&am43xx_pinmux {
32 pinctrl-names = "default";
33 pinctrl-0 = <&cm_t43_led_pins>;
34
35 cm_t43_led_pins: cm_t43_led_pins {
36 pinctrl-single,pins = <
37 AM4372_IOPAD(0xa78, MUX_MODE7)
38 >;
39 };
40
41 i2c0_pins: i2c0_pins {
42 pinctrl-single,pins = <
43 AM4372_IOPAD(0x988, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_sda.i2c0_sda */
44 AM4372_IOPAD(0x98c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */
45 >;
46 };
47};
48
49&i2c0 {
50 status = "okay";
51 pinctrl-names = "default";
52 pinctrl-0 = <&i2c0_pins>;
53 clock-frequency = <100000>;
54};
55
56&gpio0 {
57 status = "okay";
58};
59
60&gpio1 {
61 status = "okay";
62};
63
64&gpio2 {
65 status = "okay";
66};
67
68&gpio3 {
69 status = "okay";
70};
71
72&gpio4 {
73 status = "okay";
74};
75
76&gpio5 {
77 status = "okay";
78};
79
80&uart0 {
81 status = "okay";
82};
83
84&cpu {
85 operating-points = <1000000 1330000>,
86 <800000 1260000>,
87 <720000 1200000>,
88 <600000 1100000>,
89 <300000 950000>;
90};