From nobody Sat Oct 4 08:06:51 2025 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 8655325485F for ; Mon, 18 Aug 2025 18:53:42 +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=1755543225; cv=none; b=K93fT/9oiQ/Gy6D1HVwU+zOGtsyrY/9RPCKRWcymwTgdJvKOmnmOqRMblYlFFUmLy/TBI5e7W3m35gkS5rn/ZaMW1rA5cgFO1slkoxRXSQmIYtNRoXJBbEibDzZX+pyHXGiFFBnalJ6PEjyGT8F7vwSh1zQ7bJyM8Eb9qT07aKc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755543225; c=relaxed/simple; bh=DK1eafKflS1VMkgKFpYRZQJtGcCG+9RUeQyxkEG/CZY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Xkm4zIEH6eEte8uxvb0hqB1M57IK4tfF08K1yGEX7X5GicwfIaK/nBWN9o66bOdEAXmtmbXuAyL1J3MJR6XvMchPvKLbNrsCPZegbMFPWIfzS6MMdigxRj/e4+0LFl2X20/XsvhHxevFQcH01dWjEmzSAz2+RHOix9sSqSTejEA= 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; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.b=adJ7g3Kj; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.b="adJ7g3Kj" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sntech.de; s=gloria202408; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type; bh=OH1cdcIwLbHj9b9TDgmclt0bqqFEVSxJAiUw7x5ysn8=; b=adJ7g3Kjn4P3LsdRmu3hk6HtaR DrZGWCSghynMpZaa3+n+fwAGPMmSNxpR+z6JzqraYuEqykZSoccVE3GIeaNBzottpN+cDc9Xv/p2m NW17PtYVdgEMzbEveSZSbS2suFgeq/uCC763qnGqtFJoR1Wd1zi4crI3N5Mc6M0dgVaGCJkYr9sVU K7HtTcMHhMPlr/c21kjAO7RgH2rsd4WDBM0JQYbLsDYBMyHNxI+UwKAMocos1ZQieiOQ/B6CUSX6z YUF361pd9RfG8FYQhNhpy2Qz9SDUZP+KGZHy6UxT2oijRDzy/6uM2Jb2A32wBcx01V9lT6Eos+QQn HuUQoEoA==; Received: from i53875ad4.versanet.de ([83.135.90.212] helo=phil..) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uo4zE-0000jH-Qm; Mon, 18 Aug 2025 20:53:40 +0200 From: Heiko Stuebner To: heiko@sntech.de Cc: linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: rockchip: move cpu_thermal node to the correct position Date: Mon, 18 Aug 2025 20:53:36 +0200 Message-ID: <20250818185337.2584590-2-heiko@sntech.de> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250818185337.2584590-1-heiko@sntech.de> References: <20250818185337.2584590-1-heiko@sntech.de> 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" The &cpu_thermal node was added at the wrong position, move it to the correctly sorted one. Signed-off-by: Heiko Stuebner --- .../boot/dts/rockchip/rk3568-qnap-ts433.dts | 96 +++++++++---------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts b/arch/arm6= 4/boot/dts/rockchip/rk3568-qnap-ts433.dts index 6ae4316761c4..5656554ca284 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts @@ -196,6 +196,54 @@ &cpu3 { cpu-supply =3D <&vdd_cpu>; }; =20 +/* + * The MCU can provide system temperature too, but only by polling and of + * course also cannot set trip points. So attach to the cpu thermal-zone + * instead to control the fan. + */ +&cpu_thermal { + trips { + case_fan0: case-fan0 { + hysteresis =3D <2000>; + temperature =3D <35000>; + type =3D "active"; + }; + + case_fan1: case-fan1 { + hysteresis =3D <2000>; + temperature =3D <45000>; + type =3D "active"; + }; + + case_fan2: case-fan2 { + hysteresis =3D <2000>; + temperature =3D <65000>; + type =3D "active"; + }; + }; + + cooling-maps { + /* + * Always provide some air movement, due to small case + * full of harddrives. + */ + map1 { + cooling-device =3D <&fan THERMAL_NO_LIMIT 1>; + trip =3D <&case_fan0>; + }; + + map2 { + cooling-device =3D <&fan 2 3>; + trip =3D <&case_fan1>; + }; + + map3 { + cooling-device =3D <&fan 4 THERMAL_NO_LIMIT>; + trip =3D <&case_fan2>; + }; + }; +}; + &gmac0 { assigned-clocks =3D <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>; assigned-clock-parents =3D <&cru SCLK_GMAC0_RGMII_SPEED>, <&cru CLK_MAC0_= 2TOP>; @@ -492,54 +540,6 @@ rgmii_phy0: ethernet-phy@3 { }; }; =20 -/* - * The MCU can provide system temperature too, but only by polling and of - * course also cannot set trip points. So attach to the cpu thermal-zone - * instead to control the fan. - */ -&cpu_thermal { - trips { - case_fan0: case-fan0 { - hysteresis =3D <2000>; - temperature =3D <35000>; - type =3D "active"; - }; - - case_fan1: case-fan1 { - hysteresis =3D <2000>; - temperature =3D <45000>; - type =3D "active"; - }; - - case_fan2: case-fan2 { - hysteresis =3D <2000>; - temperature =3D <65000>; - type =3D "active"; - }; - }; - - cooling-maps { - /* - * Always provide some air movement, due to small case - * full of harddrives. - */ - map1 { - cooling-device =3D <&fan THERMAL_NO_LIMIT 1>; - trip =3D <&case_fan0>; - }; - - map2 { - cooling-device =3D <&fan 2 3>; - trip =3D <&case_fan1>; - }; - - map3 { - cooling-device =3D <&fan 4 THERMAL_NO_LIMIT>; - trip =3D <&case_fan2>; - }; - }; -}; - &pcie30phy { data-lanes =3D <1 2>; status =3D "okay"; --=20 2.47.2 From nobody Sat Oct 4 08:06:51 2025 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 21A321D9663 for ; Mon, 18 Aug 2025 18:53:42 +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=1755543224; cv=none; b=aNlKX60bqTY1mABzn2YzGed0P842f0TV8nRpi09Fj92aU9onyxgA+H5xWFQ35+vSsobVnrp/FAMOtEJckfe6Ffk03eZ6wSscQdgHX+BXymBFZ7L99IEMe7ScBH/Yv0oq11Y6VvcNqiFrjtlD2ESpqFGTEJTCjZtkFzjqlB7Birk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755543224; c=relaxed/simple; bh=mL2MyruYHzSNLfEDksFH+ASX0WWW3O6Vdh9J4O9okL0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mB9Upm/gXbrkpPEt5NsaZhXX43I/y4pLpNJUKbJEK3F05vM9ocjRuwbylWRjo//Uvln40t8zHhZ9Ok+XK5SFZ7Ymd/hW7LJlTcVHnzHIVu1wSv8aCqbM4RQMWN3Ln9c0CQNoUamZrEeDw2ScHbhs69jfxCfdvUZimh6LY7qpzkM= 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; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.b=j95NDIOa; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.b="j95NDIOa" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sntech.de; s=gloria202408; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type; bh=ZxfW0g9X+oPT/UxlWtvFfsT3/2mtKXs3JrOxnk3I7Ek=; b=j95NDIOa/mCgLPoh+oZgvtNCpO FNHgTTgvGFcOxID5a45wUS9lzXuGAh4+NlPHyOdHhegSCSPnppJC9+lMtREVWrQfR6m4whLO0sINc 54ruiewHgQ8lSbE5EUPKvmD4qM/JlZKoR7N1kL/EExcjD4FtrZ7QniO1xc1rTb12s2Lla27EJETYt 7B60p7L/GTLtB4R7tImLvdhHNSAsbq6B9/xBXo87o/Bq5cHVvZopaFUiExBTEba7GFfMrSRHE5f6z 0+fDLseIsALw/nOslqEIut3gT7n3XeIQcaQitMwbKcr+wPujJdMHsgCvM3ZBlj/+cOw6kXKEIVbIb C+oH0gKQ==; Received: from i53875ad4.versanet.de ([83.135.90.212] helo=phil..) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uo4zF-0000jH-30; Mon, 18 Aug 2025 20:53:41 +0200 From: Heiko Stuebner To: heiko@sntech.de Cc: linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: rockchip: describe mcu eeprom cells on rk3568-ts433 Date: Mon, 18 Aug 2025 20:53:37 +0200 Message-ID: <20250818185337.2584590-3-heiko@sntech.de> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250818185337.2584590-1-heiko@sntech.de> References: <20250818185337.2584590-1-heiko@sntech.de> 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" The MCU's eeprom contains the unit's serial and a number of slots for mac-addresses. As the MCU seems to be used in different devices, up to 8 mac addresses can live there and the unused slots are actually initialized with empty mac-address strings like 00:00:00:00:05:09 . Interestingly on the TS-433, the PCIe ethernet adapter brings its own memory to hold its mac, and the gmac0 is supposed to get its mac from the second mac-slot, while the first one stays empty. Signed-off-by: Heiko Stuebner --- .../boot/dts/rockchip/rk3568-qnap-ts433.dts | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts b/arch/arm6= 4/boot/dts/rockchip/rk3568-qnap-ts433.dts index 5656554ca284..224db87973b2 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts @@ -655,6 +655,68 @@ fan: fan-0 { #cooling-cells =3D <2>; cooling-levels =3D <0 64 89 128 166 204 221 238>; }; + + nvmem-layout { + compatible =3D "fixed-layout"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + serial-number@0 { + reg =3D <0x0 0x13>; + }; + + ext-port@22 { + reg =3D <0x22 0x2>; + }; + + mac0: mac@24 { + compatible =3D "mac-base"; + reg =3D <0x24 0x11>; + #nvmem-cell-cells =3D <1>; + }; + + mac1: mac@35 { + compatible =3D "mac-base"; + reg =3D <0x35 0x11>; + #nvmem-cell-cells =3D <1>; + }; + + mac2: mac@46 { + compatible =3D "mac-base"; + reg =3D <0x46 0x11>; + #nvmem-cell-cells =3D <1>; + }; + + mac3: mac@57 { + compatible =3D "mac-base"; + reg =3D <0x57 0x11>; + #nvmem-cell-cells =3D <1>; + }; + + mac4: mac@68 { + compatible =3D "mac-base"; + reg =3D <0x68 0x11>; + #nvmem-cell-cells =3D <1>; + }; + + mac5: mac@79 { + compatible =3D "mac-base"; + reg =3D <0x79 0x11>; + #nvmem-cell-cells =3D <1>; + }; + + mac6: mac@8a { + compatible =3D "mac-base"; + reg =3D <0x8a 0x11>; + #nvmem-cell-cells =3D <1>; + }; + + mac7: mac@9b { + compatible =3D "mac-base"; + reg =3D <0x9b 0x11>; + #nvmem-cell-cells =3D <1>; + }; + }; }; }; =20 --=20 2.47.2