From patchwork Mon Aug 24 21:19:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tao Ren X-Patchwork-Id: 11734393 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 0CF25109B for ; Mon, 24 Aug 2020 21:20:26 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 D50852087D for ; Mon, 24 Aug 2020 21:20:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="zATKdHfx"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AwN+lBp5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D50852087D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To: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:List-Owner; bh=PWyA1d+gTEJ9aDIqW9D4qStzjzZpoczhok7MLU1eGHc=; b=zATKdHfxs0Cdjf8Uy2pYXfSgYy zYmY+hxkGgjn7czjmwEFptb9qqN/UwuLpjizeWGKGGh1/SJ1Y7hBh0H6FeI9IJ7eT6t7HRXnvzqog eaceRl6huLSAbETmyYsSjJz9OLWFxcRYHG2fwrMsMl/ZFriieO/7MSQKREcXfTQG4YFie6yRC3AzZ ZNPzAD1K4fwVoqVa5Z+na529UyNTjZvDoIhS2mpA9JpHyNapmyL31C4TcBQPVGhNQVy9HOWovt3vV /EHxdwOM+uT4eC8cOcstKUHCCUwYdi8kpj0V0rwyN30bWDwpm5QitKzuCedC2VZ70up0AhabCvV+s v5yuVa+w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kAJsy-0005KE-B6; Mon, 24 Aug 2020 21:20:12 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kAJsl-0005FF-As for linux-arm-kernel@lists.infradead.org; Mon, 24 Aug 2020 21:20:00 +0000 Received: by mail-pj1-x1032.google.com with SMTP id d4so90520pjx.5 for ; Mon, 24 Aug 2020 14:19:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=W2l7UoscXIifQg354sjUGWVyjUs++4hJIZtN+5bO26Q=; b=AwN+lBp5YsUpDBOj31SIlycJw84KHGr7mdo/Y986K37htcjz1W1pNYqd4FkAM/MbpH MtvOoY/0GnAOkEU7Zsl9gDBQ7kGqmLa1J2mKRzZGqQHIP8D+ksG3H2JEV+dMUYBCD40U FlSxRfJbcjPJAbu9/Q31bdslC4UeN5dK++u7e5Qi43TPMw2w+WoE38oF3OmVi99eop4r P6PjAfjh3bTnr70mmJmnt+Non7eZVn72rbu0UYg+9kz7PT1/p6vUanDuQAw0qwEzwdn6 jGecwSdsQz6rP4kzFp4CYBdmG6HvPI2by51PA82/noVUSVcC3opX0z/CWTpMypj9HtVB EZjw== 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; bh=W2l7UoscXIifQg354sjUGWVyjUs++4hJIZtN+5bO26Q=; b=mqkxye81MlJUAg0V/cMIBp0rgrtZO773A4fWJRow3ldiN2M4i6PbOdJcQRU+LrxEeR GpU7zLiJjW1v5BjoY936DTa2z3Vh9jLE4YNP1cOjUIyauFTWmwaNm5ijYUz5gkhUDSIp OmGd0SxKcD+ehzs5mxIiLjRFVsZvVfQHDr0L2AIUoffRgPQmEyWkuR2EHPdmgFv0CdPO TEQ6b1Xqw0C32jR/OXTX6SgLJm4DBoAsnQad+56k7DxL3DuVDUsgAeMQzqOCM6XBg86Y 2SQDfsmvwzS4opoUJ2OjwjBJb/YPKzMa2Am/rSNnnouqpLYx10GEYsAVPg5Q1zZNYXar Waxg== X-Gm-Message-State: AOAM532Jw5U118iWnKda7OTV++2rB1UtyJBbaekfxsGJfoK5vMizz+7k QbNJ59sYfxb8b08jOMrF4PU= X-Google-Smtp-Source: ABdhPJwo8WNCDBMzCSUOKapnFrQwwyMyGv6jhXvAm/1kcZJwzHCe3jnqJGLxwQhx1P/DBPwu9DILsQ== X-Received: by 2002:a17:90b:3509:: with SMTP id ls9mr923847pjb.230.1598303996962; Mon, 24 Aug 2020 14:19:56 -0700 (PDT) Received: from taoren-ubuntu-R90MNF91.thefacebook.com (c-73-252-146-110.hsd1.ca.comcast.net. [73.252.146.110]) by smtp.gmail.com with ESMTPSA id t10sm97788pfq.77.2020.08.24.14.19.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 14:19:56 -0700 (PDT) From: rentao.bupt@gmail.com To: Rob Herring , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com Subject: [PATCH 1/5] ARM: dts: aspeed: Remove flash layout from Facebook AST2500 Common dtsi Date: Mon, 24 Aug 2020 14:19:44 -0700 Message-Id: <20200824211948.12852-2-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200824211948.12852-1-rentao.bupt@gmail.com> References: <20200824211948.12852-1-rentao.bupt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200824_171959_407736_6B15ABCB X-CRM114-Status: GOOD ( 10.85 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1032 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rentao.bupt[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tao Ren MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Tao Ren Remove FMC flash layout from ast2500-facebook-netbmc-common.dtsi because flash size and layout varies across different Facebook AST2500 OpenBMC platforms. Signed-off-by: Tao Ren Reviewed-by: Patrick Williams --- .../boot/dts/ast2500-facebook-netbmc-common.dtsi | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/arch/arm/boot/dts/ast2500-facebook-netbmc-common.dtsi b/arch/arm/boot/dts/ast2500-facebook-netbmc-common.dtsi index 7468f102bd76..c0c43b8644ee 100644 --- a/arch/arm/boot/dts/ast2500-facebook-netbmc-common.dtsi +++ b/arch/arm/boot/dts/ast2500-facebook-netbmc-common.dtsi @@ -47,25 +47,12 @@ status = "okay"; m25p,fast-read; label = "spi0.0"; - -#include "facebook-bmc-flash-layout.dtsi" }; fmc_flash1: flash@1 { status = "okay"; m25p,fast-read; label = "spi0.1"; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - flash1@0 { - reg = <0x0 0x2000000>; - label = "flash1"; - }; - }; }; }; From patchwork Mon Aug 24 21:19:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tao Ren X-Patchwork-Id: 11734403 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 83B921575 for ; Mon, 24 Aug 2020 21:21:56 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 5CE7E20706 for ; Mon, 24 Aug 2020 21:21:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="VJ0lLgqJ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ufAGhVXR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5CE7E20706 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To: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:List-Owner; bh=b9ZsYXs/aE/Ss13I0If1ChIfmhlD6a59+f8u7PRv3DM=; b=VJ0lLgqJ/sYkiyzjw128O/Js95 g2kWW2MAE0vcniaNHoYTT4kZUUJd/zZM64pdxnffwWzsbhYWjnHNuqpptqq0YA8NhvS0CMtsBM85Q qzLAZjfgA9Mv7bmKDW2/gDzyhCB+y7lkoAN4MhbDTkeQ73GNeQ9LekEb9FeCc2jGXkimGcQPXSNPl y8BnQBsvmLqvfsqWoNLk4gQpzcFLTlbvH6AaninVWR7WoIJ3F8igxoBVbslMpryz/Y4MEuEyjI0+9 veEW75rKRqbD9VflcIw61EPtPvVQ0wzK6jxXRTKIlc37nTxUumhjNdvBpDhzVBLJh+FNXyKKHr4z4 GNEEvEww==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kAJt0-0005Ku-Lk; Mon, 24 Aug 2020 21:20:14 +0000 Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kAJsm-0005Fi-2Y for linux-arm-kernel@lists.infradead.org; Mon, 24 Aug 2020 21:20:01 +0000 Received: by mail-pj1-x1043.google.com with SMTP id mt12so94636pjb.4 for ; Mon, 24 Aug 2020 14:19:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SHgVSjx2yqDsWyd1CehQGWoYGWtbaX9g6kRsRLnmAA0=; b=ufAGhVXRwbazRrjv7wmQP6zZfKBhVZ/beiIhEkc13v34Pt0yqZ/2CnBkHguihWs/I4 YVrA86gIIEtYVI3RLiE7IMNmrM15lnPVEUP8o/YJVNw7IBZrpaxWgzfYom6WOu93MCYY nf8TSgt+JtkARl0PWkihCHzlivtDlEkBSpv76T/gVetbWpf8iPkMg2tWNL0Dg3b9PryQ pIyzQIVCjJVbblAmPOjevmlaielNQR6dsPZxZ3s2dYJ29chBvYbtlzqJj4C4UECvOrVs hZm6+LC5HmSfIHySDueERLRPOLGmt+7qy612erQL69iRL989e8R56E7KfA319IuVGj3x jMbQ== 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; bh=SHgVSjx2yqDsWyd1CehQGWoYGWtbaX9g6kRsRLnmAA0=; b=Ir5qNuJe4kpqCNlt4Ii0H1DZQqDzD5ouKBEDMLgNWsFYTjgKlfA2HNX3ItTtib4h/f Q7fU25MCAZteKJ4bgrSguNHFPXIlbZTOHePAcM/cN1wUkpyiYBXQkIgc2JyyWGNc6hOz VOFrVFKPGPh5NwgE2hY7JQltWKJKeFD0mZhorXjS2F3uwMYsVHTANNlwPmQMoXOGzz8F lWtUUOwJaMcDvk8p9Th9z9MoB7R7OonckSUj6EfA8tsTIgKhYXysIzA2CMMAcWNP82kY dsbMm9YOY3yoUUJjyORF9okR7nJGr4AtSxtMwK5QJ0zYtZpficWbJJZmIrHp64PHkbyn 1XZQ== X-Gm-Message-State: AOAM533ARfCwolgIATeTVVz+2upvDWOILTSGtAQnthzNOQx0/MJYk3l4 3hU6VqWwQ8S/vFoKnbsWBVk= X-Google-Smtp-Source: ABdhPJxGThJ/l6QPVeLfdVw08wwd8JKo0aw6C6gkL9SSwjYxVH1u8R9NldM27eXVXWTW1M08FyOhfQ== X-Received: by 2002:a17:90b:1004:: with SMTP id gm4mr912858pjb.26.1598303998089; Mon, 24 Aug 2020 14:19:58 -0700 (PDT) Received: from taoren-ubuntu-R90MNF91.thefacebook.com (c-73-252-146-110.hsd1.ca.comcast.net. [73.252.146.110]) by smtp.gmail.com with ESMTPSA id t10sm97788pfq.77.2020.08.24.14.19.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 14:19:57 -0700 (PDT) From: rentao.bupt@gmail.com To: Rob Herring , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com Subject: [PATCH 2/5] ARM: dts: aspeed: cmm: Set 32MB FMC flash layout Date: Mon, 24 Aug 2020 14:19:45 -0700 Message-Id: <20200824211948.12852-3-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200824211948.12852-1-rentao.bupt@gmail.com> References: <20200824211948.12852-1-rentao.bupt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200824_172000_184379_B92928EA X-CRM114-Status: GOOD ( 12.14 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1043 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rentao.bupt[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tao Ren MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Tao Ren Set 32MB FMC flash layout in CMM device tree explicitly because the flash layout settings were removed from "ast2500-facebook-netbmc-common.dtsi". Signed-off-by: Tao Ren Reviewed-by: Patrick Williams --- arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts index 7bc7df7ed428..2fb8b147f489 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts @@ -1571,3 +1571,20 @@ &sdhci1 { status = "disabled"; }; + +&fmc_flash0 { +#include "facebook-bmc-flash-layout.dtsi" +}; + +&fmc_flash1 { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + flash1@0 { + reg = <0x0 0x2000000>; + label = "flash1"; + }; + }; +}; From patchwork Mon Aug 24 21:19:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tao Ren X-Patchwork-Id: 11734395 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 3C0691575 for ; Mon, 24 Aug 2020 21:20:42 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 142AF20706 for ; Mon, 24 Aug 2020 21:20:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qTP+JHyz"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QXxLh7Vt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 142AF20706 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To: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:List-Owner; bh=Pdf1IKuWx/9OWnQLgrxU2QjQpThXDF38OCusRHiDoWM=; b=qTP+JHyz28TSXaT6ypSHYIfH8/ jO49xfAuInv34emUqN1K9VbGXHla0mhfc8cboGx9hXFQV8k/I3w0TBeg9WUso0dFixILK6PZnPBUF xOrI8eg0RmjCzCuTyIJ/4GPIlq0VnvspebMzE5s42a8bh3+5JPVFyGLxt9qNXQ9J6vTcrtgEcuedB VW2/tMSf4QR8HS6vVuktQZjJFLJ3p02biqC17JWaSfkgMR3FY27oyjak/VYL54LDEM3Mz1dWs6fnx NTNmMDcEG8WwaWlEQshkudJGXmIUbu5ZOk9Y4c/htmU6qMrCceuNyLDxTcKL/ZnwidOoSu41lTLft h4Aijl0A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kAJt9-0005Nm-Uw; Mon, 24 Aug 2020 21:20:24 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kAJsn-0005G8-67 for linux-arm-kernel@lists.infradead.org; Mon, 24 Aug 2020 21:20:03 +0000 Received: by mail-pg1-x542.google.com with SMTP id i10so5272861pgk.1 for ; Mon, 24 Aug 2020 14:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rXBG77uZ+juZ55nF2nk//sAT0YipNn7g2EO+5+pDj1E=; b=QXxLh7Vt6vSOsYqAnE3CpFos70Yk4e3pu5/M0Pix5/hJ909bsaOIymUxSaW11DFDvT tXlYnpaWTyEHjGILHAq4GOuXRuKrWA0uafYsecqWN3lkZN9llUGOOyzyZNXvFJOO6VuI nXG1TIkS23PQpmbJ3vgmXjvBnwq4GNY37tHuHCv899iSG4tQ00pqYjct4OZS8OA9leHc paD2aMk0PgA5a7CZKbqlxsZraUp33AzRU97OI2UtyMF64gplUtNoCp16latnABJqVuxQ ZADC9RVxrryGuOiN3TvSAxIaKstLOldkMYwbDk8pxBYNMyMGp/4dTCS3e1v7UjjPmQVr THQQ== 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; bh=rXBG77uZ+juZ55nF2nk//sAT0YipNn7g2EO+5+pDj1E=; b=tWWLlbxFCN+s6yuh9/3Zu9VyDYOfngjXt4I/ppyKDdPV2L6jwTOZA7+g6UdfhYVLWF nGXnDGC7dxvWx/dEse01XT4rTnDceGiK1NSidSx9iFEywgkEWPc85N/1/PHBtnAiF21e BJ2iyCGceo5fN/uYgiFOw5iVpbDcE11xmz8qYLPe9voaVTxMFDwL+NSSgImbywRipoD2 kafX2ATeOIWu5ltqgwSVd8/FZNH3AIBdtB7LH55+cJjEVqUWFJ+nC54eyf899SYzTVRV 4Ebzvopg9Pei4AKpb25laGGAFAAWdaJuQQqIFe4NeizxfBZa4UjJp3Ht/AZdJP17VWWD 9gOA== X-Gm-Message-State: AOAM531yJ4AMADrtLEt7mfnrNo7+pACxMURnkaV8ln2gYGOZi/fojn7F AaiuUv249seNVJzJt9/oCnA= X-Google-Smtp-Source: ABdhPJz04w77u6/hGINaTXWQWFtFKH3m7WKP9npNSL5MEyNDMXnSp3StFRYm+WPchS3GBDJQxccaTA== X-Received: by 2002:aa7:8285:: with SMTP id s5mr5365120pfm.226.1598303999175; Mon, 24 Aug 2020 14:19:59 -0700 (PDT) Received: from taoren-ubuntu-R90MNF91.thefacebook.com (c-73-252-146-110.hsd1.ca.comcast.net. [73.252.146.110]) by smtp.gmail.com with ESMTPSA id t10sm97788pfq.77.2020.08.24.14.19.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 14:19:58 -0700 (PDT) From: rentao.bupt@gmail.com To: Rob Herring , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com Subject: [PATCH 3/5] ARM: dts: aspeed: yamp: Set 32MB FMC flash layout Date: Mon, 24 Aug 2020 14:19:46 -0700 Message-Id: <20200824211948.12852-4-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200824211948.12852-1-rentao.bupt@gmail.com> References: <20200824211948.12852-1-rentao.bupt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200824_172001_368311_CA9344F2 X-CRM114-Status: GOOD ( 12.06 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:542 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rentao.bupt[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tao Ren MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Tao Ren Set 32MB FMC flash layout in Yamp device tree explicitly because flash layout settings were removed from "ast2500-facebook-netbmc-common.dtsi". Signed-off-by: Tao Ren Reviewed-by: Patrick Williams --- arch/arm/boot/dts/aspeed-bmc-facebook-yamp.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-yamp.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-yamp.dts index fe2e11c2da15..5e6105874217 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-yamp.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-yamp.dts @@ -108,3 +108,20 @@ &i2c13 { status = "okay"; }; + +&fmc_flash0 { +#include "facebook-bmc-flash-layout.dtsi" +}; + +&fmc_flash1 { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + flash1@0 { + reg = <0x0 0x2000000>; + label = "flash1"; + }; + }; +}; From patchwork Mon Aug 24 21:19:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tao Ren X-Patchwork-Id: 11734397 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 A69C2109B for ; Mon, 24 Aug 2020 21:20:55 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 7BE952072D for ; Mon, 24 Aug 2020 21:20:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="wY3YeKvd"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="D0eJ4Bth" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7BE952072D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To: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:List-Owner; bh=vwJiQ2EXrA+4o/KxCYWWNESbpDpX/AAdANfttYZE1DU=; b=wY3YeKvdcWfxv04KC+6zw4WwMh ykMfslsBM0CDfc1IiXHkUuLFic7UQqoiYA656qxNZAxtQwLvOBXlprcYHPOfJjtI/m1KsZahZuZ9m bptcC8DZ+qgAtzXSH8TuUbIM69nVeRzDjWOOx1z+fLvOCDDrCRNXWrokD7pl2wl8P6DXuuganmFrL TjJWxIPItcuglN/4yA40h5SL6T4AubkXkGS/5qqZskXutTHwMQXpT6OWmlB8DdYdULnnw4r9xHaXP VJ0r4Gu214mqab5xRcXitvQSKJjPJtWI5ac8Zi7o3aKhci0IEqPavG6lg9ggeQHCAEdI+N0Vbum/5 9bkKg0/g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kAJtQ-0005Tx-UC; Mon, 24 Aug 2020 21:20:41 +0000 Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kAJso-0005HA-KX for linux-arm-kernel@lists.infradead.org; Mon, 24 Aug 2020 21:20:05 +0000 Received: by mail-pj1-x1044.google.com with SMTP id q93so241270pjq.0 for ; Mon, 24 Aug 2020 14:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=g7VV/krJKjpl3fVXGlaNY9/0wsMNumXkPGYdDy0NLaw=; b=D0eJ4BthOJUjXlvokWibZqWoBGnjmf0N34bXsEzLNsxiDNvnx22WiQpvgVHLvrVg2U YtMPLVrC65sSNGnhPK8hhLrx2TmbixqTyYkl+hDWMJS03TR0g/F4wrt6vK77DrSFsbYS PaJ5e97HLwPuuhgK1fkMjLLmsJwzRm0ciHF/9yVqKVaRBUzKR39gdq1TsmsIqcg8koiG xqs+F9BBXUai+sDSwGOXIgRyxJneWpqfbckjXvKiWnU7z4h+6Jkw6U6pBbfFBnpFBkzN 2UWWXngLvD7gZ/arZEHqxolP9I9/LMmrfPDpbUK9uObH7kcXWCOsh0vMK7/6RpBrWfrc BsIQ== 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; bh=g7VV/krJKjpl3fVXGlaNY9/0wsMNumXkPGYdDy0NLaw=; b=TrTDY4C+1824ECuThKZ8o/Z7gFSj6rzQgYikLrXj05nyDjHX0cI1323As2cKzzv68b WGjGXrgtKlCm7KdDRohWYAZdGY7DZIVf3o/OAzC1ghU3JT4Q1O1n/8HV5o+OgutVY87L POzTcf90W+hWmrWGPnLc5vgkPHy25d2g0DTLJ7oGWLfMKqqC1dPbSiast0+VGY69GSCb oc1nxYR09yQ16OPzFQwzanSQNxk6yFCKB8teVnvgjae8XOrkuyVr68tJBmzYJdor905o DU8DeH52jQeH1ZFSw8QuTVOCOz/yavnUfGcAnZ3g9AIsutLE5Om2X0Ii40Cw/Sn9QTI/ c2iA== X-Gm-Message-State: AOAM532UtTWos9+Z26SkRzg/M3XQPAGNadmeCEQZxrZMZ6W/mTpk5yDG jxRrulDnCPZvsghffSIUf4k= X-Google-Smtp-Source: ABdhPJyugdNrli9G6rRXQAqw0VEFn+pFbiLqtwFesKfsieewyGLJXfjSPVXdmt7qTmHtDJGOqkDPfg== X-Received: by 2002:a17:90a:cb92:: with SMTP id a18mr883425pju.80.1598304000683; Mon, 24 Aug 2020 14:20:00 -0700 (PDT) Received: from taoren-ubuntu-R90MNF91.thefacebook.com (c-73-252-146-110.hsd1.ca.comcast.net. [73.252.146.110]) by smtp.gmail.com with ESMTPSA id t10sm97788pfq.77.2020.08.24.14.19.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 14:20:00 -0700 (PDT) From: rentao.bupt@gmail.com To: Rob Herring , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com Subject: [PATCH 4/5] ARM: dts: aspeed: minipack: Update 64MB FMC flash layout Date: Mon, 24 Aug 2020 14:19:47 -0700 Message-Id: <20200824211948.12852-5-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200824211948.12852-1-rentao.bupt@gmail.com> References: <20200824211948.12852-1-rentao.bupt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200824_172002_825285_3A32F070 X-CRM114-Status: GOOD ( 14.41 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1044 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rentao.bupt[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tao Ren MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Tao Ren Set 64Mb FMC flash layout in Minipack device tree explicitly because the flash layout was removed from "ast2500-facebook-netbmc-common.dtsi". Please note "data0" partition' size is updated to 4MB to be consistent with other Facebook OpenBMC platforms. Signed-off-by: Tao Ren Reviewed-by: Patrick Williams --- .../boot/dts/aspeed-bmc-facebook-minipack.dts | 47 ++++++++++++++++++- 1 file changed, 45 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-minipack.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-minipack.dts index 88ce4ff9f47e..c34741dbd268 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-minipack.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-minipack.dts @@ -88,17 +88,60 @@ */ &fmc_flash0 { partitions { - data0@1c00000 { - reg = <0x1c00000 0x2400000>; + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + /* + * u-boot partition: 384KB. + */ + u-boot@0 { + reg = <0x0 0x60000>; + label = "u-boot"; }; + + /* + * u-boot environment variables: 128KB. + */ + u-boot-env@60000 { + reg = <0x60000 0x20000>; + label = "env"; + }; + + /* + * FIT image: 59.5 MB. + */ + fit@80000 { + reg = <0x80000 0x3b80000>; + label = "fit"; + }; + + /* + * "data0" partition (4MB) is reserved for persistent + * data store. + */ + data0@3800000 { + reg = <0x3c00000 0x400000>; + label = "data0"; + }; + + /* + * "flash0" partition (covering the entire flash) is + * explicitly created to avoid breaking legacy applications. + */ flash0@0 { reg = <0x0 0x4000000>; + label = "flash0"; }; }; }; &fmc_flash1 { partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + flash1@0 { reg = <0x0 0x4000000>; }; From patchwork Mon Aug 24 21:19:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tao Ren X-Patchwork-Id: 11734405 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 5A3B91575 for ; Mon, 24 Aug 2020 21:22:31 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 2484B20706 for ; Mon, 24 Aug 2020 21:22:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="oDAfBhmQ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="anEdFj3k" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2484B20706 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To: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:List-Owner; bh=4eeqwy9IrtHkgWVDm5pFtM/igX2ZQeUQm1elLqPenCc=; b=oDAfBhmQz2OC6KLLN38sbvXEbw /m6crry3Z0fIZvwXyHoGMtrwM63509v2OG+StJ6JsKYap/9KlIfb7KCH6XtJwskoqexzuj0XRbKAJ PROFaFOkAlmx2hnoetGhqlbTsYtyg2j4G7PNrqMLAWfpfDZfF/o/XVvrPs3G81JZQw42xxiLdHoO/ qXysbFQ5zhj5H2cl3FowOb7sd+8TYniLYglxoT45LDjANq1ny0ZHW3bRjHJc/hlQDsOxTuwZVyH6h 6ylWEN3plXBOSZMuYh/jtF2VJ9L6hEWFpewSjdgLeLBY1PORvSw1vwLDIDSVniT/9pHq0+PuS5+I5 9yBEvBkw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kAJtc-0005Yi-T9; Mon, 24 Aug 2020 21:20:52 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kAJsq-0005Hw-KO for linux-arm-kernel@lists.infradead.org; Mon, 24 Aug 2020 21:20:07 +0000 Received: by mail-pg1-x544.google.com with SMTP id o5so5268311pgb.2 for ; Mon, 24 Aug 2020 14:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eMu8aDnf+89oo+gFj0o1fnth9KlyErTkyHbEQFFddNY=; b=anEdFj3kBI1LkEMGrAhuD2HXn9t0XFAOr8HWNMwq93b1pd0wXL8mJLAmexYinUM9QS l9f9q1+43943Ij3E4RcnRlNj/IWAF9G9N88FxQ2Xs204RtA4A5c+SD6Y0gHClWeHkj9r cT0eYu2MCmOSuB0m46/AMOYftzZrTzOXNBgnncSDCBPfIo3BtSZ9A69ORENX7X1Zu2qf T+5fZt2KD3g9ANFnEXNn0K1MdE98QDP1wDw6UfTOGtN5rfheWO504auXb+iS2QE1aQKJ dmcKPG7n3oP3780VHCr8bcoXcWsoDoi/v5mK8U7DhrM7mcMhoIBMK9M6215pUtyVHN7a nIhA== 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; bh=eMu8aDnf+89oo+gFj0o1fnth9KlyErTkyHbEQFFddNY=; b=OyT2waK3EKAZGmEtUIfuc3Lkm3RQD2tkQEGl8Pg7lzcrZfCpnFycU8a5z8HAUiCTQN dSOvFTuhVYS7v7L7gyxp2Uf48XBs5hRJaXfcx96F6KWOKbRgjcYTAEVs1Lza4S5BpCua 66LW87l0qwZ3rBhIkVFIUfGqRWkf1BG1a0sW8cPqO+wtzvQujYAnIfa0h70Iwj+YaLKE 7jJfbMeL8e/fkd3pD5F1fIRBIKBe7pes6k0rTg7ulQkEO/7ILVMUkvQ1F7x8L3WmAFaq s73RPKO13HtIJ96Bw4389culHpQFJGPWnCC0FsXmzF5Xd4SPije4s5LDFYY3LdhMGpvX 1LGA== X-Gm-Message-State: AOAM5327jVhYH/QcNfV5lAJDGumbyn1dUd/M+QLp8HvH/v53DNc19N7l bEiXz8kmuZaYYo8vArIlpT4= X-Google-Smtp-Source: ABdhPJwwYeSNt9zo40A9cx/ahzXcgYncf56B+xo7fqWoA1paLtlo7ZwsI3U+Zaf3kOZGOZLYe1j9Vw== X-Received: by 2002:a17:902:bcc5:: with SMTP id o5mr5175227pls.335.1598304002201; Mon, 24 Aug 2020 14:20:02 -0700 (PDT) Received: from taoren-ubuntu-R90MNF91.thefacebook.com (c-73-252-146-110.hsd1.ca.comcast.net. [73.252.146.110]) by smtp.gmail.com with ESMTPSA id t10sm97788pfq.77.2020.08.24.14.20.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 14:20:01 -0700 (PDT) From: rentao.bupt@gmail.com To: Rob Herring , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com Subject: [PATCH 5/5] ARM: dts: aspeed: Add Facebook Wedge400 BMC Date: Mon, 24 Aug 2020 14:19:48 -0700 Message-Id: <20200824211948.12852-6-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200824211948.12852-1-rentao.bupt@gmail.com> References: <20200824211948.12852-1-rentao.bupt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200824_172004_773924_72AC8B41 X-CRM114-Status: GOOD ( 18.01 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:544 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rentao.bupt[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tao Ren MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Tao Ren Add initial version of device tree for Facebook Wedge400 (AST2500) BMC. Signed-off-by: Tao Ren Reviewed-by: Joel Stanley --- arch/arm/boot/dts/Makefile | 1 + .../boot/dts/aspeed-bmc-facebook-wedge400.dts | 420 ++++++++++++++++++ 2 files changed, 421 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-wedge400.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 77f1c95c4e1c..24f7acc0e2ee 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1354,6 +1354,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-facebook-tiogapass.dtb \ aspeed-bmc-facebook-wedge40.dtb \ aspeed-bmc-facebook-wedge100.dtb \ + aspeed-bmc-facebook-wedge400.dtb \ aspeed-bmc-facebook-yamp.dtb \ aspeed-bmc-facebook-yosemitev2.dtb \ aspeed-bmc-ibm-rainier.dtb \ diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-wedge400.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-wedge400.dts new file mode 100644 index 000000000000..ad1fcad3676c --- /dev/null +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-wedge400.dts @@ -0,0 +1,420 @@ +// SPDX-License-Identifier: GPL-2.0+ +// Copyright (c) 2019 Facebook Inc. +/dts-v1/; + +#include +#include "ast2500-facebook-netbmc-common.dtsi" + +/ { + model = "Facebook Wedge 400 BMC"; + compatible = "facebook,wedge400-bmc", "aspeed,ast2500"; + + aliases { + /* + * PCA9548 (2-0070) provides 8 channels connecting to + * SCM (System Controller Module). + */ + i2c16 = &imux16; + i2c17 = &imux17; + i2c18 = &imux18; + i2c19 = &imux19; + i2c20 = &imux20; + i2c21 = &imux21; + i2c22 = &imux22; + i2c23 = &imux23; + + /* + * PCA9548 (8-0070) provides 8 channels connecting to + * SMB (Switch Main Board). + */ + i2c24 = &imux24; + i2c25 = &imux25; + i2c26 = &imux26; + i2c27 = &imux27; + i2c28 = &imux28; + i2c29 = &imux29; + i2c30 = &imux30; + i2c31 = &imux31; + + /* + * PCA9548 (11-0076) provides 8 channels connecting to + * FCM (Fan Controller Module). + */ + i2c32 = &imux32; + i2c33 = &imux33; + i2c34 = &imux34; + i2c35 = &imux35; + i2c36 = &imux36; + i2c37 = &imux37; + i2c38 = &imux38; + i2c39 = &imux39; + + spi2 = &spi_gpio; + }; + + chosen { + stdout-path = &uart1; + bootargs = "console=ttyS0,9600n8 root=/dev/ram rw"; + }; + + ast-adc-hwmon { + compatible = "iio-hwmon"; + io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, <&adc 4>; + }; + + /* + * GPIO-based SPI Master is required to access SPI TPM, because + * full-duplex SPI transactions are not supported by ASPEED SPI + * Controllers. + */ + spi_gpio: spi-gpio { + status = "okay"; + compatible = "spi-gpio"; + #address-cells = <1>; + #size-cells = <0>; + + cs-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_LOW>; + gpio-sck = <&gpio ASPEED_GPIO(R, 3) GPIO_ACTIVE_HIGH>; + gpio-mosi = <&gpio ASPEED_GPIO(R, 4) GPIO_ACTIVE_HIGH>; + gpio-miso = <&gpio ASPEED_GPIO(R, 5) GPIO_ACTIVE_HIGH>; + num-chipselects = <1>; + + tpmdev@0 { + compatible = "tcg,tpm_tis-spi"; + spi-max-frequency = <33000000>; + reg = <0>; + }; + }; +}; + +/* + * Both firmware flashes are 128MB on Wedge400 BMC. + */ +&fmc_flash0 { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + /* + * u-boot partition: 384KB. + */ + u-boot@0 { + reg = <0x0 0x60000>; + label = "u-boot"; + }; + + /* + * u-boot environment variables: 128KB. + */ + u-boot-env@60000 { + reg = <0x60000 0x20000>; + label = "env"; + }; + + /* + * FIT image: 123.5 MB. + */ + fit@80000 { + reg = <0x80000 0x7b80000>; + label = "fit"; + }; + + /* + * "data0" partition (4MB) is reserved for persistent + * data store. + */ + data0@3800000 { + reg = <0x7c00000 0x800000>; + label = "data0"; + }; + + /* + * "flash0" partition (covering the entire flash) is + * explicitly created to avoid breaking legacy applications. + */ + flash0@0 { + reg = <0x0 0x8000000>; + label = "flash0"; + }; + }; +}; + +&fmc_flash1 { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + flash1@0 { + reg = <0x0 0x8000000>; + label = "flash1"; + }; + }; +}; + +&uart2 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_txd2_default + &pinctrl_rxd2_default>; +}; + +&uart4 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_txd4_default + &pinctrl_rxd4_default>; +}; + +/* + * I2C bus #0 is multi-master environment dedicated for BMC and Bridge IC + * communication. + */ +&i2c0 { + status = "okay"; + multi-master; + bus-frequency = <1000000>; +}; + +&i2c1 { + status = "okay"; +}; + +&i2c2 { + status = "okay"; + + i2c-switch@70 { + compatible = "nxp,pca9548"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x70>; + i2c-mux-idle-disconnect; + + imux16: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + + imux17: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + + imux18: i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + }; + + imux19: i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + }; + + imux20: i2c@4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + }; + + imux21: i2c@5 { + #address-cells = <1>; + #size-cells = <0>; + reg = <5>; + }; + + imux22: i2c@6 { + #address-cells = <1>; + #size-cells = <0>; + reg = <6>; + }; + + imux23: i2c@7 { + #address-cells = <1>; + #size-cells = <0>; + reg = <7>; + }; + }; +}; + +&i2c3 { + status = "okay"; +}; + +&i2c4 { + status = "okay"; +}; + +&i2c5 { + status = "okay"; +}; + +&i2c6 { + status = "okay"; +}; + +&i2c7 { + status = "okay"; +}; + +&i2c8 { + status = "okay"; + + i2c-switch@70 { + compatible = "nxp,pca9548"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x70>; + i2c-mux-idle-disconnect; + + imux24: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + + imux25: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + + imux26: i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + }; + + imux27: i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + }; + + imux28: i2c@4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + }; + + imux29: i2c@5 { + #address-cells = <1>; + #size-cells = <0>; + reg = <5>; + }; + + imux30: i2c@6 { + #address-cells = <1>; + #size-cells = <0>; + reg = <6>; + }; + + imux31: i2c@7 { + #address-cells = <1>; + #size-cells = <0>; + reg = <7>; + }; + + }; +}; + +&i2c9 { + status = "okay"; +}; + +&i2c10 { + status = "okay"; +}; + +&i2c11 { + status = "okay"; + + i2c-switch@76 { + compatible = "nxp,pca9548"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x76>; + i2c-mux-idle-disconnect; + + imux32: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + + imux33: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + + imux34: i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + }; + + imux35: i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + }; + + imux36: i2c@4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + }; + + imux37: i2c@5 { + #address-cells = <1>; + #size-cells = <0>; + reg = <5>; + }; + + imux38: i2c@6 { + #address-cells = <1>; + #size-cells = <0>; + reg = <6>; + }; + + imux39: i2c@7 { + #address-cells = <1>; + #size-cells = <0>; + reg = <7>; + }; + + }; +}; + +&i2c12 { + status = "okay"; +}; + +&i2c13 { + status = "okay"; +}; + +&adc { + status = "okay"; +}; + +&ehci1 { + status = "okay"; +}; + +&uhci { + status = "okay"; +}; + +&sdhci1 { + /* + * DMA mode needs to be disabled to avoid conflicts with UHCI + * Controller in AST2500 SoC. + */ + sdhci-caps-mask = <0x0 0x580000>; +};