Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2270949lqb; Mon, 27 May 2024 13:55:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9t2W4CvhYep4r1urZ3FRqY0kbaXdzk/8ZmkVNGcK8yElP/ru/P2/uT7Zy2/Rn/TqIB2RGfeGTTgWZfouaaRTm3NsCDcXbFRF2w4cQrQ== X-Google-Smtp-Source: AGHT+IGHqQZ8UuMjtkTMzOjoFySGqZI1YDTTwakdwbP45srKUUwHXUw7vzoGVDVZ/Xl+ugszZDDj X-Received: by 2002:a17:906:4441:b0:a62:2309:824a with SMTP id a640c23a62f3a-a6265010a98mr700068966b.65.1716843305441; Mon, 27 May 2024 13:55:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716843305; cv=pass; d=google.com; s=arc-20160816; b=Ro8g9Gmwn3dxeAaGSSJYy4hor6DCgRXM0xGYam0beHfLcoMjrf0gYc2G+/h0aCp4Eu NTRvU7+7XceFV+be3r99lt3AdHaLpw2ekvbPnzQerFqqjyY5hdA7fz0O81aB0U7EkQmq +OIlkl8Rii+hNIuvVavd+40jBPVKo5AQPzI/rDh48u/ivXWZepcoAAenEGqZtxu72iyt M3ewLmY6DdOrgeBVZpAFwMqUzmK1VufEp09MazARnabJpOoWeUngBIqoBevLAdAvbB1C RTSob5tXCN7q+T236omdB+OV6UCT2vrS5DxkdQdk+wJzNJHZIlClafe326hqPROvAEEE thsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=SBT93JkQcKW4JeNRBbLAIfXPD/Ig9Tn4qUI3/u9Vo58=; fh=SgJwEWTDI31EukXCvRpgG1p9kxUAHSFm0a1kbXgAVaI=; b=U7biI9wiGdFcOory0mTVNG89F5Rkd/D5TMuDvKJWFHg8P4lvmrUICu87hMJQolLCPg 3FILmJDKg207TGFzc1Jv17hGGNymd0Ej/2JSeZzBJdwWvAaaN+XCv30VyTdlyqTwWQRc YcIBjw8gW1qQKw2I5odMdQxV2PeAqfumj+wIgmLmeLL00yKkrLpNM9pwS0vf9ytbz5cN IGgn2Etc9Q45pah5gCwn9MGz89HD9OMJbodO9YZnhaPwdYytTeTHIavXBSME92yOHk0N hwLKS273kZvx8p+yTyNFs+iZL2+DMQuFT06nosYkru4jvLtxD607W7s1uy0jdOmEdCkD XZwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-191403-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191403-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc36e12si412862166b.417.2024.05.27.13.55.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 13:55:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191403-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-191403-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191403-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 211E21F210EB for ; Mon, 27 May 2024 20:55:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEA4A4C618; Mon, 27 May 2024 20:54:57 +0000 (UTC) Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 740FD1DA58; Mon, 27 May 2024 20:54:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716843297; cv=none; b=Tl6hTogLmQIRcHduLnMceG2SJTz8lQVu0IrlzBUHhzAkW8ZimazujHBpxWno0YbPgVLMfr15RIVOshbBBvcGzAQSfXdZy3zhDxtKKVxGYR7u+aVDr7ZXZmYlE4DC4xiRvft4UdGOjB2REVPJZlFb7M8XcMtuGkHceHO4Z+B5Orw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716843297; c=relaxed/simple; bh=qD4hGUyI+cMK31VDk1eSbNSrXXBbMKsY+o+vhgOE3qE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CXwdDp1ssGyNdSgyDTP+IP3iqX1eLZTRVyNzj18YgF/MLVhdimvwUoz/F7/mK9Q6gpEihSTcf1LMb1rlPDm45M3dRRls5W9P03vTG9Pi6PXXtVCiAtAQqJXFQLxS88TKJJXeN3FLougr3TBMW1vaHhziz9g/RQJy3GRkuFDmlMY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Received: from i5e86193d.versanet.de ([94.134.25.61] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sBhMi-0004Xw-Qy; Mon, 27 May 2024 22:54:44 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Sebastian Kropatsch , Jonas Karlman Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] arm64: dts: rockchip: Add CM3588 NAS board Date: Mon, 27 May 2024 22:54:43 +0200 Message-ID: <3609340.LM0AJKV5NW@diego> In-Reply-To: <9f40c748-691b-4a03-bbd6-54870f46bf05@kwiboo.se> References: <20240526214340.8459-1-seb-dev@web.de> <20240526214820.9381-1-seb-dev@web.de> <9f40c748-691b-4a03-bbd6-54870f46bf05@kwiboo.se> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Am Montag, 27. Mai 2024, 21:02:02 CEST schrieb Jonas Karlman: > Hi Sebastian, > > On 2024-05-26 23:48, Sebastian Kropatsch wrote: > > The CM3588 NAS by FriendlyElec pairs the CM3588 compute module, based on > > the Rockchip RK3588 SoC, with the CM3588 NAS Kit carrier board. > > > > Hardware features: > > - Rockchip RK3588 SoC > > - 4GB/8GB/16GB LPDDR4x RAM > > - 64GB eMMC > > - MicroSD card slot > > - 1x RTL8125B 2.5G Ethernet > > - 4x M.2 M-Key with PCIe 3.0 x1 (via bifurcation) for NVMe SSDs > > - 2x USB 3.0 (USB 3.1 Gen1) Type-A, 1x USB 2.0 Type-A > > - 1x USB 3.0 Type-C with DP AltMode support > > - 2x HDMI 2.1 out, 1x HDMI in > > - MIPI-CSI Connector, MIPI-DSI Connector > > - 40-pin GPIO header > > - 4 buttons: power, reset, recovery, MASK, user button > > - 3.5mm Headphone out, 2.0mm PH-2A Mic in > > - 5V Fan connector, PWM buzzer, IR receiver, RTC battery connector > > > > PCIe bifurcation is used to handle all four M.2 sockets at PCIe 3.0 x1 > > speed. Data lane mapping in the DT is done like described in commit > > f8020dfb311d ("phy: rockchip-snps-pcie3: fix bifurcation on rk3588"). > > > > This device tree includes support for eMMC, SD card, ethernet, all USB2 > > and USB3 ports, all four M.2 slots, GPU, RTC, buzzer, UART debugging as > > well as the buttons and LEDs. > > The GPIOs are labeled according to the schematics. > > > > Signed-off-by: Sebastian Kropatsch > > --- > > arch/arm64/boot/dts/rockchip/Makefile | 1 + > > .../boot/dts/rockchip/rk3588-cm3588-nas.dts | 1269 +++++++++++++++++ > > 2 files changed, 1270 insertions(+) > > create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-cm3588-nas.dts > > Because the CM3588 is a SoM and the NAS is a carrier board this should > probably be split in two, cm3588.dtsi and cm3588-nas.dts. also, because of that way too generic name "cm", please incorporate the company name in the filename as well. For the same reason we named the rk3568-wolfvision-pf5.dts that way ;-) [Wolfvision being the company] So maybe: rk3588-friendlyelec-cm3588.dtsi and rk3588-friendlyelec-cm3588-nas.dts > > diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile > > index c544ff507d20..f1ff58bdf2cd 100644 > > --- a/arch/arm64/boot/dts/rockchip/Makefile > > +++ b/arch/arm64/boot/dts/rockchip/Makefile > > @@ -114,6 +114,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-wolfvision-pf5.dtb > > dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-wolfvision-pf5-display-vz.dtbo > > dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-wolfvision-pf5-io-expander.dtbo > > dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-armsom-sige7.dtb > > +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-cm3588-nas.dtb > > dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-coolpi-cm5-evb.dtb > > dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-edgeble-neu6a-io.dtb > > dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-edgeble-neu6a-wifi.dtbo > > diff --git a/arch/arm64/boot/dts/rockchip/rk3588-cm3588-nas.dts b/arch/arm64/boot/dts/rockchip/rk3588-cm3588-nas.dts > > new file mode 100644 > > index 000000000000..6c45b376d001 > > --- /dev/null > > +++ b/arch/arm64/boot/dts/rockchip/rk3588-cm3588-nas.dts > > @@ -0,0 +1,1269 @@ > > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > > +/* > > + * Copyright (c) 2021 Rockchip Electronics Co., Ltd. > > + * Copyright (c) 2023 FriendlyElec Computer Tech. Co., Ltd. > > + * Copyright (c) 2023 Thomas McKahan > > + * Copyright (c) 2024 Sebastian Kropatsch > > + * > > + */ > > + > > +/dts-v1/; > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include "rk3588.dtsi" > > + > > +/ { > > + model = "FriendlyElec CM3588 NAS"; > > + compatible = "friendlyarm,cm3588-nas", "rockchip,rk3588"; > > Maybe this should be something like: > > "friendlyarm,cm3588-nas", "friendlyarm,cm3588", "rockchip,rk3588"; This also needs an update of the binding document. Please use a similar notion as the other som + baseboard entries (const for the som + enum with one entry with the baseboard) [...] > > +/* Connected to 5V Fan */ > > +&pwm1 { > > + pinctrl-0 = <&pwm1m1_pins>; > > pinctrl-names is missing, should typically always be defined together > with pinctrl-X props, same for multiple nodes. A rationale being that you don't want the soc dtsi in a later stage adding a possible pinctrl-1 with the board only overriding the pinctrl-0. When you set the pinctrl-names as well, you get independent from that. Thanks Heiko