Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp625593lqj; Sun, 2 Jun 2024 14:31:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVb9K45ZhvVCXqzidsOXCch/ea1+0Mc0rk3VHzWebaqdYi2mYQC1sU6DGCYIXdKcZJPvPdK+u3OiprArHE6ts94yJG56V4P6sajoH74NQ== X-Google-Smtp-Source: AGHT+IGU5NDMNcU8htT6K9qojSLVEC7g9RcXw4ffJwTUB7FdgifE+DPlzBWbj7rxoppUPjrsDFSm X-Received: by 2002:a05:6a21:7887:b0:1b0:14ee:3b1c with SMTP id adf61e73a8af0-1b26f117464mr9586078637.22.1717363883971; Sun, 02 Jun 2024 14:31:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717363883; cv=pass; d=google.com; s=arc-20160816; b=0TKnm3bET6kcwwaRmxGNAgZfRTHJBtPKyOhnQ62D84b1B2jHORkySm4L83hQ8l6Qrv xIRkQnduOuPbd3N0HOF9McY1+jIG3i/ue7+EKg8j9TUDiL3ocP8B0Q7ayHCQdgrIbfgb elQqRQNzJIzVXOCVkZPVgMYElMzeUgUgg8AOW3TlDUffwVQta2cOJ5sYgAd4l1BrDjPV YVTKgoeiKu+VShDChQ6T/oOx5jPkpVW2OfslE5ic9CgrmqHJJH3N4JLA9Mfi1BJjavOP sj17I7t8/J9igLG+DmfM1+xdBxDTs5na4zmogsYW/ocqcOEgFlJ8nf8NU0Zu850+NgPe on4g== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=dUahY/hRBH+ZOC5fb1aBpG/quJ5g6aXEX6mN+KgrpeI=; fh=ht6KGXez9FfIF63jxOCYtHLlIzC4NAsmIqBFCO9LhaU=; b=yh26lODm0k+dmXN5V1QEZXIwbnUcFo9x+OF0kUJsoRpnEIRuojHVjoJmOmQJGEPOI9 IN9MgJo/3Ilepi2LxlyXLDQdSPz5WpYpGDq5FYchoFGoXhCj49GasJSg6znT+emfxa0i NykG7cYkgLkQwB9MN3OyHFBxc5pcUAx4Nc5VqIXeuR+fOIia0C+GsiAJgjnQdJtU6Njc pYSBFT3UxT/uMQzUOyspBHi78+/l2fL0TDKDGOPJlfvlcKupEX3g1/VhsMQo11NMT+l9 cFfAZCHveKMcrxiZyIw3U+x0mNz/gqQ05uEkg1pJnJsUTCbYconobligIj04c4ksL9Cr vaQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mail.de header.s=mailde202009 header.b=JiLWe6aO; arc=pass (i=1 spf=pass spfdomain=mail.de dkim=pass dkdomain=mail.de dmarc=pass fromdomain=mail.de); spf=pass (google.com: domain of linux-kernel+bounces-198447-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198447-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mail.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35c73c418si5342319a12.746.2024.06.02.14.31.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 14:31:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198447-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mail.de header.s=mailde202009 header.b=JiLWe6aO; arc=pass (i=1 spf=pass spfdomain=mail.de dkim=pass dkdomain=mail.de dmarc=pass fromdomain=mail.de); spf=pass (google.com: domain of linux-kernel+bounces-198447-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198447-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mail.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 98ED128142E for ; Sun, 2 Jun 2024 21:31:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9DF1E7441E; Sun, 2 Jun 2024 21:31:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mail.de header.i=@mail.de header.b="JiLWe6aO" Received: from shout12.mail.de (shout12.mail.de [62.201.172.58]) (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 53859EDF; Sun, 2 Jun 2024 21:31:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.201.172.58 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717363875; cv=none; b=heoWNSSXHP1qwqLlz232hdhLGIhwDl9duL1Wa+SZLUpDfnGRSCyufWJ2UZKGDuPVK+rQ/yBvVRRm2E8JtdV5jALaUgftPWORDKd/3ugq8Bjn2n6cQZHMRYKf0xC8tjwx5+Tawh9Jlw0kDVh7SOjuXFsUcEVNsR6s5ZTRzGHYY+M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717363875; c=relaxed/simple; bh=QGydLqg5nD7goLUdbsX1bHCF1IzK/yJxggqZg1PvGhQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TURl7SBJx1jSuU9rXoK4VudqVSbaQNKF7WDXDHVsQlmbDrmqRrBpfYazmuljs6doRG5rRijQQIjn4U/GPKCWKTfqXAMOAsj1s2+Nf9DhjsINpoVbecwffELdwrkZVtmtSxEM599sRKA6Cr/8aAo+OkklQQKP+Q0OWRKdjVSzS0I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mail.de; spf=pass smtp.mailfrom=mail.de; dkim=pass (2048-bit key) header.d=mail.de header.i=@mail.de header.b=JiLWe6aO; arc=none smtp.client-ip=62.201.172.58 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mail.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mail.de Received: from shout02.mail.de (unknown [10.0.120.222]) by shout12.mail.de (Postfix) with ESMTPS id 5EC0C240AF1; Sun, 2 Jun 2024 23:22:33 +0200 (CEST) Received: from postfix03.mail.de (postfix03.bt.mail.de [10.0.121.127]) by shout02.mail.de (Postfix) with ESMTP id 3D0A3240BF0; Sun, 2 Jun 2024 23:22:33 +0200 (CEST) Received: from smtp01.mail.de (smtp04.bt.mail.de [10.0.121.214]) by postfix03.mail.de (Postfix) with ESMTP id 1AC1C80065; Sun, 2 Jun 2024 23:22:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.de; s=mailde202009; t=1717363353; bh=QGydLqg5nD7goLUdbsX1bHCF1IzK/yJxggqZg1PvGhQ=; h=From:To:Cc:Subject:Date:Message-ID:From:To:CC:Subject:Reply-To; b=JiLWe6aOXiY8MqxPHwwnpommmxQuAzd9xnFV9HqgiODg0WYoFanwH2ubKSGTvfQAn r1EYSOfAzkEt2yOmIQmLqProJwZRKOVjSt9LEWzs2B75Q0mVv+5hCftr8cShGio/Ef K0BXKnT3UOUxAYfX98s2xDdOMHCzHDzmchEev/TkUqkUubgFs/ehDMukTuWlOX+MSO IqQco5uLmKjzJVL2aHtgGiJsoUmFUCF6xB/zA+l/6Hb2HOWq9Q9u5tSkohwQK8pNT0 gclExeVxIc9FrsrZ7ipI0UViFgfF92OO67qdWre1j4AAiHeUYPlSuSTuOkNFhlnUpI 1u4H5WACYCLtA== Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp01.mail.de (Postfix) with ESMTPSA id 1721F2409AB; Sun, 2 Jun 2024 23:22:28 +0200 (CEST) From: Sebastian Kropatsch To: Heiko Stuebner , linux-rockchip@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , Jonas Karlman , Dragan Simic , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sebastian Kropatsch Subject: [PATCH v2 0/2] RK3588: FriendlyElec CM3588 NAS board support Date: Sun, 2 Jun 2024 22:08:18 +0200 Message-ID: <20240602211901.237769-1-seb-dev@mail.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 2883 X-purgate-ID: 154282::1717363352-1CB7D338-9AE4CCBC/0/0 Hello! This adds support for the FriendlyElec CM3588 NAS board. The board's device tree makes use of the latest upstream advances on the RK3588 like USB3 DRD and GPU support as well as the latest Rockchip PCIe driver bifurcation fixes, but some features such as thermal management and HDMI will have to be added later when SoC support for these features is merged. Since the hardware has similarities with FriendlyElec's NanoPC T6, the device tree for the CM3588 NAS took some inspirations from and also partially shares some sections with the NanoPC T6 tree. Minor issue: The device enumeration of NVMe SSDs plugged into the four PCIe M.2 slots does not follow the order of the slots on the board: The slots are physically named from 1 to 4, top to bottom. However, they do not show up in this same order in Linux when all slots are polulated: - SSD in physical slot 1 shows up as nvme0 - SSD in physical slot 2 shows up as nvme2 - SSD in physical slot 3 shows up as nvme1 - SSD in physical slot 4 shows up as nvme3 This is the same order in which the data lanes are mapped for PCIe bifurcation (dts property: data-lanes = <1 3 2 4>). I could not solve this by using aliases for the PCIe nodes in the device tree. Perhaps this is something that can only be solved at driver level? I am not sure if this behaviour is even considered a bug or if this is intended behaviour by design. Devicetree validation: `make CHECK_DTBS=y rockchip/rk3588-cm3588-nas.dtb` does not give any warnings or errors, tested on Linux next-20240523. Best regards, Sebastian Kropatsch --- Changes in v2: - split dts into two files (CM and carrier board) - rename fixed regulators with preferred 'regulator-' prefix - use preferred 'gpios' property instead of 'gpio' - add 'pinctrl-names' property for every pinctrl - add several pwm nodes - drop HMDI PHY and VOP support - drop unneeded &wdt node - remove i2c4 since it's not availabe according to the schematics - &sdhci: drop 'full-pwr-cycle-in-suspend' flag - &sdmmc: drop 'cap-mmc-highspeed' flag because of no-mmc - &sdmmc: drop 'cd-gpios' property, unneeded w/ using sdmmc_det pinctrl - &usb_host0_xhci, &usb_host2_xhci: remove default 'dr_mode' property --- Sebastian Kropatsch (2): dt-bindings: arm: rockchip: Add FriendlyElec CM3588 NAS arm64: dts: rockchip: Add FriendlyElec CM3588 NAS board .../devicetree/bindings/arm/rockchip.yaml | 7 + arch/arm64/boot/dts/rockchip/Makefile | 1 + .../rk3588-friendlyelec-cm3588-nas.dts | 705 ++++++++++++++++++ .../rockchip/rk3588-friendlyelec-cm3588.dtsi | 660 ++++++++++++++++ 4 files changed, 1373 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-friendlyelec-cm3588-nas.dts create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-friendlyelec-cm3588.dtsi -- 2.43.0