Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/85xx: Add some DTS nodes and attributes for mpc8536ds

Add partitions for NOR and NAND Flash.

Signed-off-by: Xie Xiaobo <X.Xie@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

authored by

Xie Xiaobo and committed by
Kumar Gala
955abacd b53804c7

+104 -3
+5 -1
arch/powerpc/boot/dts/mpc8536ds.dts
··· 1 1 /* 2 2 * MPC8536 DS Device Tree Source 3 3 * 4 - * Copyright 2008 Freescale Semiconductor, Inc. 4 + * Copyright 2008, 2011 Freescale Semiconductor, Inc. 5 5 * 6 6 * This program is free software; you can redistribute it and/or modify it 7 7 * under the terms of the GNU General Public License as published by the ··· 34 34 35 35 lbc: localbus@ffe05000 { 36 36 reg = <0 0xffe05000 0 0x1000>; 37 + 38 + ranges = <0x0 0x0 0x0 0xe8000000 0x08000000 39 + 0x2 0x0 0x0 0xffa00000 0x00040000 40 + 0x3 0x0 0x0 0xffdf0000 0x00008000>; 37 41 }; 38 42 39 43 board_soc: soc: soc@ffe00000 {
+93
arch/powerpc/boot/dts/mpc8536ds.dtsi
··· 32 32 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 33 */ 34 34 35 + &lbc { 36 + nor@0,0 { 37 + #address-cells = <1>; 38 + #size-cells = <1>; 39 + compatible = "cfi-flash"; 40 + reg = <0x0 0x0 0x8000000>; 41 + bank-width = <2>; 42 + device-width = <1>; 43 + 44 + partition@0 { 45 + reg = <0x0 0x03000000>; 46 + label = "ramdisk-nor"; 47 + }; 48 + 49 + partition@3000000 { 50 + reg = <0x03000000 0x00e00000>; 51 + label = "diagnostic-nor"; 52 + read-only; 53 + }; 54 + 55 + partition@3e00000 { 56 + reg = <0x03e00000 0x00200000>; 57 + label = "dink-nor"; 58 + read-only; 59 + }; 60 + 61 + partition@4000000 { 62 + reg = <0x04000000 0x00400000>; 63 + label = "kernel-nor"; 64 + }; 65 + 66 + partition@4400000 { 67 + reg = <0x04400000 0x03b00000>; 68 + label = "fs-nor"; 69 + }; 70 + 71 + partition@7f00000 { 72 + reg = <0x07f00000 0x00080000>; 73 + label = "dtb-nor"; 74 + }; 75 + 76 + partition@7f80000 { 77 + reg = <0x07f80000 0x00080000>; 78 + label = "u-boot-nor"; 79 + read-only; 80 + }; 81 + }; 82 + 83 + nand@2,0 { 84 + #address-cells = <1>; 85 + #size-cells = <1>; 86 + compatible = "fsl,mpc8536-fcm-nand", 87 + "fsl,elbc-fcm-nand"; 88 + reg = <0x2 0x0 0x40000>; 89 + 90 + partition@0 { 91 + reg = <0x0 0x02000000>; 92 + label = "u-boot-nand"; 93 + read-only; 94 + }; 95 + 96 + partition@2000000 { 97 + reg = <0x02000000 0x10000000>; 98 + label = "fs-nand"; 99 + }; 100 + 101 + partition@12000000 { 102 + reg = <0x12000000 0x08000000>; 103 + label = "ramdisk-nand"; 104 + }; 105 + 106 + partition@1a000000 { 107 + reg = <0x1a000000 0x04000000>; 108 + label = "kernel-nand"; 109 + }; 110 + 111 + partition@1e000000 { 112 + reg = <0x1e000000 0x01000000>; 113 + label = "dtb-nand"; 114 + }; 115 + 116 + partition@1f000000 { 117 + reg = <0x1f000000 0x21000000>; 118 + label = "empty-nand"; 119 + }; 120 + }; 121 + 122 + board-control@3,0 { 123 + compatible = "fsl,mpc8536ds-fpga-pixis"; 124 + reg = <0x3 0x0 0x8000>; 125 + }; 126 + }; 127 + 35 128 &board_soc { 36 129 i2c@3100 { 37 130 rtc@68 {
+6 -2
arch/powerpc/boot/dts/mpc8536ds_36b.dts
··· 1 1 /* 2 2 * MPC8536DS Device Tree Source (36-bit address map) 3 3 * 4 - * Copyright 2008-2009 Freescale Semiconductor, Inc. 4 + * Copyright 2008-2009, 2011 Freescale Semiconductor, Inc. 5 5 * 6 6 * This program is free software; you can redistribute it and/or modify it 7 7 * under the terms of the GNU General Public License as published by the ··· 33 33 }; 34 34 35 35 lbc: localbus@ffe05000 { 36 - reg = <0 0xffe05000 0 0x1000>; 36 + reg = <0xf 0xffe05000 0 0x1000>; 37 + 38 + ranges = <0x0 0x0 0xf 0xe8000000 0x08000000 39 + 0x2 0x0 0xf 0xffa00000 0x00040000 40 + 0x3 0x0 0xf 0xffdf0000 0x00008000>; 37 41 }; 38 42 39 43 board_soc: soc: soc@fffe00000 {