Merge branch 'for-4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu
[cascardo/linux.git] / arch / arm / boot / dts / lpc4357-ea4357-devkit.dts
index 3a3ba16..5f7bdad 100644 (file)
                        gpios = <&gpio LPC_GPIO(4,13) GPIO_ACTIVE_LOW>;
                };
        };
+
+       leds_mmio {
+               compatible = "gpio-leds";
+
+               led1 {
+                       gpios = <&mmio_leds 15 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "heartbeat";
+               };
+
+               led2 {
+                       gpios = <&mmio_leds 14 GPIO_ACTIVE_HIGH>;
+               };
+
+               led3 {
+                       gpios = <&mmio_leds 13 GPIO_ACTIVE_HIGH>;
+               };
+
+               led4 {
+                       gpios = <&mmio_leds 12 GPIO_ACTIVE_HIGH>;
+               };
+
+               led5 {
+                       gpios = <&mmio_leds 11 GPIO_ACTIVE_HIGH>;
+               };
+
+               led6 {
+                       gpios = <&mmio_leds 10 GPIO_ACTIVE_HIGH>;
+               };
+
+               led7 {
+                       gpios = <&mmio_leds 9 GPIO_ACTIVE_HIGH>;
+               };
+
+               led8 {
+                       gpios = <&mmio_leds 8 GPIO_ACTIVE_HIGH>;
+               };
+
+               led9 {
+                       gpios = <&mmio_leds 7 GPIO_ACTIVE_HIGH>;
+               };
+
+               led10 {
+                       gpios = <&mmio_leds 6 GPIO_ACTIVE_HIGH>;
+               };
+
+               led11 {
+                       gpios = <&mmio_leds 5 GPIO_ACTIVE_HIGH>;
+               };
+
+               led12 {
+                       gpios = <&mmio_leds 4 GPIO_ACTIVE_HIGH>;
+               };
+
+               led13 {
+                       gpios = <&mmio_leds 3 GPIO_ACTIVE_HIGH>;
+               };
+
+               led14 {
+                       gpios = <&mmio_leds 2 GPIO_ACTIVE_HIGH>;
+               };
+
+               led15 {
+                       gpios = <&mmio_leds 1 GPIO_ACTIVE_HIGH>;
+               };
+
+               led16 {
+                       gpios = <&mmio_leds 0 GPIO_ACTIVE_HIGH>;
+               };
+       };
 };
 
 &pinctrl {
+       emc_pins: emc-pins {
+               emc_addr0_23_cfg {
+                       pins =  "p2_9",  "p2_10", "p2_11", "p2_12",
+                               "p2_13", "p1_0",  "p1_1",  "p1_2",
+                               "p2_8",  "p2_7",  "p2_6",  "p2_2",
+                               "p2_1",  "p2_0",  "p6_8",  "p6_7",
+                               "pd_16", "pd_15", "pe_0",  "pe_1",
+                               "pe_2",  "pe_3",  "pe_4",  "pa_4";
+                       function = "emc";
+                       slew-rate = <1>;
+                       bias-disable;
+                       input-enable;
+                       input-schmitt-disable;
+               };
+
+               emc_data0_31_cfg {
+                       pins =  "p1_7",  "p1_8",  "p1_9",  "p1_10",
+                               "p1_11", "p1_12", "p1_13", "p1_14",
+                               "p5_4",  "p5_5",  "p5_6",  "p5_7",
+                               "p5_0",  "p5_1",  "p5_2",  "p5_3",
+                               "pd_2",  "pd_3",  "pd_4",  "pd_5",
+                               "pd_6",  "pd_7",  "pd_8",  "pd_9",
+                               "pe_5",  "pe_6",  "pe_7",  "pe_8",
+                               "pe_9",  "pe_10", "pe_11", "pe_12";
+                       function = "emc";
+                       slew-rate = <1>;
+                       bias-disable;
+                       input-enable;
+                       input-schmitt-disable;
+               };
+
+               emc_we_oe_cfg {
+                       pins = "p1_6", "p1_3";
+                       function = "emc";
+                       slew-rate = <1>;
+                       bias-disable;
+                       input-enable;
+                       input-schmitt-disable;
+               };
+
+               emc_bls0_3_cfg {
+                       pins = "p1_4", "p6_6", "pd_13", "pd_10";
+                       function = "emc";
+                       slew-rate = <1>;
+                       bias-disable;
+                       input-enable;
+                       input-schmitt-disable;
+               };
+
+               emc_cs0_3_cfg {
+                       pins = "p1_5", "p6_3", "pd_12", "pd_11";
+                       function = "emc";
+                       slew-rate = <1>;
+                       bias-disable;
+                       input-enable;
+                       input-schmitt-disable;
+               };
+
+               emc_sdram_dqm0_3_cfg {
+                       pins = "p6_12", "p6_10", "pd_0", "pe_13";
+                       function = "emc";
+                       slew-rate = <1>;
+                       bias-disable;
+                       input-enable;
+                       input-schmitt-disable;
+               };
+
+               emc_sdram_ras_cas_cfg {
+                       pins = "p6_5", "p6_4";
+                       function = "emc";
+                       slew-rate = <1>;
+                       bias-disable;
+                       input-enable;
+                       input-schmitt-disable;
+               };
+
+               emc_sdram_dycs0_cfg {
+                       pins = "p6_9";
+                       function = "emc";
+                       slew-rate = <1>;
+                       bias-disable;
+                       input-enable;
+                       input-schmitt-disable;
+               };
+
+               emc_sdram_cke_cfg {
+                       pins = "p6_11";
+                       function = "emc";
+                       slew-rate = <1>;
+                       bias-disable;
+                       input-enable;
+                       input-schmitt-disable;
+               };
+
+               emc_sdram_clock_cfg {
+                       pins = "clk0", "clk1", "clk2", "clk3";
+                       function = "emc";
+                       slew-rate = <1>;
+                       bias-disable;
+                       input-enable;
+                       input-schmitt-disable;
+               };
+       };
+
        enet_rmii_pins: enet-rmii-pins {
                enet_rmii_rxd_cfg {
                        pins = "p1_15", "p0_0";
                        bias-pull-down;
                };
        };
+
+       usb0_pins: usb0-pins {
+               usb0_pwr_enable {
+                       pins = "p2_3";
+                       function = "usb0";
+               };
+
+               usb0_pwr_fault {
+                       pins = "p8_0";
+                       function = "usb0";
+                       bias-disable;
+                       input-enable;
+               };
+       };
+};
+
+&emc {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&emc_pins>;
+
+       cs0 {
+               #address-cells = <2>;
+               #size-cells = <1>;
+               ranges;
+
+               mpmc,cs = <0>;
+               mpmc,memory-width = <16>;
+               mpmc,byte-lane-low;
+               mpmc,write-enable-delay = <0>;
+               mpmc,output-enable-delay = <0>;
+               mpmc,read-access-delay = <70>;
+               mpmc,page-mode-read-delay = <70>;
+
+               flash@0,0 {
+                       compatible = "sst,sst39vf320", "cfi-flash";
+                       reg = <0 0 0x400000>;
+                       bank-width = <2>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "bootloader";
+                               reg = <0x000000 0x040000>; /* 256 KiB */
+                       };
+
+                       partition@1 {
+                               label = "kernel";
+                               reg = <0x040000 0x2c0000>; /* 2.75 MiB */
+                       };
+
+                       partition@2 {
+                               label = "rootfs";
+                               reg = <0x300000 0x100000>; /* 1 MiB */
+                       };
+               };
+       };
+
+       cs2 {
+               #address-cells = <2>;
+               #size-cells = <1>;
+               ranges;
+
+               mpmc,cs = <2>;
+               mpmc,memory-width = <16>;
+
+               mmio_leds: gpio@2,0 {
+                       compatible = "ti,7416374";
+                       reg = <2 0 0x2>;
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+       };
 };
 
 &enet_tx_clk {
        pinctrl-names = "default";
        pinctrl-0 = <&uart3_pins>;
 };
+
+&usb0 {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&usb0_pins>;
+};