From patchwork Mon May 9 15:11:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Potin Lai X-Patchwork-Id: 12843769 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id C25D1C433EF for ; Mon, 9 May 2022 15:15:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kGCJ0cYBLLZ9/NFIOqmVUwQ17LwBrcBMJpjIuCsUTW0=; b=o5ILx4/BdgNbBr tPRuxiZV6t1X7+jLe9ao4f+0vC4KXvboqEbpOZPngXuw55uAn4WI2mFSBuTnAEP8nK9S52IcrLidH 3rGbPdSgHLOKC7i1uYVXD9t/6Pkb0yyxa9GsaSOBki2fpesbozlVlKNdrYteYWeO8OFpUL/RqIUCH sfZO8PzPCWquhcO90Pq0uiYc2AsI7iaXywU1oUBE6W4HTB+9qnyOawV0rDl1c9OKpBV9y0fs1wHO8 5TUmzooUtySlwki8Xyqwx0FFTpgV8Hp8XHFqmjpYiiXj+3raCez9Rkjz4iel7fq5dPobO221tLmA1 F9OVGerWRNVMHqnSMcqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1no55v-00F28Z-Lx; Mon, 09 May 2022 15:14:43 +0000 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1no55c-00F201-0a for linux-arm-kernel@lists.infradead.org; Mon, 09 May 2022 15:14:25 +0000 Received: by mail-pj1-x1035.google.com with SMTP id cu23-20020a17090afa9700b001d98d8e53b7so171641pjb.0 for ; Mon, 09 May 2022 08:14:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VxaY2CaQXKasRpf6kPykVpFMOeU3YbfMP1tGgUzsF6E=; b=dc80k80GoGz8fuwhEp3O1QAx9Zq2f/CuNW34zaKkZrLIPXL4X4QND5i2Qo9NCLMfM2 40tziY1NupspO9nEz4wUkK3++sblZJvCU1uIT4VCnCr2QAa+3D/j3LRo1HfxvrqZz5Ev xgBXCP9VphhB0p0PbLsuV/B3GiBp8tEp0EYwsafJhpibJqEiqdbtR1/T3lqVyKKCQuWc +aWlWtZH+51B7M+PYuUDexZgsuuocMsMxRxwsHjNsNskWHfZHq3Uv034klQLK1vnfuL+ YgGOrCSDAfGYNL/9gjWsbE9S2kXFFdnPHYdeq0gwHJ9yQp3Owj5ka8bnetcnHuJQiLYq u3pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VxaY2CaQXKasRpf6kPykVpFMOeU3YbfMP1tGgUzsF6E=; b=L05O9OZHYPhrVi703N5xb73PQ0i3xVbqT0K+OjgFJOjT25kY5DedAO1WmwDfK9AxDN dyElOorRXTl/jSycgJaIyAsGexr/yODM1mAsAobUq8XhaWDvjfYANDiA4ikPUJ2iimQc +8Qk4SzAc0rdPsTTW9vHOoiBgu2Ka+kbZKwGQeWgiPBatx+Ev5F6vJer22Y+jG6DxAVz 9cCgUEvnJv2gzifJ5Ivi92pQ/QtkUWcZDiVkCc6b2rHVV1Gg3CYOPHoFUHd/dTY6Uhfx XtY31O1MmZKdyIdl1ofVyvVWXgvx1aiaV4O1rW/cLVPFTglz/7WA1wdKh2+132SoEFKu lR4g== X-Gm-Message-State: AOAM531bOEUE8YnXN0AlTvp9F/AolM/V5LnYFpEmu5DNrVp9Jz2ckHsv FrvNWtpCZUm+qnwUTNNd3HA= X-Google-Smtp-Source: ABdhPJx3o2uKlMst0NqqHq284RCuXaHgmGCaNzGIi5fze4asH3VUuWmUNgs5ZmRTwQHfG/LiSJ2UuA== X-Received: by 2002:a17:902:d717:b0:15e:b6ed:4824 with SMTP id w23-20020a170902d71700b0015eb6ed4824mr16531436ply.110.1652109260904; Mon, 09 May 2022 08:14:20 -0700 (PDT) Received: from potin-quanta.dhcpserver.local (125-228-123-29.hinet-ip.hinet.net. [125.228.123.29]) by smtp.gmail.com with ESMTPSA id k7-20020a056a00134700b0050dc76281b6sm9221596pfu.144.2022.05.09.08.14.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 08:14:20 -0700 (PDT) From: Potin Lai To: Rob Herring , Joel Stanley , Andrew Jeffery Cc: Patrick Williams , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, Potin Lai Subject: [PATCH 2/6] ARM: dts: aspeed: bletchley: switch spi2 driver to aspeed-smc Date: Mon, 9 May 2022 23:11:14 +0800 Message-Id: <20220509151118.4899-3-potin.lai.pt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220509151118.4899-1-potin.lai.pt@gmail.com> References: <20220509151118.4899-1-potin.lai.pt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220509_081424_091742_DE01BF92 X-CRM114-Status: GOOD ( 11.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Due to DVT schematic has stable spi signal, switch back to aspeed-smc driver for improving performance. Signed-off-by: Potin Lai --- .../dts/aspeed-bmc-facebook-bletchley.dts | 33 ++++++++----------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts index b7439df65423..eefb624d4850 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts @@ -51,26 +51,6 @@ }; }; - spi2_gpio: spi2-gpio { - compatible = "spi-gpio"; - #address-cells = <1>; - #size-cells = <0>; - - gpio-sck = <&gpio0 ASPEED_GPIO(X, 3) GPIO_ACTIVE_HIGH>; - gpio-mosi = <&gpio0 ASPEED_GPIO(X, 4) GPIO_ACTIVE_HIGH>; - gpio-miso = <&gpio0 ASPEED_GPIO(X, 5) GPIO_ACTIVE_HIGH>; - num-chipselects = <1>; - cs-gpios = <&gpio0 ASPEED_GPIO(X, 0) GPIO_ACTIVE_LOW>; - - flash@0 { - reg = <0>; - compatible = "jedec,spi-nor"; - m25p,fast-read; - label = "pnor"; - spi-max-frequency = <100000000>; - }; - }; - switchphy: ethernet-phy@0 { // Fixed link }; @@ -242,6 +222,19 @@ }; }; +&spi2 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spi2_default>; + + flash@0 { + status = "okay"; + m25p,fast-read; + label = "pnor"; + spi-max-frequency = <50000000>; + }; +}; + &i2c0 { status = "okay"; ina230@45 {