From patchwork Thu Jun 22 12:34:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lee, Kah Jing" X-Patchwork-Id: 111658 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp5058803vqr; Thu, 22 Jun 2023 06:13:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ69yZj8ivJ8RAfR72XB/bolu/WcHwB0+0MMr8fhuGdHw0QsEmleFXcQWf19tKMqhzcZtKt1 X-Received: by 2002:a05:6870:a895:b0:1a6:98de:e458 with SMTP id eb21-20020a056870a89500b001a698dee458mr11150736oab.8.1687439631641; Thu, 22 Jun 2023 06:13:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687439631; cv=none; d=google.com; s=arc-20160816; b=REQ+0m2MWlCHJHLGl31p4UR40qbbVawq2Ow7xOvrA1lKIou9qsk5GR/101KVkew81D 1Dv4gyELX1t3ehq4njpJEwynbvjICCHpttm8qHUaFsPpRy6WCrMfJNEF5Ua7HDIknyax tnxLJMFhWjDR+4Q1M0wA33QMejI225gSc0npubwaALYQhhngkouQ6Gz1suB2bz/Nqf9b Gk3FGeQSuOl61OdgSNJ5sCzoSjSOfsdNOA0fZz0w+ZHh+1/oF88Q5OClxW4RDghymmZh rpoGivJ5ZvaIgXT1XGiFXPQlhnSQ9NkSMCgaYvnYgvsFuPmA8Z9m/P6kJgHeEZ2HlA4u 4qXw== 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=Ds7zUon0yAbh6PyaGQcp79nTQsr55Hg1gj+hBM0rOXQ=; b=PC9OZ3ZhrmKbri63P0DFvEiUEGaCYGcaRy/V5g0hIKg1nIkgp70hPgVcu38qwWMWNX 0xyLjUzKzIHC9hXcZDywTpeNR6AlAM+77WwL55yMNs7sVy74LAgq4/avEUY7EkIVqEDL SwnmResNwcSDGFbXUIFmICKeCcvk6QmewDbjXex4fIfumC/ZL06Ti1dDmh29wHeE5mU9 cgYZXlTcMDKEHrpTgU+f0T/Df0bF/971l+0L2LF/oggNBfmZf/uz69Pd1Y99Hr0ZHl0f k4megiwdwxSX+emweiBTrUBrfbW26UPm/slL1g0xxtnvHl6zeq6gv0OLgOtqUrHjrpda mO+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ATrMUzi8; 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=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s184-20020a6377c1000000b0054402b987eesi6301600pgc.213.2023.06.22.06.13.38; Thu, 22 Jun 2023 06:13:51 -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=@intel.com header.s=Intel header.b=ATrMUzi8; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231363AbjFVMfm (ORCPT + 99 others); Thu, 22 Jun 2023 08:35:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230513AbjFVMfl (ORCPT ); Thu, 22 Jun 2023 08:35:41 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8795DE; Thu, 22 Jun 2023 05:35:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687437338; x=1718973338; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KuWmZUFS+bzuFupSqBTPY5LMVOmTmWXNrryWlmfEZl4=; b=ATrMUzi8xRSmzBgtsV7xfAZGLvJPaP7MjaXTokkxsqLaoS3Oi5fL4x5p PxccP3sSGYoQ5LyhdIgrobRzZzDD98dZutTxgFFnHmbzxSoaxgKsZhfKm FR2hlci3wtbajZr/dqH3he1/xxj6E7GsEIFG4xBHcLJWnHReKVGwxtBhf DRpWSvDSoq15diTwtEUvsNIZlI/H5u+PiNLf2vcbBrmFAKeOkLNyYQhsB lp7D/8uBSAAdSh4N2EXi6jqGA5XxdutbloSK1Y//oJSkp4fPpbFOOCPeR EmTfsygOF4yAfxfXWpCEMmXk/hyd97UoMKC8tQD2F9ofst/XjtLu5UNRO g==; X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="340077388" X-IronPort-AV: E=Sophos;i="6.00,263,1681196400"; d="scan'208";a="340077388" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2023 05:35:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="714888943" X-IronPort-AV: E=Sophos;i="6.00,263,1681196400"; d="scan'208";a="714888943" Received: from unknown (HELO localhost.localdomain) ([10.226.216.117]) by orsmga002.jf.intel.com with ESMTP; 22 Jun 2023 05:35:35 -0700 From: kah.jing.lee@intel.com To: Dinh Nguyen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Alif Zakuan Yuslaimi , Kah Jing Lee Subject: [PATCH v2 1/2] arm64: dts: agilex/stratix10: Updated QSPI Flash layout for UBIFS Date: Thu, 22 Jun 2023 20:34:34 +0800 Message-Id: <20230622123432.593548-1-kah.jing.lee@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230622123254.593308-1-kah.jing.lee@intel.com> References: <20230622123254.593308-1-kah.jing.lee@intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769408698921946134?= X-GMAIL-MSGID: =?utf-8?q?1769408698921946134?= From: Alif Zakuan Yuslaimi This patch is to update the QSPI flash layout to support UBIFS in mtd root partition. Signed-off-by: Alif Zakuan Yuslaimi Signed-off-by: Kah Jing Lee --- v2: Update subject prefix --- arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts | 8 ++++---- arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts index 38ae674f2f02..12b960b9183c 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts @@ -202,12 +202,12 @@ partitions { qspi_boot: partition@0 { label = "Boot and fpga data"; - reg = <0x0 0x03FE0000>; + reg = <0x0 0x04200000>; }; - qspi_rootfs: partition@3FE0000 { - label = "Root Filesystem - JFFS2"; - reg = <0x03FE0000 0x0C020000>; + root: partition@4200000 { + label = "Root Filesystem - UBIFS"; + reg = <0x04200000 0x0BE00000>; }; }; }; diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts b/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts index 07c3f8876613..608017e6e36a 100644 --- a/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts +++ b/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts @@ -128,12 +128,12 @@ partitions { qspi_boot: partition@0 { label = "Boot and fpga data"; - reg = <0x0 0x03FE0000>; + reg = <0x0 0x04200000>; }; - qspi_rootfs: partition@3FE0000 { - label = "Root Filesystem - JFFS2"; - reg = <0x03FE0000 0x0C020000>; + root: partition@4200000 { + label = "Root Filesystem - UBIFS"; + reg = <0x04200000 0x0BE00000>; }; }; }; From patchwork Thu Jun 22 12:36:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lee, Kah Jing" X-Patchwork-Id: 111653 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp5038483vqr; Thu, 22 Jun 2023 05:46:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7AcMgd2/RCaChjH6NBsS9IWzRU57KE2WN5VY9P8auqn/mUHjgGrqPUIXQ696lfiQ1mx4xA X-Received: by 2002:a05:6a00:1595:b0:66a:6339:e8f9 with SMTP id u21-20020a056a00159500b0066a6339e8f9mr684293pfk.0.1687437963286; Thu, 22 Jun 2023 05:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687437963; cv=none; d=google.com; s=arc-20160816; b=lIx6DCxzcr1pAIgYWmURnZknCyJnj83tqY4cZRaxb5so2+DSxuoY9qikw/X6Burv+L oPkKyOx5nc+3Iy9T4jrMga5AVLkwkHc6enM+gQJAL9DOqoGzsXt0fIQqyJQFbZ5OLEPm 6Aif1/j6G9WIjcfLdvgEYMvSDI+1dVk8HzOl9R25UhkAS97JZo4QZoVWFulkMjUun58l M+Vh/JxhfVpYoZ4s/MNjdwmb6EiVe2J0i4YBnCACsHGbbasEyfmYVPOjOeZDSq3I4ezp AbMgZvVElso8s2hOu6VJ+kQoHsVDO2CPYFAUehAWhDUoX8Nk5WU/RtwDBkJG7EK8Rq+u hdeg== 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=VUtcZLkOflinGuxuf9hW3uTJqv3/dp8EM95lUFyWB20=; b=ZMtta9k18/LFxZR/nuTRAJ8nhZQpeH0hkeOmpzx93MGaHrxJAUfgPeJRtvx+/cWuVF k1ZrG+5YdCjOegj/Ly5EhxvriIHCrk/hQ150F4J+C7ZL/SlCzEV248S27QnLge3bD0p1 ojre2VqI2dGzSuFvc/i6J2ZtjZDzTjcT4B/4opNZzCEwm2aFoYs/5+lHqdf07NGTlctX xuSA5tWTd9awPEdiCgdJnnVYc1qXdwAX3O8qJ2zGAj/E2/cK585aNxfkW0/rbGZ8GMnY pwbT4tXuRyy3ueZ4p2B4H2FQOxJbH7EpEV38ctsK5wydriOKj8gGUAv6/zUqzZYcJYAT yyfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ioLvKPHY; 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=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a63-20020a639042000000b00537c6c285a0si1434912pge.167.2023.06.22.05.45.47; Thu, 22 Jun 2023 05:46:03 -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=@intel.com header.s=Intel header.b=ioLvKPHY; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231463AbjFVMhr (ORCPT + 99 others); Thu, 22 Jun 2023 08:37:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231436AbjFVMhp (ORCPT ); Thu, 22 Jun 2023 08:37:45 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A79C1AC for ; Thu, 22 Jun 2023 05:37:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687437463; x=1718973463; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=m+Ev4wmCm18e2vsd+uR0dwc67qrspzWomHfGrrOjEiM=; b=ioLvKPHYfDuNKeneQAnHcKVL72uO6qFQVkdu01DLdwlrZ6KWk2cON8BY EygKd98jG5iPvnS0y+PMW0GKuiyC+bd2WtiaF7S5XW3FaiyWn3DxHqKqt Bz174Z3XGljeqvtRA62bxEU3E7OZCjX++ah9tXZBgyfEgfpnbBFxgZWs5 qkiSb3g5wARQ25Q4BhwBS2eKe7AnXyqOF0phQJjYFUx/RB0B+s6rsyIrc O5Xsk7N1o6RUe8gef+Fb2gmUjuW34Kskzr4/d/PgncHQlpt0IvUkjb+35 CRkFQgaiRV55Shd8dvQ8yQDZQJHXABv4rJMuOETAaFWLRNsbkjXwULe7q g==; X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="360492533" X-IronPort-AV: E=Sophos;i="6.00,263,1681196400"; d="scan'208";a="360492533" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2023 05:37:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="1045148777" X-IronPort-AV: E=Sophos;i="6.00,263,1681196400"; d="scan'208";a="1045148777" Received: from unknown (HELO localhost.localdomain) ([10.226.216.117]) by fmsmga005.fm.intel.com with ESMTP; 22 Jun 2023 05:37:39 -0700 From: kah.jing.lee@intel.com To: Dinh Nguyen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon Cc: linux-kernel@vger.kernel.org, Alif Zakuan Yuslaimi , Kah Jing Lee Subject: [PATCH v2 2/2] arm64: defconfig: Enable UBI and UBIFS Date: Thu, 22 Jun 2023 20:36:58 +0800 Message-Id: <20230622123657.593719-1-kah.jing.lee@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230622123254.593308-1-kah.jing.lee@intel.com> References: <20230622123254.593308-1-kah.jing.lee@intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769406949950623302?= X-GMAIL-MSGID: =?utf-8?q?1769406949950623302?= From: Alif Zakuan Yuslaimi This patch is to enable UBI and UBIFS in Linux defconfig for socfpga Agilex and Stratix10 platform. Signed-off-by: Alif Zakuan Yuslaimi Signed-off-by: Kah Jing Lee --- v2: Update subject prefix and align defconfig config place --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index a24609e14d50..8c3c6fd20d77 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -267,6 +267,7 @@ CONFIG_MTD_NAND_BRCMNAND=m CONFIG_MTD_NAND_FSL_IFC=y CONFIG_MTD_NAND_QCOM=y CONFIG_MTD_SPI_NOR=y +CONFIG_MTD_UBI=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_NBD=m CONFIG_VIRTIO_BLK=y @@ -1444,6 +1445,7 @@ CONFIG_TMPFS_POSIX_ACL=y CONFIG_HUGETLBFS=y CONFIG_CONFIGFS_FS=y CONFIG_EFIVAR_FS=y +CONFIG_UBIFS_FS=y CONFIG_SQUASHFS=y CONFIG_NFS_FS=y CONFIG_NFS_V4=y