1fdeaf0e2SAnatolij Gustschin/* 2fdeaf0e2SAnatolij Gustschin * Device Tree Source for the MPC5121e based ac14xx board 3fdeaf0e2SAnatolij Gustschin * 4fdeaf0e2SAnatolij Gustschin * Copyright 2012 Anatolij Gustschin <agust@denx.de> 5fdeaf0e2SAnatolij Gustschin * 6fdeaf0e2SAnatolij Gustschin * This program is free software; you can redistribute it and/or modify it 7fdeaf0e2SAnatolij Gustschin * under the terms of the GNU General Public License as published by the 8fdeaf0e2SAnatolij Gustschin * Free Software Foundation; either version 2 of the License, or (at your 9fdeaf0e2SAnatolij Gustschin * option) any later version. 10fdeaf0e2SAnatolij Gustschin */ 11fdeaf0e2SAnatolij Gustschin 12fdeaf0e2SAnatolij Gustschin 13f2110cb9SGerhard Sittig#include <mpc5121.dtsi> 14fdeaf0e2SAnatolij Gustschin 15fdeaf0e2SAnatolij Gustschin/ { 16fdeaf0e2SAnatolij Gustschin model = "ac14xx"; 17fdeaf0e2SAnatolij Gustschin compatible = "ifm,ac14xx", "fsl,mpc5121"; 18fdeaf0e2SAnatolij Gustschin #address-cells = <1>; 19fdeaf0e2SAnatolij Gustschin #size-cells = <1>; 20fdeaf0e2SAnatolij Gustschin 21fdeaf0e2SAnatolij Gustschin aliases { 22fdeaf0e2SAnatolij Gustschin serial0 = &serial0; 23fdeaf0e2SAnatolij Gustschin serial1 = &serial7; 24fdeaf0e2SAnatolij Gustschin spi4 = &spi4; 25fdeaf0e2SAnatolij Gustschin spi5 = &spi5; 26fdeaf0e2SAnatolij Gustschin }; 27fdeaf0e2SAnatolij Gustschin 28fdeaf0e2SAnatolij Gustschin cpus { 29fdeaf0e2SAnatolij Gustschin PowerPC,5121@0 { 30fdeaf0e2SAnatolij Gustschin timebase-frequency = <40000000>; /* 40 MHz (csb/4) */ 31fdeaf0e2SAnatolij Gustschin bus-frequency = <160000000>; /* 160 MHz csb bus */ 32fdeaf0e2SAnatolij Gustschin clock-frequency = <400000000>; /* 400 MHz ppc core */ 33fdeaf0e2SAnatolij Gustschin }; 34fdeaf0e2SAnatolij Gustschin }; 35fdeaf0e2SAnatolij Gustschin 36fdeaf0e2SAnatolij Gustschin memory { 37fdeaf0e2SAnatolij Gustschin reg = <0x00000000 0x10000000>; /* 256MB at 0 */ 38fdeaf0e2SAnatolij Gustschin }; 39fdeaf0e2SAnatolij Gustschin 40fdeaf0e2SAnatolij Gustschin nfc@40000000 { 41fdeaf0e2SAnatolij Gustschin status = "disabled"; 42fdeaf0e2SAnatolij Gustschin }; 43fdeaf0e2SAnatolij Gustschin 44fdeaf0e2SAnatolij Gustschin localbus@80000020 { 45fdeaf0e2SAnatolij Gustschin ranges = <0x0 0x0 0xfc000000 0x04000000 /* CS0: NOR flash */ 46fdeaf0e2SAnatolij Gustschin 0x1 0x0 0xe0000000 0x00010000 /* CS1: FRAM */ 47fdeaf0e2SAnatolij Gustschin 0x2 0x0 0xe0100000 0x00080000 /* CS2: asi1 */ 48fdeaf0e2SAnatolij Gustschin 0x3 0x0 0xe0300000 0x00020000 /* CS3: comm */ 49fdeaf0e2SAnatolij Gustschin 0x5 0x0 0xe0400000 0x00010000 /* CS5: safety */ 50fdeaf0e2SAnatolij Gustschin 0x6 0x0 0xe0200000 0x00080000>; /* CS6: asi2 */ 51fdeaf0e2SAnatolij Gustschin 52fdeaf0e2SAnatolij Gustschin flash@0,0 { 53fdeaf0e2SAnatolij Gustschin compatible = "cfi-flash"; 54fdeaf0e2SAnatolij Gustschin reg = <0 0x00000000 0x04000000>; 55fdeaf0e2SAnatolij Gustschin #address-cells = <1>; 56fdeaf0e2SAnatolij Gustschin #size-cells = <1>; 57fdeaf0e2SAnatolij Gustschin bank-width = <2>; 58fdeaf0e2SAnatolij Gustschin device-width = <2>; 59fdeaf0e2SAnatolij Gustschin 60fdeaf0e2SAnatolij Gustschin partition@0 { 61fdeaf0e2SAnatolij Gustschin label = "dtb-kernel-production"; 62fdeaf0e2SAnatolij Gustschin reg = <0x00000000 0x00400000>; 63fdeaf0e2SAnatolij Gustschin }; 64fdeaf0e2SAnatolij Gustschin partition@1 { 65fdeaf0e2SAnatolij Gustschin label = "filesystem-production"; 66fdeaf0e2SAnatolij Gustschin reg = <0x00400000 0x03400000>; 67fdeaf0e2SAnatolij Gustschin }; 68fdeaf0e2SAnatolij Gustschin 69fdeaf0e2SAnatolij Gustschin partition@2 { 70fdeaf0e2SAnatolij Gustschin label = "recovery"; 71fdeaf0e2SAnatolij Gustschin reg = <0x03800000 0x00700000>; 72fdeaf0e2SAnatolij Gustschin }; 73fdeaf0e2SAnatolij Gustschin 74fdeaf0e2SAnatolij Gustschin partition@3 { 75fdeaf0e2SAnatolij Gustschin label = "uboot-code"; 76fdeaf0e2SAnatolij Gustschin reg = <0x03f00000 0x00040000>; 77fdeaf0e2SAnatolij Gustschin }; 78fdeaf0e2SAnatolij Gustschin partition@4 { 79fdeaf0e2SAnatolij Gustschin label = "uboot-env1"; 80fdeaf0e2SAnatolij Gustschin reg = <0x03f40000 0x00020000>; 81fdeaf0e2SAnatolij Gustschin }; 82fdeaf0e2SAnatolij Gustschin partition@5 { 83fdeaf0e2SAnatolij Gustschin label = "uboot-env2"; 84fdeaf0e2SAnatolij Gustschin reg = <0x03f60000 0x00020000>; 85fdeaf0e2SAnatolij Gustschin }; 86fdeaf0e2SAnatolij Gustschin }; 87fdeaf0e2SAnatolij Gustschin 88fdeaf0e2SAnatolij Gustschin fram@1,0 { 89fdeaf0e2SAnatolij Gustschin compatible = "ifm,ac14xx-fram", "linux,uio-pdrv-genirq"; 90fdeaf0e2SAnatolij Gustschin reg = <1 0x00000000 0x00010000>; 91fdeaf0e2SAnatolij Gustschin }; 92fdeaf0e2SAnatolij Gustschin 93fdeaf0e2SAnatolij Gustschin asi@2,0 { 94fdeaf0e2SAnatolij Gustschin /* masters mapping: CS, CS offset, size */ 95fdeaf0e2SAnatolij Gustschin reg = <2 0x00000000 0x00080000 96fdeaf0e2SAnatolij Gustschin 6 0x00000000 0x00080000>; 97fdeaf0e2SAnatolij Gustschin #address-cells = <1>; 98fdeaf0e2SAnatolij Gustschin #size-cells = <1>; 99fdeaf0e2SAnatolij Gustschin compatible = "ifm,ac14xx-asi-fpga"; 100fdeaf0e2SAnatolij Gustschin gpios = < 101fdeaf0e2SAnatolij Gustschin &gpio_pic 26 0 /* prog */ 102fdeaf0e2SAnatolij Gustschin &gpio_pic 27 0 /* done */ 103fdeaf0e2SAnatolij Gustschin &gpio_pic 10 0 /* reset */ 104fdeaf0e2SAnatolij Gustschin >; 105fdeaf0e2SAnatolij Gustschin 106fdeaf0e2SAnatolij Gustschin master@1 { 107fdeaf0e2SAnatolij Gustschin interrupts = <20 0x2>; 108fdeaf0e2SAnatolij Gustschin interrupt-parent = <&gpio_pic>; 109fdeaf0e2SAnatolij Gustschin chipselect = <2 0x00009000 0x00009100>; 110fdeaf0e2SAnatolij Gustschin label = "AS-i master 1"; 111fdeaf0e2SAnatolij Gustschin }; 112fdeaf0e2SAnatolij Gustschin 113fdeaf0e2SAnatolij Gustschin master@2 { 114fdeaf0e2SAnatolij Gustschin interrupts = <21 0x2>; 115fdeaf0e2SAnatolij Gustschin interrupt-parent = <&gpio_pic>; 116fdeaf0e2SAnatolij Gustschin chipselect = <6 0x00009000 0x00009100>; 117fdeaf0e2SAnatolij Gustschin label = "AS-i master 2"; 118fdeaf0e2SAnatolij Gustschin }; 119fdeaf0e2SAnatolij Gustschin }; 120fdeaf0e2SAnatolij Gustschin 121fdeaf0e2SAnatolij Gustschin netx@3,0 { 122fdeaf0e2SAnatolij Gustschin compatible = "ifm,netx"; 123fdeaf0e2SAnatolij Gustschin reg = <0x3 0x00000000 0x00020000>; 124fdeaf0e2SAnatolij Gustschin chipselect = <3 0x00101140 0x00203100>; 125fdeaf0e2SAnatolij Gustschin interrupts = <17 0x8>; 126fdeaf0e2SAnatolij Gustschin gpios = <&gpio_pic 15 0>; 127fdeaf0e2SAnatolij Gustschin }; 128fdeaf0e2SAnatolij Gustschin 129fdeaf0e2SAnatolij Gustschin safety@5,0 { 130fdeaf0e2SAnatolij Gustschin compatible = "ifm,safety"; 131fdeaf0e2SAnatolij Gustschin reg = <0x5 0x00000000 0x00010000>; 132fdeaf0e2SAnatolij Gustschin chipselect = <5 0x00009000 0x00009100>; 133fdeaf0e2SAnatolij Gustschin interrupts = <22 0x2>; 134fdeaf0e2SAnatolij Gustschin interrupt-parent = <&gpio_pic>; 135fdeaf0e2SAnatolij Gustschin gpios = < 136fdeaf0e2SAnatolij Gustschin &gpio_pic 12 0 /* prog */ 137fdeaf0e2SAnatolij Gustschin &gpio_pic 11 0 /* done */ 138fdeaf0e2SAnatolij Gustschin >; 139fdeaf0e2SAnatolij Gustschin }; 140fdeaf0e2SAnatolij Gustschin }; 141fdeaf0e2SAnatolij Gustschin 142f87ccd2eSGerhard Sittig clocks { 143f87ccd2eSGerhard Sittig osc { 144f87ccd2eSGerhard Sittig clock-frequency = <25000000>; 145f87ccd2eSGerhard Sittig }; 146f87ccd2eSGerhard Sittig }; 147f87ccd2eSGerhard Sittig 148fdeaf0e2SAnatolij Gustschin soc@80000000 { 149f87ccd2eSGerhard Sittig bus-frequency = <80000000>; /* 80 MHz ips bus */ 150fdeaf0e2SAnatolij Gustschin 151fdeaf0e2SAnatolij Gustschin clock@f00 { 152fdeaf0e2SAnatolij Gustschin compatible = "fsl,mpc5121rev2-clock", "fsl,mpc5121-clock"; 153fdeaf0e2SAnatolij Gustschin }; 154fdeaf0e2SAnatolij Gustschin 155fdeaf0e2SAnatolij Gustschin /* 156fdeaf0e2SAnatolij Gustschin * GPIO PIC: 157fdeaf0e2SAnatolij Gustschin * interrupts cell = <pin nr, sense> 158fdeaf0e2SAnatolij Gustschin * sense == 8: Level, low assertion 159fdeaf0e2SAnatolij Gustschin * sense == 2: Edge, high-to-low change 160fdeaf0e2SAnatolij Gustschin */ 161fdeaf0e2SAnatolij Gustschin gpio_pic: gpio@1100 { 162fdeaf0e2SAnatolij Gustschin gpio-controller; 163fdeaf0e2SAnatolij Gustschin #gpio-cells = <2>; 164fdeaf0e2SAnatolij Gustschin interrupt-controller; 165fdeaf0e2SAnatolij Gustschin #interrupt-cells = <2>; 166fdeaf0e2SAnatolij Gustschin }; 167fdeaf0e2SAnatolij Gustschin 168fdeaf0e2SAnatolij Gustschin sdhc@1500 { 169fdeaf0e2SAnatolij Gustschin cd-gpios = <&gpio_pic 23 0>; /* card detect */ 170fdeaf0e2SAnatolij Gustschin wp-gpios = <&gpio_pic 24 0>; /* write protect */ 171fdeaf0e2SAnatolij Gustschin wp-inverted; /* WP active high */ 172fdeaf0e2SAnatolij Gustschin }; 173fdeaf0e2SAnatolij Gustschin 174fdeaf0e2SAnatolij Gustschin i2c@1700 { 175fdeaf0e2SAnatolij Gustschin /* use Fast-mode */ 176fdeaf0e2SAnatolij Gustschin clock-frequency = <400000>; 177fdeaf0e2SAnatolij Gustschin 178fdeaf0e2SAnatolij Gustschin at24@30 { 179fdeaf0e2SAnatolij Gustschin compatible = "at24,24c01"; 180fdeaf0e2SAnatolij Gustschin reg = <0x30>; 181fdeaf0e2SAnatolij Gustschin }; 182fdeaf0e2SAnatolij Gustschin 183fdeaf0e2SAnatolij Gustschin at24@31 { 184fdeaf0e2SAnatolij Gustschin compatible = "at24,24c01"; 185fdeaf0e2SAnatolij Gustschin reg = <0x31>; 186fdeaf0e2SAnatolij Gustschin }; 187fdeaf0e2SAnatolij Gustschin 188fdeaf0e2SAnatolij Gustschin temp@48 { 189fdeaf0e2SAnatolij Gustschin compatible = "ad,ad7414"; 190fdeaf0e2SAnatolij Gustschin reg = <0x48>; 191fdeaf0e2SAnatolij Gustschin }; 192fdeaf0e2SAnatolij Gustschin 193fdeaf0e2SAnatolij Gustschin at24@50 { 194fdeaf0e2SAnatolij Gustschin compatible = "at24,24c01"; 195fdeaf0e2SAnatolij Gustschin reg = <0x50>; 196fdeaf0e2SAnatolij Gustschin }; 197fdeaf0e2SAnatolij Gustschin 198fdeaf0e2SAnatolij Gustschin at24@51 { 199fdeaf0e2SAnatolij Gustschin compatible = "at24,24c01"; 200fdeaf0e2SAnatolij Gustschin reg = <0x51>; 201fdeaf0e2SAnatolij Gustschin }; 202fdeaf0e2SAnatolij Gustschin 203fdeaf0e2SAnatolij Gustschin at24@52 { 204fdeaf0e2SAnatolij Gustschin compatible = "at24,24c01"; 205fdeaf0e2SAnatolij Gustschin reg = <0x52>; 206fdeaf0e2SAnatolij Gustschin }; 207fdeaf0e2SAnatolij Gustschin 208fdeaf0e2SAnatolij Gustschin at24@53 { 209fdeaf0e2SAnatolij Gustschin compatible = "at24,24c01"; 210fdeaf0e2SAnatolij Gustschin reg = <0x53>; 211fdeaf0e2SAnatolij Gustschin }; 212fdeaf0e2SAnatolij Gustschin 213fdeaf0e2SAnatolij Gustschin at24@54 { 214fdeaf0e2SAnatolij Gustschin compatible = "at24,24c01"; 215fdeaf0e2SAnatolij Gustschin reg = <0x54>; 216fdeaf0e2SAnatolij Gustschin }; 217fdeaf0e2SAnatolij Gustschin 218fdeaf0e2SAnatolij Gustschin at24@55 { 219fdeaf0e2SAnatolij Gustschin compatible = "at24,24c01"; 220fdeaf0e2SAnatolij Gustschin reg = <0x55>; 221fdeaf0e2SAnatolij Gustschin }; 222fdeaf0e2SAnatolij Gustschin 223fdeaf0e2SAnatolij Gustschin at24@56 { 224fdeaf0e2SAnatolij Gustschin compatible = "at24,24c01"; 225fdeaf0e2SAnatolij Gustschin reg = <0x56>; 226fdeaf0e2SAnatolij Gustschin }; 227fdeaf0e2SAnatolij Gustschin 228fdeaf0e2SAnatolij Gustschin at24@57 { 229fdeaf0e2SAnatolij Gustschin compatible = "at24,24c01"; 230fdeaf0e2SAnatolij Gustschin reg = <0x57>; 231fdeaf0e2SAnatolij Gustschin }; 232fdeaf0e2SAnatolij Gustschin 233fdeaf0e2SAnatolij Gustschin rtc@68 { 234fdeaf0e2SAnatolij Gustschin compatible = "stm,m41t00"; 235fdeaf0e2SAnatolij Gustschin reg = <0x68>; 236fdeaf0e2SAnatolij Gustschin }; 237fdeaf0e2SAnatolij Gustschin }; 238fdeaf0e2SAnatolij Gustschin 239fdeaf0e2SAnatolij Gustschin axe_pic: axe-base@2000 { 240fdeaf0e2SAnatolij Gustschin compatible = "fsl,mpc5121-axe-base"; 241fdeaf0e2SAnatolij Gustschin reg = <0x2000 0x100>; 242fdeaf0e2SAnatolij Gustschin interrupts = <42 0x8>; 243fdeaf0e2SAnatolij Gustschin interrupt-controller; 244fdeaf0e2SAnatolij Gustschin #interrupt-cells = <2>; 245fdeaf0e2SAnatolij Gustschin }; 246fdeaf0e2SAnatolij Gustschin 247fdeaf0e2SAnatolij Gustschin axe-app { 248fdeaf0e2SAnatolij Gustschin compatible = "fsl,mpc5121-axe-app"; 249fdeaf0e2SAnatolij Gustschin interrupt-parent = <&axe_pic>; 250fdeaf0e2SAnatolij Gustschin interrupts = < 251fdeaf0e2SAnatolij Gustschin /* soft interrupts */ 252fdeaf0e2SAnatolij Gustschin 0 0x0 1 0x0 2 0x0 3 0x0 253fdeaf0e2SAnatolij Gustschin 4 0x0 5 0x0 6 0x0 7 0x0 254fdeaf0e2SAnatolij Gustschin /* fifo interrupts */ 255fdeaf0e2SAnatolij Gustschin 8 0x0 9 0x0 10 0x0 11 0x0 256fdeaf0e2SAnatolij Gustschin >; 257fdeaf0e2SAnatolij Gustschin }; 258fdeaf0e2SAnatolij Gustschin 259fdeaf0e2SAnatolij Gustschin display@2100 { 260fdeaf0e2SAnatolij Gustschin edid = [00 FF FF FF FF FF FF 00 14 94 00 00 00 00 00 00 261fdeaf0e2SAnatolij Gustschin 0A 12 01 03 80 1C 23 78 CA 88 FF 94 52 54 8E 27 262fdeaf0e2SAnatolij Gustschin 1E 4C 50 00 00 00 01 01 01 01 01 01 01 01 01 01 263fdeaf0e2SAnatolij Gustschin 01 01 01 01 01 01 FB 00 B0 14 00 DC 05 00 08 04 264fdeaf0e2SAnatolij Gustschin 21 00 1C 23 00 00 00 18 00 00 00 FD 00 38 3C 1F 265fdeaf0e2SAnatolij Gustschin 3C 01 0A 20 20 20 20 20 20 20 00 00 00 FC 00 45 266fdeaf0e2SAnatolij Gustschin 54 30 31 38 30 30 33 44 4D 55 0A 0A 00 00 00 10 267fdeaf0e2SAnatolij Gustschin 00 41 30 30 30 30 30 30 30 30 30 30 30 31 00 D5]; 268fdeaf0e2SAnatolij Gustschin }; 269fdeaf0e2SAnatolij Gustschin 270fdeaf0e2SAnatolij Gustschin can@2300 { 271fdeaf0e2SAnatolij Gustschin status = "disabled"; 272fdeaf0e2SAnatolij Gustschin }; 273fdeaf0e2SAnatolij Gustschin 274fdeaf0e2SAnatolij Gustschin can@2380 { 275fdeaf0e2SAnatolij Gustschin status = "disabled"; 276fdeaf0e2SAnatolij Gustschin }; 277fdeaf0e2SAnatolij Gustschin 278fdeaf0e2SAnatolij Gustschin viu@2400 { 279fdeaf0e2SAnatolij Gustschin status = "disabled"; 280fdeaf0e2SAnatolij Gustschin }; 281fdeaf0e2SAnatolij Gustschin 282fdeaf0e2SAnatolij Gustschin mdio@2800 { 283fdeaf0e2SAnatolij Gustschin phy0: ethernet-phy@1f { 284fdeaf0e2SAnatolij Gustschin compatible = "smsc,lan8700"; 285fdeaf0e2SAnatolij Gustschin reg = <0x1f>; 286fdeaf0e2SAnatolij Gustschin }; 287fdeaf0e2SAnatolij Gustschin }; 288fdeaf0e2SAnatolij Gustschin 289fdeaf0e2SAnatolij Gustschin enet: ethernet@2800 { 290fdeaf0e2SAnatolij Gustschin phy-handle = <&phy0>; 291fdeaf0e2SAnatolij Gustschin }; 292fdeaf0e2SAnatolij Gustschin 293fdeaf0e2SAnatolij Gustschin usb@3000 { 294fdeaf0e2SAnatolij Gustschin status = "disabled"; 295fdeaf0e2SAnatolij Gustschin }; 296fdeaf0e2SAnatolij Gustschin 297fdeaf0e2SAnatolij Gustschin usb@4000 { 298fdeaf0e2SAnatolij Gustschin status = "disabled"; 299fdeaf0e2SAnatolij Gustschin }; 300fdeaf0e2SAnatolij Gustschin 301fdeaf0e2SAnatolij Gustschin /* PSC3 serial port A, aka ttyPSC0 */ 302fdeaf0e2SAnatolij Gustschin serial0: psc@11300 { 303fdeaf0e2SAnatolij Gustschin compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc"; 304fdeaf0e2SAnatolij Gustschin fsl,rx-fifo-size = <512>; 305fdeaf0e2SAnatolij Gustschin fsl,tx-fifo-size = <512>; 306fdeaf0e2SAnatolij Gustschin }; 307fdeaf0e2SAnatolij Gustschin 308fdeaf0e2SAnatolij Gustschin /* PSC4 in SPI mode */ 309fdeaf0e2SAnatolij Gustschin spi4: psc@11400 { 310fdeaf0e2SAnatolij Gustschin compatible = "fsl,mpc5121-psc-spi", "fsl,mpc5121-psc"; 311fdeaf0e2SAnatolij Gustschin fsl,rx-fifo-size = <768>; 312fdeaf0e2SAnatolij Gustschin fsl,tx-fifo-size = <768>; 313fdeaf0e2SAnatolij Gustschin #address-cells = <1>; 314fdeaf0e2SAnatolij Gustschin #size-cells = <0>; 315fdeaf0e2SAnatolij Gustschin num-cs = <1>; 316fdeaf0e2SAnatolij Gustschin cs-gpios = <&gpio_pic 25 0>; 317fdeaf0e2SAnatolij Gustschin 318fdeaf0e2SAnatolij Gustschin flash: m25p128@0 { 319fdeaf0e2SAnatolij Gustschin compatible = "st,m25p128"; 320fdeaf0e2SAnatolij Gustschin spi-max-frequency = <20000000>; 321fdeaf0e2SAnatolij Gustschin reg = <0>; 322fdeaf0e2SAnatolij Gustschin #address-cells = <1>; 323fdeaf0e2SAnatolij Gustschin #size-cells = <1>; 324fdeaf0e2SAnatolij Gustschin 325fdeaf0e2SAnatolij Gustschin partition@0 { 326fdeaf0e2SAnatolij Gustschin label = "spi-flash0"; 327fdeaf0e2SAnatolij Gustschin reg = <0x00000000 0x01000000>; 328fdeaf0e2SAnatolij Gustschin }; 329fdeaf0e2SAnatolij Gustschin }; 330fdeaf0e2SAnatolij Gustschin }; 331fdeaf0e2SAnatolij Gustschin 332fdeaf0e2SAnatolij Gustschin /* PSC5 in SPI mode */ 333fdeaf0e2SAnatolij Gustschin spi5: psc@11500 { 334fdeaf0e2SAnatolij Gustschin compatible = "fsl,mpc5121-psc-spi", "fsl,mpc5121-psc"; 335fdeaf0e2SAnatolij Gustschin fsl,mode = "spi-master"; 336fdeaf0e2SAnatolij Gustschin fsl,rx-fifo-size = <128>; 337fdeaf0e2SAnatolij Gustschin fsl,tx-fifo-size = <128>; 338fdeaf0e2SAnatolij Gustschin #address-cells = <1>; 339fdeaf0e2SAnatolij Gustschin #size-cells = <0>; 340fdeaf0e2SAnatolij Gustschin 341fdeaf0e2SAnatolij Gustschin lcd@0 { 342fdeaf0e2SAnatolij Gustschin compatible = "ilitek,ili922x"; 343fdeaf0e2SAnatolij Gustschin reg = <0>; 344fdeaf0e2SAnatolij Gustschin spi-max-frequency = <100000>; 345fdeaf0e2SAnatolij Gustschin spi-cpol; 346fdeaf0e2SAnatolij Gustschin spi-cpha; 347fdeaf0e2SAnatolij Gustschin }; 348fdeaf0e2SAnatolij Gustschin }; 349fdeaf0e2SAnatolij Gustschin 350fdeaf0e2SAnatolij Gustschin /* PSC7 serial port C, aka ttyPSC2 */ 351fdeaf0e2SAnatolij Gustschin serial7: psc@11700 { 352fdeaf0e2SAnatolij Gustschin compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc"; 353fdeaf0e2SAnatolij Gustschin fsl,rx-fifo-size = <512>; 354fdeaf0e2SAnatolij Gustschin fsl,tx-fifo-size = <512>; 355fdeaf0e2SAnatolij Gustschin }; 356fdeaf0e2SAnatolij Gustschin 357fdeaf0e2SAnatolij Gustschin matrix_keypad@0 { 358fdeaf0e2SAnatolij Gustschin compatible = "gpio-matrix-keypad"; 359fdeaf0e2SAnatolij Gustschin debounce-delay-ms = <5>; 360fdeaf0e2SAnatolij Gustschin col-scan-delay-us = <1>; 361fdeaf0e2SAnatolij Gustschin gpio-activelow; 362fdeaf0e2SAnatolij Gustschin col-gpios-binary; 363fdeaf0e2SAnatolij Gustschin col-switch-delay-ms = <200>; 364fdeaf0e2SAnatolij Gustschin 365fdeaf0e2SAnatolij Gustschin col-gpios = <&gpio_pic 1 0>; /* pin1 */ 366fdeaf0e2SAnatolij Gustschin 367fdeaf0e2SAnatolij Gustschin row-gpios = <&gpio_pic 2 0 /* pin2 */ 368fdeaf0e2SAnatolij Gustschin &gpio_pic 3 0 /* pin3 */ 369fdeaf0e2SAnatolij Gustschin &gpio_pic 4 0>; /* pin4 */ 370fdeaf0e2SAnatolij Gustschin 371fdeaf0e2SAnatolij Gustschin linux,keymap = <0x0000006e /* FN LEFT */ 372fdeaf0e2SAnatolij Gustschin 0x01000067 /* UP */ 373fdeaf0e2SAnatolij Gustschin 0x02000066 /* FN RIGHT */ 374fdeaf0e2SAnatolij Gustschin 0x00010069 /* LEFT */ 375fdeaf0e2SAnatolij Gustschin 0x0101006a /* DOWN */ 376fdeaf0e2SAnatolij Gustschin 0x0201006c>; /* RIGHT */ 377fdeaf0e2SAnatolij Gustschin }; 378fdeaf0e2SAnatolij Gustschin }; 379fdeaf0e2SAnatolij Gustschin 380fdeaf0e2SAnatolij Gustschin leds { 381fdeaf0e2SAnatolij Gustschin compatible = "gpio-leds"; 382fdeaf0e2SAnatolij Gustschin 383fdeaf0e2SAnatolij Gustschin backlight { 384fdeaf0e2SAnatolij Gustschin label = "backlight"; 385fdeaf0e2SAnatolij Gustschin gpios = <&gpio_pic 0 0>; 386fdeaf0e2SAnatolij Gustschin default-state = "keep"; 387fdeaf0e2SAnatolij Gustschin }; 388fdeaf0e2SAnatolij Gustschin green { 389fdeaf0e2SAnatolij Gustschin label = "green"; 390fdeaf0e2SAnatolij Gustschin gpios = <&gpio_pic 18 0>; 391fdeaf0e2SAnatolij Gustschin default-state = "keep"; 392fdeaf0e2SAnatolij Gustschin }; 393fdeaf0e2SAnatolij Gustschin red { 394fdeaf0e2SAnatolij Gustschin label = "red"; 395fdeaf0e2SAnatolij Gustschin gpios = <&gpio_pic 19 0>; 396fdeaf0e2SAnatolij Gustschin default-state = "keep"; 397fdeaf0e2SAnatolij Gustschin }; 398fdeaf0e2SAnatolij Gustschin }; 399fdeaf0e2SAnatolij Gustschin}; 400