From patchwork Thu Jul 25 04:16:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Charlie Jenkins X-Patchwork-Id: 13741555 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 0BFEFC3DA49 for ; Thu, 25 Jul 2024 04:16:50 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SuA7uy3m9WYIV9YUvrEzNM4aovJbnnfxWHBw80tjsEQ=; b=Nyt7L2OB4W9itm KUuZEeBhFvso80mvP/6p/XLLNgbSJYSD/C1YrLq9lOcUhUq2Dvs5lqTe3OYMXuX44p6ksX3Wknf/8 1IQbEd5h6Ifj+q7uq3QcUw6jSDPAkxnoqCqRs+h6iWDWlErujhNWq1E37C2dnVXvsQChL1LatswlW eDal9kExBm5Ml2cZX9/yOveaN15Fsi1YVN75fsZs4wDlVT6YclnrZV272IjLxbnq9NA3RmbHF59QL cscFyeM0GTCxoVGYTWG/Kd00Z3UGWKqUEhxbjPhX0KLyrZidQjdqwnPH3Jtd8mLttxey0IFOX4NHK eDTbIrvaV5MGaWS7wgTw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWpuH-0000000HILg-3Tcp; Thu, 25 Jul 2024 04:16:45 +0000 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWpuE-0000000HIJB-2OaD for linux-riscv@lists.infradead.org; Thu, 25 Jul 2024 04:16:43 +0000 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-70d162eef54so365807b3a.3 for ; Wed, 24 Jul 2024 21:16:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1721881001; x=1722485801; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=0g1DxVy9Ij2OMsYu7oTE9l+cI+PV2f969LKgw+PL+a8=; b=CsRGCuh21evYldWGcRA8XDn/wBIOVGL2YAcUBcmxMFMOOPNCPiDUmWouVFKiICvKd8 koVnM54SFoRQnH+fxs/sYnNj5VCn3ynod93XEOUqXYLnh/BItmu79ExQyJCUPXdKBt5y D3fbrM+SfQkt8hf0iI7xLf1IGb1yMNxhU+YhRxWMhZnSUjO5f4608lKHqOoPn6NH20EB GTI9n9ny7cW50uP4YrmbE2TIQgJS/uGRgiGUXq83lNfu/5C/VPaa9tFCpME8m4b/FOHT 1rq+PnFmL4cT2ADHoZ9kU14/JsAJkAiGvUofb/2mzc7OCL26ojBzMHuEH0lB6MVYY0fZ Ge/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721881001; x=1722485801; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0g1DxVy9Ij2OMsYu7oTE9l+cI+PV2f969LKgw+PL+a8=; b=Xitwa1LBRUsvcS1OO85/wOLwIpg0IvjKck9ecwlI/utXvdci2ovyYM8uI8wfx2XKH0 vuJkpTBUZDcbQUz3Nk1721eYKlOWDIgcmvpPEAC4987Ga1CtHTSMkUsxP7g45Ksrzagd pOYlXZ3DeEz1V51BxBcLmo7Wvl0h2WoRJCMCl6o/FucMAJQ0o1YkX6nhwNR4dOpGlX5Q K7GUbgioyXg/yBpel6pwAi70iiu0XaseRx2+fB90U8tm2lGDvGHZk62ZxEFuIgA3q2nQ PIcUNyJwbNv6X1WZVuiOhc/ofHth3RthMjfWg5CDF6UmFV0EjeO9JkmHUSdDoe/04d84 CERg== X-Gm-Message-State: AOJu0YyH0iqurDfUJGwnt6EJJGaV52pyhGCbR10+Qb9pzBrasyQQ89kV 5ZU89kscuLK+0ojgfVY8Yv7n9ZxDEUJhtoTNJOGRi9gptMpH5wzykfvD6/Nd1kk= X-Google-Smtp-Source: AGHT+IFt1RkVFf2OjyTIVYWnNjXMMzXbPhYUj5yMkNfJ1obS1jdCLktWfogDenFlyhmNY0dxbGiqRA== X-Received: by 2002:a05:6a20:a113:b0:1c2:1ed4:4f90 with SMTP id adf61e73a8af0-1c472867d36mr2466930637.19.1721881001579; Wed, 24 Jul 2024 21:16:41 -0700 (PDT) Received: from charlie.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fed7f2b80bsm3781825ad.205.2024.07.24.21.16.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jul 2024 21:16:40 -0700 (PDT) From: Charlie Jenkins Date: Wed, 24 Jul 2024 21:16:20 -0700 Subject: [PATCH v8 03/13] riscv: dts: allwinner: Add xtheadvector to the D1/D1s devicetree MIME-Version: 1.0 Message-Id: <20240724-xtheadvector-v8-3-cf043168e137@rivosinc.com> References: <20240724-xtheadvector-v8-0-cf043168e137@rivosinc.com> In-Reply-To: <20240724-xtheadvector-v8-0-cf043168e137@rivosinc.com> To: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jisheng Zhang , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Samuel Holland , Jonathan Corbet , Shuah Khan , Guo Ren , Evan Green , Andy Chiu , Jessica Clarke , Andrew Jones Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Charlie Jenkins , Conor Dooley X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1721880992; l=960; i=charlie@rivosinc.com; s=20231120; h=from:subject:message-id; bh=I9BB6+DSsEot7edtm0hreUvYP0RvytEdbSv790C0uE4=; b=ZAWLZ9wwCs7KaqSUn9fZmYN47ZJqG0m0R/IdKknBruk76HGKRsw/EmJRczJ4ZOD/iVkMqcV03 SI+sGJRP0kKDKii6PoLcAkWsqoy9XQ8AZNzUmpoWrTo5SJBRIMkCLI2 X-Developer-Key: i=charlie@rivosinc.com; a=ed25519; pk=t4RSWpMV1q5lf/NWIeR9z58bcje60/dbtxxmoSfBEcs= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240724_211642_624692_30956AA5 X-CRM114-Status: UNSURE ( 9.31 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org The D1/D1s SoCs support xtheadvector so it can be included in the devicetree. Also include vlenb for the cpu. Signed-off-by: Charlie Jenkins Reviewed-by: Conor Dooley --- arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi b/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi index 64c3c2e6cbe0..6367112e614a 100644 --- a/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi +++ b/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi @@ -27,7 +27,8 @@ cpu0: cpu@0 { riscv,isa = "rv64imafdc"; riscv,isa-base = "rv64i"; riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr", - "zifencei", "zihpm"; + "zifencei", "zihpm", "xtheadvector"; + thead,vlenb = <128>; #cooling-cells = <2>; cpu0_intc: interrupt-controller {