Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b0d5971 authored by Olof Johansson's avatar Olof Johansson
Browse files

Merge branch 'omap/uart' into next/pm

* omap/uart: (32 commits)
  ARM: omap: pass minimal SoC/board data for UART from dt
  arm/dts: Add minimal device tree support for omap2420 and omap2430
  omap-serial: Add minimal device tree support
  omap-serial: Use default clock speed (48Mhz) if not specified
  omap-serial: Get rid of all pdev->id usage
  ARM: OMAP2+: UART: Fix compilation/sparse warnings
  ARM: OMAP2+: UART: Remove omap_uart_can_sleep and add pm_qos
  ARM: OMAP2+: UART: Do not gate uart clocks if used for debug_prints
  ARM: OMAP2+: UART: Avoid uart idling on suspend for no_console_suspend usecase
  ARM: OMAP2+: UART: Avoid console uart idling during bootup
  ARM: OMAP2+: UART: remove temporary variable used to count uart instance
  ARM: OMAP2+: UART: Make the RX_TIMEOUT for DMA configurable for each UART
  ARM: OMAP2+: UART: Allow UART parameters to be configured from board file.
  ARM: OMAP2+: UART: Remove old and unused clocks handling funcs
  ARM: OMAP2+: UART: Add wakeup mechanism for omap-uarts
  ARM: OMAP2+: UART: Move errata handling from serial.c to omap-serial
  ARM: OMAP2+: UART: Get context loss count to context restore
  ARM: OMAP2+: UART: Remove uart reset function.
  ARM: OMAP2+: UART: Ensure all reg values configured are available from port structure
  ARM: OMAP2+: UART: Remove context_save and move context restore to driver
  ...
parents b86c7842 6b6fa98c
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
OMAP UART controller

Required properties:
- compatible : should be "ti,omap2-uart" for OMAP2 controllers
- compatible : should be "ti,omap3-uart" for OMAP3 controllers
- compatible : should be "ti,omap4-uart" for OMAP4 controllers
- ti,hwmods : Must be "uart<n>", n being the instance number (1-based)

Optional properties:
- clock-frequency : frequency of the clock input to the UART
+67 −0
Original line number Diff line number Diff line
/*
 * Device Tree Source for OMAP2 SoC
 *
 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
 *
 * This file is licensed under the terms of the GNU General Public License
 * version 2.  This program is licensed "as is" without any warranty of any
 * kind, whether express or implied.
 */

/include/ "skeleton.dtsi"

/ {
	compatible = "ti,omap2430", "ti,omap2420", "ti,omap2";

	aliases {
		serial0 = &uart1;
		serial1 = &uart2;
		serial2 = &uart3;
	};

	cpus {
		cpu@0 {
			compatible = "arm,arm1136jf-s";
		};
	};

	soc {
		compatible = "ti,omap-infra";
		mpu {
			compatible = "ti,omap2-mpu";
			ti,hwmods = "mpu";
		};
	};

	ocp {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <1>;
		ranges;
		ti,hwmods = "l3_main";

		intc: interrupt-controller@1 {
			compatible = "ti,omap2-intc";
			interrupt-controller;
			#interrupt-cells = <1>;
		};

		uart1: serial@4806a000 {
			compatible = "ti,omap2-uart";
			ti,hwmods = "uart1";
			clock-frequency = <48000000>;
		};

		uart2: serial@4806c000 {
			compatible = "ti,omap2-uart";
			ti,hwmods = "uart2";
			clock-frequency = <48000000>;
		};

		uart3: serial@4806e000 {
			compatible = "ti,omap2-uart";
			ti,hwmods = "uart3";
			clock-frequency = <48000000>;
		};
	};
};
+31 −0
Original line number Diff line number Diff line
@@ -13,6 +13,13 @@
/ {
	compatible = "ti,omap3430", "ti,omap3";

	aliases {
		serial0 = &uart1;
		serial1 = &uart2;
		serial2 = &uart3;
		serial3 = &uart4;
	};

	cpus {
		cpu@0 {
			compatible = "arm,cortex-a8";
@@ -59,5 +66,29 @@
			interrupt-controller;
			#interrupt-cells = <1>;
		};

		uart1: serial@0x4806a000 {
			compatible = "ti,omap3-uart";
			ti,hwmods = "uart1";
			clock-frequency = <48000000>;
		};

		uart2: serial@0x4806c000 {
			compatible = "ti,omap3-uart";
			ti,hwmods = "uart2";
			clock-frequency = <48000000>;
		};

		uart3: serial@0x49020000 {
			compatible = "ti,omap3-uart";
			ti,hwmods = "uart3";
			clock-frequency = <48000000>;
		};

		uart4: serial@0x49042000 {
			compatible = "ti,omap3-uart";
			ti,hwmods = "uart4";
			clock-frequency = <48000000>;
		};
	};
};
+28 −0
Original line number Diff line number Diff line
@@ -21,6 +21,10 @@
	interrupt-parent = <&gic>;

	aliases {
		serial0 = &uart1;
		serial1 = &uart2;
		serial2 = &uart3;
		serial3 = &uart4;
	};

	cpus {
@@ -99,5 +103,29 @@
			reg = <0x48241000 0x1000>,
			      <0x48240100 0x0100>;
		};

		uart1: serial@0x4806a000 {
			compatible = "ti,omap4-uart";
			ti,hwmods = "uart1";
			clock-frequency = <48000000>;
		};

		uart2: serial@0x4806c000 {
			compatible = "ti,omap4-uart";
			ti,hwmods = "uart2";
			clock-frequency = <48000000>;
		};

		uart3: serial@0x48020000 {
			compatible = "ti,omap4-uart";
			ti,hwmods = "uart3";
			clock-frequency = <48000000>;
		};

		uart4: serial@0x4806e000 {
			compatible = "ti,omap4-uart";
			ti,hwmods = "uart4";
			clock-frequency = <48000000>;
		};
	};
};
+8 −3
Original line number Diff line number Diff line
@@ -76,8 +76,13 @@ config SOC_OMAP3430
	default y
	select ARCH_OMAP_OTG

config SOC_OMAPTI816X
	bool "TI816X support"
config SOC_OMAPTI81XX
	bool "TI81XX support"
	depends on ARCH_OMAP3
	default y

config SOC_OMAPAM33XX
	bool "AM33XX support"
	depends on ARCH_OMAP3
	default y

@@ -314,7 +319,7 @@ config MACH_OMAP_3630SDP

config MACH_TI8168EVM
	bool "TI8168 Evaluation Module"
	depends on SOC_OMAPTI816X
	depends on SOC_OMAPTI81XX
	default y

config MACH_OMAP_4430SDP
Loading