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

Commit eb5e76ff authored by Jean-Christophe PLAGNIOL-VILLARD's avatar Jean-Christophe PLAGNIOL-VILLARD
Browse files

ARM: at91: add pmc DT support



Specified the main Oscillator via clock binding.
This will allow to do not hardcode it anymore in the DT board at 12MHz.

Signed-off-by: default avatarJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: default avatarRob Herring <rob.herring@calxeda.com>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
parent 2b11ea5b
Loading
Loading
Loading
Loading
+11 −0
Original line number Original line Diff line number Diff line
* Power Management Controller (PMC)

Required properties:
- compatible: Should be "atmel,at91rm9200-pmc"
- reg: Should contain PMC registers location and length

Examples:
	pmc: pmc@fffffc00 {
		compatible = "atmel,at91rm9200-pmc";
		reg = <0xfffffc00 0x100>;
	};
+5 −0
Original line number Original line Diff line number Diff line
@@ -59,6 +59,11 @@
				reg = <0xfffff000 0x200>;
				reg = <0xfffff000 0x200>;
			};
			};


			pmc: pmc@fffffc00 {
				compatible = "atmel,at91rm9200-pmc";
				reg = <0xfffffc00 0x100>;
			};

			pit: timer@fffffd30 {
			pit: timer@fffffd30 {
				compatible = "atmel,at91sam9260-pit";
				compatible = "atmel,at91sam9260-pit";
				reg = <0xfffffd30 0xf>;
				reg = <0xfffffd30 0xf>;
+5 −0
Original line number Original line Diff line number Diff line
@@ -60,6 +60,11 @@
				reg = <0xfffff000 0x200>;
				reg = <0xfffff000 0x200>;
			};
			};


			pmc: pmc@fffffc00 {
				compatible = "atmel,at91rm9200-pmc";
				reg = <0xfffffc00 0x100>;
			};

			pit: timer@fffffd30 {
			pit: timer@fffffd30 {
				compatible = "atmel,at91sam9260-pit";
				compatible = "atmel,at91sam9260-pit";
				reg = <0xfffffd30 0xf>;
				reg = <0xfffffd30 0xf>;
+11 −0
Original line number Original line Diff line number Diff line
@@ -21,6 +21,17 @@
		reg = <0x70000000 0x4000000>;
		reg = <0x70000000 0x4000000>;
	};
	};


	clocks {
		#address-cells = <1>;
		#size-cells = <1>;
		ranges;

		main_clock: clock@0 {
			compatible = "atmel,osc", "fixed-clock";
			clock-frequency = <12000000>;
		};
	};

	ahb {
	ahb {
		apb {
		apb {
			dbgu: serial@ffffee00 {
			dbgu: serial@ffffee00 {
+5 −0
Original line number Original line Diff line number Diff line
@@ -58,6 +58,11 @@
				reg = <0xfffff000 0x200>;
				reg = <0xfffff000 0x200>;
			};
			};


			pmc: pmc@fffffc00 {
				compatible = "atmel,at91rm9200-pmc";
				reg = <0xfffffc00 0x100>;
			};

			pit: timer@fffffe30 {
			pit: timer@fffffe30 {
				compatible = "atmel,at91sam9260-pit";
				compatible = "atmel,at91sam9260-pit";
				reg = <0xfffffe30 0xf>;
				reg = <0xfffffe30 0xf>;
Loading