]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Added initial TX48 device tree
authorOliver Wendt <ow@karo-electronics.de>
Thu, 21 Mar 2013 14:37:27 +0000 (15:37 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 2 Apr 2013 09:53:01 +0000 (11:53 +0200)
arch/arm/boot/dts/Makefile
arch/arm/boot/dts/am335x-tx48.dts [new file with mode: 0755]

index dedca493efc8283603fae7aac2ffa5413dbddf43..fa2f12e0e75b1f517f533d30c60124f28a719562 100644 (file)
@@ -133,7 +133,8 @@ dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
        omap5-evm.dtb \
        am335x-evm.dtb \
        am335x-evmsk.dtb \
-       am335x-bone.dtb
+       am335x-bone.dtb \
+       am335x-tx48.dtb
 dtb-$(CONFIG_ARCH_ORION5X) += orion5x-lacie-ethernet-disk-mini-v2.dtb
 dtb-$(CONFIG_ARCH_PRIMA2) += prima2-evb.dtb
 dtb-$(CONFIG_ARCH_U8500) += snowball.dtb \
diff --git a/arch/arm/boot/dts/am335x-tx48.dts b/arch/arm/boot/dts/am335x-tx48.dts
new file mode 100755 (executable)
index 0000000..45ccf60
--- /dev/null
@@ -0,0 +1,137 @@
+/*
+ * Copyright (C) 2013 Ka-Ro electronics GmbH - http://www.karo-electronics.com
+ *
+ * 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 = "Ka-Ro electronics TX48 module (TI AM335x)";
+       compatible = "karo,am335x-tx48", "ti,am33xx";
+
+       cpus {
+               cpu@0 {
+                       cpu0-supply = <&sw2_reg>;
+               };
+       };
+
+       memory {
+               device_type = "memory";
+               reg = <0 0>; /* will be set up by bootloader */
+       };
+
+       am33xx_pinmux: pinmux@44e10800 {
+               pinctrl-names = "default";
+       };
+};
+
+&cpsw_emac0 {
+       phy_id = <&davinci_mdio>, <0>;
+};
+
+&cpsw_emac1 {
+       phy_id = <&davinci_mdio>, <1>;
+};
+
+&uart1 {
+       status = "okay";
+};
+
+&uart2 {
+       status = "okay";
+};
+
+&uart6 {
+       status = "okay";
+};
+
+&i2c1 {
+       status = "okay";
+
+       rtc1: ds1339@68 {
+               compatible = "dallas,ds1339";
+               reg = <0x68>;
+               trickle-charge = <0xa5>;
+       };
+
+       pmic: lt3589@48 {
+               compatible = "lt,lt3589";
+               reg = <0x34>;
+       };
+
+       codec: sgtl5000@0a {
+               compatible = "fsl,sgtl5000";
+               reg = <0x0a>;
+               VDDA-supply = <&reg_2v5>;
+               VDDIO-supply = <&sw4_reg>;
+       };
+
+       touchscreen: tsc2007@48 {
+               compatible = "ti,tsc2007";
+               reg = <0x48>;
+               interrupt-parent = <&gpio3>;
+               interrupts = <16 0>;
+               /* TODO: add DT support to driver */
+               pendown-gpios = <&gpio3 16 1>;
+               model = "2007";
+               x-plate-ohms = <660>;
+       };
+
+       polytouch: edt-ft5x06@38 {
+               compatible = "edt,edt-ft5x06";
+               reg = <0x38>;
+               interrupt-parent = <&gpio1>;
+               interrupts = <17>;
+               /* TODO: add DT support to driver */
+               reset-gpios = <&gpio1 18 1>;
+               wake-gpios = <&gpio1 27 0>;
+       };
+};
+
+&pmic {
+       regulators {
+               sw1_reg: regulator@4 {
+                       /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
+                       regulator-name = "vdd_core";
+/*                     regulator-min-microvolt = <912500>; */  // lt4% 
+/*                     regulator-max-microvolt = <1150000>; */ // gt4%
+                       regulator-min-microvolt = <912000>;
+                       regulator-max-microvolt = <1144000>;
+                       regulator-boot-on;
+                       regulator-always-on;
+               };
+
+               sw2_reg: regulator@5 {
+                       /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
+                       regulator-name = "vdd_mpu";
+                       regulator-min-microvolt = <912500>;
+                       regulator-max-microvolt = <1312500>;
+                       regulator-boot-on;
+                       regulator-always-on;
+               };
+
+               sw4_reg: regulator@7 {
+                       compatible = "regulator-fixed";
+                       regulator-name = "3v3";
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
+                       regulator-always-on;
+               };
+       };
+};
+
+&codec {
+       regulators {
+               reg_2v5: regulator@0 {
+                       compatible = "regulator-fixed";
+                       regulator-name = "2v5";
+                       regulator-min-microvolt = <2500000>;
+                       regulator-max-microvolt = <2500000>;
+                       regulator-always-on;
+               };
+       };
+};