From e938575483f005e6b7e3fb03fc5e5e4093ea38c6 Mon Sep 17 00:00:00 2001 From: Stefan Mavrodiev Date: Fri, 22 Mar 2019 08:23:52 +0200 Subject: [PATCH 1/3] Update SAM9-L9260 dts --- arch/arm/boot/dts/at91-sam9_l9260.dts | 69 ++++++++++++++++++++++++--- 1 file changed, 63 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/at91-sam9_l9260.dts b/arch/arm/boot/dts/at91-sam9_l9260.dts index 70cb36f7a..815e074fe 100644 --- a/arch/arm/boot/dts/at91-sam9_l9260.dts +++ b/arch/arm/boot/dts/at91-sam9_l9260.dts @@ -44,6 +44,10 @@ }; }; + usb1: gadget@fffa4000 { + status = "okay"; + }; + mmc0: mmc@fffa8000 { pinctrl-0 = < &pinctrl_board_mmc0 @@ -60,6 +64,10 @@ }; }; + usart2: serial@fffb8000 { + status = "okay"; + }; + macb0: ethernet@fffc4000 { pinctrl-0 = <&pinctrl_macb_rmii &pinctrl_macb_rmii_mii_alt>; phy-mode = "mii"; @@ -74,7 +82,7 @@ spi0: spi@fffc8000 { cs-gpios = <&pioC 11 0>, <0>, <0>, <0>; - status = "okay"; + status = "disabled"; flash@0 { compatible = "atmel,at45", "atmel,dataflash"; @@ -83,6 +91,11 @@ }; }; + spi1: spi@fffcc000 { + cs-gpios = <&pioB 3 0>, <0>, <0>, <0>; + status = "okay"; + }; + dbgu: serial@fffff200 { status = "okay"; }; @@ -96,17 +109,61 @@ }; }; }; + + rtc@fffffd20 { + status = "okay"; + atmel,rtt-rtc-time-reg = <&gpbr 0x0>; + }; + + gpbr: syscon@fffffd50 { + status = "okay"; + }; }; - nand0: nand@40000000 { - nand-bus-width = <8>; - nand-ecc-mode = "soft"; - nand-on-flash-bbt = <1>; + usb0: ohci@500000 { status = "okay"; }; - usb0: ohci@500000 { + ebi: ebi@10000000 { status = "okay"; + + nand_controller: nand-controller { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>; + status = "okay"; + + + nand@3 { + reg = <0x3 0x0 0x800000>; + rb-gpios = <&pioC 13 GPIO_ACTIVE_HIGH>; + cs-gpios = <&pioC 14 GPIO_ACTIVE_LOW>; + and-bus-width = <8>; + nand-ecc-mode = "soft"; + nand-on-flash-bbt; + label = "atmel_nand"; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "NAND.fdt"; + reg = <0x0 0x20000>; /* 128KiB */ + }; + + partition@20000 { + label = "NAND.kernel"; + reg = <0x20000 0x800000>; /* 8MiB */ + }; + + partition@820000 { + label = "NAND.rootfs"; + reg = <0x820000 0x1F7E0000>; + }; + }; + }; + }; }; }; -- 2.17.1