From patchwork Mon Dec 31 16:59:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 141 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (cartago.priv [10.11.12.1]) by cassiopea.amarulasolutions.com (Postfix) with ESMTPS id A5B7A2E002E for ; Mon, 31 Dec 2018 18:02:43 +0100 (CET) Received: by mail-pg1-f197.google.com with SMTP id d71sf24585945pgc.1 for ; Mon, 31 Dec 2018 09:02:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1546275762; cv=pass; d=google.com; s=arc-20160816; b=Fdmvyt3ak1fAaHHGYWB3eUGmzNRjIqB4E7YkTHBxBhW3OCgizmctjs2gU4zvpUTk9e nrEn0Wpp42pO8zKGK09c230BfjBQoXMlukqzsXNhW8IL824LuPU78RJ89ub7w3vDUcQo 9JrqDpeSa3+9AtIC76VgNuQzdoa6S/WdKZu+fWHS7l8OcwWGIdXefpQm26jUoMNBgMcq lHojyLCNhTgUFU80bjoDsHt/QJjwyJTubj3hGkBwCP8kTnDkO6BwTU7ojQKuVjRf6SfK 3ExigkV19JJQH9bW+1EyHtdG3vsqXj2EXM8DPsqs/olXE/jjCEbG2sJzplCraaMuAbWH FtZQ== 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:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kzYb3rccLJwsdBnlSvX87btfmCn35uvJTyHkMfMqWk0=; b=ivcAn/U7Ow3306j/3pmtE7mEwnio0EPfSgnZ/JaqYOZRL/krxfQTp9ZvxQhIbfutAU qr+3K0GDNL0jLWIPDke79dt1ZYKqVrp0wlxLw+Q0Uhd0LqnKYi+gBypQoOVusSldwDmM HccFgMbugB+kZExKFcKGccQHJQcrRXL6IkhbjT2WbQP3XgYdwIvWq25LB5N6SNKWzH7G aoYWOeiEVriZPFAVJCOHAHcajgS5YHvkuLruRamojQmV5G+BwTP/p2P1w3TUK381Xwfi 5So1Rs8T2GID3FxLYGyLoXLf2bJn+l3LLnVDVc2vEhBp4gKZbu/7VirngW6woJf02hc+ n+Nw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LoXbNrme; 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:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=kzYb3rccLJwsdBnlSvX87btfmCn35uvJTyHkMfMqWk0=; b=FVILF5qURqOuhqKraI0nfyO/eja4nyfFhay/rid9Mc3c7+qMLfuvWXozWR5eGRX2M4 QqBaJO0o0nOglZVZmoOiS8CHdYZrjcYfu6R/MA7nmNovcHETLMDd+ySn9tHh2nf7BO2F 3ixld6ciIKV7h5Mph4g5Tyhju64pEj0dnMT/8= 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:content-transfer-encoding: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=kzYb3rccLJwsdBnlSvX87btfmCn35uvJTyHkMfMqWk0=; b=VfhGq67kMuhn8pMkddhnJm8wNJh+03/R0UujiLjGbGL23kzxsYzK5KkpnLiLh56oGj pvwPSPBRS+88sGcez3kPN5nrMLe5NX4xfi0OQX0KiByg5x6Es5sPY880ltk06ikDkZil 4xTLCkYpWoar8VqMYJIMaCa+iKXw83kktWfyd2qfCcOaHjZVIjgDaRNFsvEgKfG0m8qf oEAiLCuLRgR0LLDKuRSxk1dhG9C8hulL69Pi0GtcpMPbzwIT3qDEGXYAcsSNu43oJ8hb XTXhrz2cAH91/HzJ68ifpy/blTytMr25T2QQyEZOzDYMJapX6vnz809UrXZO7Uf7hqRT LxZw== X-Gm-Message-State: AJcUukd/RewBjb49ojLyeV3rBFke4y5bzKYv9q4gPcGr8vri8KINWm7a 3wzjKGljqpX13skyInn3FgY5SwqV X-Google-Smtp-Source: ALg8bN5ywpbpKtqL1Yk/70Z/HTYU49fwDM+/dVAsR6ImI6LDpt2w8+9amr1H2a+7BG6egXYt0MLygw== X-Received: by 2002:a63:2345:: with SMTP id u5mr17610148pgm.140.1546275762336; Mon, 31 Dec 2018 09:02:42 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:124f:: with SMTP id a76ls12650004pfj.1.gmail; Mon, 31 Dec 2018 09:02:42 -0800 (PST) X-Received: by 2002:a62:d448:: with SMTP id u8mr38618767pfl.105.1546275762063; Mon, 31 Dec 2018 09:02:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546275762; cv=none; d=google.com; s=arc-20160816; b=j0oV/PoIBdDK5+2HA3DXTWf2R4sVFyZ1L5DJ+q1qzmAYA6alNBgD8npEZn6jDroJt5 B2ggN0pNMKvYU3f5GSHJf/iEkA7eAxlMpOTuscLyZEXDZMP+kaAcio7tLpzBBdEiU06R 0I2eroEOx82LN8iC7n1l25H/jqZ/qvsI+dPryweLumwpzKDItOff3kcME4oATn618z08 CArRVdeH5vRUmYwYcadXv2iUoAx33eiaMOPr8t9T50kSGnYwGkoJOa/vdv8Z8BKhH9+S 4q2RmlkGFuA3zr+Sdkkev2c6KNVEWRewA66oGz5QgHJPqTgRgtOn2EgUlh5lyHucsKeG vyvQ== 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=kzYb3rccLJwsdBnlSvX87btfmCn35uvJTyHkMfMqWk0=; b=d+wx6bUrIIUyqEJQhQ/lKKUa6GaGKi48uqqDt23I+pNZ0HH9cUmgOQq+uLunUTLTyu 89x7T8RuFBF0UVnVRO4et1ywpX6qvyXWXZt0HkwKEDfjIIT4CSAYU9OhmQvoAox6uulZ a7TuIiuS/QOkF5Sq9983SN8+wH0zgPn/s9mWxH2afQtY6l3V4ip3IxJGdlj+j3Fpg6vg nNO8lh2tYSoW7/jdI7aRu9Q/0C4NVgeA+lMMA6VWJMmUPFtLCofAfUetRz7pU+UOBToC Eww52Qpbp7zWZxjaKmik82MZcCfUenc5NMRT0AbUC1GjKtlTChuXptkAmsPew+zwDTM3 7O+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LoXbNrme; 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 e69sor13242326plb.21.2018.12.31.09.02.42 for (Google Transport Security); Mon, 31 Dec 2018 09:02:42 -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:a17:902:b406:: with SMTP id x6mr36279418plr.329.1546275761763; Mon, 31 Dec 2018 09:02:41 -0800 (PST) Received: from localhost.localdomain ([115.97.184.237]) by smtp.gmail.com with ESMTPSA id p7sm90692925pfj.72.2018.12.31.09.02.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Dec 2018 09:02:41 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Andre Przywara Cc: Chen-Yu Tsai , Simon Glass , Tom Rini , u-boot@lists.denx.de, linux-sunxi@googlegroups.com, Michael Trimarchi , linux-amarula@amarulasolutions.com, Jagan Teki , TL Lim Subject: [PATCH v5 26/26] board: sopine: Enable SPI/SPI-FLASH Date: Mon, 31 Dec 2018 22:29:27 +0530 Message-Id: <20181231165927.13803-27-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181231165927.13803-1-jagan@amarulasolutions.com> References: <20181231165927.13803-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=LoXbNrme; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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: , Sopine has Winbond SPI flash, so enable the same to use flash on Sopine board. Cc: TL Lim Signed-off-by: Jagan Teki --- .../dts/sun50i-a64-sopine-baseboard-u-boot.dtsi | 16 ++++++++++++++++ configs/sopine_baseboard_defconfig | 7 +++++++ 2 files changed, 23 insertions(+) create mode 100644 arch/arm/dts/sun50i-a64-sopine-baseboard-u-boot.dtsi diff --git a/arch/arm/dts/sun50i-a64-sopine-baseboard-u-boot.dtsi b/arch/arm/dts/sun50i-a64-sopine-baseboard-u-boot.dtsi new file mode 100644 index 0000000000..9661b95d15 --- /dev/null +++ b/arch/arm/dts/sun50i-a64-sopine-baseboard-u-boot.dtsi @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2018 Jagan Teki + */ + +/ { + aliases { + spi0 = &spi0; + }; +}; + +&spi0 { + flash@0 { + compatible = "spi-flash"; + }; +}; diff --git a/configs/sopine_baseboard_defconfig b/configs/sopine_baseboard_defconfig index 0a189fc03d..5e6dc33d4d 100644 --- a/configs/sopine_baseboard_defconfig +++ b/configs/sopine_baseboard_defconfig @@ -12,9 +12,16 @@ CONFIG_SPL_SPI_SUNXI=y CONFIG_NR_DRAM_BANKS=1 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set # CONFIG_CMD_FLASH is not set +CONFIG_CMD_SF=y # CONFIG_SPL_DOS_PARTITION is not set # CONFIG_SPL_EFI_PARTITION is not set CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-sopine-baseboard" +CONFIG_SPI=y +CONFIG_DM_SPI=y +CONFIG_SUN6I_SPI=y +CONFIG_DM_SPI_FLASH=y +CONFIG_SPI_FLASH=y +CONFIG_SPI_FLASH_WINBOND=y CONFIG_SUN8I_EMAC=y CONFIG_USB_OHCI_HCD=y CONFIG_USB_EHCI_HCD=y