Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp729581iog; Wed, 29 Jun 2022 09:03:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vaFsY4ttTVZrF18W2PUqq1YBD6PjgWMj/yLgc7F/6ZjIT0VE36risyJxk65Se7v5hjbzbs X-Received: by 2002:aa7:989a:0:b0:525:252f:3c51 with SMTP id r26-20020aa7989a000000b00525252f3c51mr10870507pfl.39.1656518614173; Wed, 29 Jun 2022 09:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656518614; cv=none; d=google.com; s=arc-20160816; b=TL0MCldtsA+u4xkkfWBLJxUX25ufMTFpiIyAc0nowgyc1HaVFTnWgMg8BSUjOjKRZj xzI6PpOZ+BOSSYQrM8a26NFmE+p9DPiMR6wf0PVdfPNpugDHC/xCLUzVjxSn6Pn87Km+ Ik2cQBodoPpOUl8sHpKLJciA49N7eDb+N2FpAZe+mb6ND0rk5t3ADBZHNYBDUJW5ZxPH 8qdYWMGpJbkmISx7/mbvYZUC2hXtRKoyJnnuILl6pJ/ab0O7oVB//7yR4fjTcdDqcW67 x8srUrnp9N7eNR8EaRzQaxuYT8KQHIRSL/dw8ya2kmwOFfkqOR1y+c5YxyFqRD2kOycH t/0Q== 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=by8jpOUV9tctlOX4wwz5rMOoGKIEjPc2NHBnieOcnWc=; b=0YNIjYxvMshvDMnQ9PCIGcCUKO8sjC9S6JDn40kpGMPbixaKbLT0owqWdBuXSndEJH L8GfQMtv0lvdHVjm4anDteZjwmNGJJiAfSkcef1x2S2Luswwp3FWeRV3Tjera95JCwoh nO+am8S6E3z6QsBGpJ5632ZjKTfXduIXN9uySzvBJcS1aMo9zuyDt5q8E8lzlDWm2Isa bJuepwX/7gRnFq4A4bYdKbM+ULS0uH4DOBrzvQYzRhO3N9KOMMZayFZccMuCyfRInlbT C6EWqMe1OOrZjgJgpDsZz3qhTl1TxInvRRsxxmJy84RzEzWokGlW8021s5fJJkQ3fnAS Z2fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=DY92GFjN; 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 i14-20020a633c4e000000b003fd679770adsi2644101pgn.694.2022.06.29.09.03.14; Wed, 29 Jun 2022 09:03:34 -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=DY92GFjN; 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 S233583AbiF2QB2 (ORCPT + 99 others); Wed, 29 Jun 2022 12:01:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234058AbiF2QAm (ORCPT ); Wed, 29 Jun 2022 12:00:42 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48CE42C644; Wed, 29 Jun 2022 09:00:33 -0700 (PDT) Received: from notapiano.myfiosgateway.com (pool-98-113-53-228.nycmny.fios.verizon.net [98.113.53.228]) (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: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 61E6E66019AC; Wed, 29 Jun 2022 17:00:30 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1656518431; bh=fWpLVNkaRd2J8/GN0NiVTcm+/j+WzfBVE0/fxSI1x5A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DY92GFjN3oeuKinw8Ew49bJgJxgOWoEzUt8A8bZVJPRHE59LO3545axbqRbXd5QI6 NOvolx1mgJgf+roEOHSN7NuOJQ0r6maVhCTo9p/20oueU1YT8lQYaE3TusW4e13aqr Wgu7phTuv8d70Zc6IPA7puSWOvI4bWE4Ja98bu7eOeSwM4CGQ9n6g4oCbh/YlShGuW KJ69HN2yvBHPBnC+GdC/nehh+L3J4vxiQ25nRQYnVCiERoBvR/UOVrNpAmN9USsz9c G6OHQ6n+q17lHnOZDCbgPHHs/6yvDDjHN52lMDHILXCKmiCK5/ReyFXGzmOYbOelxW TGpBJe7lQUP0g== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Matthias Brugger Cc: AngeloGioacchino Del Regno , kernel@collabora.com, Chen-Yu Tsai , =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v4 19/19] arm64: dts: mediatek: asurada: Add SPI NOR flash memory Date: Wed, 29 Jun 2022 11:59:56 -0400 Message-Id: <20220629155956.1138955-20-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220629155956.1138955-1-nfraprado@collabora.com> References: <20220629155956.1138955-1-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 Add support for the SPI NOR flash memory present on the Asurada platform. Signed-off-by: NĂ­colas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno --- Changes in v4: - Added this patch .../boot/dts/mediatek/mt8192-asurada.dtsi | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi index a5625b3cb317..4b314435f8fd 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi @@ -241,6 +241,23 @@ &mt6359codec { mediatek,mic-type-2 = <2>; /* DMIC */ }; +&nor_flash { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&nor_flash_pins>; + assigned-clocks = <&topckgen CLK_TOP_SFLASH_SEL>; + assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL_D6_D8>; + + flash@0 { + compatible = "winbond,w25q64jwm", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <52000000>; + spi-rx-bus-width = <2>; + spi-tx-bus-width = <2>; + }; +}; + &pcie { pinctrl-names = "default"; pinctrl-0 = <&pcie_pins>; @@ -658,6 +675,29 @@ pins-clk { }; }; + nor_flash_pins: nor-flash-default-pins { + pins-cs-io1 { + pinmux = , + ; + input-enable; + bias-pull-up; + drive-strength = <10>; + }; + + pins-io0 { + pinmux = ; + bias-pull-up; + drive-strength = <10>; + }; + + pins-clk { + pinmux = ; + input-enable; + bias-pull-up; + drive-strength = <10>; + }; + }; + pcie_pins: pcie-default-pins { pins-pcie-wake { pinmux = ; -- 2.36.1