2015-12-01 21:54:56 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "am437x-cm-t43.dts"
|
2015-12-01 21:55:08 +08:00
|
|
|
#include "compulab-sb-som.dtsi"
|
2015-12-01 21:54:56 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "CompuLab CM-T43 on SB-SOM-T43";
|
|
|
|
compatible = "compulab,am437x-sbc-t43", "compulab,am437x-cm-t43", "ti,am4372", "ti,am43";
|
|
|
|
};
|
|
|
|
|
|
|
|
&am43xx_pinmux {
|
2015-12-01 21:55:08 +08:00
|
|
|
mmc1_pins: pinmux_mmc1_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
AM4372_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_clk.mmc0_clk */
|
|
|
|
AM4372_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */
|
|
|
|
AM4372_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */
|
|
|
|
AM4372_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */
|
|
|
|
AM4372_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */
|
|
|
|
AM4372_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */
|
|
|
|
AM4372_IOPAD(0x960, PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
|
|
|
|
AM4372_IOPAD(0x964, PIN_INPUT | MUX_MODE7) /* ecap0_in_pwm0_out.gpio0_7 */
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2015-12-01 21:54:56 +08:00
|
|
|
uart0_pins_default: uart0_pins_default {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
AM4372_IOPAD(0x968, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE0)
|
|
|
|
AM4372_IOPAD(0x96C, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE0)
|
|
|
|
AM4372_IOPAD(0x970, PIN_INPUT_PULLUP | SLEWCTRL_FAST | DS0_PULL_UP_DOWN_EN | MUX_MODE0) /* uart0_rxd.uart0_rxd */
|
|
|
|
AM4372_IOPAD(0x974, PIN_INPUT | PULL_DISABLE | SLEWCTRL_FAST | DS0_PULL_UP_DOWN_EN | MUX_MODE0) /* uart0_txd.uart0_txd */
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c1_pins: i2c1_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
AM4372_IOPAD(0xa6c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE1) /* spi2_cs0.i2c1_sda */
|
|
|
|
AM4372_IOPAD(0xa60, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE1) /* spi2_sclk.i2c1_scl */
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c2_pins: i2c2_pins {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
AM4372_IOPAD(0x978, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE3) /* uart1_ctsn.i2c2_sda */
|
|
|
|
AM4372_IOPAD(0x97c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE3) /* uart1_rtsn.i2c2_scl */
|
|
|
|
>;
|
|
|
|
};
|
2015-12-01 21:55:02 +08:00
|
|
|
|
|
|
|
usb2_phy1_default: usb2_phy1_default {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
AM4372_IOPAD(0xac0, DS0_PULL_UP_DOWN_EN | PIN_INPUT_PULLDOWN | MUX_MODE0)
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
usb2_phy2_default: usb2_phy2_default {
|
|
|
|
pinctrl-single,pins = <
|
|
|
|
AM4372_IOPAD(0xac4, DS0_PULL_UP_DOWN_EN | PIN_INPUT_PULLDOWN | MUX_MODE0)
|
|
|
|
>;
|
|
|
|
};
|
2015-12-01 21:54:56 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&i2c1 {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&i2c1_pins>;
|
2015-12-01 21:55:05 +08:00
|
|
|
|
|
|
|
pca9555: pca9555@20 {
|
|
|
|
compatible = "nxp,pca9555";
|
|
|
|
reg = <0x20>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
2015-12-01 21:55:06 +08:00
|
|
|
|
|
|
|
eeprom_base: at24@50 {
|
|
|
|
compatible = "atmel,24c02";
|
|
|
|
reg = <0x50>;
|
|
|
|
pagesize = <16>;
|
|
|
|
};
|
2015-12-01 21:54:56 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&i2c2 {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&i2c2_pins>;
|
|
|
|
};
|
|
|
|
|
2015-12-01 21:55:08 +08:00
|
|
|
&mmc1 {
|
|
|
|
status = "okay";
|
|
|
|
bus-width = <4>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&mmc1_pins>;
|
|
|
|
vmmc-supply = <&vsb_3v3>;
|
|
|
|
cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
|
|
|
|
wp-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2015-12-01 21:54:56 +08:00
|
|
|
&uart0 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart0_pins_default>;
|
|
|
|
};
|
2015-12-01 21:55:02 +08:00
|
|
|
|
|
|
|
&dwc3_1 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&usb2_phy1_default>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&dwc3_2 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&usb2_phy2_default>;
|
|
|
|
};
|