pcie: add pcie dts support for G12A
authorZan Peng <zan.peng@amlogic.com>
Fri, 2 Feb 2018 08:02:07 +0000 (16:02 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Fri, 2 Mar 2018 07:07:54 +0000 (15:07 +0800)
PD#156734: pcie: add pcie dts support for G12A

Change-Id: Ia437be3df71062fe89f8203778d5b1b42df37dba
Signed-off-by: Zan Peng <zan.peng@amlogic.com>
arch/arm64/boot/dts/amlogic/g12a_skt.dts

index e81cf6c..60de321 100644 (file)
                };
        };
 
+       pcie_A: pcieA@fc000000 {
+               compatible = "amlogic, amlogic-pcie-v2", "snps,dw-pcie";
+               reg = <0x0 0xfc000000 0x0 0x400000
+                       0x0 0xff648000 0x0 0x2000
+                       0x0 0xfc400000 0x0 0x200000
+                       0x0 0xff646000 0x0 0x2000
+                       0x0 0xffd01080 0x0 0x10>;
+               reg-names = "elbi", "cfg", "config", "phy", "reset";
+               reset-gpio = <&gpio GPIOX_7 GPIO_ACTIVE_HIGH>;
+               interrupts = <0 221 0>, <0 223 0>;
+               #interrupt-cells = <1>;
+               bus-range = <0x0 0xff>;
+               #address-cells = <3>;
+               #size-cells = <2>;
+               device_type = "pci";
+               ranges = <0x82000000 0 0 0x0 0xfc600000 0 0x1a00000>;
+               /* non-prefetchable memory */
+               num-lanes = <1>;
+               pcie-num = <1>;
+
+               clocks = <&clkc CLKID_PCIE_PLL
+                       &clkc CLKID_PCIE_COMB
+                       &clkc CLKID_PCIE_PHY>;
+               clock-names = "pcie_refpll",
+                               "pcie",
+                               "pcie_phy";
+               /*reset-gpio-type 0:Shared pad(no reset)1:OD pad2:Normal pad*/
+               gpio-type = <2>;
+               pcie-apb-rst-bit = <15>;
+               pcie-phy-rst-bit = <14>;
+               pcie-ctrl-a-rst-bit = <12>;
+               status = "okay";
+       };
+
        sd_emmc_b:sd@ffe05000 {
                status = "okay";
                compatible = "amlogic, meson-mmc-g12a";
        usb3_phy_v2: usb3phy@ffe09080 {
                compatible = "amlogic, amlogic-new-usb3-v2";
                status = "okay";
-               portnum = <1>;
+               portnum = <0>;
                reg = <0x0 0xffe09080 0x0 0x20>;
                phy-reg = <0xff646000>;
                phy-reg-size = <0x4>;