ethernet: adjust gmac code
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3288.dtsi
index 01982ee26e860db4dadb9aa0b73346002e603766..fa5e0c16543bda7cb2c1be9b9968ef300b95f5ac 100755 (executable)
                      <0xffc02000 0x1000>;
        };
 
+       sram: sram@ff710000 {
+               compatible = "mmio-sram";
+               reg = <0xff710000 0x8000>; /* 32k */
+               map-exec;
+       };
+
        timer {
                compatible = "arm,armv7-timer";
                interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
                status = "disabled";
        };
 
-
-
        i2c0: i2c@ff650000 {
                compatible = "rockchip,rk30-i2c";
                reg = <0xff650000 0x1000>;
                status = "disabled";
        };
        
-
-    i2c5: i2c@ff170000 {
-        compatible = "rockchip,rk30-i2c";
-        reg = <0xff170000 0x1000>;
-        interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
-        #address-cells = <1>;
-        #size-cells = <0>;
-        //pinctrl-names = "default", "gpio";
-        //pinctrl-0 = <&i2c5_sda &i2c5_scl>;
-        //pinctrl-1 = <&i2c5_gpio>;
-        //gpios = <&gpio7 GPIO_C3 GPIO_ACTIVE_LOW>, <&gpio7 GPIO_C4 GPIO_ACTIVE_LOW>;
-        //clocks = <&clk_gates8 8>;
-        rockchip,check-idle = <1>;
-        status = "disabled";
-    };
+       i2c5: i2c@ff170000 {
+               compatible = "rockchip,rk30-i2c";
+               reg = <0xff170000 0x1000>;
+               interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               //pinctrl-names = "default", "gpio";
+               //pinctrl-0 = <&i2c5_sda &i2c5_scl>;
+               //pinctrl-1 = <&i2c5_gpio>;
+               //gpios = <&gpio7 GPIO_C3 GPIO_ACTIVE_LOW>, <&gpio7 GPIO_C4 GPIO_ACTIVE_LOW>;
+               //clocks = <&clk_gates8 8>;
+               rockchip,check-idle = <1>;
+               status = "disabled";
+       };
 
        edp: edp@ff970000 {
-                compatible = "rockchip,rk32-edp";
-                reg = <0xff970000 0x4000>;
-                interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
-                status = "disabled";
+               compatible = "rockchip,rk32-edp";
+               reg = <0xff970000 0x4000>;
+               interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
+               status = "disabled";
         };
 
-       hdmi:hdmi@ff980000 {
+       hdmi: hdmi@ff980000 {
                compatible = "rockchip,rk3288-hdmi";
                reg = <0xff980000 0x20000>;
                interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
                pinctrl-0 = <&i2c5_sda &i2c5_scl>;
                pinctrl-1 = <&i2c5_gpio>;
                status = "disabled";
-         };
+       };
        fb: fb{
                compatible = "rockchip,rk-fb";
                rockchip,disp-mode = <DUAL>;
        };
 
-       lcdc0:lcdc@ff940000 {
+       lcdc0: lcdc@ff940000 {
                compatible = "rockchip,rk3288-lcdc";
                rockchip,prop = <PRMRY>;
                rochchip,pwr18 = <0>;
                status = "disabled";
        };
 
-       lcdc1:lcdc@ff930000 {
+       lcdc1: lcdc@ff930000 {
                compatible = "rockchip,rk3288-lcdc";
                rockchip,prop = <EXTEND>;
                rockchip,pwr18 = <0>;
                pinctrl-0 = <&lcdc0_lcdc>;
                pinctrl-1 = <&lcdc0_gpio>;
                status = "disabled";
-  };
-
-        adc: adc@ff100000 {
-                compatible = "rockchip,saradc";
-                reg = <0xff100000 0x100>;
-                interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
-                #io-channel-cells = <1>;
-                io-channel-ranges;
-                rockchip,adc-vref = <1800>;
-                clock-frequency = <1000000>;
-                clock-names = "saradc", "pclk_saradc";
-                status = "disabled";
-         };
-       
+       };
+
+       adc: adc@ff100000 {
+               compatible = "rockchip,saradc";
+               reg = <0xff100000 0x100>;
+               interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
+               #io-channel-cells = <1>;
+               io-channel-ranges;
+               rockchip,adc-vref = <1800>;
+               clock-frequency = <1000000>;
+               clock-names = "saradc", "pclk_saradc";
+               status = "disabled";
+       };
+
        rga@ff920000 {
                compatible = "rockchip,rga";
                reg = <0xff920000 0x1000>;
                interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
                clock-names = "hclk_rga", "aclk_rga"; 
-  };
+       };
 
        i2s: rockchip-i2s@0xff890000 {
                compatible = "rockchip-i2s";
        //      pinctrl-names = "default";
        //      pinctrl-0 = <&spdif_tx>;
        };
-       ion: ion{
+
+       ion: ion {
                compatible = "rockchip,ion";
                #address-cells = <1>;
                #size-cells = <0>;
                rockchip,ion-heap@1 { /* CMA HEAP */
+                       compatible = "rockchip,ion-reserve";
                        reg = <1>;
+                       memory-reservation = <0x00000000 0x10000000>; /* 256MB */
                };
                rockchip,ion-heap@3 { /* SYSTEM HEAP */
                        reg = <3>;
                };
        };
-       
+
        mmc: mshc@ff0c0000 {
-          compatible = "rockchip,rk_mmc";
-          reg = <0xff0c0000 0x4000>;
-          interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; /*irq=64*/
-          #address-cells = <1>;
-          #size-cells = <0>;
-          //pinctrl-names = "default","suspend";
-          //pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_cd &sdmmc0_wp &sdmmc0_pwr &sdmmc0_bus1 &sdmmc0_bus4>;
-          //pinctrl-1 = <&sd0_cd_gpio>; //for int gpio?
-          //clocks = <&clk_gatesX XX> , <&clk_gatesY YY>;
-          //clock-names = "hclk_mmc","mmc";
-          clock-frequency = <50000000>;
-          clock-freq-min-max = <400000 50000000>;
-          num-slots = <1>;
-          supports-highspeed;
-          broken-cd;
-          card-detect-delay = <200>;
-          pwr-gpios = <&gpio3 GPIO_A1 GPIO_ACTIVE_LOW>; /*pwr_en = GPIO3_A1*/
-          fifo-depth = <0x100>;
-          emmc-compatible = <0>;
-          status = "okay";
+               compatible = "rockchip,rk_mmc";
+               reg = <0xff0c0000 0x4000>;
+               interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; /*irq=64*/
+               #address-cells = <1>;
+               #size-cells = <0>;
+               //pinctrl-names = "default","suspend";
+               //pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_cd &sdmmc0_wp &sdmmc0_pwr &sdmmc0_bus1 &sdmmc0_bus4>;
+               //pinctrl-1 = <&sd0_cd_gpio>; //for int gpio?
+               //clocks = <&clk_gatesX XX> , <&clk_gatesY YY>;
+               //clock-names = "hclk_mmc","mmc";
+               clock-frequency = <50000000>;
+               clock-freq-min-max = <400000 50000000>;
+               num-slots = <1>;
+               supports-highspeed;
+               broken-cd;
+               card-detect-delay = <200>;
+               pwr-gpios = <&gpio3 GPIO_A1 GPIO_ACTIVE_LOW>; /*pwr_en = GPIO3_A1*/
+               fifo-depth = <0x100>;
+               emmc-compatible = <0>;
+               status = "okay";
        };
-       
+
        sdio0: mshc@ff0d0000 {
                compatible = "rockchip,rk_mmc";
-           reg = <0xff0d0000 0x4000>;
-           interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; /*irq=65*/
-           #address-cells = <1>;
-           #size-cells = <0>;
-           //pinctrl-names = "default";
-           //pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_cd &sd1_wp &sd1_bus1 &sd1_bus4>;
-           //clocks = <&clk_gatesX XX> , <&clk_gatesY YY>;
-           //clock-names = "hclk_sdio0","sdio0";
-        clock-frequency = <50000000>;
-        clock-freq-min-max = <400000 50000000>;    
-        num-slots = <1>;
-           supports-highspeed;
-           fifo-depth = <0x100>;
-           emmc-compatible = <0>;
-           status = "disabled";
+               reg = <0xff0d0000 0x4000>;
+               interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; /*irq=65*/
+               #address-cells = <1>;
+               #size-cells = <0>;
+               //pinctrl-names = "default";
+               //pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_cd &sd1_wp &sd1_bus1 &sd1_bus4>;
+               //clocks = <&clk_gatesX XX> , <&clk_gatesY YY>;
+               //clock-names = "hclk_sdio0","sdio0";
+               clock-frequency = <50000000>;
+               clock-freq-min-max = <400000 50000000>;
+               num-slots = <1>;
+               supports-highspeed;
+               fifo-depth = <0x100>;
+               emmc-compatible = <0>;
+               status = "disabled";
        };
        
        sdio1: mshc@ff0e0000 {
                compatible = "rockchip,rk_mmc";
-           reg = <0xff0e0000 0x4000>;
-           interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; /*irq=66*/
-           #address-cells = <1>;
-           #size-cells = <0>;
-           //pinctrl-names = "default";
-           //pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_cd &sd1_wp &sd1_bus1 &sd1_bus4>;
-           //clocks = <&clk_gatesX XX> , <&clk_gatesY YY>;
-           //clock-names = "hclk_sdio1","sdio1";
-        clock-frequency = <50000000>;
-        clock-freq-min-max = <400000 50000000>;    
-        num-slots = <1>;
-           supports-highspeed;
-           fifo-depth = <0x100>;
-           emmc-compatible = <0>;
-           status = "disabled";
+               reg = <0xff0e0000 0x4000>;
+               interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; /*irq=66*/
+               #address-cells = <1>;
+               #size-cells = <0>;
+               //pinctrl-names = "default";
+               //pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_cd &sd1_wp &sd1_bus1 &sd1_bus4>;
+               //clocks = <&clk_gatesX XX> , <&clk_gatesY YY>;
+               //clock-names = "hclk_sdio1","sdio1";
+               clock-frequency = <50000000>;
+               clock-freq-min-max = <400000 50000000>;
+               num-slots = <1>;
+               supports-highspeed;
+               fifo-depth = <0x100>;
+               emmc-compatible = <0>;
+               status = "disabled";
        };
        
        emmc: mshc@ff0f0000 {
                compatible = "rockchip,rk_mmc";
-           reg = <0xff0f0000 0x4000>;
-           interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; /*irq=67*/
-           #address-cells = <1>;
-           #size-cells = <0>;
-           //pinctrl-names = "default";
-           //pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_cd &sd1_wp &sd1_bus1 &sd1_bus4>;
-           //clocks = <&clk_gatesX XX> , <&clk_gatesY YY>;
-           //clock-names = "hclk_sdio1","sdio1";
-        clock-frequency = <50000000>;
-        clock-freq-min-max = <400000 50000000>;    
-        num-slots = <1>;
-           supports-highspeed;
-           fifo-depth = <0x100>;
-           emmc-compatible = <1>;
-           status = "disabled";
+               reg = <0xff0f0000 0x4000>;
+               interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; /*irq=67*/
+               #address-cells = <1>;
+               #size-cells = <0>;
+               //pinctrl-names = "default";
+               //pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_cd &sd1_wp &sd1_bus1 &sd1_bus4>;
+               //clocks = <&clk_gatesX XX> , <&clk_gatesY YY>;
+               //clock-names = "hclk_sdio1","sdio1";
+               clock-frequency = <50000000>;
+               clock-freq-min-max = <400000 50000000>;
+               num-slots = <1>;
+               supports-highspeed;
+               fifo-depth = <0x100>;
+               emmc-compatible = <1>;
+               status = "disabled";
        };
        
-        vpu:vpu_service@ff9a0000 {
+       vpu: vpu_service@ff9a0000 {
                compatible = "vpu_service";
                reg = <0xff9a0000 0x800>;
-                interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
-                interrupt-names = "irq_enc", "irq_dec";
-                /*clocks = <&clk_gates3 9>, <&clk_gates3 10>;
-                clock-names = "aclk_vcodec", "hclk_vcodec"; */
-                name = "vpu_service";
-                status = "disabled";
-       };
-
-        hevc:hevc_service@ff9c0000 {
-                compatible = "rockchip,hevc_service";
-                reg = <0xff9c0000 0x800>;
-                interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
-                interrupt-names = "irq_dec";
-                /*clocks = <&clk_gates3 9>, <&clk_gates3 10>;
-                clock-names = "aclk_vcodec", "hclk_vcodec";*/
-                name = "hevc_service";
-                status = "disabled";
-        };
+               interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-names = "irq_enc", "irq_dec";
+               /*clocks = <&clk_gates3 9>, <&clk_gates3 10>;
+               clock-names = "aclk_vcodec", "hclk_vcodec"; */
+               name = "vpu_service";
+               status = "disabled";
+       };
+
+       hevc: hevc_service@ff9c0000 {
+               compatible = "rockchip,hevc_service";
+               reg = <0xff9c0000 0x800>;
+               interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-names = "irq_dec";
+               /*clocks = <&clk_gates3 9>, <&clk_gates3 10>;
+               clock-names = "aclk_vcodec", "hclk_vcodec";*/
+               name = "hevc_service";
+               status = "disabled";
+       };
 
-        iep:iep@ff900000 {
-                compatible = "rockchip,iep";
-                reg = <0xff900000 0x800>;
-                interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
-                /*clocks = <&clk_gate3 9>, <&clk_gate3 10>;
-                clock_names = "aclk_iep", "hclk_iep";*/
+       iep: iep@ff900000 {
+               compatible = "rockchip,iep";
+               reg = <0xff900000 0x800>;
+               interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
+               /*clocks = <&clk_gate3 9>, <&clk_gate3 10>;
+               clock_names = "aclk_iep", "hclk_iep";*/
                status = "disabled";
         };
+
+       dwc_control_usb: dwc-control-usb@ff770284 {
+               compatible = "rockchip,rk3288-dwc-control-usb";
+               reg = <0xff770284 0x04>, <0xff770288 0x04>,
+                     <0xff7702cc 0x04>, <0xff7702d4 0x04>,
+                     <0xff770320 0x14>, <0xff770334 0x14>,
+                     <0xff770348 0x10>, <0xff770358 0x08>,
+                     <0xff770360 0x08>;
+               reg-names = "GRF_SOC_STATUS1" ,"GRF_SOC_STATUS2",
+                           "GRF_SOC_STATUS19", "GRF_SOC_STATUS21",
+                           "GRF_UOC0_BASE", "GRF_UOC1_BASE",
+                           "GRF_UOC2_BASE", "GRF_UOC3_BASE",
+                           "GRF_UOC4_BASE";
+               interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>,
+                            <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
+                            <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-names = "otg_id", "bvalid",
+                                 "otg_linestate", "host0_linestate",
+                                 "host1_linestate";
+               /*gpios = <&gpio0 GPIO_B6 GPIO_ACTIVE_LOW>,*//*HOST_VBUS_DRV*/
+               /*      <&gpio0 GPIO_B4 GPIO_ACTIVE_LOW>;*//*OTG_VBUS_DRV*/
+               /*clocks = <&clk_gates4 5>;*/
+               /*clock-names = "hclk_usb_peri";*/
+       };
+
+       usb1: usb@ff580000 {
+               compatible = "rockchip,rk3288_usb20_otg";
+               reg = <0xff580000 0x40000>;
+               interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
+               /*clocks = <&clk_otgphy0_480m>, <&clk_gates5 13>;*/
+               /*clock-names = "otgphy0", "hclk_otg0";*/
+       };
+
+       usb2: usb@ff540000 {
+               compatible = "rockchip,rk3288_usb20_host";
+               reg = <0xff540000 0x40000>;
+               interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
+               /*clocks = <&clk_otgphy1_480m>, <&clk_gates7 3>;*/
+               /*clock-names = "otgphy1", "hclk_otg1";*/
+       };
+
+       usb3: usb@ff520000 {
+               compatible = "rockchip,rk3288_rk_ohci_host";
+               reg = <0xff520000 0x20000>;
+               interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
+               /*clocks = ;*/
+               /*clock-names = ;*/
+       };
+
+       usb4: usb@ff500000 {
+               compatible = "rockchip,rk3288_rk_ehci_host";
+               reg = <0xff500000 0x20000>;
+               interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
+               /*clocks = ;*/
+               /*clock-names = ;*/
+       };
+
+       usb5: hsic@ff5c0000 {
+               compatible = "rockchip,rk3288_rk_hsic_host";
+               reg = <0xff5c0000 0x40000>;
+               interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
+               /*clocks = <&clk_hsicphy480m>, <&clk_gates7 4>,*/
+               /*       <&clk_hsicphy12m>, <&clk_otgphy1_480m>;*/
+               /*clock-names = "hsicphy480m", "hclk_hsic",*/
+               /*            "hsicphy12m", "hsic_otgphy1";*/
+       };
+       
+       gmac: eth@ff290000 {
+               compatible = "rockchip,gmac";
+               reg = <0xff290000 0x10000>;
+               interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;  /*irq=59*/
+               interrupt-names = "macirq";
+               phy-mode = "rmii";
+               //phy-mode = "gmii";
+               pinctrl-names = "default";
+               pinctrl-0 = <&mac_clk &mac_txpins &mac_rxpins &mac_mdpins>;
+       };
 };