DT support for AT91RM9200
Subsystems (5)
v3 cover DT support for AT91RM9200
Patch 1 is a fix for a build failure which can happen if board-dt is enabled when no AT91SAM machines are enabled.
Patch 2 adds DT support to the AT91RM9200 system timer. Based on AT91 PIT patch by Jean-Christophe PLAGNIOL-VILLARD.
Patch 3 adds clock lookups for DT.
Patch 4 adds a new board for RM9200 DT support.
Patch 5-6 adds the base devicetree for AT91RM9200 and support for AT91RM9200-EK board.
I don't have a AT91RM9200-EK to test on but I was able to boot at91rm9200ek.dts on my custom board using a initrd. As far as I can tell pinctrl, usart and ohci all work.
Patches based on linux-next.
Joachim Eastwood (6):
ARM: AT91: Fix build failure on board-dt
ARM: AT91: Add DT support to AT91RM9200 System Timer
ARM: AT91: Add usart/tc/pio/ohci DT clock lookup to AT91RM9200
ARM: AT91: Add AT91RM9200 DT board
ARM: AT91: Add AT91RM9200 device tree
ARM: AT91: Add AT91RM9200EK board device tree
.../devicetree/bindings/arm/atmel-at91.txt | 6 + arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/at91rm9200.dtsi | 333 +++++++++++++++++++++ arch/arm/boot/dts/at91rm9200ek.dts | 78 +++++ arch/arm/mach-at91/Kconfig | 9 + arch/arm/mach-at91/Makefile | 1 + arch/arm/mach-at91/at91rm9200.c | 18 ++ arch/arm/mach-at91/at91rm9200_time.c | 63 +++- arch/arm/mach-at91/board-rm9200-dt.c | 59 ++++ arch/arm/mach-at91/generic.h | 1 + arch/arm/mach-at91/setup.c | 14 + 11 files changed, 582 insertions(+), 2 deletions(-) create mode 100644 arch/arm/boot/dts/at91rm9200.dtsi create mode 100644 arch/arm/boot/dts/at91rm9200ek.dts create mode 100644 arch/arm/mach-at91/board-rm9200-dt.c
Signature · 1 line
1.8.0
PATCH v3 1/6 ARM: AT91: Fix build failure on board-dt
We need CONFIG_SOC_AT91SAM9 to get the at91sam926x_timer symbol used in board-dt.
--- arch/arm/mach-at91/Kconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/mach-at91/Kconfig +1 -0
@@ -492,6 +492,7 @@ comment "Generic Board Type" config MACH_AT91SAM_DT bool "Atmel AT91SAM Evaluation Kits with device-tree support" + depends on SOC_AT91SAM9 select USE_OF help Select this if you want to experiment device-tree with
Signature · 1 line
1.8.0
PATCH v3 2/6 ARM: AT91: Add DT support to AT91RM9200 System Timer
In reply to Joachim EastwoodBased on AT91 PIT DT patch from Jean-Christophe PLAGNIOL-VILLARD.
--- .../devicetree/bindings/arm/atmel-at91.txt | 6 +++ arch/arm/mach-at91/at91rm9200_time.c | 63 +++++++++++++++++++++- 2 files changed, 67 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/arm/atmel-at91.txt +6 -0
@@ -7,6 +7,12 @@ PIT Timer required properties: - interrupts: Should contain interrupt for the PIT which is the IRQ line shared across all System Controller members. +System Timer (ST) required properties: +- compatible: Should be "atmel,at91rm9200-st" +- reg: Should contain registers location and length +- interrupts: Should contain interrupt for the ST which is the IRQ line + shared across all System Controller members. + TC/TCLIB Timer required properties: - compatible: Should be "atmel,<chip>-tcb". <chip> can be "at91rm9200" or "at91sam9x5"
arch/arm/mach-at91/at91rm9200_time.c +61 -2
95 lines not on this page · raw message
Signature · 1 line
1.8.0
PATCH v3 3/6 ARM: AT91: Add usart/tc/pio/ohci DT clock lookup to AT91RM9200
In reply to Joachim Eastwood--- arch/arm/mach-at91/at91rm9200.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
arch/arm/mach-at91/at91rm9200.c +18 -0
@@ -188,12 +188,30 @@ static struct clk_lookup periph_clocks_lookups[] = {CLKDEV_CON_DEV_ID ("pclk" ,"ssc.1" , &ssc1_clk),CLKDEV_CON_DEV_ID ("pclk" ,"ssc.2" , &ssc2_clk),CLKDEV_CON_DEV_ID (NULL ,"i2c-at91rm9200.0" , &twi_clk), +/* usart lookup table for DT entries */ +CLKDEV_CON_DEV_ID ("usart" ,"fffff200.serial" , &mck), +CLKDEV_CON_DEV_ID ("usart" ,"fffc0000.serial" , &usart0_clk), +CLKDEV_CON_DEV_ID ("usart" ,"fffc4000.serial" , &usart1_clk), +CLKDEV_CON_DEV_ID ("usart" ,"fffc8000.serial" , &usart2_clk), +CLKDEV_CON_DEV_ID ("usart" ,"fffcc000.serial" , &usart3_clk), +/* tc lookup table for DT entries */ +CLKDEV_CON_DEV_ID ("t0_clk" ,"fffa0000.timer" , &tc0_clk), +CLKDEV_CON_DEV_ID ("t1_clk" ,"fffa0000.timer" , &tc1_clk), +CLKDEV_CON_DEV_ID ("t2_clk" ,"fffa0000.timer" , &tc2_clk), +CLKDEV_CON_DEV_ID ("t0_clk" ,"fffa4000.timer" , &tc3_clk), +CLKDEV_CON_DEV_ID ("t1_clk" ,"fffa4000.timer" , &tc4_clk), +CLKDEV_CON_DEV_ID ("t2_clk" ,"fffa4000.timer" , &tc5_clk), +CLKDEV_CON_DEV_ID ("hclk" ,"300000.ohci" , &ohci_clk),/* fake hclk clock */ CLKDEV_CON_DEV_ID ("hclk" ,"at91_ohci" , &ohci_clk),CLKDEV_CON_ID ("pioA" , &pioA_clk),CLKDEV_CON_ID ("pioB" , &pioB_clk),CLKDEV_CON_ID ("pioC" , &pioC_clk),CLKDEV_CON_ID ("pioD" , &pioD_clk), +CLKDEV_CON_DEV_ID (NULL ,"fffff400.gpio" , &pioA_clk), +CLKDEV_CON_DEV_ID (NULL ,"fffff600.gpio" , &pioB_clk), +CLKDEV_CON_DEV_ID (NULL ,"fffff800.gpio" , &pioC_clk), + CLKDEV_CON_DEV_ID(NULL, "fffffa00.gpio", &pioD_clk), }; static struct clk_lookup usart_clocks_lookups[] = {
Signature · 1 line
1.8.0
PATCH v3 4/6 ARM: AT91: Add AT91RM9200 DT board
In reply to Joachim Eastwood--- arch/arm/mach-at91/Kconfig | 8 +++++ arch/arm/mach-at91/Makefile | 1 + arch/arm/mach-at91/board-rm9200-dt.c | 59 ++++++++++++++++++++++++++++++++++++ arch/arm/mach-at91/generic.h | 1 + arch/arm/mach-at91/setup.c | 14 +++++++++ 5 files changed, 83 insertions(+) create mode 100644 arch/arm/mach-at91/board-rm9200-dt.c
arch/arm/mach-at91/Kconfig +8 -0
@@ -490,6 +490,14 @@ endif comment "Generic Board Type" +config MACH_AT91RM9200_DT + bool "Atmel AT91RM9200 Evaluation Kits with device-tree support" + depends on SOC_AT91RM9200 + select USE_OF + help + Select this if you want to experiment device-tree with + an Atmel RM9200 Evaluation Kit. + config MACH_AT91SAM_DT bool "Atmel AT91SAM Evaluation Kits with device-tree support" depends on SOC_AT91SAM9
arch/arm/mach-at91/Makefile +1 -0
@@ -88,6 +88,7 @@ obj-$(CONFIG_MACH_SNAPPER_9260) += board-snapper9260.o obj-$(CONFIG_MACH_AT91SAM9M10G45EK) += board-sam9m10g45ek.o # AT91SAM board with device-tree +obj-$(CONFIG_MACH_AT91RM9200_DT) += board-rm9200-dt.o obj-$(CONFIG_MACH_AT91SAM_DT) += board-dt.o # AT91X40 board-specific support
arch/arm/mach-at91/board-rm9200-dt.c new file +59 -0
59 lines not on this page · raw message
arch/arm/mach-at91/generic.h +1 -0
@@ -20,6 +20,7 @@ extern void __init at91_init_sram(int bank, unsigned long base,extern void __init at91rm9200_set_type (int type);extern void __init at91_initialize (unsigned long main_clock);extern void __init at91x40_initialize (unsigned long main_clock); +extern void __init at91rm9200_dt_initialize (void );extern void __init at91_dt_initialize (void );/* Interrupts */
arch/arm/mach-at91/setup.c +14 -0
@@ -339,6 +339,7 @@ static void at91_dt_rstc(void) }static struct of_device_id ramc_ids[] = { + { .compatible ="atmel,at91rm9200-sdramc" }, { .compatible ="atmel,at91sam9260-sdramc" }, { .compatible ="atmel,at91sam9g45-ddramc" }, {/*sentinel*/ }
@@ -437,6 +438,19 @@ end:of_node_put (np); } +void __init at91rm9200_dt_initialize (void ) +{ +at91_dt_ramc (); + +/* Init clock subsystem */ +at91_dt_clock_init (); + +/* Register the processor-specific clocks */ + at91_boot_soc.register_clocks (); + + at91_boot_soc.init (); +} +void __init at91_dt_initialize (void ) {at91_dt_rstc ();
Signature · 1 line
1.8.0
PATCH v3 5/6 ARM: AT91: Add AT91RM9200 device tree
In reply to Joachim Eastwood--- arch/arm/boot/dts/at91rm9200.dtsi | 333 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 333 insertions(+) create mode 100644 arch/arm/boot/dts/at91rm9200.dtsi
arch/arm/boot/dts/at91rm9200.dtsi new file +333 -0
@@ -0,0 +1,333 @@ +/* + * at91rm9200.dtsi - Device Tree Include file for AT91RM9200 family SoC + * + * Copyright (C) 2011 Atmel, + * 2011 Nicolas Ferre <[email protected]>, + * 2012 Joachim Eastwood <[email protected]> + * + * Based on at91sam9260.dtsi + * + * Licensed under GPLv2 or later. + */ + +/include/ "skeleton.dtsi" + +/ { + model = "Atmel AT91RM9200 family SoC"; + compatible = "atmel,at91rm9200"; + interrupt-parent = <&aic>; + + aliases { + serial0 = &dbgu; + serial1 = &usart0; + serial2 = &usart1; + serial3 = &usart2; + serial4 = &usart3; + gpio0 = &pioA; + gpio1 = &pioB; + gpio2 = &pioC; + gpio3 = &pioD; + tcb0 = &tcb0; + tcb1 = &tcb1; + }; + cpus { + cpu at 0 { + compatible = "arm,arm920t"; + }; + }; + + memory { + reg = <0x20000000 0x04000000>; + }; + + ahb { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + apb { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + aic: interrupt-controller at fffff000 { + #interrupt-cells = <3>; + compatible = "atmel,at91rm9200-aic"; + interrupt-controller; + reg = <0xfffff000 0x200>; + atmel,external-irqs = <25 26 27 28 29 30 31>; + }; + + ramc0: ramc at ffffff00 { + compatible = "atmel,at91rm9200-sdramc"; + reg = <0xffffff00 0x100>; + }; + + pmc: pmc at fffffc00 { + compatible = "atmel,at91rm9200-pmc"; + reg = <0xfffffc00 0x100>; + }; + + st: timer at fffffd00 { + compatible = "atmel,at91rm9200-st"; + reg = <0xfffffd00 0x100>; + interrupts = <1 4 7>; + }; + + tcb0: timer at fffa0000 { + compatible = "atmel,at91rm9200-tcb"; + reg = <0xfffa0000 0x100>; + interrupts = <17 4 0 18 4 0 19 4 0>; + }; + + tcb1: timer at fffa4000 { + compatible = "atmel,at91rm9200-tcb"; + reg = <0xfffa4000 0x100>; + interrupts = <20 4 0 21 4 0 22 4 0>; + }; + + pinctrl at fffff400 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "atmel,at91rm9200-pinctrl", "simple-bus"; + ranges = <0xfffff400 0xfffff400 0x800>; + + atmel,mux-mask = < + /* A B */ + 0xffffffff 0xffffffff /* pioA */ + 0xffffffff 0x083fffff /* pioB */ + 0xffff3fff 0x00000000 /* pioC */ + 0x03ff87ff 0x0fffff80 /* pioD */ + >; + + /* shared pinctrl settings */ + dbgu { + pinctrl_dbgu: dbgu-0 { + atmel,pins = + <0 30 0x1 0x0 /* PA30 periph A */ + 0 31 0x1 0x1>; /* PA31 periph with pullup */ + }; + }; + + uart0 { + pinctrl_uart0: uart0-0 { + atmel,pins = + <0 17 0x1 0x0 /* PA17 periph A */ + 0 18 0x1 0x0>; /* PA18 periph A */ + }; + + pinctrl_uart0_rts_cts: uart0_rts_cts-0 { + atmel,pins = + <0 20 0x1 0x0 /* PA20 periph A */ + 0 21 0x1 0x0>; /* PA21 periph A */ + }; + }; + + uart1 { + pinctrl_uart1: uart1-0 { + atmel,pins = + <1 20 0x1 0x1 /* PB20 periph A with pullup */ + 1 21 0x1 0x0>; /* PB21 periph A */ + }; + + pinctrl_uart1_rts_cts: uart1_rts_cts-0 { + atmel,pins = + <1 24 0x1 0x0 /* PB24 periph A */ + 1 26 0x1 0x0>; /* PB26 periph A */ + }; + + pinctrl_uart1_dtr_dsr: uart1_dtr_dsr-0 { + atmel,pins = + <1 19 0x1 0x0 /* PB19 periph A */ + 1 25 0x1 0x0>; /* PB25 periph A */ + }; + + pinctrl_uart1_dcd: uart1_dcd-0 { + atmel,pins = + <1 23 0x1 0x0>; /* PB23 periph A */ + }; + + pinctrl_uart1_ri: uart1_ri-0 { + atmel,pins = + <1 18 0x1 0x0>; /* PB18 periph A */ + }; + }; + + uart2 { + pinctrl_uart2: uart2-0 { + atmel,pins = + <0 22 0x1 0x0 /* PA22 periph A */ + 0 23 0x1 0x1>; /* PA23 periph A with pullup */ + }; + + pinctrl_uart2_rts_cts: uart2_rts_cts-0 { + atmel,pins = + <0 30 0x2 0x0 /* PA30 periph B */ + 0 31 0x2 0x0>; /* PA31 periph B */ + }; + }; + + uart3 { + pinctrl_uart3: uart3-0 { + atmel,pins = + <0 5 0x2 0x1 /* PA5 periph B with pullup */ + 0 6 0x2 0x0>; /* PA6 periph B */ + }; + + pinctrl_uart3_rts_cts: uart3_rts_cts-0 { + atmel,pins = + <1 0 0x2 0x0 /* PB0 periph B */ + 1 1 0x2 0x0>; /* PB1 periph B */ + }; + }; + + nand { + pinctrl_nand: nand-0 { + atmel,pins = + <2 2 0x0 0x1 /* PC2 gpio RDY pin pull_up */ + 1 1 0x0 0x1>; /* PB1 gpio CD pin pull_up */ + }; + }; + + pioA: gpio at fffff400 { + compatible = "atmel,at91rm9200-gpio"; + reg = <0xfffff400 0x200>; + interrupts = <2 4 1>; + #gpio-cells = <2>; + gpio-controller; + interrupt-controller; + #interrupt-cells = <2>; + }; + + pioB: gpio at fffff600 { + compatible = "atmel,at91rm9200-gpio"; + reg = <0xfffff600 0x200>; + interrupts = <3 4 1>; + #gpio-cells = <2>; + gpio-controller; + interrupt-controller; + #interrupt-cells = <2>; + }; + + pioC: gpio at fffff800 { + compatible = "atmel,at91rm9200-gpio"; + reg = <0xfffff800 0x200>; + interrupts = <4 4 1>; + #gpio-cells = <2>; + gpio-controller; + interrupt-controller; + #interrupt-cells = <2>; + }; + + pioD: gpio at fffffa00 { + compatible = "atmel,at91rm9200-gpio"; + reg = <0xfffffa00 0x200>; + interrupts = <5 4 1>; + #gpio-cells = <2>; + gpio-controller; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + dbgu: serial at fffff200 { + compatible = "atmel,at91rm9200-usart"; + reg = <0xfffff200 0x200>; + interrupts = <1 4 7>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_dbgu>; + status = "disabled"; + }; + + usart0: serial at fffc0000 { + compatible = "atmel,at91rm9200-usart"; + reg = <0xfffc0000 0x200>; + interrupts = <6 4 5>; + atmel,use-dma-rx; + atmel,use-dma-tx; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart0>; + status = "disabled"; + }; + + usart1: serial at fffc4000 { + compatible = "atmel,at91rm9200-usart"; + reg = <0xfffc4000 0x200>; + interrupts = <7 4 5>; + atmel,use-dma-rx; + atmel,use-dma-tx; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart1>; + status = "disabled"; + }; + + usart2: serial at fffc8000 { + compatible = "atmel,at91rm9200-usart"; + reg = <0xfffc8000 0x200>; + interrupts = <8 4 5>; + atmel,use-dma-rx; + atmel,use-dma-tx; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart2>; + status = "disabled"; + }; + + usart3: serial at fffcc000 { + compatible = "atmel,at91rm9200-usart"; + reg = <0xfffcc000 0x200>; + interrupts = <23 4 5>; + atmel,use-dma-rx; + atmel,use-dma-tx; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart3>; + status = "disabled"; + }; + + usb1: gadget at fffb0000 { + compatible = "atmel,at91rm9200-udc"; + reg = <0xfffb0000 0x4000>; + interrupts = <11 4 2>; + status = "disabled"; + }; + }; + + nand0: nand at 40000000 { + compatible = "atmel,at91rm9200-nand"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x40000000 0x10000000>; + atmel,nand-addr-offset = <21>; + atmel,nand-cmd-offset = <22>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_nand>; + nand-ecc-mode = "soft"; + gpios = <&pioC 2 0 + 0 + &pioB 1 0 + >; + status = "disabled"; + }; + + usb0: ohci at 00300000 { + compatible = "atmel,at91rm9200-ohci", "usb-ohci"; + reg = <0x00300000 0x100000>; + interrupts = <23 4 2>; + status = "disabled"; + }; + }; + + i2c at 0 { + compatible = "i2c-gpio"; + gpios = <&pioA 23 0 /* sda */ + &pioA 24 0 /* scl */ + >; + i2c-gpio,sda-open-drain; + i2c-gpio,scl-open-drain; + i2c-gpio,delay-us = <2>; /* ~100 kHz */ + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; +};
Signature · 1 line
1.8.0
PATCH v3 6/6 ARM: AT91: Add AT91RM9200EK board device tree
In reply to Joachim Eastwood--- arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/at91rm9200ek.dts | 78 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 arch/arm/boot/dts/at91rm9200ek.dts
arch/arm/boot/dts/Makefile +2 -0
@@ -1,6 +1,8 @@ ifeq ($(CONFIG_OF),y) # Keep at91 dtb files sorted alphabetically for each SoC +# rm9200 +dtb-$(CONFIG_ARCH_AT91) += at91rm9200ek.dtb # sam9260 dtb-$(CONFIG_ARCH_AT91) += aks-cdu.dtb dtb-$(CONFIG_ARCH_AT91) += ethernut5.dtb
arch/arm/boot/dts/at91rm9200ek.dts new file +78 -0
78 lines not on this page · raw message
Signature · 1 line
1.8.0
v3 cover DT support for AT91RM9200
In reply to Joachim EastwoodQuoted 4 lines · Joachim Eastwood
Patch 1 is a fix for a build failure which can happen if board-dt is enabled when no AT91SAM machines are enabled.
Patch 2 adds DT support to the AT91RM9200 system timer. Based on AT91 PIT patch by Jean-Christophe PLAGNIOL-VILLARD.
Quoted 8 lines
Patch 3 adds clock lookups for DT.
Patch 4 adds a new board for RM9200 DT support.
Patch 5-6 adds the base devicetree for AT91RM9200 and support for AT91RM9200-EK board.
I don't have a AT91RM9200-EK to test on but I was able to boot
at91rm9200ek.dtson my custom board using a initrd. As far as I can tell pinctrl, usart and ohci all work.
After updating barebox to have the DT support I've tested it on rm9200ek with net support
work fine
It does not apply on my tree as I've a more patch but I'll manage the merge conflict
Best Regards,
J.
Quoted 31 lines
Patches based on linux-next.
Joachim Eastwood (6):
ARM: AT91: Fix build failure on board-dt
ARM: AT91: Add DT support to AT91RM9200 System Timer
ARM: AT91: Add usart/tc/pio/ohci DT clock lookup to AT91RM9200
ARM: AT91: Add AT91RM9200 DT board
ARM: AT91: Add AT91RM9200 device tree
ARM: AT91: Add AT91RM9200EK board device tree.../devicetree/bindings/arm/atmel-at91.txt | 6 + arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/at91rm9200.dtsi | 333 +++++++++++++++++++++ arch/arm/boot/dts/at91rm9200ek.dts | 78 +++++ arch/arm/mach-at91/Kconfig | 9 + arch/arm/mach-at91/Makefile | 1 + arch/arm/mach-at91/at91rm9200.c | 18 ++ arch/arm/mach-at91/at91rm9200_time.c | 63 +++- arch/arm/mach-at91/board-rm9200-dt.c | 59 ++++ arch/arm/mach-at91/generic.h | 1 + arch/arm/mach-at91/setup.c | 14 + 11 files changed, 582 insertions(+), 2 deletions(-) create mode 100644 arch/arm/boot/dts/at91rm9200.dtsi create mode 100644 arch/arm/boot/dts/at91rm9200ek.dts create mode 100644 arch/arm/mach-at91/board-rm9200-dt.cSignature · 1 line
1.8.0
v3 cover DT support for AT91RM9200
Quoted 9 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 8 lines · Joachim Eastwood
Patch 1 is a fix for a build failure which can happen if board-dt is enabled when no AT91SAM machines are enabled.
Patch 2 adds DT support to the AT91RM9200 system timer. Based on AT91 PIT patch by Jean-Christophe PLAGNIOL-VILLARD.
Patch 3 adds clock lookups for DT.
Patch 4 adds a new board for RM9200 DT support.
Quoted 8 lines
Quoted 4 lines
Patch 5-6 adds the base devicetree for AT91RM9200 and support for AT91RM9200-EK board.
I don't have a AT91RM9200-EK to test on but I was able to boot
at91rm9200ek.dtson my custom board using a >>initrd. As far as I can tell pinctrl, usart and ohci all work.After updating barebox to have the DT support I've tested it on rm9200ek with net support
work fine
Excellent.
Quoted 2 lines
It does not apply on my tree as I've a more patch but I'll manage the merge conflict
Thanks for fixing it up Jean-Christophe.
regards
Joachim Eastwood
v3 cover DT support for AT91RM9200
Quoted 18 lines · Joachim Eastwood
Quoted 16 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 4 lines · Joachim Eastwood
Patch 1 is a fix for a build failure which can happen if board-dt is enabled when no AT91SAM machines are enabled.
Patch 2 adds DT support to the AT91RM9200 system timer. Based on AT91 PIT patch by Jean-Christophe PLAGNIOL-VILLARD.
Quoted 8 lines
Patch 3 adds clock lookups for DT.
Patch 4 adds a new board for RM9200 DT support.
Patch 5-6 adds the base devicetree for AT91RM9200 and support for AT91RM9200-EK board.
I don't have a AT91RM9200-EK to test on but I was able to boot
at91rm9200ek.dtson my custom board using a >>initrd. As far as I can tell pinctrl, usart and ohci all work.After updating barebox to have the DT support I've tested it on rm9200ek with net support
Quoted 8 lines
Quoted 1 line
work fine
Excellent.
Quoted 2 lines
It does not apply on my tree as I've a more patch but I'll manage the merge conflict
Thanks for fixing it up Jean-Christophe.
I'll also fix the usb device and add missing nor flash support and emac + pinctrl + defconfig
Best Regards,
J.
v3 cover DT support for AT91RM9200
Quoted 21 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 20 lines · Joachim Eastwood
Quoted 17 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 4 lines · Joachim Eastwood
Patch 1 is a fix for a build failure which can happen if board-dt is enabled when no AT91SAM machines are enabled.
Patch 2 adds DT support to the AT91RM9200 system timer. Based on AT91 PIT patch by Jean-Christophe PLAGNIOL-VILLARD.
Quoted 8 lines
Patch 3 adds clock lookups for DT.
Patch 4 adds a new board for RM9200 DT support.
Patch 5-6 adds the base devicetree for AT91RM9200 and support for AT91RM9200-EK board.
I don't have a AT91RM9200-EK to test on but I was able to boot
at91rm9200ek.dtson my custom board using a >>initrd. As far as I can tell pinctrl, usart and ohci all work.After updating barebox to have the DT support I've tested it on rm9200ek with net support
work fine
Quoted 8 lines
Quoted 6 lines
Excellent.
Quoted 2 lines
It does not apply on my tree as I've a more patch but I'll manage the merge conflict
Thanks for fixing it up Jean-Christophe.
I'll also fix the usb device and add missing nor flash support and emac + pinctrl + defconfig
Very nice.
Please make the changes available via a git tree when it's ready.
regards
Joachim Eastwood
v3 cover DT support for AT91RM9200
Quoted 28 lines · Joachim Eastwood
Quoted 26 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 25 lines · Joachim Eastwood
Quoted 9 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 8 lines · Joachim Eastwood
Patch 1 is a fix for a build failure which can happen if board-dt is enabled when no AT91SAM machines are enabled.
Patch 2 adds DT support to the AT91RM9200 system timer. Based on AT91 PIT patch by Jean-Christophe PLAGNIOL-VILLARD.
Patch 3 adds clock lookups for DT.
Patch 4 adds a new board for RM9200 DT support.
Quoted 8 lines
Quoted 4 lines
Patch 5-6 adds the base devicetree for AT91RM9200 and support for AT91RM9200-EK board.
I don't have a AT91RM9200-EK to test on but I was able to boot
at91rm9200ek.dtson my custom board using a >>initrd. As far as I can tell pinctrl, usart and ohci all work.After updating barebox to have the DT support I've tested it on rm9200ek with net support
work fine
Excellent.
Quoted 2 lines
It does not apply on my tree as I've a more patch but I'll manage the merge conflict
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Thanks for fixing it up Jean-Christophe.
I'll also fix the usb device and add missing nor flash support and emac + pinctrl + defconfig
Very nice.
Please make the changes available via a git tree when it's ready.
for at91 the official git is on github
I've to send some patch series
I'll put them in our next
Best Regards,
J.