From patchwork Sat Apr 25 11:03:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1121 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id EDE733F078 for ; Sat, 25 Apr 2020 13:04:35 +0200 (CEST) Received: by mail-pj1-f72.google.com with SMTP id m6sf10529275pjo.0 for ; Sat, 25 Apr 2020 04:04:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1587812674; cv=pass; d=google.com; s=arc-20160816; b=VpHsy0N03rDgV/mFGdZAycF9vEW1iCLUvgZs2IKorwUovPs12kTt9XNvTXdvFMNFMP +S1SJgzm13wr4zXohQlQiFI4lq53gopDOo90aJ1pl7snGLFaNMorF220ArZ5pzHpyKG+ 34FK4pc8aJjTt99batNxx/iQ76mo0rtLa/s/jejs0WUDTSytgN2CpeBqQycIRjGCiXTs av1Fsgmr2oc5kUKbitYWzL3WxACawIyzlZcNO0JWTCHKsnaNCe4F/61JaH8+KR1UEdC+ oQHukmIKKEF89VBqLXFOZIG/gFMqp9UDsS0W8JQsChO08uSHrgjLf30xLBZpWaq7D9qz V2KA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:dkim-signature; bh=AOcSiMFx0N2KW1d2JmpQtMNoSmYkoE0n4e5626apCg0=; b=RtDCpWwTQmzvmqf8+xAdaRdhuH9byW4vdkRj/IIEW5OV34/vziixIfuWOuLuxul+iV PZsGQI2G4/Yvo0clX2q6el6LfaKsXvuZwh67acdyu5Z2KQSUdM7bOCMSuyv3gkJq/o9O RsqeVN/8tj0Yc0w0mRlTERSrixrKb8GEJsIQ7uVQtCnJOk3pKA6WGtEIO1yilWPD9zF8 i6vj4xQBWdlX+xLRfR8iQclQC/RBRRu5rX8JoEX9XfO1CKHXt8q92OPUvyiSnsSH1w38 7IlVycPGJsTlGwrc7lcfmvD1e+2qUUHPmnFvarl5JKIFVppuBjLANJD/+uoXx/NU6an6 0CgA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ktWRb5KM; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=AOcSiMFx0N2KW1d2JmpQtMNoSmYkoE0n4e5626apCg0=; b=lEMU0vpmd74xnU5sRJP7/NBOPbdlQAoNK0sGbKYQlo6xnl3hGCH99VNCQL8DpC87pL XMN2MsBcjbSLxUJrQfN9bm6N4pGHABf3NzqcWy8B5jvPuG9JTxEr/Bed/95ricoFNcHm 47w7x3sqbKmrn+yzA5/9BddHNCuIn5Tc+XM+I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=AOcSiMFx0N2KW1d2JmpQtMNoSmYkoE0n4e5626apCg0=; b=a+nFNTm/4DTxNoKUmHDUPFQe9BvmclDH62UpuqIAKQecEslUIVwcgZt55aOSYvIt7V LsuL9+Mtnt8Dqk+toRDk9IVBVudLgSDTAbzjZMUadTvJptOZn5xBXxJPGopzPPD/RTHl M3Bs2Jq8pDyIwi1WZ6n9t1E7S8CCruN8LaKqU9bKnMSxrOWByWN+bPGkhjhmvC9/LQl1 Fh33c262pgMN3Oar283lIJ/73V3HFY/SYXGWlQPhiveMwnEOaeRbCJoSKvFsnpztyASQ r3uDbTl8a8Qgb57sfx6ELQnH3G20Xma71pEvXX7rjndHvuIICbFy86S2i+R56bH2Er+9 ijMg== X-Gm-Message-State: AGi0PuZp3QjRaQyjKLxk+klfb6aArRI61Kidn9ABuwfpnuE3hNTXf1kJ UcpS8i7Sq1S+0eRGpN+fjENRISsh X-Google-Smtp-Source: APiQypKnQua5cjc1mInpEi/dCZBuFH9VNW+WA5I1DGu1fdqlwq99zKtqx4Il0vWBRflDf//gQxy+nw== X-Received: by 2002:a63:f252:: with SMTP id d18mr13271923pgk.448.1587812674684; Sat, 25 Apr 2020 04:04:34 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:7790:: with SMTP id s138ls9097303pfc.11.gmail; Sat, 25 Apr 2020 04:04:34 -0700 (PDT) X-Received: by 2002:a62:7cca:: with SMTP id x193mr14067346pfc.96.1587812674209; Sat, 25 Apr 2020 04:04:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587812674; cv=none; d=google.com; s=arc-20160816; b=rqlugqykSL23smFkhxs6s33eVDUCLkq3lPp4J3ADweVt0t6K41kE1aTVs0pu3AyGzs 5ujfdeTAmS6whV9GrAXM+zrzBJC/+d0eZFbX5+jQRR6nQKXDzcyJkBhmFfBKurw1iXUx dqjafLH/1ClDjkAOIJwBQiTQmXDdiSbVCVaTkWGV3/LRwXkqKbjRyf4DmS+U+OpPK6n4 Q0y9ZrLTvr5bfg8icKqrdmjR5V7Rt39f0+T08BYdQgPDCEXzfQNw8Bz/sqRuH3tM8uYF 28CDFqSugPZPrbzA6P6TVtZpB7DKcN1+YTfXhQU6ckJy9bDkd1jwB35FTjKtSvhx3qYI 5lDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6gYgLijV3LtEDXmDCnnHOndc5g0iNuTtmUjrvfApMLY=; b=Y6HQr+b2X1kAsS/8bii+OvV8M66bEdn3HM7W/fQ0KUOk+2RKC4LSdZ6a7OdKweYq8Q F9z7OOBf2ColdyeN6olykH1l9CfG4rhQTDodzm7PEHbkI0Bcni3ZwTG16myFg0e0K2Vi RLMmQV02pkiuJkIWEWCf8zWxMOgNYMyZWg/ZS+3qUGTDGq1KgI4yR287cSnq5zRp+Wqe 9f7RFMvqPpVWI8uAK6d4cKcvyTEc05zIeHjjJMRCAuhWgyA1wn25NYxpzWlUg10LYsGK IGWrSDpZ4Fx3KIN0CuDalAGi6mdbT3BZELka4uQ/O2KrHcAxPWqQTGtjOYFO8fbA37Gr Sz5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ktWRb5KM; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id e16sor10888639pfm.10.2020.04.25.04.04.34 for (Google Transport Security); Sat, 25 Apr 2020 04:04:34 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a62:76c3:: with SMTP id r186mr14347430pfc.190.1587812673908; Sat, 25 Apr 2020 04:04:33 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:1d46:fa69:c34:93dc]) by smtp.gmail.com with ESMTPSA id v94sm6922831pjb.39.2020.04.25.04.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Apr 2020 04:04:33 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: patrick@blueri.se, sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 7/8] rockchip: Enable PCIe/M.2 on rk3399 board w/ M.2 Date: Sat, 25 Apr 2020 16:33:53 +0530 Message-Id: <20200425110354.12381-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200425110354.12381-1-jagan@amarulasolutions.com> References: <20200425110354.12381-1-jagan@amarulasolutions.com> X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ktWRb5KM; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Enable PCIe/M.2 support on - NanoPC-T4 - ROC-RK3399-PC Mezzanine boards. => pci Scanning PCI devices on bus 0 BusDevFun VendorId DeviceId Device Class Sub-Class diff --git a/arch/arm/dts/rk3399-u-boot.dtsi b/arch/arm/dts/rk3399-u-boot.dtsi index ef57c36e73..a79a2d23d8 100644 --- a/arch/arm/dts/rk3399-u-boot.dtsi +++ b/arch/arm/dts/rk3399-u-boot.dtsi @@ -8,6 +8,7 @@ aliases { mmc0 = &sdhci; mmc1 = &sdmmc; + pci0 = &pcie0; }; cic: syscon@ff620000 { diff --git a/configs/nanopc-t4-rk3399_defconfig b/configs/nanopc-t4-rk3399_defconfig index 607a00dbf7..032256fd76 100644 --- a/configs/nanopc-t4-rk3399_defconfig +++ b/configs/nanopc-t4-rk3399_defconfig @@ -18,6 +18,7 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y CONFIG_CMD_USB=y +CONFIG_CMD_PCI=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TIME=y CONFIG_SPL_OF_CONTROL=y @@ -34,10 +35,13 @@ CONFIG_MMC_SDHCI_ROCKCHIP=y CONFIG_DM_ETH=y CONFIG_ETH_DESIGNWARE=y CONFIG_GMAC_ROCKCHIP=y +CONFIG_NVME=y +CONFIG_PCI=y CONFIG_PMIC_RK8XX=y CONFIG_REGULATOR_PWM=y CONFIG_REGULATOR_RK8XX=y CONFIG_PWM_ROCKCHIP=y +CONFIG_DM_RESET=y CONFIG_BAUDRATE=1500000 CONFIG_DEBUG_UART_SHIFT=2 CONFIG_SYSRESET=y diff --git a/configs/roc-pc-mezzanine-rk3399_defconfig b/configs/roc-pc-mezzanine-rk3399_defconfig index 5a694edc03..0b853805f3 100644 --- a/configs/roc-pc-mezzanine-rk3399_defconfig +++ b/configs/roc-pc-mezzanine-rk3399_defconfig @@ -19,6 +19,7 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y CONFIG_CMD_USB=y +CONFIG_CMD_PCI=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TIME=y CONFIG_SPL_OF_CONTROL=y @@ -36,11 +37,14 @@ CONFIG_SPI_FLASH_WINBOND=y CONFIG_DM_ETH=y CONFIG_ETH_DESIGNWARE=y CONFIG_GMAC_ROCKCHIP=y +CONFIG_NVME=y +CONFIG_PCI=y CONFIG_PMIC_RK8XX=y CONFIG_REGULATOR_PWM=y CONFIG_REGULATOR_RK8XX=y CONFIG_PWM_ROCKCHIP=y CONFIG_RAM_RK3399_LPDDR4=y +CONFIG_DM_RESET=y CONFIG_BAUDRATE=1500000 CONFIG_DEBUG_UART_SHIFT=2 CONFIG_ROCKCHIP_SPI=y