From nobody Mon Nov 25 15:22:51 2024 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C25FBC13B for ; Sun, 27 Oct 2024 14:47:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730040443; cv=none; b=gH5rDxn4w+X+AXsEAAMo3lTDszaPfWYwopz8GhcCHVYOQxTBSFpkpIExGTwnQtasy497Hxx42IT8pww4EfOkauakZHy1B/amg0n7EGuOThezg3qtDRKC8UXz1Taiz2MQ0AeFDnTdgRyM9PmF8Jz1yYEEuN5y+SzW/8mPkiUHLHY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730040443; c=relaxed/simple; bh=UC7R2lYJdSqqf3YGf5332838pRZm9+/T17L7BeGyzWY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=a7XY/LwAyf+axVQ0z0rvB6Z1uPEjf6Enl0QrHEtYF7S2ftizAj3N23HDAhTGBfO4kIRigj0R2PG5KzZhJ6AjGD88Nd8xLqjb4/W1kVgFLfDkMdm0EwvbdTmtT0tB0ww7ZsUKlNo1JhM64CqavClRBBDsJwUM7yeMD0fuzIklfMs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b=UQbaKaLr; arc=none smtp.client-ip=209.85.210.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=riscstar.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riscstar.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b="UQbaKaLr" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-7205646f9ebso1627172b3a.0 for ; Sun, 27 Oct 2024 07:47:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1730040441; x=1730645241; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+wvAtnVKug+duYdZaolG15HbB51AquCXywvQfcB1XNM=; b=UQbaKaLr1brp/DXihqeXD98svzNLv/Gf29pQR/GW5WrdttWwvi0HBbTl0H1//EvC5g 81AUhYU3P//3W/OFByQ8YMU5D7yXgHVy0m04PvIRmMjSPXj5rOlDxc66aM6fsuI84q2A fT6VXC6bP5YefqRgPaEZL6jghwa7adOFwDH+LrUHVoaiJqMHo10cht+i/yLvDIyPWe4X wRA2GqenKNTe1Am7ygsec40DQFoToh5EvCvrb16OjX++YvmBS5wqjpdcV3l3dP/z3fqo skUm01/qnxijpHuDNxX8dt3lP03V2FQhecbfUV0f1WEkzi2muibIyAvDHyV/0YHdk88J DdXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730040441; x=1730645241; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+wvAtnVKug+duYdZaolG15HbB51AquCXywvQfcB1XNM=; b=M5DPFRxB5FeFBzwi8an4HNa3+9GKHSC4LZ2iRyzCx8hzH0SZiNbPEm2N9jG8RBHsNS 2q7QHbtbjTgamXcODZOfbcNr8e6fz89M27ZYhi4FuUwwD3nh7MTlr+LmZYJnrfVa4Hen JdhRlJcDCWCR7SSuKWyTTjR7F+WS8yN+69JkPHKuYvVX73o4rVtPy3gP/DNNfaSZuL6n +G01pDoau0EGeD6i8TBaxLAqDEPs6rf2qWxYwgKQmbhKZmCJqCjlL1+SMxL6NsyJazY/ ZyEMGRbP59J39YkSij7s7YitbS4fsH8uzGmAjmBpQFH/pnE+k79RFOdPr/5yemirrzIg gs3A== X-Forwarded-Encrypted: i=1; AJvYcCUCDZZj3Z25FJT8QD2yU/DXD9kPRs5I6WTiUabKehGlk72olNRQMaxTnvbXXpwXi1E1hMJtrBY0JvzdaZU=@vger.kernel.org X-Gm-Message-State: AOJu0YzcIzH701AoQeHRI1IQgFrnfwfxaVSI38GXnFPl6PQjrzz1zTgT E+FTFcNRXgPCDGkYQlyI0XCWV2a8Oeww5LvDGX1NSg9BCgQ7Sco1/7wW5elM38I= X-Google-Smtp-Source: AGHT+IFZ8JfzRKLnF0QcT9iry3r3kCh6zjZywop0HCotG7xPZgCeXWFldiFXMJMj7ItUcYcarU72Bw== X-Received: by 2002:a05:6a00:2d84:b0:71e:693c:107c with SMTP id d2e1a72fcca58-72062fb8107mr8106494b3a.11.1730040441113; Sun, 27 Oct 2024 07:47:21 -0700 (PDT) Received: from localhost.localdomain ([2a11:3:200::401b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72057a0cb06sm4065110b3a.115.2024.10.27.07.47.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Oct 2024 07:47:20 -0700 (PDT) From: Guodong Xu To: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , rafal@milecki.pl, Greg Kroah-Hartman Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Neil Armstrong , Heiko Stuebner , Michael Zhu , Drew Fustini , Alexandru Stan , Daniel Schaefer , Sandie Cao , Yuning Liang , Huiming Qiu , Alex Elder , linux@frame.work, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Guodong Xu Subject: [PATCH v6 5/5] riscv: dts: starfive: add DeepComputing FML13V01 board device tree Date: Sun, 27 Oct 2024 22:44:48 +0800 Message-Id: <20241027144448.1813611-6-guodong@riscstar.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241027144448.1813611-1-guodong@riscstar.com> References: <20241027144448.1813611-1-guodong@riscstar.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Sandie Cao The FML13V01 board from DeepComputing incorporates a StarFive JH7110 SoC. It is a mainboard designed for the Framework Laptop 13 Chassis, which has (Framework) SKU FRANHQ0001. The FML13V01 board features: - StarFive JH7110 SoC - LPDDR4 8GB - eMMC 32GB or 128GB - QSPI Flash - MicroSD Slot - PCIe-based Wi-Fi - 4 USB-C Ports - Port 1: PD 3.0 (60W Max), USB 3.2 Gen 1, DP 1.4 (4K@30Hz/2.5K@60Hz) - Port 2: PD 3.0 (60W Max), USB 3.2 Gen 1 - Port 3 & 4: USB 3.2 Gen 1 Create the DTS file for the DeepComputing FML13V01 board. Based on 'jh7110-common.dtsi', usb0 is enabled and is set to operate as a "host". Signed-off-by: Sandie Cao [elder@riscstar.com: revised the description, updated some nodes] Signed-off-by: Alex Elder Signed-off-by: Guodong Xu Reviewed-by: Emil Renner Berthing --- v6: Dropped all node status disabled code Enabled usb0 and set its operation mode to "host" v5: No change v4: Changed model string to "DeepComputing FML13V01" Changed dts filename and Makefile accordingly to reflect the change Updated device nodes status, and verified functional Revised the commit message v3: Updated the commit message v2: Changed the model and copmatible strings Updated the commit message with board features arch/riscv/boot/dts/starfive/Makefile | 1 + .../starfive/jh7110-deepcomputing-fml13v01.dts | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 arch/riscv/boot/dts/starfive/jh7110-deepcomputing-fml13= v01.dts diff --git a/arch/riscv/boot/dts/starfive/Makefile b/arch/riscv/boot/dts/st= arfive/Makefile index 7a163a7d6ba3..b3bb12f78e7d 100644 --- a/arch/riscv/boot/dts/starfive/Makefile +++ b/arch/riscv/boot/dts/starfive/Makefile @@ -8,6 +8,7 @@ DTC_FLAGS_jh7110-starfive-visionfive-2-v1.3b :=3D -@ dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7100-beaglev-starlight.dtb dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7100-starfive-visionfive-v1.dtb =20 +dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-deepcomputing-fml13v01.dtb dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-milkv-mars.dtb dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-pine64-star64.dtb dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-starfive-visionfive-2-v1.2a.dtb diff --git a/arch/riscv/boot/dts/starfive/jh7110-deepcomputing-fml13v01.dts= b/arch/riscv/boot/dts/starfive/jh7110-deepcomputing-fml13v01.dts new file mode 100644 index 000000000000..30b0715196b6 --- /dev/null +++ b/arch/riscv/boot/dts/starfive/jh7110-deepcomputing-fml13v01.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (C) 2024 DeepComputing (HK) Limited + */ + +/dts-v1/; +#include "jh7110-common.dtsi" + +/ { + model =3D "DeepComputing FML13V01"; + compatible =3D "deepcomputing,fml13v01", "starfive,jh7110"; +}; + +&usb0 { + dr_mode =3D "host"; + status =3D "okay"; +}; --=20 2.34.1