Migrate TCB bindings
cover Migrate TCB bindings
Hi,
As the bindings were acked by Rob a while ago [1] and I think there is consensus on what they look like, I'm planning to apply that series for 4.16 so we get a smoother transition for the TCB driver rework.
I've simply removed the PWM binding change that I will submit with the driver change itself.
There is also a small fix in the at91sam9261ek patch.
[1] https://patchwork.kernel.org/patch/9755341/
Alexandre Belloni (45):
ARM: at91: Document new TCB bindings
ARM: dts: at91: at91rm9200: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: at91rm9200ek: use TCB0 for timers
ARM: dts: at91: mpa1600: use TCB0 as timers
ARM: dts: at91: at91sam9260: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: at91sam9260ek: use TCB0 as timers
ARM: dts: at91: sam9_l9260: use TCB0 as timers
ARM: dts: at91: ethernut5: use TCB0 as timers
ARM: dts: at91: foxg20: use TCB0 as timers
ARM: dts: at91: animeo_ip: use TCB0 as timers
ARM: dts: at91: kizbox: use TCB0 as timers
ARM: dts: at91: at91sam9g20ek: use TCB0 as timers
ARM: dts: at91: ge863-pro3: use TCB0 as timers
ARM: dts: at91: at91sam9261: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: at91sam9261ek: use TCB0 as timers
ARM: dts: at91: at91sam9263: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: at91sam9263ek: use TCB0 as timers
ARM: dts: at91: calao: use TCB0 as timers
ARM: dts: at91: at91sam9g45: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: at91sam9m10g45ek: use TCB0 as timers
ARM: dts: at91: pm9g45: use TCB0 as timers
ARM: dts: at91: at91sam9rl: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: at91sam9rlek: use TCB0 as timers
ARM: dts: at91: at91sam9n12: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: at91sam9n12ek: use TCB0 as timers
ARM: dts: at91: at91sam9x5: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: at91sam9x5cm: use TCB0 as timers
ARM: dts: at91: acme/g25: use TCB0 as timers
ARM: dts: at91: cosino: use TCB0 as timers
ARM: dts: at91: kizboxmini: use TCB0 as timers
ARM: dts: at91: sama5d3: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: sama5d3xek: use TCB0 as timers
ARM: dts: at91: sama5d3 Xplained: use TCB0 as timers
ARM: dts: at91: kizbox2: use TCB0 as timers
ARM: dts: at91: sama5d3xek_cmp: use TCB0 as timers
ARM: dts: at91: linea/tse850-3: use TCB0 as timers
ARM: dts: at91: sama5d4: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: sama5d4: Add TCB2
ARM: dts: at91: sama5d4ek: use TCB2 as timers
ARM: dts: at91: sama5d4 Xplained: use TCB2 as timers
ARM: dts: at91: ma5d4: use TCB2 as timers
ARM: dts: at91: vinco: use TCB2 as timers
ARM: dts: at91: sama5d2: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: sama5d2 Xplained: use TCB0 as timers
ARM: dts: at91: sama5d27_som1_ek: use TCB0 as timers
.../devicetree/bindings/arm/atmel-at91.txt | 32 ------------- .../devicetree/bindings/mfd/atmel-tcb.txt | 56 ++++++++++++++++++++++ arch/arm/boot/dts/animeo_ip.dts | 12 +++++ arch/arm/boot/dts/at91-ariag25.dts | 12 +++++ arch/arm/boot/dts/at91-ariettag25.dts | 12 +++++ arch/arm/boot/dts/at91-cosino.dtsi | 12 +++++ arch/arm/boot/dts/at91-foxg20.dts | 12 +++++ arch/arm/boot/dts/at91-kizbox.dts | 12 +++++ arch/arm/boot/dts/at91-kizbox2.dts | 12 +++++ arch/arm/boot/dts/at91-kizboxmini.dts | 12 +++++ arch/arm/boot/dts/at91-linea.dtsi | 12 +++++ arch/arm/boot/dts/at91-qil_a9260.dts | 12 +++++ arch/arm/boot/dts/at91-sam9_l9260.dts | 12 +++++ arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 12 +++++ arch/arm/boot/dts/at91-sama5d2_xplained.dts | 12 +++++ arch/arm/boot/dts/at91-sama5d3_xplained.dts | 12 +++++ arch/arm/boot/dts/at91-sama5d4_ma5d4.dtsi | 12 +++++ arch/arm/boot/dts/at91-sama5d4_xplained.dts | 12 +++++ arch/arm/boot/dts/at91-sama5d4ek.dts | 12 +++++ arch/arm/boot/dts/at91-vinco.dts | 12 +++++ arch/arm/boot/dts/at91rm9200.dtsi | 8 +++- arch/arm/boot/dts/at91rm9200ek.dts | 12 +++++ arch/arm/boot/dts/at91sam9260.dtsi | 8 +++- arch/arm/boot/dts/at91sam9260ek.dts | 12 +++++ arch/arm/boot/dts/at91sam9261.dtsi | 4 +- arch/arm/boot/dts/at91sam9261ek.dts | 20 ++++++++ arch/arm/boot/dts/at91sam9263.dtsi | 4 +- arch/arm/boot/dts/at91sam9263ek.dts | 12 +++++ arch/arm/boot/dts/at91sam9g20ek_common.dtsi | 12 +++++ arch/arm/boot/dts/at91sam9g45.dtsi | 8 +++- arch/arm/boot/dts/at91sam9m10g45ek.dts | 12 +++++ arch/arm/boot/dts/at91sam9n12.dtsi | 8 +++- arch/arm/boot/dts/at91sam9n12ek.dts | 12 +++++ arch/arm/boot/dts/at91sam9rl.dtsi | 4 +- arch/arm/boot/dts/at91sam9rlek.dts | 12 +++++ arch/arm/boot/dts/at91sam9x5.dtsi | 8 +++- arch/arm/boot/dts/at91sam9x5cm.dtsi | 12 +++++ arch/arm/boot/dts/ethernut5.dts | 12 +++++ arch/arm/boot/dts/ge863-pro3.dtsi | 12 +++++ arch/arm/boot/dts/mpa1600.dts | 12 +++++ arch/arm/boot/dts/pm9g45.dts | 12 +++++ arch/arm/boot/dts/sama5d2.dtsi | 8 +++- arch/arm/boot/dts/sama5d3.dtsi | 4 +- arch/arm/boot/dts/sama5d3_tcb1.dtsi | 4 +- arch/arm/boot/dts/sama5d3xcm.dtsi | 12 +++++ arch/arm/boot/dts/sama5d3xcm_cmp.dtsi | 12 +++++ arch/arm/boot/dts/sama5d4.dtsi | 18 ++++++- arch/arm/boot/dts/tny_a9260_common.dtsi | 12 +++++ arch/arm/boot/dts/tny_a9263.dts | 12 +++++ arch/arm/boot/dts/usb_a9260_common.dtsi | 12 +++++ arch/arm/boot/dts/usb_a9263.dts | 12 +++++ 51 files changed, 575 insertions(+), 51 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/atmel-tcb.txt
Signature · 1 line
2.15.1
PATCH 1/45 ARM: at91: Document new TCB bindings
The current binding for the TCB is not flexible enough for some use cases and prevents proper utilization of all the channels.
--- .../devicetree/bindings/arm/atmel-at91.txt | 32 ------------- .../devicetree/bindings/mfd/atmel-tcb.txt | 56 ++++++++++++++++++++++ 2 files changed, 56 insertions(+), 32 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/atmel-tcb.txt
Documentation/devicetree/bindings/arm/atmel-at91.txt +0 -32
@@ -90,38 +90,6 @@ System Timer (ST) required properties: Its subnodes can be: - watchdog: compatible should be "atmel,at91rm9200-wdt" -TC/TCLIB Timer required properties: -- compatible: Should be "atmel,<chip>-tcb". - <chip> can be "at91rm9200" or "at91sam9x5" -- reg: Should contain registers location and length -- interrupts: Should contain all interrupts for the TC block - Note that you can specify several interrupt cells if the TC - block has one interrupt per channel. -- clock-names: tuple listing input clock names. - Required elements: "t0_clk", "slow_clk" - Optional elements: "t1_clk", "t2_clk" -- clocks: phandles to input clocks. - -Examples: - -One interrupt per TC block: - tcb0: timer at fff7c000 { - compatible = "atmel,at91rm9200-tcb"; - reg = <0xfff7c000 0x100>; - interrupts = <18 4>; - clocks = <&tcb0_clk>; - clock-names = "t0_clk"; - }; - -One interrupt per TC channel in a TC block: - tcb1: timer at fffdc000 { - compatible = "atmel,at91rm9200-tcb"; - reg = <0xfffdc000 0x100>; - interrupts = <26 4 27 4 28 4>; - clocks = <&tcb1_clk>; - clock-names = "t0_clk"; - }; - RSTC Reset Controller required properties: - compatible: Should be "atmel,<chip>-rstc". <chip> can be "at91sam9260" or "at91sam9g45" or "sama5d3"
Documentation/devicetree/bindings/mfd/atmel-tcb.txt new file +56 -0
56 lines not on this page · raw message
Signature · 1 line
2.15.1
PATCH 2/45 ARM: dts: at91: at91rm9200: TC blocks are also simple-mfd and syscon devices
In reply to Alexandre BelloniAdd simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time and free up the remaining channels for other use.
--- arch/arm/boot/dts/at91rm9200.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
arch/arm/boot/dts/at91rm9200.dtsi +6 -2
@@ -375,7 +375,9 @@ }; tcb0: timer at fffa0000 { - compatible = "atmel,at91rm9200-tcb"; + compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; reg = <0xfffa0000 0x100>; interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0 18 IRQ_TYPE_LEVEL_HIGH 0
@@ -385,7 +387,9 @@ }; tcb1: timer@fffa4000 { - compatible = "atmel,at91rm9200-tcb"; + compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; reg = <0xfffa4000 0x100>; interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0 21 IRQ_TYPE_LEVEL_HIGH 0
Signature · 1 line
2.15.1
PATCH 3/45 ARM: dts: at91: at91rm9200ek: use TCB0 for timers
In reply to Alexandre BelloniUse tcb0 for timers like selected in at91_dt_defconfig.
--- arch/arm/boot/dts/at91rm9200ek.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91rm9200ek.dts +12 -0
@@ -32,6 +32,18 @@ ahb { apb { + tcb0: timer at fffa0000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + usb1: gadget at fffb0000 { atmel,vbus-gpio = <&pioD 4 GPIO_ACTIVE_HIGH>; atmel,pullup-gpio = <&pioD 5 GPIO_ACTIVE_HIGH>;
Signature · 1 line
2.15.1
PATCH 4/45 ARM: dts: at91: mpa1600: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/mpa1600.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/mpa1600.dts +12 -0
@@ -32,6 +32,18 @@ status = "okay"; }; + tcb0: timer at fffa0000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + macb0: ethernet at fffbc000 { phy-mode = "rmii"; status = "okay";
Signature · 1 line
2.15.1
PATCH 5/45 ARM: dts: at91: at91sam9260: TC blocks are also simple-mfd and syscon devices
In reply to Alexandre BelloniAdd simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time and free up the remaining channels for other use.
--- arch/arm/boot/dts/at91sam9260.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
arch/arm/boot/dts/at91sam9260.dtsi +6 -2
@@ -386,7 +386,9 @@ }; tcb0: timer at fffa0000 { - compatible = "atmel,at91rm9200-tcb"; + compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; reg = <0xfffa0000 0x100>; interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0 18 IRQ_TYPE_LEVEL_HIGH 0
@@ -396,7 +398,9 @@ }; tcb1: timer@fffdc000 { - compatible = "atmel,at91rm9200-tcb"; + compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; reg = <0xfffdc000 0x100>; interrupts = <26 IRQ_TYPE_LEVEL_HIGH 0 27 IRQ_TYPE_LEVEL_HIGH 0
Signature · 1 line
2.15.1
PATCH 6/45 ARM: dts: at91: at91sam9260ek: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/at91sam9260ek.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91sam9260ek.dts +12 -0
@@ -69,6 +69,18 @@ ahb { apb { + tcb0: timer at fffa0000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + usb1: gadget at fffa4000 { atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>; status = "okay";
Signature · 1 line
2.15.1
PATCH 7/45 ARM: dts: at91: sam9_l9260: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/at91-sam9_l9260.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91-sam9_l9260.dts +12 -0
@@ -32,6 +32,18 @@ ahb { apb { + tcb0: timer at fffa0000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + mmc0: mmc at fffa8000 { pinctrl-0 = < &pinctrl_board_mmc0
Signature · 1 line
2.15.1
PATCH 8/45 ARM: dts: at91: ethernut5: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/ethernut5.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/ethernut5.dts +12 -0
@@ -36,6 +36,18 @@ status = "okay"; }; + tcb0: timer at fffa0000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + usart0: serial at fffb0000 { status = "okay"; };
Signature · 1 line
2.15.1
PATCH 9/45 ARM: dts: at91: foxg20: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/at91-foxg20.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91-foxg20.dts +12 -0
@@ -34,6 +34,18 @@ ahb { apb { + tcb0: timer at fffa0000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + usb1: gadget at fffa4000 { atmel,vbus-gpio = <&pioC 6 GPIO_ACTIVE_HIGH>; status = "okay";
Signature · 1 line
2.15.1
PATCH 10/45 ARM: dts: at91: animeo_ip: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/animeo_ip.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/animeo_ip.dts +12 -0
@@ -43,6 +43,18 @@ ahb { apb { + tcb0: timer at fffa0000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + usart0: serial at fffb0000 { pinctrl-0 = <&pinctrl_usart0 &pinctrl_usart0_rts>; linux,rs485-enabled-at-boot-time;
Signature · 1 line
2.15.1
PATCH 11/45 ARM: dts: at91: kizbox: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/at91-kizbox.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91-kizbox.dts +12 -0
@@ -31,6 +31,18 @@ ahb { apb { + tcb0: timer at fffa0000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + macb0: ethernet at fffc4000 { phy-mode = "mii"; pinctrl-0 = <&pinctrl_macb_rmii
Signature · 1 line
2.15.1
PATCH 12/45 ARM: dts: at91: at91sam9g20ek: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/at91sam9g20ek_common.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91sam9g20ek_common.dtsi +12 -0
@@ -51,6 +51,18 @@ status = "okay"; }; + tcb0: timer at fffa0000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + usart0: serial at fffb0000 { pinctrl-0 = <&pinctrl_usart0
Signature · 1 line
2.15.1
PATCH 13/45 ARM: dts: at91: ge863-pro3: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/ge863-pro3.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/ge863-pro3.dtsi +12 -0
@@ -18,6 +18,18 @@ ahb { apb { + tcb0: timer at fffa0000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + dbgu: serial at fffff200 { status = "okay"; };
Signature · 1 line
2.15.1
PATCH 14/45 ARM: dts: at91: at91sam9261: TC blocks are also simple-mfd and syscon devices
In reply to Alexandre BelloniAdd simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time and free up the remaining channels for other use.
--- arch/arm/boot/dts/at91sam9261.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm/boot/dts/at91sam9261.dtsi +3 -1
@@ -125,7 +125,9 @@ ranges; tcb0: timer at fffa0000 { - compatible = "atmel,at91rm9200-tcb"; + compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; reg = <0xfffa0000 0x100>; interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>, <18 IRQ_TYPE_LEVEL_HIGH 0>,
Signature · 1 line
2.15.1
PATCH 15/45 ARM: dts: at91: at91sam9261ek: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/at91sam9261ek.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
arch/arm/boot/dts/at91sam9261ek.dts +20 -0
@@ -15,6 +15,14 @@ chosen { bootargs = "rootfstype=ubifs ubi.mtd=5 root=ubi0:rootfs rw"; stdout-path = "serial0:115200n8"; + + clocksource { + timer = <&timer0>; + }; + + clockevent { + timer = <&timer1>; + }; }; memory {
@@ -125,6 +133,18 @@ }; apb { + tcb0: timer at fffa0000 { + timer0: timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer1: timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + usb1: gadget at fffa4000 { atmel,vbus-gpio = <&pioB 29 GPIO_ACTIVE_HIGH>; status = "okay";
Signature · 1 line
2.15.1
PATCH 16/45 ARM: dts: at91: at91sam9263: TC blocks are also simple-mfd and syscon devices
In reply to Alexandre BelloniAdd simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time and free up the remaining channels for other use.
--- arch/arm/boot/dts/at91sam9263.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm/boot/dts/at91sam9263.dtsi +3 -1
@@ -389,7 +389,9 @@ }; tcb0: timer at fff7c000 { - compatible = "atmel,at91rm9200-tcb"; + compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; reg = <0xfff7c000 0x100>; interrupts = <19 IRQ_TYPE_LEVEL_HIGH 0>; clocks = <&tcb_clk>, <&slow_xtal>;
Signature · 1 line
2.15.1
PATCH 17/45 ARM: dts: at91: at91sam9263ek: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/at91sam9263ek.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91sam9263ek.dts +12 -0
@@ -37,6 +37,18 @@ status = "okay"; }; + tcb0: timer at fff7c000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + usart0: serial at fff8c000 { pinctrl-0 = < &pinctrl_usart0
Signature · 1 line
2.15.1
PATCH 18/45 ARM: dts: at91: calao: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/at91-qil_a9260.dts | 12 ++++++++++++ arch/arm/boot/dts/tny_a9260_common.dtsi | 12 ++++++++++++ arch/arm/boot/dts/tny_a9263.dts | 12 ++++++++++++ arch/arm/boot/dts/usb_a9260_common.dtsi | 12 ++++++++++++ arch/arm/boot/dts/usb_a9263.dts | 12 ++++++++++++ 5 files changed, 60 insertions(+)
arch/arm/boot/dts/at91-qil_a9260.dts +12 -0
@@ -31,6 +31,18 @@ ahb { apb { + tcb0: timer at fffa0000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + usb1: gadget at fffa4000 { atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>; status = "okay";
arch/arm/boot/dts/tny_a9260_common.dtsi +12 -0
@@ -27,6 +27,18 @@ ahb { apb { + tcb0: timer at fffa0000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + dbgu: serial at fffff200 { status = "okay"; };
arch/arm/boot/dts/tny_a9263.dts +12 -0
@@ -36,6 +36,18 @@ status = "okay"; }; + tcb0: timer at fff7c000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + usb1: gadget at fff78000 { atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>; status = "okay";
arch/arm/boot/dts/usb_a9260_common.dtsi +12 -0
@@ -23,6 +23,18 @@ status = "okay"; }; + tcb0: timer at fffa0000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + macb0: ethernet at fffc4000 { phy-mode = "rmii"; status = "okay";
arch/arm/boot/dts/usb_a9263.dts +12 -0
@@ -36,6 +36,18 @@ status = "okay"; }; + tcb0: timer at fff7c000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + macb0: ethernet at fffbc000 { phy-mode = "rmii"; status = "okay";
Signature · 1 line
2.15.1
PATCH 19/45 ARM: dts: at91: at91sam9g45: TC blocks are also simple-mfd and syscon devices
In reply to Alexandre BelloniAdd simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time and free up the remaining channels for other use.
--- arch/arm/boot/dts/at91sam9g45.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
arch/arm/boot/dts/at91sam9g45.dtsi +6 -2
@@ -415,7 +415,9 @@ }; tcb0: timer at fff7c000 { - compatible = "atmel,at91rm9200-tcb"; + compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; reg = <0xfff7c000 0x100>; interrupts = <18 IRQ_TYPE_LEVEL_HIGH 0>; clocks = <&tcb0_clk>, <&tcb0_clk>, <&tcb0_clk>, <&clk32k>;
@@ -423,7 +425,9 @@ }; tcb1: timer at fffd4000 { - compatible = "atmel,at91rm9200-tcb"; + compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; reg = <0xfffd4000 0x100>; interrupts = <18 IRQ_TYPE_LEVEL_HIGH 0>; clocks = <&tcb0_clk>, <&tcb0_clk>, <&tcb0_clk>, <&clk32k>;
Signature · 1 line
2.15.1
PATCH 20/45 ARM: dts: at91: at91sam9m10g45ek: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/at91sam9m10g45ek.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91sam9m10g45ek.dts +12 -0
@@ -39,6 +39,18 @@ status = "okay"; }; + tcb0: timer at fff7c000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + usart1: serial at fff90000 { pinctrl-0 = <&pinctrl_usart1
Signature · 1 line
2.15.1
PATCH 21/45 ARM: dts: at91: pm9g45: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/pm9g45.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/pm9g45.dts +12 -0
@@ -52,6 +52,18 @@ }; }; + tcb0: timer at fff7c000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + mmc0: mmc at fff80000 { pinctrl-0 = < &pinctrl_board_mmc
Signature · 1 line
2.15.1
PATCH 22/45 ARM: dts: at91: at91sam9rl: TC blocks are also simple-mfd and syscon devices
In reply to Alexandre BelloniAdd simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time and free up the remaining channels for other use.
--- arch/arm/boot/dts/at91sam9rl.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm/boot/dts/at91sam9rl.dtsi +3 -1
@@ -124,7 +124,9 @@ ranges; tcb0: timer at fffa0000 { - compatible = "atmel,at91rm9200-tcb"; + compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; reg = <0xfffa0000 0x100>; interrupts = <16 IRQ_TYPE_LEVEL_HIGH 0>, <17 IRQ_TYPE_LEVEL_HIGH 0>,
Signature · 1 line
2.15.1
PATCH 23/45 ARM: dts: at91: at91sam9rlek: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/at91sam9rlek.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91sam9rlek.dts +12 -0
@@ -124,6 +124,18 @@ }; apb { + tcb0: timer at fffa0000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>, <1>; + }; + + timer at 2 { + compatible = "atmel,tcb-timer"; + reg = <2>; + }; + }; + mmc0: mmc at fffa4000 { pinctrl-0 = < &pinctrl_board_mmc0
Signature · 1 line
2.15.1
PATCH 24/45 ARM: dts: at91: at91sam9n12: TC blocks are also simple-mfd and syscon devices
In reply to Alexandre BelloniAdd simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time and free up the remaining channels for other use.
--- arch/arm/boot/dts/at91sam9n12.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
arch/arm/boot/dts/at91sam9n12.dtsi +6 -2
@@ -446,7 +446,9 @@ }; tcb0: timer at f8008000 { - compatible = "atmel,at91sam9x5-tcb"; + compatible = "atmel,at91sam9x5-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; reg = <0xf8008000 0x100>; interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>; clocks = <&tcb_clk>, <&clk32k>;
@@ -454,7 +456,9 @@ }; tcb1: timer at f800c000 { - compatible = "atmel,at91sam9x5-tcb"; + compatible = "atmel,at91sam9x5-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; reg = <0xf800c000 0x100>; interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>; clocks = <&tcb_clk>, <&clk32k>;
Signature · 1 line
2.15.1
PATCH 25/45 ARM: dts: at91: at91sam9n12ek: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/at91sam9n12ek.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91sam9n12ek.dts +12 -0
@@ -42,6 +42,18 @@ status = "okay"; }; + tcb0: timer at f8008000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>; + }; + + timer at 1 { + compatible = "atmel,tcb-timer"; + reg = <1>; + }; + }; + i2c0: i2c at f8010000 { status = "okay";
Signature · 1 line
2.15.1
PATCH 26/45 ARM: dts: at91: at91sam9x5: TC blocks are also simple-mfd and syscon devices
In reply to Alexandre BelloniAdd simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time and free up the remaining channels for other use.
--- arch/arm/boot/dts/at91sam9x5.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
arch/arm/boot/dts/at91sam9x5.dtsi +6 -2
@@ -433,7 +433,9 @@ }; tcb0: timer at f8008000 { - compatible = "atmel,at91sam9x5-tcb"; + compatible = "atmel,at91sam9x5-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; reg = <0xf8008000 0x100>; interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>; clocks = <&tcb0_clk>, <&clk32k>;
@@ -441,7 +443,9 @@ }; tcb1: timer at f800c000 { - compatible = "atmel,at91sam9x5-tcb"; + compatible = "atmel,at91sam9x5-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; reg = <0xf800c000 0x100>; interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>; clocks = <&tcb0_clk>, <&clk32k>;
Signature · 1 line
2.15.1
PATCH 27/45 ARM: dts: at91: at91sam9x5cm: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/at91sam9x5cm.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91sam9x5cm.dtsi +12 -0
@@ -24,6 +24,18 @@ ahb { apb { + tcb0: timer at f8008000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>; + }; + + timer at 1 { + compatible = "atmel,tcb-timer"; + reg = <1>; + }; + }; + pinctrl at fffff400 { 1wire_cm { pinctrl_1wire_cm: 1wire_cm-0 {
Signature · 1 line
2.15.1
PATCH 28/45 ARM: dts: at91: acme/g25: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/at91-ariag25.dts | 12 ++++++++++++ arch/arm/boot/dts/at91-ariettag25.dts | 12 ++++++++++++ 2 files changed, 24 insertions(+)
arch/arm/boot/dts/at91-ariag25.dts +12 -0
@@ -58,6 +58,18 @@ }; }; + tcb0: timer at f8008000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>; + }; + + timer at 1 { + compatible = "atmel,tcb-timer"; + reg = <1>; + }; + }; + i2c0: i2c at f8010000 { status = "okay"; };
arch/arm/boot/dts/at91-ariettag25.dts +12 -0
@@ -46,6 +46,18 @@ }; }; + tcb0: timer at f8008000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>; + }; + + timer at 1 { + compatible = "atmel,tcb-timer"; + reg = <1>; + }; + }; + usb2: gadget at f803c000 { status = "okay"; };
Signature · 1 line
2.15.1
PATCH 29/45 ARM: dts: at91: cosino: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/at91-cosino.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91-cosino.dtsi +12 -0
@@ -37,6 +37,18 @@ ahb { apb { + tcb0: timer at f8008000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>; + }; + + timer at 1 { + compatible = "atmel,tcb-timer"; + reg = <1>; + }; + }; + mmc0: mmc at f0008000 { pinctrl-0 = < &pinctrl_board_mmc0
Signature · 1 line
2.15.1
PATCH 30/45 ARM: dts: at91: kizboxmini: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in at91_dt_defconfig.
--- arch/arm/boot/dts/at91-kizboxmini.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91-kizboxmini.dts +12 -0
@@ -34,6 +34,18 @@ ahb { apb { + tcb0: timer at f8008000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>; + }; + + timer at 1 { + compatible = "atmel,tcb-timer"; + reg = <1>; + }; + }; + usart0: serial at f801c000 { status = "okay"; };
Signature · 1 line
2.15.1
PATCH 31/45 ARM: dts: at91: sama5d3: TC blocks are also simple-mfd and syscon devices
In reply to Alexandre BelloniAdd simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time and free up the remaining channels for other use.
--- arch/arm/boot/dts/sama5d3.dtsi | 4 +++- arch/arm/boot/dts/sama5d3_tcb1.dtsi | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)
arch/arm/boot/dts/sama5d3.dtsi +3 -1
@@ -142,7 +142,9 @@ }; tcb0: timer at f0010000 { - compatible = "atmel,at91sam9x5-tcb"; + compatible = "atmel,at91sam9x5-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; reg = <0xf0010000 0x100>; interrupts = <26 IRQ_TYPE_LEVEL_HIGH 0>; clocks = <&tcb0_clk>, <&clk32k>;
arch/arm/boot/dts/sama5d3_tcb1.dtsi +3 -1
@@ -28,7 +28,9 @@ }; tcb1: timer at f8014000 { - compatible = "atmel,at91sam9x5-tcb"; + compatible = "atmel,at91sam9x5-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; reg = <0xf8014000 0x100>; interrupts = <27 IRQ_TYPE_LEVEL_HIGH 0>; clocks = <&tcb1_clk>, <&clk32k>;
Signature · 1 line
2.15.1
PATCH 32/45 ARM: dts: at91: sama5d3xek: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in sama5_defconfig.
--- arch/arm/boot/dts/sama5d3xcm.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/sama5d3xcm.dtsi +12 -0
@@ -34,6 +34,18 @@ spi0: spi at f0004000 { cs-gpios = <&pioD 13 0>, <0>, <0>, <0>; }; + + tcb0: timer at f0010000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>; + }; + + timer at 1 { + compatible = "atmel,tcb-timer"; + reg = <1>; + }; + }; }; ebi at 10000000 {
Signature · 1 line
2.15.1
PATCH 33/45 ARM: dts: at91: sama5d3 Xplained: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in sama5_defconfig.
--- arch/arm/boot/dts/at91-sama5d3_xplained.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91-sama5d3_xplained.dts +12 -0
@@ -65,6 +65,18 @@ status = "okay"; }; + tcb0: timer at f0010000 { + timer0: timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>; + }; + + timer1: timer at 1 { + compatible = "atmel,tcb-timer"; + reg = <1>; + }; + }; + i2c0: i2c at f0014000 { pinctrl-0 = <&pinctrl_i2c0_pu>; status = "okay";
Signature · 1 line
2.15.1
PATCH 34/45 ARM: dts: at91: kizbox2: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in sama5_defconfig.
--- arch/arm/boot/dts/at91-kizbox2.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91-kizbox2.dts +12 -0
@@ -94,6 +94,18 @@ }; }; + tcb0: timer at f0010000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>; + }; + + timer at 1 { + compatible = "atmel,tcb-timer"; + reg = <1>; + }; + }; + usart0: serial at f001c000 { status = "okay"; };
Signature · 1 line
2.15.1
PATCH 35/45 ARM: dts: at91: sama5d3xek_cmp: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in sama5_defconfig.
--- arch/arm/boot/dts/sama5d3xcm_cmp.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/sama5d3xcm_cmp.dtsi +12 -0
@@ -69,6 +69,18 @@ cs-gpios = <&pioD 13 0>, <0>, <0>, <0>; }; + tcb0: timer at f0010000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>; + }; + + timer at 1 { + compatible = "atmel,tcb-timer"; + reg = <1>; + }; + }; + macb0: ethernet at f0028000 { phy-mode = "rgmii"; #address-cells = <1>;
Signature · 1 line
2.15.1
PATCH 36/45 ARM: dts: at91: linea/tse850-3: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in sama5_defconfig.
--- arch/arm/boot/dts/at91-linea.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91-linea.dtsi +12 -0
@@ -27,6 +27,18 @@ clock-frequency = <12000000>; }; +&tcb0 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>; + }; + + timer at 1 { + compatible = "atmel,tcb-timer"; + reg = <1>; + }; +}; + &i2c0 { status = "okay";
Signature · 1 line
2.15.1
PATCH 37/45 ARM: dts: at91: sama5d4: TC blocks are also simple-mfd and syscon devices
In reply to Alexandre BelloniAdd simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time and free up the remaining channels for other use.
--- arch/arm/boot/dts/sama5d4.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
arch/arm/boot/dts/sama5d4.dtsi +6 -2
@@ -960,7 +960,9 @@ }; tcb0: timer at f801c000 { - compatible = "atmel,at91sam9x5-tcb"; + compatible = "atmel,at91sam9x5-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; reg = <0xf801c000 0x100>; interrupts = <40 IRQ_TYPE_LEVEL_HIGH 0>; clocks = <&tcb0_clk>, <&clk32k>;
@@ -1188,7 +1190,9 @@ }; tcb1: timer at fc020000 { - compatible = "atmel,at91sam9x5-tcb"; + compatible = "atmel,at91sam9x5-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; reg = <0xfc020000 0x100>; interrupts = <41 IRQ_TYPE_LEVEL_HIGH 0>; clocks = <&tcb1_clk>, <&clk32k>;
Signature · 1 line
2.15.1
PATCH 38/45 ARM: dts: at91: sama5d4: Add TCB2
In reply to Alexandre BelloniThe third TC block is missing from the dtsi. It has no output pins but can still be used for timers as the IRQ is wired.
--- arch/arm/boot/dts/sama5d4.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm/boot/dts/sama5d4.dtsi +10 -0
@@ -1199,6 +1199,16 @@ clock-names = "t0_clk", "slow_clk"; }; + tcb2: timer at fc024000 { + compatible = "atmel,at91sam9x5-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xfc024000 0x100>; + interrupts = <42 IRQ_TYPE_LEVEL_HIGH 0>; + clocks = <&tcb2_clk>, <&clk32k>; + clock-names = "t0_clk", "slow_clk"; + }; + macb1: ethernet at fc028000 { compatible = "atmel,sama5d4-gem"; reg = <0xfc028000 0x100>;
Signature · 1 line
2.15.1
PATCH 39/45 ARM: dts: at91: sama5d4ek: use TCB2 as timers
In reply to Alexandre BelloniAs TCB2 doesn't have any output pins, use it for timers.
--- arch/arm/boot/dts/at91-sama5d4ek.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91-sama5d4ek.dts +12 -0
@@ -174,6 +174,18 @@ status = "okay"; }; + tcb2: timer at fc024000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>; + }; + + timer at 1 { + compatible = "atmel,tcb-timer"; + reg = <1>; + }; + }; + watchdog at fc068640 { status = "okay"; };
Signature · 1 line
2.15.1
PATCH 40/45 ARM: dts: at91: sama5d4 Xplained: use TCB2 as timers
In reply to Alexandre BelloniAs TCB2 doesn't have any output pins, use for timers.
--- arch/arm/boot/dts/at91-sama5d4_xplained.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91-sama5d4_xplained.dts +12 -0
@@ -130,6 +130,18 @@ status = "okay"; }; + tcb2: timer at fc024000 { + timer0: timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>; + }; + + timer1: timer at 1 { + compatible = "atmel,tcb-timer"; + reg = <1>; + }; + }; + adc0: adc at fc034000 { pinctrl-names = "default"; pinctrl-0 = <
Signature · 1 line
2.15.1
PATCH 41/45 ARM: dts: at91: ma5d4: use TCB2 as timers
In reply to Alexandre BelloniAs TCB2 doesn't have any output pins, use it for timers
--- arch/arm/boot/dts/at91-sama5d4_ma5d4.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91-sama5d4_ma5d4.dtsi +12 -0
@@ -89,6 +89,18 @@ }; }; + tcb2: timer at fc024000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>; + }; + + timer at 1 { + compatible = "atmel,tcb-timer"; + reg = <1>; + }; + }; + adc0: adc at fc034000 { pinctrl-names = "default"; pinctrl-0 = <
Signature · 1 line
2.15.1
PATCH 42/45 ARM: dts: at91: vinco: use TCB2 as timers
In reply to Alexandre BelloniAs TCB2 doesn't have any output pins, use it for timers
--- arch/arm/boot/dts/at91-vinco.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91-vinco.dts +12 -0
@@ -151,6 +151,18 @@ status = "okay"; }; + tcb2: timer at fc024000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>; + }; + + timer at 1 { + compatible = "atmel,tcb-timer"; + reg = <1>; + }; + }; + macb1: ethernet at fc028000 { phy-mode = "rmii"; status = "okay";
Signature · 1 line
2.15.1
Re: [PATCH 42/45] ARM: dts: at91: vinco: use TCB2 as timers
Hi Alexandre,
Quoted 4 lines · Alexandre Belloni
As TCB2 doesn't have any output pins, use it for timers
Cc Gregory CLEMENT <[email protected]>Signed-off-by Alexandre Belloni <[email protected]>
Thanks,
Gregory
Quoted 30 lines
--- arch/arm/boot/dts/at91-vinco.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)arch/arm/boot/dts/at91-vinco.dts +12
-0@@ -151,6 +151,18 @@ status = "okay"; }; + tcb2: timer at fc024000 { + timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>; + }; + + timer at 1 { + compatible = "atmel,tcb-timer"; + reg = <1>; + }; + }; + macb1: ethernet at fc028000 { phy-mode = "rmii"; status = "okay";Signature · 1 line
2.15.1
Signature · 4 lines
Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 43/45 ARM: dts: at91: sama5d2: TC blocks are also simple-mfd and syscon devices
In reply to Alexandre BelloniAdd simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time and free up the remaining channels for other use.
--- arch/arm/boot/dts/sama5d2.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
arch/arm/boot/dts/sama5d2.dtsi +6 -2
@@ -1094,7 +1094,9 @@ }; tcb0: timer at f800c000 { - compatible = "atmel,at91sam9x5-tcb"; + compatible = "atmel,at91sam9x5-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; reg = <0xf800c000 0x100>; interrupts = <35 IRQ_TYPE_LEVEL_HIGH 0>; clocks = <&tcb0_clk>, <&clk32k>;
@@ -1102,7 +1104,9 @@ }; tcb1: timer at f8010000 { - compatible = "atmel,at91sam9x5-tcb"; + compatible = "atmel,at91sam9x5-tcb", "simple-mfd", "syscon"; + #address-cells = <1>; + #size-cells = <0>; reg = <0xf8010000 0x100>; interrupts = <36 IRQ_TYPE_LEVEL_HIGH 0>; clocks = <&tcb1_clk>, <&clk32k>;
Signature · 1 line
2.15.1
PATCH 44/45 ARM: dts: at91: sama5d2 Xplained: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in sama5_defconfig.
--- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91-sama5d2_xplained.dts +12 -0
@@ -133,6 +133,18 @@ }; }; + tcb0: timer at f800c000 { + timer0: timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>; + }; + + timer1: timer at 1 { + compatible = "atmel,tcb-timer"; + reg = <1>; + }; + }; + pdmic at f8018000 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pdmic_default>;
Signature · 1 line
2.15.1
PATCH 45/45 ARM: dts: at91: sama5d27_som1_ek: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in sama5_defconfig.
--- arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91-sama5d27_som1_ek.dts +12 -0
@@ -119,6 +119,18 @@ status = "okay"; }; + tcb0: timer at f800c000 { + timer0: timer at 0 { + compatible = "atmel,tcb-timer"; + reg = <0>; + }; + + timer1: timer at 1 { + compatible = "atmel,tcb-timer"; + reg = <1>; + }; + }; + uart1: serial at f8020000 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1_default>;
Signature · 1 line
2.15.1
Quoted 76 lines · Alexandre Belloni
Hi,
As the bindings were acked by Rob a while ago [1] and I think there is consensus on what they look like, I'm planning to apply that series for 4.16 so we get a smoother transition for the TCB driver rework.
I've simply removed the PWM binding change that I will submit with the driver change itself.
There is also a small fix in the at91sam9261ek patch.[1] https://patchwork.kernel.org/patch/9755341/
Cc Antoine Aubert <[email protected]>Cc devicetree at vger.kernel.orgCc Douglas Gilbert <[email protected]>Cc Fabio Porcedda <[email protected]>Cc Gregory CLEMENT <[email protected]>Cc Joachim Eastwood <[email protected]>Cc Marek Vasut <[email protected]>Cc Martin Reimann <[email protected]>Cc Peter Rosin <[email protected]>Cc Raashid Muhammed <[email protected]>Cc Rob Herring <[email protected]>Cc Rodolfo Giometti <[email protected]>Cc Sergio Tanzilli <[email protected]>Cc Tim Schendekehl <[email protected]>Alexandre Belloni (45):
ARM: at91: Document new TCB bindings
ARM: dts: at91: at91rm9200: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: at91rm9200ek: use TCB0 for timers
ARM: dts: at91: mpa1600: use TCB0 as timers
ARM: dts: at91: at91sam9260: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: at91sam9260ek: use TCB0 as timers
ARM: dts: at91:sam9_l9260: use TCB0 as timers
ARM: dts: at91: ethernut5: use TCB0 as timers
ARM: dts: at91: foxg20: use TCB0 as timers
ARM: dts: at91:animeo_ip: use TCB0 as timers
ARM: dts: at91: kizbox: use TCB0 as timers
ARM: dts: at91: at91sam9g20ek: use TCB0 as timers
ARM: dts: at91: ge863-pro3: use TCB0 as timers
ARM: dts: at91: at91sam9261: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: at91sam9261ek: use TCB0 as timers
ARM: dts: at91: at91sam9263: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: at91sam9263ek: use TCB0 as timers
ARM: dts: at91: calao: use TCB0 as timers
ARM: dts: at91: at91sam9g45: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: at91sam9m10g45ek: use TCB0 as timers
ARM: dts: at91: pm9g45: use TCB0 as timers
ARM: dts: at91: at91sam9rl: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: at91sam9rlek: use TCB0 as timers
ARM: dts: at91: at91sam9n12: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: at91sam9n12ek: use TCB0 as timers
ARM: dts: at91: at91sam9x5: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: at91sam9x5cm: use TCB0 as timers
ARM: dts: at91: acme/g25: use TCB0 as timers
ARM: dts: at91: cosino: use TCB0 as timers
ARM: dts: at91: kizboxmini: use TCB0 as timers
ARM: dts: at91: sama5d3: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: sama5d3xek: use TCB0 as timers
ARM: dts: at91: sama5d3 Xplained: use TCB0 as timers
ARM: dts: at91: kizbox2: use TCB0 as timers
ARM: dts: at91:sama5d3xek_cmp: use TCB0 as timers
ARM: dts: at91: linea/tse850-3: use TCB0 as timers
ARM: dts: at91: sama5d4: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: sama5d4: Add TCB2
Quoted 8 lines
ARM: dts: at91: sama5d4ek: use TCB2 as timers
ARM: dts: at91: sama5d4 Xplained: use TCB2 as timers
ARM: dts: at91: ma5d4: use TCB2 as timers
ARM: dts: at91: vinco: use TCB2 as timers
ARM: dts: at91: sama5d2: TC blocks are also simple-mfd and syscon
devices
ARM: dts: at91: sama5d2 Xplained: use TCB0 as timers
ARM: dts: at91:sama5d27_som1_ek: use TCB0 as timers
For the whole series:
Thanks, best regards,
Nicolas
Quoted 54 lines
.../devicetree/bindings/arm/atmel-at91.txt | 32 ------------- .../devicetree/bindings/mfd/atmel-tcb.txt | 56 ++++++++++++++++++++++ arch/arm/boot/dts/animeo_ip.dts | 12 +++++ arch/arm/boot/dts/at91-ariag25.dts | 12 +++++ arch/arm/boot/dts/at91-ariettag25.dts | 12 +++++ arch/arm/boot/dts/at91-cosino.dtsi | 12 +++++ arch/arm/boot/dts/at91-foxg20.dts | 12 +++++ arch/arm/boot/dts/at91-kizbox.dts | 12 +++++ arch/arm/boot/dts/at91-kizbox2.dts | 12 +++++ arch/arm/boot/dts/at91-kizboxmini.dts | 12 +++++ arch/arm/boot/dts/at91-linea.dtsi | 12 +++++ arch/arm/boot/dts/at91-qil_a9260.dts | 12 +++++ arch/arm/boot/dts/at91-sam9_l9260.dts | 12 +++++ arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 12 +++++ arch/arm/boot/dts/at91-sama5d2_xplained.dts | 12 +++++ arch/arm/boot/dts/at91-sama5d3_xplained.dts | 12 +++++ arch/arm/boot/dts/at91-sama5d4_ma5d4.dtsi | 12 +++++ arch/arm/boot/dts/at91-sama5d4_xplained.dts | 12 +++++ arch/arm/boot/dts/at91-sama5d4ek.dts | 12 +++++ arch/arm/boot/dts/at91-vinco.dts | 12 +++++ arch/arm/boot/dts/at91rm9200.dtsi | 8 +++- arch/arm/boot/dts/at91rm9200ek.dts | 12 +++++ arch/arm/boot/dts/at91sam9260.dtsi | 8 +++- arch/arm/boot/dts/at91sam9260ek.dts | 12 +++++ arch/arm/boot/dts/at91sam9261.dtsi | 4 +- arch/arm/boot/dts/at91sam9261ek.dts | 20 ++++++++ arch/arm/boot/dts/at91sam9263.dtsi | 4 +- arch/arm/boot/dts/at91sam9263ek.dts | 12 +++++ arch/arm/boot/dts/at91sam9g20ek_common.dtsi | 12 +++++ arch/arm/boot/dts/at91sam9g45.dtsi | 8 +++- arch/arm/boot/dts/at91sam9m10g45ek.dts | 12 +++++ arch/arm/boot/dts/at91sam9n12.dtsi | 8 +++- arch/arm/boot/dts/at91sam9n12ek.dts | 12 +++++ arch/arm/boot/dts/at91sam9rl.dtsi | 4 +- arch/arm/boot/dts/at91sam9rlek.dts | 12 +++++ arch/arm/boot/dts/at91sam9x5.dtsi | 8 +++- arch/arm/boot/dts/at91sam9x5cm.dtsi | 12 +++++ arch/arm/boot/dts/ethernut5.dts | 12 +++++ arch/arm/boot/dts/ge863-pro3.dtsi | 12 +++++ arch/arm/boot/dts/mpa1600.dts | 12 +++++ arch/arm/boot/dts/pm9g45.dts | 12 +++++ arch/arm/boot/dts/sama5d2.dtsi | 8 +++- arch/arm/boot/dts/sama5d3.dtsi | 4 +- arch/arm/boot/dts/sama5d3_tcb1.dtsi | 4 +- arch/arm/boot/dts/sama5d3xcm.dtsi | 12 +++++ arch/arm/boot/dts/sama5d3xcm_cmp.dtsi | 12 +++++ arch/arm/boot/dts/sama5d4.dtsi | 18 ++++++- arch/arm/boot/dts/tny_a9260_common.dtsi | 12 +++++ arch/arm/boot/dts/tny_a9263.dts | 12 +++++ arch/arm/boot/dts/usb_a9260_common.dtsi | 12 +++++ arch/arm/boot/dts/usb_a9263.dts | 12 +++++ 51 files changed, 575 insertions(+), 51 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/atmel-tcb.txt
Signature · 1 line
Nicolas Ferre
Nicolas Ferre
maintainerPATCH 1/1 ARM: dts: at91: sama5d2_ptc_ek: use TCB0 as timers
In reply to Alexandre BelloniUse tcb0 for timers as selected in sama5_defconfig.
---
Hi Alex,
Adding the newly added sama5d2_ptc_ek to the series. Not tested though.
Regards,
Nicolas
arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts +12 -0
@@ -149,6 +149,18 @@ }; }; + tcb0: timer@f800c000 { + timer0: timer@0 { + compatible = "atmel,tcb-timer"; + reg = <0>; + }; + + timer1: timer@1 { + compatible = "atmel,tcb-timer"; + reg = <1>; + }; + }; + uart0: serial@f801c000 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart0_default>;
Signature · 1 line
2.9.0
Alexandre Belloni
AppliedRe: [PATCH] ARM: dts: at91: sama5d2_ptc_ek: use TCB0 as timers
Quoted 6 lines · Nicolas Ferre
Use tcb0 for timers as selected in
sama5_defconfig.Signed-off-by Nicolas Ferre <[email protected]>---
Hi Alex,
Quoted 9 lines
Adding the newly added
sama5d2_ptc_ekto the series. Not tested though.Regards,
Nicolasarch/arm/boot/dts/at91-sama5d2_ptc_ek.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Applied, thanks.
Signature · 3 lines
Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com