Advertisement
jmoyerman

dts

Jun 29th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 5.73 KB | None | 0 0
  1. /*
  2.  *       Copyright (C) 2013 Tom King <ka6sox@gmail.com>
  3.  *                 (C) 2013 Ian McMahon <ian.mcmahon@prototechnical.com>
  4.  *
  5.  * This program is free software; you can redistribute it and/or modify
  6.  * it under the terms of the GNU General Public License version 2 as
  7.  * published by the Free Software Foundation.
  8.  */
  9. /dts-v1/;
  10. /plugin/;
  11.  
  12. / {
  13.         compatible = "ti,beaglebone", "ti,beaglebone-black";
  14.  
  15.         /* identification */
  16.         part-number = "BB-BONE-BCC";
  17.         version = "00A0";
  18.  
  19.         /* state the resources this cape uses */
  20.         exclusive-use =
  21.                 /* the pin header uses */
  22.                 "P8.17",        /* SPI0: spi0_cs0 */
  23.                 "P8.18",        /* SPI0: spi0_d1 */
  24.                 "P8.21",        /* SPI0: spi0_d0 */
  25.                 "P8.22",        /* SPI0: spi0_sclk */
  26.                 "P8.12",        /* GPMC: gpmc_be1n */
  27.                 "P9.25",        /* GPMC: gpmc_ad0 */
  28.                 "P9.24",        /* GPMC: gpmc_ad1 */
  29.                 "P9.5",          /* GPMC: gpmc_ad2 */
  30.                 "P9.6",          /* GPMC: gpmc_ad3 */
  31.                 "P9.23",        /* GPMC: gpmc_ad4 */
  32.                 "P9.22",        /* GPMC: gpmc_ad5 */
  33.                 "P9.3",          /* GPMC: gpmc_ad6 */
  34.                 "P9.4",          /* GPMC: gpmc_ad7 */
  35.                 "P9.19",        /* GPMC: gpmc_ad8 */
  36.                 "P9.13",        /* GPMC: gpmc_ad9 */
  37.                 "P9.14",        /* GPMC: gpmc_ad10 */
  38.                 "P9.17",        /* GPMC: gpmc_ad11 */
  39.                 "P9.12",        /* GPMC: gpmc_ad12 */
  40.                 "P9.11",        /* GPMC: gpmc_ad13 */
  41.                 "P9.16",        /* GPMC: gpmc_ad14 */
  42.                 "P9.15",        /* GPMC: gpmc_ad15*/
  43.                 "P9.7",          /* GPMC: gpmc_advn_ale */
  44.                 "P9.8",          /* GPMC: gpmc_oen_ren */
  45.                 "P9.10",        /* GPMC: gpmc_wen */
  46.                 "P9.9",          /* GPMC: gpmc_be0n_cle */
  47.                 "P9.18",        /* GPMC: gpmc_clk */
  48.                 "P9.26",        /* GPMC: gpmc_csn0 */
  49.                 "P9.21",        /* GPMC: gpmc_csn1 */
  50.                 "P9.20",        /* GPMC: gpmc_csn2 */
  51.                 "P9.12",        /* GPMC: gpmc_be1n */
  52.                 "P9.41รข1",       /* clkout2 */
  53.  
  54.  
  55.                 /* the hardware IP uses */
  56.                 "GPMC",
  57.                 "SPI0",
  58.                 "clkout2";
  59.          
  60.          
  61.  
  62.    fragment@0 {
  63.       target = <&am33xx_pinmux>;
  64.       __overlay__ {
  65.          bb_gpmc_pins: pinmux_bb_gpmc_pins {
  66.             pinctrl-single,pins = <
  67.  
  68.                /* clock */
  69.                0x08C 0x30  /* gpmc_clk, INPUT_PULLUP | MODE0 */
  70.                
  71.                /* address/data muxed bus */
  72.                0x000 0x30  /* gpmc_ad0, INPUT_PULLUP | MODE0 */
  73.                0x004 0x30  /* gpmc_ad1, INPUT_PULLUP | MODE0 */
  74.                0x008 0x30  /* gpmc_ad2, INPUT_PULLUP | MODE0 */
  75.                0x00c 0x30  /* gpmc_ad3, INPUT_PULLUP | MODE0 */
  76.                0x010 0x30  /* gpmc_ad4, INPUT_PULLUP | MODE0 */
  77.                0x014 0x30  /* gpmc_ad5, INPUT_PULLUP | MODE0 */
  78.                0x018 0x30  /* gpmc_ad6, INPUT_PULLUP | MODE0 */
  79.                0x01c 0x30  /* gpmc_ad7, INPUT_PULLUP | MODE0 */
  80.                0x020 0x30  /* gpmc_ad8, INPUT_PULLUP | MODE0 */
  81.                0x024 0x30  /* gpmc_ad9, INPUT_PULLUP | MODE0 */
  82.                0x028 0x30  /* gpmc_ad10, INPUT_PULLUP | MODE0 */
  83.                0x02c 0x30  /* gpmc_ad11, INPUT_PULLUP | MODE0 */
  84.                0x030 0x30  /* gpmc_ad12, INPUT_PULLUP | MODE0 */
  85.                0x034 0x30  /* gpmc_ad13, INPUT_PULLUP | MODE0 */
  86.                0x038 0x30  /* gpmc_ad14, INPUT_PULLUP | MODE0 */
  87.                0x03c 0x30  /* gpmc_ad15, INPUT_PULLUP | MODE0 */
  88.                
  89.                /* control */
  90.                0x090 0x10  /* gpmc_advn_ale, OUTPUT_PULLUP | MODE0 */
  91.                0x094 0x10  /* gpmc_oen_ren, OUTPUT_PULLUP | MODE0 */
  92.                0x098 0x10  /* gpmc_wen, OUTPUT_PULLUP | MODE0 */
  93.                0x09c 0x10  /* gpmc_be0n_cle, OUTPUT_PULLUP | MODE0 */
  94.                
  95.                /* chipselects */
  96.                0x07C 0x10  /* gpmc_csn0, OUTPUT_PULLUP | MODE0 */
  97.                0x080 0x10  /* gpmc_csn1, OUTPUT_PULLUP | MODE0 */
  98.                0x084 0x10  /* gpmc_csn2, OUTPUT_PULLUP | MODE0 */
  99.                
  100.             >;
  101.          };
  102.       };
  103.    };
  104.  
  105.        fragment@1 {
  106.                target = <&gpmc>;
  107.                depth = <1>;    /* only create devices on depth 1 */
  108.  
  109.                /* stupid warnings */
  110.                #address-cells = <1>;
  111.                #size-cells = <1>;
  112.                ranges;
  113.  
  114.                __overlay__ {
  115.  
  116.                        status = "okay";
  117.  
  118.                        #address-cells = <2>;
  119.                        #size-cells = <1>;
  120.  
  121.                        pinctrl-names = "default";
  122.                        pinctrl-0 = <&gpmc_pins>;
  123.  
  124.                        /* chip select ranges */
  125.                        ranges = <0 0 0x00000000 0x00001000
  126.   /* CS0 @addr 0x0000000, size 0x00001000 */
  127.  
  128.                                      1 0 0x00002000 0x00001000>;
  129.  /* CS1 @addr 0x0002000, size 0x00001000 */                    
  130.  
  131. sram@0 {
  132.                                 compatible = "xilinx,xc3s200a","sram";
  133.                         address-cells = <1>;
  134.                                 size-cells = <1>;
  135.                         bank-width = <2>;
  136.  
  137.                                 bram@0 {
  138.                                         reg = <0x0000000 0x001000>;
  139.                                 };
  140.  
  141.                                 registers@2000 {
  142.                                         reg = <0x0002000 0x001000>;
  143.                                 };
  144. };
  145.         };
  146. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement