Skip to content

Commit 6c9d161

Browse files
committed
Merge tag 'at91-fixes' of git://github.com/at91linux/linux-at91 into fixes
Merge "First AT91 fixes batch for 3.16" from Nicolas Ferre: - drivers/misc fix for Kconfig PWM symbol - correction of several values in DT after conversion to CCF - fix at91sam9261/at91sam9261ek mistake in slow crystal vs. slow RC osc * tag 'at91-fixes' of git://github.com/at91linux/linux-at91: ARM: at91/dt: sam9261: remove slow RC osc ARM: at91/dt: define sam9261ek slow crystal frequency ARM: at91/dt: sam9261: correctly define mainck ARM: at91/dt: sam9n12: correct PLLA ICPLL and OUT values ARM: at91/dt: sam9x5: correct PLLA ICPLL and OUT values misc: atmel_pwm: fix Kconfig symbols
2 parents 6d12e79 + 971dc9c commit 6c9d161

File tree

5 files changed

+16
-19
lines changed

5 files changed

+16
-19
lines changed

arch/arm/boot/dts/at91sam9261.dtsi

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -568,24 +568,17 @@
568568
#size-cells = <0>;
569569
#interrupt-cells = <1>;
570570

571-
slow_rc_osc: slow_rc_osc {
572-
compatible = "fixed-clock";
571+
main_osc: main_osc {
572+
compatible = "atmel,at91rm9200-clk-main-osc";
573573
#clock-cells = <0>;
574-
clock-frequency = <32768>;
575-
clock-accuracy = <50000000>;
576-
};
577-
578-
clk32k: slck {
579-
compatible = "atmel,at91sam9260-clk-slow";
580-
#clock-cells = <0>;
581-
clocks = <&slow_rc_osc &slow_xtal>;
574+
interrupts-extended = <&pmc AT91_PMC_MOSCS>;
575+
clocks = <&main_xtal>;
582576
};
583577

584578
main: mainck {
585579
compatible = "atmel,at91rm9200-clk-main";
586580
#clock-cells = <0>;
587-
interrupts-extended = <&pmc AT91_PMC_MOSCS>;
588-
clocks = <&main_xtal>;
581+
clocks = <&main_osc>;
589582
};
590583

591584
plla: pllack {
@@ -615,7 +608,7 @@
615608
compatible = "atmel,at91rm9200-clk-master";
616609
#clock-cells = <0>;
617610
interrupts-extended = <&pmc AT91_PMC_MCKRDY>;
618-
clocks = <&clk32k>, <&main>, <&plla>, <&pllb>;
611+
clocks = <&slow_xtal>, <&main>, <&plla>, <&pllb>;
619612
atmel,clk-output-range = <0 94000000>;
620613
atmel,clk-divisors = <1 2 4 0>;
621614
};
@@ -632,7 +625,7 @@
632625
#address-cells = <1>;
633626
#size-cells = <0>;
634627
interrupt-parent = <&pmc>;
635-
clocks = <&clk32k>, <&main>, <&plla>, <&pllb>;
628+
clocks = <&slow_xtal>, <&main>, <&plla>, <&pllb>;
636629

637630
prog0: prog0 {
638631
#clock-cells = <0>;

arch/arm/boot/dts/at91sam9261ek.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
reg = <0x20000000 0x4000000>;
2121
};
2222

23+
slow_xtal {
24+
clock-frequency = <32768>;
25+
};
26+
2327
main_xtal {
2428
clock-frequency = <18432000>;
2529
};

arch/arm/boot/dts/at91sam9n12.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@
132132
<595000000 650000000 3 0>,
133133
<545000000 600000000 0 1>,
134134
<495000000 555000000 1 1>,
135-
<445000000 500000000 1 2>,
136-
<400000000 450000000 1 3>;
135+
<445000000 500000000 2 1>,
136+
<400000000 450000000 3 1>;
137137
};
138138

139139
plladiv: plladivck {

arch/arm/boot/dts/at91sam9x5.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@
140140
595000000 650000000 3 0
141141
545000000 600000000 0 1
142142
495000000 555000000 1 1
143-
445000000 500000000 1 2
144-
400000000 450000000 1 3>;
143+
445000000 500000000 2 1
144+
400000000 450000000 3 1>;
145145
};
146146

147147
plladiv: plladivck {

drivers/misc/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ config AD525X_DPOT_SPI
5454
config ATMEL_PWM
5555
tristate "Atmel AT32/AT91 PWM support"
5656
depends on HAVE_CLK
57-
depends on AVR32 || AT91SAM9263 || AT91SAM9RL || AT91SAM9G45
57+
depends on AVR32 || ARCH_AT91SAM9263 || ARCH_AT91SAM9RL || ARCH_AT91SAM9G45
5858
help
5959
This option enables device driver support for the PWM channels
6060
on certain Atmel processors. Pulse Width Modulation is used for

0 commit comments

Comments
 (0)