From patchwork Sat Dec 21 07:54:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 947 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9996E3F08E for ; Sat, 21 Dec 2019 08:55:18 +0100 (CET) Received: by mail-pg1-f199.google.com with SMTP id v30sf6531565pga.22 for ; Fri, 20 Dec 2019 23:55:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1576914917; cv=pass; d=google.com; s=arc-20160816; b=eIJevT7OpwZyb12tYbcHlhWBfil2r7dZ9bOy5EG3jCCtGBLG0qL+HJVyXuyQmqGn2P HD48b/RdzDTTVxYN5w0D7DFCDzyW4Yb8cwMB5ZL5quGeKJw869MBRlL7agoYFaLml0TU duldHQd5zQGA1jv6J13Vfn/RLuLzf4X/rqfCufTGqHuHqU0AJui6+FbB1YUmoqw75vDd iiDOWWq0mdj9zfobZfAXbNHwTqqhsMsuOdAEq7reLB5YL6O+umjN4aDdRcK9DfPAK8ZU NCzLh7A+OU/tIs5UTh9a+oWipDF3fIbZx9ZVKIad8ddKolBjpSpa0+ARtzHYSBtVBAuZ T0Jg== 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:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=0rfolINRXN4jsaoZJ23PyzTfimM41D4DNPO5Mcp6N58=; b=zb8dlUosgo/6LqnaQOoTggoRkC65kMVgXYHiuFWRWEInqW/HD1GyU//dCuAnRLJ9KE Gpp8/sTxl0inlWeIN/CRF9PdcS0N7qU/sKlIRSDwEdooB9YW7RImWGxukINyepChP0cd GRTZfpFpTw1fUH8YInhriXE7ckEEGqiKuBYOpSp13ubRY+UDOpCIvBACu5lcfmTGSmO+ IHxKxEQczpZ6Ol50RY/bo2izq5Li9GOAgaoyxg8055kXCgvGeD0FWC7GqccwR9yv5TXU +LdPia1rAgTQkI+rwOMUUW9luxZ/sFgQYiX+NeiQEfOKrdQy2ue1TES1IU+OZtTVjlM3 M3cA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=h8LfcJbC; 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=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=0rfolINRXN4jsaoZJ23PyzTfimM41D4DNPO5Mcp6N58=; b=d0BeQg8/6mbO1/n3+G4n7xS46GF90yYNefp98L4FtfoqvVfzkMOdYPsIFkVwzcKoYh V6aVjn+TsLnO/ApIaioIHGE2nktY32CzSl0wLqT5Iq+T+zge+S6gmckJfseeM7Z9cjfE 6TbuvPxYz9bFB8hheb9x+VxSmy3nVcBTE/oaA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version: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=0rfolINRXN4jsaoZJ23PyzTfimM41D4DNPO5Mcp6N58=; b=q173Ay80G0n33AKrG17SBdFaHwF3m7V9DvOjSk9E0+sPO0eiD4kdtASyJtjMFfgtT4 5rC5fg2GKnclv0iTpIPQDYkCZ7TpISVi3mNVclGS3gz6QHQcA3K80CYLXGhtjitYJiK8 MsnXQWSCCm94WWaMHzh0NP72x7lvaYhZ4C9vFDM2rxM0hZjNqmGKcvuUe7xkQSGpzBUF +NcOJkKkDrhs6LNH3TkSKKjya+85MS+Tp+HQYe3FjmF8k+QeQxYXeBOJvEYhUypDiw0G Z0+GRlTWpZWhDURrbbDlc1vTmSxzBpUiiSov/o5moNhTPQ8yYfwBvRFShfg37iXB0krG bSZQ== X-Gm-Message-State: APjAAAUnhN9u86sxm/jcU/iRSfBAUb9LzHEJKWgZGDKCcSpahAp3AgoB aZhOdpR9OLhcjbRx4ulbboveHGR2 X-Google-Smtp-Source: APXvYqzAoYvv6j7TZRjk8vS1QR1wrv2npdu4R4ifTFs9N8bmsS2nyjMWV97TubjBT8XiZW+vkDTc5Q== X-Received: by 2002:a17:902:8bc9:: with SMTP id r9mr19366408plo.48.1576914917324; Fri, 20 Dec 2019 23:55:17 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:8c8c:: with SMTP id t12ls2968049plo.9.gmail; Fri, 20 Dec 2019 23:55:16 -0800 (PST) X-Received: by 2002:a17:90a:300b:: with SMTP id g11mr18550339pjb.123.1576914916761; Fri, 20 Dec 2019 23:55:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576914916; cv=none; d=google.com; s=arc-20160816; b=Yr67wr90Rju+duaxxyEgnxTmoRS95xS52/1wu1z2YRoEdK1j6s7UuXMgCtxtub5xQz uEDXsdm07slm1ejzuwnXIcplK330C7opXzstnfIzbJwY358IuuQNnr95sL+KS3yizl9t Lbs6bagA9QaSgGhnBW5bqQ1QDcRUNkM6MQUQ5m5jT5hH3Xsbl9Qy1r1fd9yg+JHfrzIk 4NBPgw56eZAGl+7a74PubkJDMRsGgxc2+Ntlr8w4QbYtifq9d71EKtEy9tfDhA2dZWMI IDskpuJBj1AkvIyMOpnaqmnOrLiVCTtJ2VOp+S1RGKjEwvb39x67InGVqxwV7aBE/Enq dNYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=C8CZ20aKDd2zOhw5EtsYbeLPT+q6TypZtOf3+Yy7v1E=; b=ZQViPebX0tTixjX4A2ym1MTb79fZpFpskPLVxqXtXqzXObpBgUiJjbN/yIf/eX4pNZ ktlR6raZ5TRRYcglI1yOAUxZFG1iY5jXqLZSNmuEK3z5wcPZmZVAHVKI3eBAlO5JrrEB f2qzdGCtdarBcRkefi9dpqcEayADXEZT9rHhnHa0NOqn+IAbgK1Gviy0au4hJNTNeSE2 zH8k3g0Qcpvc3Hkewfg5dTjYY+RogGIpGjKsO+CNZwcFpCpKDZ9Ld6WI5run45UeersQ ikVBJyc9Mq7mSopHgVSGBkeqkY5cKiJLzGaSBy9Yquuf6sP+OILWH7Lm0nFrZfkPRz5A OzNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=h8LfcJbC; 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 2sor13129522pfv.21.2019.12.20.23.55.16 for (Google Transport Security); Fri, 20 Dec 2019 23:55:16 -0800 (PST) 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:aa7:991e:: with SMTP id z30mr20358616pff.259.1576914916537; Fri, 20 Dec 2019 23:55:16 -0800 (PST) Received: from localhost.localdomain ([49.206.202.177]) by smtp.gmail.com with ESMTPSA id i9sm15551018pfk.24.2019.12.20.23.55.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2019 23:55:16 -0800 (PST) From: Jagan Teki To: Simon Glass , Kever Yang , Philipp Tomsich Cc: u-boot@lists.denx.de, linux-amarula , linux-rockchip@lists.infradead.org, Jagan Teki Subject: [PATCH 09/11] roc-pc-rk3399: Enable SPI Flash Date: Sat, 21 Dec 2019 13:24:38 +0530 Message-Id: <20191221075440.6944-10-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191221075440.6944-1-jagan@amarulasolutions.com> References: <20191221075440.6944-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=h8LfcJbC; 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 winbond SPI flash for ROC-PC-RK3399 board. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- arch/arm/dts/rk3399-roc-pc-u-boot.dtsi | 4 ++++ configs/roc-pc-rk3399_defconfig | 2 ++ 2 files changed, 6 insertions(+) diff --git a/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi b/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi index 77d5cf5d3c..5746442981 100644 --- a/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi +++ b/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi @@ -7,6 +7,10 @@ #include "rk3399-sdram-lpddr4-100.dtsi" / { + aliases { + spi0 = &spi1; + }; + chosen { u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc; }; diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig index 305baa712c..f37a7bda00 100644 --- a/configs/roc-pc-rk3399_defconfig +++ b/configs/roc-pc-rk3399_defconfig @@ -42,6 +42,8 @@ CONFIG_RAM_RK3399_LPDDR4=y CONFIG_BAUDRATE=1500000 CONFIG_DEBUG_UART_SHIFT=2 CONFIG_SYSRESET=y +CONFIG_SPI_FLASH_WINBOND=y +CONFIG_ROCKCHIP_SPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y