From: Oliver Wendt Date: Thu, 21 Mar 2013 14:37:27 +0000 (+0100) Subject: Added initial TX48 device tree X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cbf3ddaf74f6778b5946ff271ae981a6ebbcea81;p=karo-tx-linux.git Added initial TX48 device tree --- diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index dedca493efc8..fa2f12e0e75b 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -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 index 000000000000..45ccf60a720b --- /dev/null +++ b/arch/arm/boot/dts/am335x-tx48.dts @@ -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 = <®_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; + }; + }; +};