Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /dts-v1/;
0003 
0004 #include "dm816x.dtsi"
0005 #include <dt-bindings/interrupt-controller/irq.h>
0006 
0007 / {
0008         model = "DM8168 EVM";
0009         compatible = "ti,dm8168-evm", "ti,dm8168", "ti,dm816";
0010 
0011         memory@80000000 {
0012                 device_type = "memory";
0013                 reg = <0x80000000 0x40000000    /* 1 GB */
0014                        0xc0000000 0x40000000>;  /* 1 GB */
0015         };
0016 
0017         /* FDC6331L controlled by SD_POW pin */
0018         vmmcsd_fixed: fixedregulator0 {
0019                 compatible = "regulator-fixed";
0020                 regulator-name = "vmmcsd_fixed";
0021                 regulator-min-microvolt = <3300000>;
0022                 regulator-max-microvolt = <3300000>;
0023         };
0024 
0025         sata_refclk: fixedclock0 {
0026                 compatible = "fixed-clock";
0027                 #clock-cells = <0>;
0028                 clock-frequency = <100000000>;
0029         };
0030 };
0031 
0032 &dm816x_pinmux {
0033         mcspi1_pins: pinmux_mcspi1_pins {
0034                 pinctrl-single,pins = <
0035                         DM816X_IOPAD(0x0a94, MUX_MODE0)                 /* SPI_SCLK */
0036                         DM816X_IOPAD(0x0a98, MUX_MODE0)                 /* SPI_SCS0 */
0037                         DM816X_IOPAD(0x0aa8, MUX_MODE0)                 /* SPI_D0 */
0038                         DM816X_IOPAD(0x0aac, MUX_MODE0)                 /* SPI_D1 */
0039                 >;
0040         };
0041 
0042         mmc_pins: pinmux_mmc_pins {
0043                 pinctrl-single,pins = <
0044                         DM816X_IOPAD(0x0a70, MUX_MODE0)                 /* SD_POW */
0045                         DM816X_IOPAD(0x0a74, MUX_MODE0)                 /* SD_CLK */
0046                         DM816X_IOPAD(0x0a78, MUX_MODE0)                 /* SD_CMD */
0047                         DM816X_IOPAD(0x0a7C, MUX_MODE0)                 /* SD_DAT0 */
0048                         DM816X_IOPAD(0x0a80, MUX_MODE0)                 /* SD_DAT1 */
0049                         DM816X_IOPAD(0x0a84, MUX_MODE0)                 /* SD_DAT2 */
0050                         DM816X_IOPAD(0x0a88, MUX_MODE0)                 /* SD_DAT2 */
0051                         DM816X_IOPAD(0x0a8c, MUX_MODE2)                 /* GP1[7] */
0052                         DM816X_IOPAD(0x0a90, MUX_MODE2)                 /* GP1[8] */
0053                 >;
0054         };
0055 
0056         usb0_pins: pinmux_usb0_pins {
0057                 pinctrl-single,pins = <
0058                         DM816X_IOPAD(0x0d04, MUX_MODE0)                 /* USB0_DRVVBUS */
0059                 >;
0060         };
0061 
0062         usb1_pins: pinmux_usb1_pins {
0063                 pinctrl-single,pins = <
0064                         DM816X_IOPAD(0x0d08, MUX_MODE0)                 /* USB1_DRVVBUS */
0065                 >;
0066         };
0067 
0068         nandflash_pins: nandflash_pins {
0069                 pinctrl-single,pins = <
0070                         DM816X_IOPAD(0x0b38, PULL_UP | MUX_MODE0)               /* PINCTRL207 GPMC_CS0*/
0071                         DM816X_IOPAD(0x0b60, PULL_ENA | MUX_MODE0)              /* PINCTRL217 GPMC_ADV_ALE */
0072                         DM816X_IOPAD(0x0b54, PULL_UP | PULL_ENA | MUX_MODE0)    /* PINCTRL214 GPMC_OE_RE */
0073                         DM816X_IOPAD(0x0b58, PULL_ENA | MUX_MODE0)              /* PINCTRL215 GPMC_BE0_CLE */
0074                         DM816X_IOPAD(0x0b50, PULL_UP | MUX_MODE0)               /* PINCTRL213 GPMC_WE */
0075                         DM816X_IOPAD(0x0b6c, MUX_MODE0)                         /* PINCTRL220 GPMC_WAIT */
0076                         DM816X_IOPAD(0x0be4, PULL_ENA | MUX_MODE0)              /* PINCTRL250 GPMC_CLK */
0077                         DM816X_IOPAD(0x0ba4, MUX_MODE0)                         /* PINCTRL234 GPMC_D0 */
0078                         DM816X_IOPAD(0x0ba8, MUX_MODE0)                         /* PINCTRL234 GPMC_D1 */
0079                         DM816X_IOPAD(0x0bac, MUX_MODE0)                         /* PINCTRL234 GPMC_D2 */
0080                         DM816X_IOPAD(0x0bb0, MUX_MODE0)                         /* PINCTRL234 GPMC_D3 */
0081                         DM816X_IOPAD(0x0bb4, MUX_MODE0)                         /* PINCTRL234 GPMC_D4 */
0082                         DM816X_IOPAD(0x0bb8, MUX_MODE0)                         /* PINCTRL234 GPMC_D5 */
0083                         DM816X_IOPAD(0x0bbc, MUX_MODE0)                         /* PINCTRL234 GPMC_D6 */
0084                         DM816X_IOPAD(0x0bc0, MUX_MODE0)                         /* PINCTRL234 GPMC_D7 */
0085                         DM816X_IOPAD(0x0bc4, MUX_MODE0)                         /* PINCTRL234 GPMC_D8 */
0086                         DM816X_IOPAD(0x0bc8, MUX_MODE0)                         /* PINCTRL234 GPMC_D9 */
0087                         DM816X_IOPAD(0x0bcc, MUX_MODE0)                         /* PINCTRL234 GPMC_D10 */
0088                         DM816X_IOPAD(0x0bd0, MUX_MODE0)                         /* PINCTRL234 GPMC_D11 */
0089                         DM816X_IOPAD(0x0bd4, MUX_MODE0)                         /* PINCTRL234 GPMC_D12 */
0090                         DM816X_IOPAD(0x0bd8, MUX_MODE0)                         /* PINCTRL234 GPMC_D13 */
0091                         DM816X_IOPAD(0x0bdc, MUX_MODE0)                         /* PINCTRL234 GPMC_D14 */
0092                         DM816X_IOPAD(0x0be0, MUX_MODE0)                         /* PINCTRL234 GPMC_D15 */
0093                 >;
0094         };
0095 };
0096 
0097 &i2c1 {
0098         extgpio0: pcf8575@20 {
0099                 compatible = "nxp,pcf8575";
0100                 reg = <0x20>;
0101                 gpio-controller;
0102                 #gpio-cells = <2>;
0103         };
0104 };
0105 
0106 &i2c2 {
0107         extgpio1: pcf8575@20 {
0108                 compatible = "nxp,pcf8575";
0109                 reg = <0x20>;
0110                 gpio-controller;
0111                 #gpio-cells = <2>;
0112         };
0113 };
0114 
0115 &gpmc {
0116         ranges = <0 0 0x04000000 0x01000000>;   /* CS0: 16MB for NAND */
0117         pinctrl-names = "default";
0118         pinctrl-0 = <&nandflash_pins>;
0119 
0120         nand@0,0 {
0121                 compatible = "ti,omap2-nand";
0122                 linux,mtd-name = "micron,mt29f2g16aadwp";
0123                 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
0124                 interrupt-parent = <&gpmc>;
0125                 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
0126                              <1 IRQ_TYPE_NONE>; /* termcount */
0127                 rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
0128                 #address-cells = <1>;
0129                 #size-cells = <1>;
0130                 ti,nand-ecc-opt = "bch8";
0131                 ti,elm-id = <&elm>;
0132                 nand-bus-width = <16>;
0133                 gpmc,device-width = <2>;
0134                 gpmc,sync-clk-ps = <0>;
0135                 gpmc,cs-on-ns = <0>;
0136                 gpmc,cs-rd-off-ns = <44>;
0137                 gpmc,cs-wr-off-ns = <44>;
0138                 gpmc,adv-on-ns = <6>;
0139                 gpmc,adv-rd-off-ns = <34>;
0140                 gpmc,adv-wr-off-ns = <44>;
0141                 gpmc,we-on-ns = <0>;
0142                 gpmc,we-off-ns = <40>;
0143                 gpmc,oe-on-ns = <0>;
0144                 gpmc,oe-off-ns = <54>;
0145                 gpmc,access-ns = <64>;
0146                 gpmc,rd-cycle-ns = <82>;
0147                 gpmc,wr-cycle-ns = <82>;
0148                 gpmc,bus-turnaround-ns = <0>;
0149                 gpmc,cycle2cycle-delay-ns = <0>;
0150                 gpmc,clk-activation-ns = <0>;
0151                 gpmc,wr-access-ns = <40>;
0152                 gpmc,wr-data-mux-bus-ns = <0>;
0153                 partition@0 {
0154                         label = "X-Loader";
0155                         reg = <0 0x80000>;
0156                 };
0157                 partition@80000 {
0158                         label = "U-Boot";
0159                         reg = <0x80000 0x1c0000>;
0160                 };
0161                 partition@1c0000 {
0162                         label = "Environment";
0163                         reg = <0x240000 0x40000>;
0164                 };
0165                 partition@280000 {
0166                         label = "Kernel";
0167                         reg = <0x280000 0x500000>;
0168                 };
0169                 partition@780000 {
0170                         label = "Filesystem";
0171                         reg = <0x780000 0xf880000>;
0172                 };
0173         };
0174 };
0175 
0176 &mcspi1 {
0177         pinctrl-names = "default";
0178         pinctrl-0 = <&mcspi1_pins>;
0179 
0180         flash@0 {
0181                 compatible = "w25x32";
0182                 spi-max-frequency = <48000000>;
0183                 reg = <0>;
0184                 #address-cells = <1>;
0185                 #size-cells = <1>;
0186         };
0187 };
0188 
0189 &mmc1 {
0190         pinctrl-names = "default";
0191         pinctrl-0 = <&mmc_pins>;
0192         vmmc-supply = <&vmmcsd_fixed>;
0193         bus-width = <4>;
0194         cd-gpios = <&gpio2 7 GPIO_ACTIVE_LOW>;
0195         wp-gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>;
0196 };
0197 
0198 /* At least dm8168-evm rev c won't support multipoint, later may */
0199 &usb0 {
0200         pinctrl-names = "default";
0201         pinctrl-0 = <&usb0_pins>;
0202         mentor,multipoint = <0>;
0203 };
0204 
0205 &usb1 {
0206         pinctrl-names = "default";
0207         pinctrl-0 = <&usb1_pins>;
0208         mentor,multipoint = <0>;
0209 };
0210 
0211 &sata {
0212         clocks = <&sysclk5_ck>, <&sata_refclk>;
0213 };