common: modify the dtsi config of sm1 and tm2 [1/2]
authordeng.liu <deng.liu@amlogic.com>
Mon, 1 Jul 2019 13:05:57 +0000 (21:05 +0800)
committerNick Xie <nick@khadas.com>
Mon, 5 Aug 2019 07:37:11 +0000 (15:37 +0800)
PD#SWPL-10241

Problem:
{Score:5}{vts_r9}[S905X3] VtsHalNeuralnetworksV1_1Target module 644 fail;
v0624 new add, v0613 ok;

Solution:
npu not insmod  successfully,modify dtsi config

Verify:
Local on sm1

Change-Id: I986e37acab4a76cdf6ad52620520994193a06448
Signed-off-by: deng.liu <deng.liu@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
arch/arm/boot/dts/amlogic/mesonsm1.dtsi
arch/arm/boot/dts/amlogic/mesontm2.dtsi
arch/arm64/boot/dts/amlogic/mesonsm1.dtsi
arch/arm64/boot/dts/amlogic/mesontm2.dtsi

index d0e593f..55aa0b5 100644 (file)
        galcore {
                compatible = "amlogic, galcore";
                dev_name = "galcore";
-               status = "disabled";
+               status = "okay";
                clocks = <&clkc CLKID_VNANOQ_AXI_CLK_COMP>,
                        <&clkc CLKID_VNANOQ_CORE_CLK_COMP>;
                clock-names = "cts_vipnanoq_axi_clk_composite",
                        0xffd01088 0x0
                        /*0xffd01088:reset reg*/
                        >;
+               nn_efuse = <0xff63003c 0x20>;
        };
        aocec: aocec {
                compatible = "amlogic, aocec-sm1";
index 2d642da..1636abe 100644 (file)
                pinctrl-0 = <&c_uart_pins>;
        };
 
+
+       pcie_A: pcieA@fc000000 {
+               compatible = "amlogic, amlogic-pcie-v2", "snps,dw-pcie";
+               reg = <0xfc000000 0x400000
+                       0xff648000 0x2000
+                       0xfc400000 0x200000
+                       0xff646000 0x2000
+                       0xffd01080 0x10>;
+               reg-names = "elbi", "cfg", "config", "phy", "reset";
+               interrupts = <0 221 0>;
+               #interrupt-cells = <1>;
+               bus-range = <0x0 0xff>;
+               #address-cells = <3>;
+               #size-cells = <2>;
+               interrupt-map-mask = <0 0 0 0>;
+               interrupt-map = <0 0 0 0 &gic GIC_SPI 223 IRQ_TYPE_EDGE_RISING>;
+               device_type = "pci";
+               ranges = <0x81000000 0 0 0xfc600000 0x0 0x100000
+                       /* downstream I/O */
+                       0x82000000 0xfc700000 0x0 0xfc700000 0 0x1900000>;
+                       /* non-prefetchable memory */
+               num-lanes = <1>;
+               pcie-num = <1>;
+
+               clocks = <&clkc CLKID_PCIE0_GATE
+                       &clkc CLKID_PCIE1
+                       &clkc CLKID_PCIE0PHY>;
+               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>;
+               pwr-ctl = <1>;
+               pcie-ctrl-sleep-shift = <18>;
+               pcie-hhi-mem-pd-shift = <26>;
+               pcie-hhi-mem-pd-mask = <0xf>;
+               pcie-ctrl-iso-shift = <18>;
+               status = "disabled";
+       };
+
+       pcie_B: pcieB@fc000000 {
+               compatible = "amlogic, amlogic-pcie-v2", "snps,dw-pcie";
+               reg = <0xfA000000 0x400000
+                       0xff65E000 0x2000
+                       0xfA400000 0x200000
+                       0xff65C000 0x2000
+                       0xffd01080 0x10>;
+               reg-names = "elbi", "cfg", "config", "phy",
+                               "reset";
+               interrupts = <0 229 0>;
+               #interrupt-cells = <1>;
+               bus-range = <0x0 0xff>;
+               #address-cells = <3>;
+               #size-cells = <2>;
+               interrupt-map-mask = <0 0 0 0>;
+               interrupt-map = <0 0 0 0 &gic GIC_SPI 231 IRQ_TYPE_EDGE_RISING>;
+               device_type = "pci";
+               ranges = <0x81000000 0 0 0xfA600000 0x0 0x100000
+                       /* downstream I/O */
+                       0x82000000 0xfA700000 0x0 0xfA700000 0 0x1900000>;
+                       /* non-prefetchable memory */
+               num-lanes = <1>;
+               pcie-num = <1>;
+
+               clocks = <&clkc CLKID_PCIE1_GATE
+                       &clkc CLKID_PCIE1
+                       &clkc CLKID_PCIE1PHY>;
+               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 = <30>;
+               pcie-phy-rst-bit = <29>;
+               pcie-ctrl-a-rst-bit = <28>;
+               pwr-ctl = <1>;
+               pcie-ctrl-sleep-shift = <20>;
+               pcie-hhi-mem-pd-shift = <4>;
+               pcie-hhi-mem-pd-mask = <0xf>;
+               pcie-ctrl-iso-shift = <20>;
+               status = "disabled";
+       };
+       galcore {
+               compatible = "amlogic, galcore";
+               dev_name = "galcore";
+               status = "okay";
+               interrupts = <0 147 4>;
+               interrupt-names = "galcore";
+               reg = <0xff100000 0x800
+                       /*reg base value:0xff100000 */
+                       0xff000000 0x400000
+                       /*Sram bse value:0xff000000*/
+                       0xff63c118 0x0
+                       0xff63c11c 0x0
+                       /*0xff63c118,0xff63c11c :nanoq mem regs*/
+                       0xffd01088 0x0
+                       /*0xffd01088:reset reg*/
+                       >;
+               nn_efuse = <0xff63003c 0x20>;
+       };
        sd_emmc_c: emmc@ffe07000 {
                status = "disabled";
                compatible = "amlogic, meson-mmc-tl1";
index 87ba87a..626328c 100644 (file)
        galcore {
                compatible = "amlogic, galcore";
                dev_name = "galcore";
-               status = "disabled";
+               status = "okay";
                clocks = <&clkc CLKID_VNANOQ_AXI_CLK_COMP>,
                        <&clkc CLKID_VNANOQ_CORE_CLK_COMP>;
                clock-names = "cts_vipnanoq_axi_clk_composite",
                        0x0 0xffd01088 0x0 0x0
                        /*0xffd01088:reset reg*/
                        >;
+               nn_efuse = <0xff63003c 0x20>;
        };
        aocec: aocec {
                compatible = "amlogic, aocec-sm1";
index 980cd4b..2b650f8 100644 (file)
                pinctrl-0 = <&c_uart_pins>;
        };
 
+
+       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";
+               interrupts = <0 221 0>;
+               #interrupt-cells = <1>;
+               bus-range = <0x0 0xff>;
+               #address-cells = <3>;
+               #size-cells = <2>;
+               interrupt-map-mask = <0 0 0 0>;
+               interrupt-map = <0 0 0 0 &gic GIC_SPI 223 IRQ_TYPE_EDGE_RISING>;
+               device_type = "pci";
+               ranges = <0x81000000 0 0 0 0xfc600000 0x0 0x100000
+                       /* downstream I/O */
+                       0x82000000 0 0xfc700000 0x0 0xfc700000 0 0x1900000>;
+                       /* non-prefetchable memory */
+               num-lanes = <1>;
+               pcie-num = <1>;
+
+               clocks = <&clkc CLKID_PCIE0_GATE
+                       &clkc CLKID_PCIE1
+                       &clkc CLKID_PCIE0PHY>;
+               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>;
+               pwr-ctl = <1>;
+               pcie-ctrl-sleep-shift = <18>;
+               pcie-hhi-mem-pd-shift = <26>;
+               pcie-hhi-mem-pd-mask = <0xf>;
+               pcie-ctrl-iso-shift = <18>;
+               status = "disabled";
+       };
+
+       pcie_B: pcieB@fc000000 {
+               compatible = "amlogic, amlogic-pcie-v2", "snps,dw-pcie";
+               reg = <0x0 0xfA000000 0x0 0x400000
+                       0x0 0xff65E000 0x0 0x2000
+                       0x0 0xfA400000 0x0 0x200000
+                       0x0 0xff65C000 0x0 0x2000
+                       0x0 0xffd01080 0x0 0x10>;
+               reg-names = "elbi", "cfg", "config", "phy",
+                               "reset";
+               interrupts = <0 229 0>;
+               #interrupt-cells = <1>;
+               bus-range = <0x0 0xff>;
+               #address-cells = <3>;
+               #size-cells = <2>;
+               interrupt-map-mask = <0 0 0 0>;
+               interrupt-map = <0 0 0 0 &gic GIC_SPI 231 IRQ_TYPE_EDGE_RISING>;
+               device_type = "pci";
+               ranges = <0x81000000 0 0 0 0xfA600000 0x0 0x100000
+                       /* downstream I/O */
+                       0x82000000 0 0xfA700000 0x0 0xfA700000 0 0x1900000>;
+                       /* non-prefetchable memory */
+               num-lanes = <1>;
+               pcie-num = <1>;
+
+               clocks = <&clkc CLKID_PCIE1_GATE
+                       &clkc CLKID_PCIE1
+                       &clkc CLKID_PCIE1PHY>;
+               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 = <30>;
+               pcie-phy-rst-bit = <29>;
+               pcie-ctrl-a-rst-bit = <28>;
+               pwr-ctl = <1>;
+               pcie-ctrl-sleep-shift = <20>;
+               pcie-hhi-mem-pd-shift = <4>;
+               pcie-hhi-mem-pd-mask = <0xf>;
+               pcie-ctrl-iso-shift = <20>;
+               status = "disabled";
+       };
+       galcore {
+               compatible = "amlogic, galcore";
+               dev_name = "galcore";
+               status = "okay";
+               interrupts = <0 147 4>;
+               interrupt-names = "galcore";
+               reg = <0x0 0xff100000 0x0 0x800
+                       /*reg base value:0xff100000 */
+                       0x0 0xff000000 0x0 0x400000
+                       /*Sram bse value:0xff000000*/
+                       0x0 0xff63c118 0x0 0x0
+                       0x0 0xff63c11c 0x0 0x0
+                       /*0xff63c118,0xff63c11c :nanoq mem regs*/
+                       0x0 0xffd01088 0x0 0x0
+                       /*0xffd01088:reset reg*/
+                       >;
+               nn_efuse = <0xff63003c 0x20>;
+       };
        sd_emmc_c: emmc@ffe07000 {
                status = "disabled";
                compatible = "amlogic, meson-mmc-tl1";