From mboxrd@z Thu Jan 1 00:00:00 1970 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 37381C982F1 for ; Tue, 22 Sep 2026 08:02:22 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XzHQOxIM7WAazK/X2hIVw1fnQKFnxlCOoNS6e8tzaI4=; b=SqU3dTQ0OUWtFs P5q2NW5W8wtb2OAe/lkBsZuhStleJ+MnLpcShIe59im/GIGfYI0ImgYOZRI/nWewrAsjX//oBoOPH Vc0bBTYGgKUkPwuhpfyNb8WvpTpt31s7Z0Ra/9ckQ46Z5bbUz4N3warOOUA79IkAWgKlxetuQ0fZR ik1CCW0pgA6H45axite4suZBGNDj6ECA2zujX71DBgPIA+R9XUZtHa580CgMixrH8SVy2H/kkH36B qEZLh9GuvIOk5iAIRyRWWDSSejRuZWsupBvSbl0iHiv383GhjzYAJ8H3RH6FqW4gdhSvvmN8ACVIL VurO7V+hFtEK4V9E2U1A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x8vSG-00000004alv-0BPX; Tue, 22 Sep 2026 08:02:20 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x8vRe-00000004aKX-1CJ2 for linux-rockchip@bombadil.infradead.org; Tue, 22 Sep 2026 08:01:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=gRVzD7/e6IROrFrMTSU32rtgAKkxa5C4zngEyHP7gSA=; b=RLc+W/l0JE9IoOdYii5WXxGHm5 R5WoAvhJOMOYU54/JvpKg8/GldO5Yf1G0695i8D/JRv2RxGowxJAp/qLWl3tDGhMfhUn9o5CV4ru8 pklawIS0Ur66fllo4/HSbzdHwVQfurdSqLhSSMvvztM5CP+mWGB9wKouT+aM2sRLec8K1Ni76a4oz 8vAiFNE9pUlEocPBJvznmjucBhbltMmnN67D7FIM3+OmdCWxDSZ1P0Uu+9rOrPwvhOtzug0uuAibL E5v/i62zyTk4NmkEeNAZx+poEnTrn7qIWn+kyxAQyF5hwuV1J0+pQ4aM3jMFLMvz3Tt6RwRhMS3zo XKqjld2g==; Received: from mail-wr2-x10.google.com ([2a00:1450:4864:30::10]) by desiato.infradead.org with esmtps (Exim 4.99.2 #2 (Red Hat Linux)) id 1x8vRY-0000000DEfd-3fik for linux-rockchip@lists.infradead.org; Tue, 22 Sep 2026 08:01:40 +0000 Received: by mail-wr2-x10.google.com with SMTP id ffacd0b85a97d-48704fc0141so349563f8f.2 for ; Tue, 22 Sep 2026 01:01:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790064095; x=1790668895; darn=lists.infradead.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:content-type; bh=gRVzD7/e6IROrFrMTSU32rtgAKkxa5C4zngEyHP7gSA=; b=TaUlBuZWTQbgrHIrZ8S7maC+m03FyWJ5SVR7i6Pa7Ef2VKntOXBPlJ+ul4eyhy5UlQ 3rnVKQWoVIA2XysOT1TTZGofLOOv9qyFEeG2Tx1tAqkMa6k3RY/htkyeW+ZX3qT1mUGi e0NN9ic2lC2bXJRhONu+g8+7J95fQ+yiIiQEYGZ96xMsZQ8yO0r8t0YMHdzvvGrV0rHj VWGOFNF3q5kp2zz6RlxzhEkZb/1F6HzmupU1E7An0kbezd92nGSpqYc/QrwLWr92nMXo 4yKlOZW5P9nFF3oZJNrcdEHDHz7nxqhpF5KuZ3pIrDiliRojSolVloNqXspf2bdZZqQC 7Wuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790064095; x=1790668895; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=gRVzD7/e6IROrFrMTSU32rtgAKkxa5C4zngEyHP7gSA=; b=yurHRZHkmx1VblpLcWVtWYTvLPQKY7Jd060eNXnjYf3evfdGUbS1cD1NpCO8gY+Qot OY+Fkbh9Zy7CihFzek0ABg6JmGM6zJijgWuIkUC5VNNJQsTA0gaUgNPHgTtvxOi2i+26 jQuxAyx2MMzPUkhR0x9ue9jYenhELR5c4w3YCGUtmrdakUkdcymu2hSLPaM34I8owXW3 PH8Q3FF8UYwxRpwCd9Ijk0DajAD3XM+9PlwkauRPhWTi19rTfpLWwOP6yDa7KOGyVsG3 lWUSWjQ0JChJHTeKU2rbeqA/hTFwAT3BZlIDFjhqmVsvUlGGVa3ITHK0ZT8Me7RXENBI M5NQ== X-Forwarded-Encrypted: i=1; AKwUvBwNPtLecAoWF/uzZoLMOdAoQlKgzZiFelOaEaTkuJr1mmLN3aPTI/B6pQy1aPGNyUxmqQwHFRruz2tCuglBdA==@lists.infradead.org X-Gm-Message-State: AFuF++nuRsB2hyF99K+/GLIhdyzdwmNaQZBatiyukRrjmkqemGY68pRs i3UQoM3+VYJXw0bEtsD/GqhPr8rjNLhfflY5aG8tz4ssS3esLUov3txr X-Gm-Gg: AYBFou31uM2xsn8DzzBLqh5chhEnM/tvlZukNhqzqaqn9CvwJEhGZgtjh/AdWaUHop/ bXCY28oC2aaFTMG4BD/pmqkxs5Ng1uDwxuEuw8fLrzK2pnjKXbfagXq2aYh0WmxsmYCIckYqtTZ 3biaTScROm7ij4yNYsmO+xh5zGuQskIapqw/sl/m9HtU7PVGgLsECcmc7emZ/9c7XoVv69HjAPI z2xcdCaRsonxgPpkRc+mv2ws0WA4R+8rX/QNox2LEHpO8PhPvlkDCbtYYHcA9utS8+/KXhls+vp f/ZxoJWh6lGOMvIZFl/kehpDGF0F3d5YWGgrXC9NAn/kuVwXSKRjTZJ8uyZ+aNaRDs7gOkvARtE 5lwsCSmfwDZMtL0Eve8e2gMlIuKL2GP72C8HypUVr0/JNWjiW3+yFXVMlMsGnPyYtsAaH92Ynju lQZZHRlvZrAzjFFJFauGoy4YP5H2dW45aCCEKxmJyXg66XQgjLySNwohqF9gfcG9dBNnVfTBSO8 /C1hlf5rn+JNBMWqEE4kwjxLlcgONfj2G4eACrfHRKqpawMNjYHQV5NUqePWvfq2izz7BDVdIQh HWc= X-Received: by 2002:a05:600c:609b:b0:49c:f9b8:bae0 with SMTP id 5b1f17b1804b1-49fc7f2bdc8mr199260285e9.2.1790064093776; Tue, 22 Sep 2026 01:01:33 -0700 (PDT) Received: from OrangePi5-Plus.BB-HOME (20014C4E1B80530056971C6280202175.dsl.pool.telekom.hu. [2001:4c4e:1b80:5300:5697:1c62:8020:2175]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fdaaf97e2sm18248625e9.2.2026.09.22.01.01.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2026 01:01:33 -0700 (PDT) From: Igor Paunovic To: Tomeu Vizoso , Oded Gabbay , Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jeff Hugo , Robert Foss , Sidong Yang , Diederik de Haas , Sebastian Reichel , Jiaxing Hu , Nicolas Dufresne , Jonas Karlman , Guangshuo Li , =?UTF-8?q?H=C3=BCseyin=20BIYIK?= , dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Igor Paunovic Subject: [PATCH v2 06/11] dt-bindings: npu: rockchip: allow DVFS and thermal properties Date: Tue, 22 Sep 2026 10:01:09 +0200 Message-ID: <20260922080114.44662-7-royalnet026@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260922080114.44662-1-royalnet026@gmail.com> References: <20260922080114.44662-1-royalnet026@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260922_090137_019993_6E70E420 X-CRM114-Status: GOOD ( 16.10 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The three NPU cores on the RK3588 are fed by a single clock and a single supply, and the firmware accepts a fixed set of rates for that clock. Describing those rates as an operating-points-v2 table is what lets a driver scale the NPU instead of leaving it at whatever rate the bootloader set, so allow the property on the core node. Throttling the NPU from a thermal zone needs a core node to be usable as a cooling device, so allow #cooling-cells too. The OPP table belongs on every core, with opp-shared: the cores have no clock of their own, and one shared table for one shared clock is the same shape a CPU cluster uses. #cooling-cells goes on one core only, the one a thermal zone's cooling map names, because the cores cannot be throttled independently. Naming one representative node for a shared frequency domain is the established shape, as in "Cpufreq cooling device on CPU0" in Documentation/devicetree/bindings/thermal/thermal-cooling-devices.yaml. The schema cannot enforce which core carries #cooling-cells, because all three cores share a compatible string and a node name pattern, so that stays a devicetree convention. That is the same situation as for CPU cooling, where cpus.yaml does not restrict #cooling-cells to cpu@0 either. The example gains #cooling-cells; the operating-points-v2 property is exercised by the RK3588 devicetree later in this series. Assisted-by: LLM checkpatch dt_binding_check Signed-off-by: Igor Paunovic Acked-by: Conor Dooley --- v2: the text on where the properties go is rewritten for opp-shared on all three cores, following Nicolas Dufresne's review of v1 3/7. The only change to the schema file is the wording of the #cooling-cells description; the constraints and the example are unchanged. Conor, your Ack is kept on that basis; please say if it no longer holds. .../bindings/npu/rockchip,rk3588-rknn-core.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/npu/rockchip,rk3588-rknn-core.yaml b/Documentation/devicetree/bindings/npu/rockchip,rk3588-rknn-core.yaml index caca2a4903cd1..beba1896156f5 100644 --- a/Documentation/devicetree/bindings/npu/rockchip,rk3588-rknn-core.yaml +++ b/Documentation/devicetree/bindings/npu/rockchip,rk3588-rknn-core.yaml @@ -42,6 +42,13 @@ properties: - const: npu - const: pclk + "#cooling-cells": + description: + Present on one core only, the first, which stands for the shared NPU + clock as a cooling device. The other cores have no clock of their own + and cannot be throttled independently of it. + const: 2 + interrupts: maxItems: 1 @@ -50,6 +57,8 @@ properties: npu-supply: true + operating-points-v2: true + power-domains: maxItems: 1 @@ -100,6 +109,7 @@ examples: clocks = <&cru ACLK_NPU0>, <&cru HCLK_NPU0>, <&scmi_clk SCMI_CLK_NPU>, <&cru PCLK_NPU_ROOT>; clock-names = "aclk", "hclk", "npu", "pclk"; + #cooling-cells = <2>; interrupts = ; iommus = <&rknn_mmu_0>; npu-supply = <&vdd_npu_s0>; -- 2.43.0 _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip