Add DT support for AT91RM9200
Subsystems (4)
cover Add DT support for AT91RM9200
Hi
This patch series add support for devicetree on AT91RM9200. Series is dependent upon at91-pinctrl.
There isn't support for any boards yet, but I am working on one now. I will submit it once I have a couple of more bindings in place.
Patch 1 is a fix for a build failure which can happen if board-dt is enabled when no AT91SAM machines are enabled.
regards
Joachim Eastwood
Joachim Eastwood (5):
ARM: AT91: Fix build failure on board-dt
ARM: AT91: Add DT support to AT91RM9200 System Timer
ARM: AT91: Add usart/tc/pio DT clock lookup to AT91RM9200
ARM: AT91: Add AT91RM9200 DT board
ARM: AT91: Add AT91RM9200 device tree
.../devicetree/bindings/arm/atmel-at91.txt | 6 + arch/arm/boot/dts/at91rm9200.dtsi | 333 +++++++++++++++++++++ arch/arm/mach-at91/Kconfig | 9 + arch/arm/mach-at91/Makefile | 1 + arch/arm/mach-at91/at91rm9200.c | 17 ++ 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 + 9 files changed, 501 insertions(+), 2 deletions(-) create mode 100644 arch/arm/boot/dts/at91rm9200.dtsi create mode 100644 arch/arm/mach-at91/board-rm9200-dt.c
Signature · 1 line
1.7.12.3
PATCH 1/5 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
@@ -507,6 +507,7 @@ comment "Generic Board Type" config MACH_AT91SAM_DT bool "Atmel AT91SAM Evaluation Kits with device-tree support" + select SOC_AT91SAM9 select USE_OF help Select this if you want to experiment device-tree with
Signature · 1 line
1.7.12.3
PATCH 1/5 ARM: AT91: Fix build failure on board-dt
Quoted 2 lines · Joachim Eastwood
We need
CONFIG_SOC_AT91SAM9to get theat91sam926x_timersymbol used in board-dt.
as I said before you can not do a select you need to do a depends
as you will have no clock as you select no SoC
Best Regards,
J.
Quoted 21 lines
Signed-off-by Joachim Eastwood <[email protected]>--- arch/arm/mach-at91/Kconfig | 1 + 1 file changed, 1 insertion(+)arch/arm/mach-at91/Kconfig +1
-0@@ -507,6 +507,7 @@ comment "Generic Board Type" config MACH_AT91SAM_DT bool "Atmel AT91SAM Evaluation Kits with device-tree support" + select SOC_AT91SAM9 select USE_OF help Select this if you want to experiment device-tree withSignature · 1 line
1.7.12.3
PATCH 1/5 ARM: AT91: Fix build failure on board-dt
Quoted 6 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 2 lines · Joachim Eastwood
We need
CONFIG_SOC_AT91SAM9to get theat91sam926x_timersymbol used in board-dt.as I said before you can not do a select you need to do a depends
as you will have no clock as you select no SoC
Yes, the board-dt will not boot without a SoC.
Changing it to depend will hide board-dt until you choose a SoC I assume this is the behavior we want then.
I'll change both patches to use depend in Kconfig.
regards
Joachim Eastwood
Quoted 2 lines
Best Regards,
J.
PATCH 2/5 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>-pit". <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.7.12.3
PATCH 3/5 ARM: AT91: Add usart/tc/pio DT clock lookup to AT91RM9200
In reply to Joachim Eastwood--- arch/arm/mach-at91/at91rm9200.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
arch/arm/mach-at91/at91rm9200.c +17 -0
@@ -188,12 +188,29 @@ 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" , &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),/* 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.7.12.3
PATCH 4/5 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
@@ -505,6 +505,14 @@ endif comment "Generic Board Type" +config MACH_AT91RM9200_DT + bool "Atmel AT91RM9200 Evaluation Kits with device-tree support" + select 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" select SOC_AT91SAM9
arch/arm/mach-at91/Makefile +1 -0
@@ -89,6 +89,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.7.12.3
PATCH 4/5 ARM: AT91: Add AT91RM9200 DT board
Quoted 15 lines · Joachim Eastwood
Signed-off-by Joachim Eastwood <[email protected]>--- 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.carch/arm/mach-at91/Kconfig +0
-0
arch/arm/mach-at91/Kconfig endif · line 510
Quoted 6 lines
arch/arm/mach-at91/Kconfig +3
-0@@ -505,6 +505,14 @@ endif comment "Generic Board Type" +config MACH_AT91RM9200_DT + bool "Atmel AT91RM9200 Evaluation Kits with device-tree support" + select SOC_AT91RM9200
depends on
arch/arm/mach-at91/Kconfig endif · line 515
Quoted 5 lines
arch/arm/mach-at91/Kconfig +5
-0+ select USE_OF + help + Select this if you want to experiment device-tree with + an Atmel RM9200 Evaluation Kit. +
Best Regards,
J.
PATCH 5/5 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.7.12.3
PATCH 5/5 ARM: AT91: Add AT91RM9200 device tree
+
Quoted 91 lines
arch/arm/boot/dts/at91rm9200.dtsi new file +91
-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 */
arch/arm/boot/dts/at91rm9200.dtsi line 191
Quoted 10 lines
arch/arm/boot/dts/at91rm9200.dtsi new file +10
-0+ 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 */ + };
I do not yet check the pin I'll do it later
but look ok
please a board so we can test it the rm9200ek at least
Best Regards,
J.
PATCH 5/5 ARM: AT91: Add AT91RM9200 device tree
On Mon, Oct 15, 2012 at 8:03 AM, Jean-Christophe PLAGNIOL-VILLARD <[email protected]> wrote:
<snip patch>
Quoted 5 lines
I do not yet check the pin I'll do it later
but look ok
please a board so we can test it the rm9200ek at least
I can add it, but I don't have any of the Atmel RM9200 dev kits so I can't test it.
The testing I have done so far has been with a custom board which I'll add later as noted in the series description.
regards
Joachim Eastwood
Quoted 2 lines
Best Regards,
J.
cover Add DT support for AT91RM9200
In reply to Joachim EastwoodQuoted 8 lines · Joachim Eastwood
Hi
This patch series add support for devicetree on AT91RM9200. Series is dependent upon at91-pinctrl.
There isn't support for any boards yet, but I am working on one now. I will submit it once I have a couple of more bindings in place.
Patch 1 is a fixfor a build failure which can happen if board-dt is enabled when no AT91SAM machines are enabled.
next time put the version number in subject
Best Regards,
J.