Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp726905iog; Thu, 30 Jun 2022 09:02:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1txWPPAGP7drJMFEWJwpGMmf+grLrenUK4j4VtzvuxnCRlKzVYUeIeF5kWnEpJXqeiTaxqj X-Received: by 2002:a17:907:7202:b0:722:e4d6:2e17 with SMTP id dr2-20020a170907720200b00722e4d62e17mr9746502ejc.434.1656604936077; Thu, 30 Jun 2022 09:02:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656604936; cv=none; d=google.com; s=arc-20160816; b=zgK0AFTE8BEziu39NxORupi+bg64FYL6qsb0/tbeVg8AuPc9uHeMnKRuAib76jojoc ZRZaOivUvZ4SQh+d/7RIP2gvbSFF3kBTa1uYjb7KEUnN7KvY19M+wk6g6Obv+8DjmRoM erDrGFaE5zNRadjM5ci6zP5FjNX3Vgwb9bZBX0OLc6YZ3zXCchVtgiuVvNLrM6zY4o/x tirLArhnyVccuvhw+BU8eZ2oDPhSc6zFQ1Fa/Gp1/NtwRiQBd0jFSAxsjioEccPOxBaF 93uGWMdmuvI9fja5R3auSQ7GEMuo74pUsNDEEgtww56P0NVb8tPgiZZRns/spc22dLDP CcgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dx+9BaNLIYzLxN11F6MPhEmGuNh7XKvQrsKGjaPH0Kk=; b=OKiLOD7StwUZ3wQI0L7jpTonP8QMOtB5NY82gUxN16m8f7qbw0Jhukt5H+pTaW8V0u QH5fe2xtWogmiOagtwNZE/b4kcqC4zC8ZBMqCcKjiF7Qa/iJt90iT4WnCftNqABODdq0 nWcdjdGTWoBamKGRoCieZaH5ujLATnFyGIdMm/YJfXVhCvkX4VhlrMRP7jhMbFK5DzLF kNAKkNw9+dYVQic5Ca4OH4j1Omc0Si0v7jJDsG/dIYQT1gStdaHnYrvkzwdDJIp/RlUw qgviF1jJRgTxEy5LWoYzDc6WbK1z2ii3PcOH8jXnxG2/ZLIrmCN2lhJaRqV1Ww1dy1s4 CTkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=lssvnelo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c17-20020aa7d611000000b004357d877a6esi21669544edr.382.2022.06.30.09.01.43; Thu, 30 Jun 2022 09:02:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=lssvnelo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236157AbiF3PeJ (ORCPT + 99 others); Thu, 30 Jun 2022 11:34:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235920AbiF3Pdf (ORCPT ); Thu, 30 Jun 2022 11:33:35 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49F003ED2C; Thu, 30 Jun 2022 08:33:34 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 5EA0D6601979; Thu, 30 Jun 2022 16:33:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1656603213; bh=UHGvuNhuUk7L5c7BKtAhAhJRqJa8V9GWgDdTDxtXvvw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lssvneloFtoaJ59J9UcbKSZwHCwGiqV6tWJ5ePbZXkha7i7mmKQ2GXp8StPv8sQ0w xY5AOgCbS+K8uHBmBcy6jQ9JIgAwsk0Ltgr5gzlgSgRMSxQQuCx/adzp8KLtj5K+es 6+M1HHqO5hEt26ijSUqRfkb775kRvpFJUY0O/hv+B+8B7+KQ1LOIDT019onrD2NFKu AEfvOhIC+4X/fAwiiMp1gQ1uFGH3GcQuDYWimFI8t2MlpwrMGMGO1ySXs5GkBKRvxH XS5sVuk9tCm+au1k7MZGkaOFS4lHV5JYNsNxdqyqp4z4HLaT25PVnx4zOxp4WQHvtw mkI4Jo/mzD5Mg== From: AngeloGioacchino Del Regno To: robh+dt@kernel.org Cc: krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, hsinyi@chromium.org, nfraprado@collabora.com, allen-kh.cheng@mediatek.com, gtk3@inbox.ru, luca@z3ntu.xyz, sam.shih@mediatek.com, sean.wang@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wenst@chromium.org Subject: [PATCH 10/11] arm64: dts: mediatek: cherry: Enable support for the SPI NOR flash Date: Thu, 30 Jun 2022 17:33:15 +0200 Message-Id: <20220630153316.308767-11-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220630153316.308767-1-angelogioacchino.delregno@collabora.com> References: <20220630153316.308767-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This platform has a SPI NOR: enable support for it, completing the storage compartment enablement for the entire platform. Signed-off-by: AngeloGioacchino Del Regno --- .../boot/dts/mediatek/mt8195-cherry.dtsi | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi index 1668aa1be373..2687c6d40ac1 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi @@ -231,6 +231,21 @@ &mt6359_vufs_ldo_reg { regulator-always-on; }; +&nor_flash { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&nor_pins_default>; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <52000000>; + spi-rx-bus-width = <2>; + spi-tx-bus-width = <2>; + }; +}; + &pio { mediatek,rsel-resistance-in-si-unit; pinctrl-names = "default"; @@ -513,6 +528,22 @@ pins-rst { }; }; + nor_pins_default: nor-default-pins { + pins-ck-io { + pinmux = , + , + ; + drive-strength = ; + bias-pull-down; + }; + + pins-cs { + pinmux = ; + drive-strength = ; + bias-pull-up; + }; + }; + pio_default: pio-default-pins { pins-wifi-enable { pinmux = ; -- 2.35.1