summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/am335x-cm-t335.dts
diff options
context:
space:
mode:
authorIlya Ledvich2015-11-24 15:02:09 +0100
committerTony Lindgren2015-11-30 23:03:47 +0100
commit43577ecfcaa28bb21bd19739c35d96c444bdf1a8 (patch)
tree5bbe821dfe31cb6bec9df326d334e01eae1dce48 /arch/arm/boot/dts/am335x-cm-t335.dts
parentARM: dts: cm-t335: add initial support (diff)
downloadkernel-qcow2-linux-43577ecfcaa28bb21bd19739c35d96c444bdf1a8.tar.gz
kernel-qcow2-linux-43577ecfcaa28bb21bd19739c35d96c444bdf1a8.tar.xz
kernel-qcow2-linux-43577ecfcaa28bb21bd19739c35d96c444bdf1a8.zip
ARM: dts: cm-t335: add basic support for I2C
Add pinmux configuration for I2C0 and I2C1 pins. Add description for I2C0 bus, set clock frequency to 400kHz. Add child nodes for 24c02 EEPROM and em3027 RTC on I2C0 bus. Signed-off-by: Ilya Ledvich <ilya@compulab.co.il> Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il> Acked-by: Igor Grinberg <grinberg@compulab.co.il> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/boot/dts/am335x-cm-t335.dts')
-rw-r--r--arch/arm/boot/dts/am335x-cm-t335.dts37
1 files changed, 37 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am335x-cm-t335.dts b/arch/arm/boot/dts/am335x-cm-t335.dts
index e18859ec2a7d..9fc2f011ea47 100644
--- a/arch/arm/boot/dts/am335x-cm-t335.dts
+++ b/arch/arm/boot/dts/am335x-cm-t335.dts
@@ -37,6 +37,24 @@
pinctrl-names = "default";
pinctrl-0 = <>;
+ 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)
+ >;
+ };
+
gpio_led_pins: pinmux_gpio_led_pins {
pinctrl-single,pins = <
/* gpmc_csn3.gpio2_0 */
@@ -60,3 +78,22 @@
status = "okay";
};
+
+&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>;
+ };
+};