2015-11-24 22:02:08 +08:00
|
|
|
/*
|
|
|
|
* am335x-cm-t335.dts - Device Tree file for Compulab CM-T335
|
|
|
|
*
|
|
|
|
* Copyright (C) 2014 - 2015 CompuLab Ltd. - http://www.compulab.co.il/
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include "am33xx.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "CompuLab CM-T335";
|
|
|
|
compatible = "compulab,cm-t335", "ti,am33xx";
|
|
|
|
|
|
|
|
memory {
|
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x80000000 0x8000000>; /* 128 MB */
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&gpio_led_pins>;
|
|
|
|
led@0 {
|
|
|
|
label = "cm_t335:green";
|
|
|
|
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; /* gpio2_0 */
|
|
|
|
linux,default-trigger = "heartbeat";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&am33xx_pinmux {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <>;
|
|
|
|
|
2015-11-24 22:02:09 +08:00
|
|
|
i2c0_pins: pinmux_i2c0_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
/* i2c0_sda.i2c0_sda */
|
|
|
|
AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0)
|
|
|
|
/* i2c0_scl.i2c0_scl */
|
|
|
|
AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0)
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c1_pins: pinmux_i2c1_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
/* uart0_ctsn.i2c1_sda */
|
|
|
|
AM33XX_IOPAD(0x968, PIN_INPUT_PULLUP | MUX_MODE2)
|
|
|
|
/* uart0_rtsn.i2c1_scl */
|
|
|
|
AM33XX_IOPAD(0x96c, PIN_INPUT_PULLUP | MUX_MODE2)
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2015-11-24 22:02:08 +08:00
|
|
|
gpio_led_pins: pinmux_gpio_led_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
/* gpmc_csn3.gpio2_0 */
|
|
|
|
AM33XX_IOPAD(0x888, PIN_OUTPUT | MUX_MODE7)
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
uart0_pins: pinmux_uart0_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
/* uart0_rxd.uart0_rxd */
|
|
|
|
AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0)
|
|
|
|
/* uart0_txd.uart0_txd */
|
|
|
|
AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0)
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart0 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart0_pins>;
|
|
|
|
|
|
|
|
status = "okay";
|
|
|
|
};
|
2015-11-24 22:02:09 +08:00
|
|
|
|
|
|
|
&i2c0 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&i2c0_pins>;
|
|
|
|
|
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <400000>;
|
|
|
|
/* CM-T335 board EEPROM */
|
|
|
|
eeprom: 24c02@50 {
|
|
|
|
compatible = "atmel,24c02";
|
|
|
|
reg = <0x50>;
|
|
|
|
pagesize = <16>;
|
|
|
|
};
|
|
|
|
/* Real Time Clock */
|
|
|
|
ext_rtc: em3027@56 {
|
|
|
|
compatible = "emmicro,em3027";
|
|
|
|
reg = <0x56>;
|
|
|
|
};
|
|
|
|
};
|