From patchwork Thu Jun 22 08:53:19 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: 111524 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp4928092vqr; Thu, 22 Jun 2023 02:11:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4+OQZIT2Pdm1Uh4Lp7SQvA0HdDaXiy7qlM7fe3EGaf7MEIeARhN5PaUHtG3gZkWJ+UOGNi X-Received: by 2002:a05:6a21:7890:b0:11f:1aa2:666b with SMTP id bf16-20020a056a21789000b0011f1aa2666bmr16256263pzc.32.1687425068519; Thu, 22 Jun 2023 02:11:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687425068; cv=none; d=google.com; s=arc-20160816; b=QDXcX1ZINiTBXRas35rfDj38KJ9cCQAKcbTPOgL/QhVPKuT3w/hhA6jWpEtKmVAqM6 gUOtAHFxocQwOypw39YcVE0Ph4WdJgV7C3G4pcH3ZiRO438+xz0IvRKHucTev7q0Svsu tTFUFbrFUxHmsNYpVK+r90oPtPj1e/EI6NH2z8gd4JA7PR3y3qaLT17ih0tFRUq/y2/1 z7zzDW7MBc8Lj/MxUofpK+Lck0IxUEEtik3Fj5BWvsgpeS3mdSuZbyH80hXNkLcS5jKl wLL+1NHpdUkh75uDzeDoatVIMfWi7pbzKBc6RVoI4i9Q45/WmQlU4Wv6xTv89PB0bDDU B6Tg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=l7Su6NrXdavUZH9NhuBtqK95lCGLFtRIDcgwN+18Psk=; b=FEREC5Nfi4SbHCLAZgC/XuZ47UBHm9oBB/OgchJkPRK/JZyO5ye4qmD4Fnvzv9BMIB YleOHPTNLXy+f1wjMClgHELVBUhaiahiW0rCV+7GD5Eby2b5RSVQQtq2UuSEYbhTTrIM O47rHeWeQ3VDL4WPz8oWQGRIHAa07CgYEjNktIXbLFVVEnLSgCdwtuCQBa7lwCEvXQRH 7zb0AC/VUpGYFpuTraU0NKfLVvXsnhQ3IE3XdxiR0Il33iFGiFmiujt0upofG04JdXSY aIyvbOMVq3RXPlThxBpLRJQXLhSkGcRNLOFvKtLKjUT9/qvuJ3FWhr+awXh5beyvkqrh 2RhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fiu+KPyH; 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 jo10-20020a170903054a00b001b54f955518si5733283plb.224.2023.06.22.02.10.54; Thu, 22 Jun 2023 02:11:08 -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=fiu+KPyH; 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 S230229AbjFVIyd (ORCPT + 99 others); Thu, 22 Jun 2023 04:54:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230230AbjFVIyH (ORCPT ); Thu, 22 Jun 2023 04:54:07 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D93D41BE2; Thu, 22 Jun 2023 01:54:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687424040; x=1718960040; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Xt7+0eDhZXluZqNtcuchvFSf+T60q4HXLuXvNh01QUs=; b=fiu+KPyH7LORA2Y4kuZIPZHw9Wf11WsziPnUKX76uhnDdHdHOXCzEPRG zTTrEdQbsSFiLPu2xAVi2RYZZFam08PYSGI18GEIfP7sLQtwcZyG/jTIc QvC9sHh/TOQAKeVDWH9/h+8Smkpnku+X+y3zoHZQRxsPf73msE2zLyEXX Vp/poUciBRFw1WjF1LU4+LFC6Ps1olu4CmG9fBE5uv4qZZpQ/mqadZdBT sWxFxBekirUWIxUXPHEFbubcD+zhVFw4qx5kVTEkYdM0aJM9O3P2LBkd1 fmxXTgWBHDC3il1re5JbcHNplFc2UuPb+xPmwvcuzraWp2CPcXiHrntL4 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="363853587" X-IronPort-AV: E=Sophos;i="6.00,263,1681196400"; d="scan'208";a="363853587" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2023 01:54:00 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="749170677" X-IronPort-AV: E=Sophos;i="6.00,263,1681196400"; d="scan'208";a="749170677" Received: from unknown (HELO localhost.localdomain) ([10.226.216.117]) by orsmga001.jf.intel.com with ESMTP; 22 Jun 2023 01:53:57 -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 1/2] arch: arm64: boot: dts: Updated QSPI Flash layout for UBIFS Date: Thu, 22 Jun 2023 16:53:19 +0800 Message-Id: <20230622085319.562868-1-kah.jing.lee@intel.com> X-Mailer: git-send-email 2.25.1 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?1769393428151550866?= X-GMAIL-MSGID: =?utf-8?q?1769393428151550866?= 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 --- 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 08:53:49 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: 111550 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp4937171vqr; Thu, 22 Jun 2023 02:32:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ56oCnSW9tWF283y0kNHXrfy+v6I/j6FGQTyZQa/5EtD3kR1aNj3DLOmazdSCe/P6C1feFb X-Received: by 2002:a17:90a:6f43:b0:25e:fb6d:ce68 with SMTP id d61-20020a17090a6f4300b0025efb6dce68mr17309635pjk.6.1687426365212; Thu, 22 Jun 2023 02:32:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687426365; cv=none; d=google.com; s=arc-20160816; b=SadLdEQ8DZ3Zq9GGy6RPhMnPCvq/SSWfpYbpbJrcATemWFZt2J3nOCzCltfx5Z5pA3 vtmh2phy6OyK9fQrgzgtYR8Rbyr/edpPKe3Gnq+gAzsmQqgf2l5vNkLkRENwSop3cpsm lGwiTy2WQTMRJe0x3Chafq9jhmbUMS4D+jczoLaTAyN05iKYlOSkXKR3Y8VxlGsTVyQY vffy4pAd2jtcSC2M2uTesyKcDOx6dS9j1jVOrJIf22lYYTiyRkWIbNuHvWuhn9MxIU8m YnPqyn0DXMJOEESqu+e02ukgkwLPQCZdHtuSoEpOfVZOTEk54rQIrRfiAikj73urNvFZ UlAw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=yeNUTOQ+k25VaQ4BfYSt6MMOEpprPfCNSM729OXf7i8=; b=Yujysjmd4om1ANpfDzjGxZQd3ZrprP0arJgaBO+R+nOOqfzkCZL2zgdqiac5H52N+p UVgtIu4KEOJ5pzF1A9m/YvauFA7o7Zslfa6iQnJdAywoKMpOXSrxVkQecrkhpim/wwYF hQIkZZLeySt5N9gJIb7Z+XR1n/YztknpJU1YpfVS/sC8CrAh0px2v4oQ6qvaBkZX+tSg W1/YOd9mERV5MNDzmz13u3kB5ibopI8AU49dz3LXTzfxD1QCSSIEh4+5URNeUviYyKE/ ozHfSLrk4MiQo+gSR4qFMZuTLQG7TlcSNG/KL546MBVyhPqyHYyJSG+jhc4S/P5h81MB q9lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=oDxYDEox; 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 a8-20020a17090ad80800b0024bccf6609dsi14124613pjv.114.2023.06.22.02.32.30; Thu, 22 Jun 2023 02:32:45 -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=oDxYDEox; 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 S231466AbjFVIzR (ORCPT + 99 others); Thu, 22 Jun 2023 04:55:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231483AbjFVIyn (ORCPT ); Thu, 22 Jun 2023 04:54:43 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9564D2126 for ; Thu, 22 Jun 2023 01:54: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=1687424078; x=1718960078; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Zx7iUd56gjTFG6wuRYinNxSOIWG+aGygrZmK9b7NGDg=; b=oDxYDEox2QTLRzYIw4E5p2IbOZwFtv+6MVoJpip7tqRN+xDVeNbsjzZ5 i7B66Y81vLxHR/MZr5EV9gSlLBzsWRbNnyUXewEOnn0Q+fij6AUKFBcsB w49hf/h6y8dLqLh3W6zUUNr0YwBANtdbBLfawbAJwuhNA6VPI+Noxba+L 5ZUsGMLwS1E0/fPUxMYI/JwcgHpaBVq7MmdTNhcj08jAHK11d3RYkfuCO UNObr0ltJtrPOsiwAeK5sRamVVSWHQTrQEkHpdxH4g9HMDuwpaQbNwyK+ /kRP8jIzXUoFMzQ+d9Jl2QiduZe4+oobxk3RnBDYdA6Ni+mWaOd6X0ekC w==; X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="446804338" X-IronPort-AV: E=Sophos;i="6.00,263,1681196400"; d="scan'208";a="446804338" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2023 01:54:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="804704449" X-IronPort-AV: E=Sophos;i="6.00,263,1681196400"; d="scan'208";a="804704449" Received: from unknown (HELO localhost.localdomain) ([10.226.216.117]) by FMSMGA003.fm.intel.com with ESMTP; 22 Jun 2023 01:54:34 -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 2/2] arch: arm64: configs: Enable UBI and UBIFS Date: Thu, 22 Jun 2023 16:53:49 +0800 Message-Id: <20230622085349.573942-1-kah.jing.lee@intel.com> X-Mailer: git-send-email 2.25.1 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?1769394788131916226?= X-GMAIL-MSGID: =?utf-8?q?1769394788131916226?= From: Alif Zakuan Yuslaimi This patch is to enable UBI and UBIFS in Linux defconfig. Signed-off-by: Alif Zakuan Yuslaimi Signed-off-by: Kah Jing Lee --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index a24609e14d50..23a6ebcb1a9e 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -470,6 +470,8 @@ CONFIG_IPMI_DEVICE_INTERFACE=m CONFIG_IPMI_SI=m CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_VIRTIO=y +CONFIG_MTD_UBI=y +CONFIG_UBIFS_FS=y CONFIG_TCG_TPM=y CONFIG_TCG_TIS=m CONFIG_TCG_TIS_SPI=m