From patchwork Fri Mar 13 09:07:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11436367 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B691A921 for ; Fri, 13 Mar 2020 09:11:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 906A72073E for ; Fri, 13 Mar 2020 09:11:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="CO9CX8XG"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="l/cF4iKb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 906A72073E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=c0bs3uubxuF6/CczgEynw6xYmKC8/4vY9noFHQlltJY=; b=CO9CX8XGYK2ZER Den1tVIU7muLaYOgWm//Im2A5zOnqefaNd+91vAqG2V2vpUfdwvLppS1Te0PYlLHSjXcqhQSo+Wfc IVE2fdNzP5uswkRfNSu3kiZzX8YFIevDgHw21EoUOxer4t5Uv0f42gSw+nQIRajmonV3WH+i7/W+1 VvnR9ARfDzN6CWRwCyaIQ42GIjdZJ8uK/FCw8RYzOdVpl+F08p/qyfqfz+zqTCCfmmeH0GcRULIsd KPPbH3ChE/Hh5hC0Lja7cQylRGRCYTG/ZNHK6q9/jYnFnCm4Vzu4ASMvNQx3VcEooyRQFQc7V5sVZ U09BcWygOGUozryToERg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jCgLT-0000Wv-NM; Fri, 13 Mar 2020 09:11:07 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jCgHm-0003mg-Dz for linux-amlogic@lists.infradead.org; Fri, 13 Mar 2020 09:07:20 +0000 Received: by mail-wm1-x343.google.com with SMTP id f7so9395878wml.4 for ; Fri, 13 Mar 2020 02:07:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LlEyFNmy3pyjX2oMkuEavu1zZSuwiAYfnsK65mC/QUA=; b=l/cF4iKboaIDC+xHYs6TLSZsMvtHRD1IIKQ729YNj13fHpwpPNa0+wMID3dj4pqXmb 21tD0UyWk4i0ZyBi0VuvgEwhdCKrXCC70dQoP7Bz+C9m+WrNf+d99KhDTP2H3q3t1I3H PwSK9zud1xqzhCczxkFW+h4K9gnTXCTbXTSNvrC/JSU1PvOyDOe0ENzFof+AbAmj6wMW tdcOEXLr19NKh5IVqY0M+Yrd+eATVGFKj9JiVq5IDY0l6b4ABwc/CT9cW+pdYgOp5TGO iMnZqOOe5ICsfyFmk5dXppdBEBHEaKcYizsJRK+yIrDIj1OWMKoE+4Vhhy3HvsDUXoUK knsA== 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:mime-version :content-transfer-encoding; bh=LlEyFNmy3pyjX2oMkuEavu1zZSuwiAYfnsK65mC/QUA=; b=tfkgQEUu9Y3KPnG5HmsZ4/Txe+EMZJ/EAz+rHnZ24eyPpyHS2KIciDoWeyRVJ69ETW e7iEhEK9OqS3W1VyPRGBKUYXtB7tEJIMgnoRONWHZNer0QKSrU0S+qsvPptDjzoRJ7tE DAz1O2T9/9TmrpFm+tt2KnKLRfVmQ/At0CvKiD0nkD4/bnGaZqbIojltijRcLoYMBfwy Fjy6NAheXEapLc9LrtRnk1IV1gQRyr/ksMPDn4S55UHoWVnkKHUZz85lgXU5cSiX7b80 9s+jqtka2JfopwHuDEKe8ENgbIkp6FVkhhYJosnVltfv6tMHR9z1Q7q4tO8Ax+xhU127 wfJw== X-Gm-Message-State: ANhLgQ1yGwK5jZuokjmsbCEw3TnqLfF5RXJbJHtuQJKqYRFmw/m6i+1H PQyTlqFb9m4Bflj36jzjqiNsMA== X-Google-Smtp-Source: ADFU+vuPJ8NUok4GeCmE2Jw9WemW5z531KbYxpFMIJ7XQl5ih5AVGvfMpDL/gUM2fHnQl5cuBoUNSw== X-Received: by 2002:a1c:1f0c:: with SMTP id f12mr9713747wmf.179.1584090436600; Fri, 13 Mar 2020 02:07:16 -0700 (PDT) Received: from bender.baylibre.local ([2a01:e35:2ec0:82b0:5c5f:613e:f775:b6a2]) by smtp.gmail.com with ESMTPSA id i1sm61872399wrs.18.2020.03.13.02.07.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2020 02:07:16 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 0/4] arm64: meson-g12: enable support for SPIFC Date: Fri, 13 Mar 2020 10:07:09 +0100 Message-Id: <20200313090713.15147-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200313_020718_539056_4D60E1F7 X-CRM114-Status: UNSURE ( 9.43 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:343 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org On the Amlogic G12A and compatible SoCs, the SPI NOR pins are shared with the eMMC data 4 to 7 pins, thus the DT needs some tweaking to allow setting on the data 0 to 3 pins for the eMMC controller to enable the eMMC in the same time as the SPIFC controller. Since this lowers the performance of the eMMC, the SPIFC is left disabled and intructions to enable the SPIFC controller as added like done for the Khadas VIM2 SPIFC support. This adds SPI NOR support for Khadas VIM3 boards (S922X, A311A and S905D3) and Odroid-N2 using the same scheme. Neil Armstrong (4): arm64: dts: meson-g12: split emmc pins to select 4 or 8 bus width arm64: dts: meson-g12: add the SPIFC nodes arm64: dts: khadas-vim3: add SPIFC controller node arm64: dts: meson-g12b-odroid-n2: add SPIFC controller node .../boot/dts/amlogic/meson-g12-common.dtsi | 60 +++++++++++++++---- .../boot/dts/amlogic/meson-g12a-sei510.dts | 2 +- .../boot/dts/amlogic/meson-g12a-u200.dts | 2 +- .../boot/dts/amlogic/meson-g12a-x96-max.dts | 2 +- .../boot/dts/amlogic/meson-g12b-odroid-n2.dts | 23 ++++++- .../boot/dts/amlogic/meson-g12b-ugoos-am6.dts | 2 +- .../boot/dts/amlogic/meson-khadas-vim3.dtsi | 22 ++++++- .../boot/dts/amlogic/meson-sm1-sei610.dts | 2 +- 8 files changed, 98 insertions(+), 17 deletions(-)