From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 55AF7385D96 for ; Mon, 10 Aug 2026 14:31:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786372278; cv=none; b=YNThOzUKvbqoky7qk2FdR1zPTYPJMf2Yp7dUiQXsRkaZpqJrseBkWqYK2yv3z/J35M967BeAtf+Qbiwwuy5TAcEHetjOr+s2ENE5uJT9Es1yv6djl+VImVXpaATIkFiQVqThwdb/i6/5pmRI1ZYNOJ+iPI17TidCYmidF0jjyrc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786372278; c=relaxed/simple; bh=ve2/3Qe7TzCeiCFTIJQix2+e4EjyWcJh43zJia6ILwg=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=hkBIhqsG6wQUV0cjELDF5Xln67WOEo5HlqIzkc0HmI4A5JuIKTn9Q628FiHO62sEP6qHoZVrzzw1N5tlO1xhyUF9k5BN7C8Tkxk5d4UDc+iJ6z36KJs2ZhLms6HhQWcg54Qcc/2brQ60JvkKN5d3nsj3fzSXjUbfYUVNn/PBnEA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=D9H+zz9Y; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="D9H+zz9Y" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4994c49f588so18329765e9.0 for ; Mon, 10 Aug 2026 07:31:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786372264; x=1786977064; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=8/C2k4gMz6ir480aiTbVOqg/q3uuCJAvEhu30au5mPM=; b=D9H+zz9YESGSaoxDbMGeSR11z314fpkrTMNiu/BXa7PUtDq0747u7lRIUBtgGsZ2lg 4tAOos5+WXQSxAV3Mk0Cqq5g+RGbjsJCL3bItQ5VChKfboKxsSmEoDKd46FURurhiNPG WkNsa2IBr/CCrmQH0orCF0IQsYO/WFkn5rN/NKiX6Q40sn7MuKhjBwGE544LLNHSCd4G eXt7uZh1qomlXyygyn7NFJwr/XtGqw4PNKtRMkuJu390fXrG5+nobbS8j1VbMUlI4B7S 2m1u419SBGNumbvHakidJHvqngumPMldSD0+zzJicLq5ttaaWDEUOnZRf7ytiyuW8LHr FzKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786372264; x=1786977064; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=8/C2k4gMz6ir480aiTbVOqg/q3uuCJAvEhu30au5mPM=; b=AaQvqRgWs0tl1G2K+nmeKltRMsUyhGoG+u/lM50s/hxeV5hRU3PStx7oXRgRVfU/Wz kBqObvycgmob8FLPGXGdHxmdjKGMQKAIX1BUwi77Nxt/e2xOfPX5VBUDfi6v09Pp4xMe JvJ5HvaLnTBcwf3ukAnA4QsQtFbiGmxon8pjNpDnGAYn3t9sMvtvek6wgt6owPFxyXuD klYsW+XHU2LVWAYhoIogmx7DPNWVIv0g3v0KOOi3wSHw4Y1rEzZZdZev+vi5+KEHUrMp 4gn/ZkP+zpqJHuF3mwem/SUs2gPBe91rHHpoxUl+BdO5GRZecQlUxxEDvvpHNi5oIxnG GDFw== X-Forwarded-Encrypted: i=1; AHgh+Rq9nt3TULcdh1z33PwaHhO25WxS70L1CkMy0UGcGYGoStg2bZRWEk/C6Whc/Ll/uWGVsQyiJPXmpODbIhw=@vger.kernel.org X-Gm-Message-State: AOJu0YylwSMFgeEay3nuKz2MicelPIa8uWgbDdn74x4faWLlj3p2xTvK hFL9KzVdWXEvNEHFKhTWIE2jXlYE3eSrr6ELS6QcSP6Mw83SBBk+DhTw X-Gm-Gg: AR+sD13/udT1oM/zYOIwJIeVMpjRgb1oBfOGN86X9J42ZFhIrcfaNtV+L88/v3JjNIw q3jgJ9NyP7xQYzxRmfjr1vo+R/5FtpiStTZI1XvSXlUqI+H4T2sAEQQPLYUS0bXZbZR6rD+yx7e JiAvndr25lwXjCce+FjmwgCnrmWRcKsHC8ynTVKsqU2IBoyDD+yybGNf8Isr1ubJZvVncrxJaJD e+RrCJ0ej1hrs1K43/8Ls7cZhxYky/lF8nFwtpDHwnn7tkWkcCG8HZRE+6TE3BYK58aSgSsqhiy pfhlFcgDeSPAI8JFmUv/jmowZqyhQX5Wp4XIni/3D0JaDBWIyeff2CfwRclbkHHosg4Mo2X03m2 SBkjKxpDpRcV9clHi0DQwhXPrV65OzgsJAxe+USnxfBv2o2bNWU/GiephhaaUmOUJfeMPxM72xe a16SEIpaSzsNdcTz/91cyc697LoU8PI3VREZdmiKmBGIgCXVHmiryGJb4IOhSW5SSBLohSnblH8 WFaqhNVgcc40nAo8aYl+8WHivwPvs4r3CNr6LY3SOqBJb0S X-Received: by 2002:a05:600c:4e8e:b0:497:ff5a:38b9 with SMTP id 5b1f17b1804b1-4996247e640mr219037545e9.9.1786372263301; Mon, 10 Aug 2026 07:31:03 -0700 (PDT) Received: from Ansuel-XPS24.localdomain (host-87-20-3-207.retail.telecomitalia.it. [87.20.3.207]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4995420bd1csm438950695e9.3.2026.08.10.07.31.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Aug 2026 07:31:02 -0700 (PDT) From: Christian Marangi To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Christian Marangi , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: devfreq: Document support for Airoha Subsystem devfreq Date: Mon, 10 Aug 2026 16:30:54 +0200 Message-ID: <20260810143057.651478-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Airoha SoC contains multiple subsystem that are scaled to a specific OPP taking the CPU clock as reference. Such sybsystem can enter idle or performance state based on the system load and power consumption conditions. Example of such subsystem are GSW (Gigabit Switch), NPU (Custom Risc Co-Processor for Network acceleration), SOE (Crypto Module) BUS... Document all the required property and provide examples for the various subsystem OPP + devfreq nodes. Signed-off-by: Christian Marangi --- .../bindings/devfreq/airoha,devfreq.yaml | 114 ++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 Documentation/devicetree/bindings/devfreq/airoha,devfreq.yaml diff --git a/Documentation/devicetree/bindings/devfreq/airoha,devfreq.yaml b/Documentation/devicetree/bindings/devfreq/airoha,devfreq.yaml new file mode 100644 index 000000000000..2f84486cb209 --- /dev/null +++ b/Documentation/devicetree/bindings/devfreq/airoha,devfreq.yaml @@ -0,0 +1,114 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/devfreq/airoha,devfreq.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Airoha SoC Subsystem Devfreq + +maintainers: + - Christian Marangi + +description: + Airoha SoC contains multiple subsystem that are scaled to a + specific OPP taking the CPU clock as reference. Such sybsystem + can enter idle or performance state based on the system load + and power consumption conditions. + + Example of such subsystem are GSW (Gigabit Switch), NPU (Custom + Risc Co-Processor for Network acceleration), SOE (Crypto Module) BUS... + +properties: + compatible: + const: airoha,devfreq + + clocks: + maxItems: 1 + + operating-points-v2: + description: + OPP table of the related subsystem supported rates that referenced + clocks will be scaled to. + +required: + - compatible + - clocks + - operating-points-v2 + +additionalProperties: false + +examples: + - | + #include + + npu_opp_table: opp-table-npu { + compatible = "operating-points-v2"; + + npu_low: opp-400000000 { + opp-hz = /bits/ 64 <400000000>; + }; + + npu_high: opp-720000000 { + opp-hz = /bits/ 64 <720000000>; + }; + }; + + emi_opp_table: opp-table-emi { + compatible = "operating-points-v2"; + + emi_low: opp-400000000 { + opp-hz = /bits/ 64 <400000000>; + }; + + emi_high: opp-540000000 { + opp-hz = /bits/ 64 <540000000>; + }; + }; + + bus_opp_table: opp-table-bus { + compatible = "operating-points-v2"; + + bus_low: opp-200000000 { + opp-hz = /bits/ 64 <200000000>; + }; + + bus_high: opp-300000000 { + opp-hz = /bits/ 64 <300000000>; + }; + }; + + gsw_opp_table: opp-table-gsw { + compatible = "operating-points-v2"; + + gsw_low: opp-200000000 { + opp-hz = /bits/ 64 <200000000>; + }; + + gsw_high: opp-500000000 { + opp-hz = /bits/ 64 <500000000>; + }; + }; + + npu-devfreq { + compatible = "airoha,devfreq"; + operating-points-v2 = <&npu_opp_table>; + clocks = <&scuclk EN7523_CLK_NPU>; + }; + + emi-devfreq { + compatible = "airoha,devfreq"; + operating-points-v2 = <&emi_opp_table>; + clocks = <&scuclk EN7523_CLK_EMI>; + }; + + bus-devfreq { + compatible = "airoha,devfreq"; + operating-points-v2 = <&bus_opp_table>; + clocks = <&scuclk EN7523_CLK_BUS>; + }; + + gsw-devfreq { + compatible = "airoha,devfreq"; + operating-points-v2 = <&gsw_opp_table>; + clocks = <&scuclk EN7523_CLK_GSW>; + }; -- 2.53.0