Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1492022ybh; Fri, 13 Mar 2020 02:09:23 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs3uaAbncCQNDbe7pVpooSfmaKKdUaHddTd/gsaL5H/7A1/IenArp32whoCeKUy9+KukY6w X-Received: by 2002:aca:c506:: with SMTP id v6mr6345554oif.26.1584090563014; Fri, 13 Mar 2020 02:09:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584090563; cv=none; d=google.com; s=arc-20160816; b=RmRmEuRvSbiGbWeIkTkEZZaDUMaFsO4yk92a3ebyLpRaH+LHjQ2N/UADl2AIVQWamn g3UGFy+TcC4zr1ClFdgvpJ+sNx26rS4S4L29JUSL4xpX67plkdtQzQf5sLeQjB5igwdf njxIm7h67of31AQMOcVpoaj5dQ3Lf6Lk7b/5uoBGu+6VcL0vDCsHvRw7QMlDimyYYfUL 5PjyXZuWUNQE93kXH6UcMw0+9zXTzEewzc8qgnQE1xG3WO7YkNLbLPyOaT0YzTS5Qgyg A4dwyL6a+lEwtY+Qhe+WgMgYyfCEemmZbNM0bh+kLMX+OQR+gt7FAxbG/vXsbxMYInsq fQ5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Yoy0Boq040f9O0QHUfL99rfr3yZcYOtkMxHX2mJBUoI=; b=M7aemDrmoUmmRW1/STyTpWWD+3aPt9Hle5XzlK8m6bcKdKSv8udCp2LavcnaYIQPQu u2eXulKKxUJTX2p+x9sUCEHW7pSPL3uKxQ8VhJhY76geHcCCkgJ4SkLvtkluxIsV/JAu 2Wjp0klvQTBM/bN8hYtz6n5i1GsrOY8ml47WBY2DsG4WAMi+CJedREaI3aVRgRVWUP8w 4L9crYIthYO5dHvgdqyCH+ChKNMssH/LZMD1M25THG+3C7mORc84Penj6w8L5cIRQD/E HZS4YrAxIRwcYAZEYak1bCImPHUG3XASDUFCDBINh2f1/SZhsxX/bC86quFPkshMBlTl hyKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=cCKgut1i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y25si5463745otj.304.2020.03.13.02.09.10; Fri, 13 Mar 2020 02:09:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=cCKgut1i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726597AbgCMJH2 (ORCPT + 99 others); Fri, 13 Mar 2020 05:07:28 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39702 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726486AbgCMJHX (ORCPT ); Fri, 13 Mar 2020 05:07:23 -0400 Received: by mail-wr1-f65.google.com with SMTP id r15so11061534wrx.6 for ; Fri, 13 Mar 2020 02:07:22 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=Yoy0Boq040f9O0QHUfL99rfr3yZcYOtkMxHX2mJBUoI=; b=cCKgut1i8Sc+EKPT9DRFmKJrBypE/0XUpuzxQIHOMtV+E+MOlxyOuqm5Z4pGLVP971 kvv3q1TgjWtqKM9jeZhNgb5ec9MOGKi+w5ry+E4RQLrxtRw1FH8jteBEe/tqJmtj9UL4 V7eKJtym3FVR15PjDhy7+Kf2FjwjR5iA3ThwPmGT2nk+yoIHNgZidgJ8OLIX1kz36DbF HpVqtJFGyR8zzJ8kJLBxgIML6dZIWV5hOMVR5gHliu37f2kstA1mXrH5F4ploIAHUtKI yx9P3sAXan4JzAEJzbLqflO6ItYqJpJFx4OItfbk/Ic1Ss/fVRtBwict6neAU1fmfycs M8sw== 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; bh=Yoy0Boq040f9O0QHUfL99rfr3yZcYOtkMxHX2mJBUoI=; b=d+jI8fbZ5uQDAdZHMAZdr4ptmaY6aQNGI0zb8531xK7odQHM928N6bxy62ZYa3x8E8 vEiZvMwAJDG9R6a4cMrlM7yyZ90KWXRWwiiNoCfYRcjXsxrhFJhTsb6tnxPjVbmYLA9h wIrwvgbh/JM6/wzQEOkOOGzdPXWA73MyAtT70rueyU20oapsYppXemXV/L5DjlxDSumJ wKVsvbFhxjEU8WppFcccsX2e4k1T3PUoaCVdS02VhfGUOUZzpriCVXZkoQZW/QYcAstV N7fCEumHtom3WisDF0jepI/zt2SZIEFN0rV16NxNenRIWmKJ+4wOGjccAWu7iL0v38at HOwQ== X-Gm-Message-State: ANhLgQ1iKfWKphLaAIIk7EMJ42TkiVQBmRN8leb9dtlVkH923mEYVtTP RABn7As5iMcqE0K5T7/UdAigOA== X-Received: by 2002:adf:eb51:: with SMTP id u17mr17457196wrn.29.1584090441559; Fri, 13 Mar 2020 02:07:21 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2020 02:07:21 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com Cc: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong Subject: [PATCH 4/4] arm64: dts: meson-g12b-odroid-n2: add SPIFC controller node Date: Fri, 13 Mar 2020 10:07:13 +0100 Message-Id: <20200313090713.15147-5-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200313090713.15147-1-narmstrong@baylibre.com> References: <20200313090713.15147-1-narmstrong@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add disabled SPIFC controller node with instruction on how to enable it while lowering capabilities of the eMMC controller from 8bits bus width to 4bits bus width, it's data pins 4 to 7 being shared with the SPI NOR controller pins. Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-g12b-odroid-n2.dts | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts index b59ae1a297f2..169ea283d4ee 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts @@ -451,6 +451,27 @@ vqmmc-supply = <&flash_1v8>; }; +/* + * EMMC_D4, EMMC_D5, EMMC_D6 and EMMC_D7 pins are shared between SPI NOR pins + * and eMMC Data 4 to 7 pins. + * Replace emmc_data_8b_pins to emmc_data_4b_pins from sd_emmc_c pinctrl-0, + * and change bus-width to 4 then spifc can be enabled. + * The SW1 slide should also be set to the correct position. + */ +&spifc { + status = "disabled"; + pinctrl-0 = <&nor_pins>; + pinctrl-names = "default"; + + mx25u64: spi-flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "mxicy,mx25u6435f", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <104000000>; + }; +}; + &tdmif_b { status = "okay"; }; -- 2.22.0