From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej2-f12.google.com (mail-ej2-f12.google.com [74.125.228.140]) (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 C9B423B95FA for ; Tue, 15 Sep 2026 12:52:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.228.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789476757; cv=none; b=RmQyTaMTRfwqmfrfGQcc9cyQDnzH7BLlvFiZSe7k+Pga11bHwtmuXKx+WQTQgbN2IzF8SGWW/HHQEN4SeSqmCuuGrSN0nF2x5dVRjEYdyMiqZEJ/T05Ksf0KmEvPMzF7nV8Hu0H4Guvr9cukAd/DUUdMS5C3mw03FVCco8/BnL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789476757; c=relaxed/simple; bh=m8sAzO33iYtVKLXrd+2NaUjzgG3gzawYUAd74pqePhQ=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=V1g5fUnTKwQkQMw6AHvu33hKgPb0cDHGGxLBlIUigLR8LYnDy/HXwSDWGEW5E7c7CvoFE9yPc65FUJXNi3UpxiJmFxLU5Bi87gevH/c++SaZ5Zx9D85kGaIt+ISHiwB2tyfGtBZM2NGy6IIRw6v79NHLeifacHud+LMTrnEOG7A= 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=a1TMNnOa; arc=none smtp.client-ip=74.125.228.140 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="a1TMNnOa" Received: by mail-ej2-f12.google.com with SMTP id a640c23a62f3a-c254fa650c8so44991166b.0 for ; Tue, 15 Sep 2026 05:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789476754; x=1790081554; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=lSkFSVGa/dllH5JEoKe0+pLfgUwm43MOT22pfjYzUoU=; b=a1TMNnOaWPkCyd0PRw2yfor8ttdv8V+icIEqrnSBZZp/NbT1ZToUPALVzveFb7j045 jk3uhghFYcrRfdotIYtVjVDsjYvYdZRDqTxXBphdOVg3i8eWNXAi4AkSB5f7cv7clNVP evMPJv05xelxA7uBW8GfPB5VA3aq9Jrf96VkbW/R+5xrmL/WPINWNkCN4OQymr5lVN5O 5AZkdQEF4NfsdTluVDgfJA3wjxNVf/NyggjXSaCHqiZEEck3OojiTL7uBpXQMpo5lKFe Vk8kO9le9hgtgmNrAoeU/C898gYXg38Vlxc1yeeI9naM7MmtVytAh34C6JnhoYWfC0ok jw9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789476754; x=1790081554; h=content-transfer-encoding:mime-version:references:in-reply-to :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=lSkFSVGa/dllH5JEoKe0+pLfgUwm43MOT22pfjYzUoU=; b=SAikpUZuD72lVm2e8/cBReEhiPTFFMtEcF5e2ZyJRTu3BFNcYHxCJjfZ6x+BKmn4QD y8mnPtSGQ3d2m/p5pKHD05rciJmIwBPLLEFV4YKmbfFtUbEoecRTfb7mREF7+0OKRuNN 6ILGaNYFB8FvGjuI/V6pe/UVI/5qrR3SE019g2gpSO/y0fy4bcHUy3vnGsVbnwsZTFmg o270CzhT1gC7wBeze7IfBFZxmTRNBcTGbAyArtREaNHPhK+zaDxwRLFRmXliipNo6T9s I0Mf5zPJ/ZEHHdR8fcsEK+T9GPxOuJPgv1dbw7Ot7/N+7I5Qjy09T3Lk6HEfX5IPxKNo 0BEw== X-Forwarded-Encrypted: i=1; AKwUvBwI/Wu2rkwBfgEgYltCqQ5EArPHx/P591rOVGQ2Kro9NPnAj8bsz+zctFkrrw2nS8RlfhiiK5C95i8=@vger.kernel.org X-Gm-Message-State: AFuF++kIRzApIrVAYiR2TdzRjOf30tcKhOoubeu0N8qn+/rT4pmS7E/2 VJ8Ca0FBbGFOujTTBvK/m4CEl3wAaPjXXt2Hcb6EQBPIH1rEf4aYb9yS X-Gm-Gg: AYBFou2bguvHXAgrVK5pKPZgNpJaWTQXF7kBzn2Z2paEgHsN62MTRvgEdMVgtgCLeII 1sF4H219UkQyvROCu9e+MQ0fh8errqTho95D+GCYGsLUuAGwdQwx1DKMr0zVmkVl69vclWLzSRZ YqB6liqis9XeT03w2PGyFeaaEPDd9ZeVI0rpZ5SNBpzF8EVkhvVGuQPflnmL5FK4rHsk2Rtdi1n elZUOkEP72nB5fVvWoEBMsaWatv7XoTE/2ofab+AFVFXC+OEyEUSjC/JjvaNbkeTaqRgGKm2+KD tK5L7xsRBo/uO8RDJACFSrPgYnbs4bx4QFIitW3B/aVS8kxqV9zDomGfaIfz8mHZErFmJn7hre4 DtIo+gv1ggqucRrKlzmMkabXY8HPauWDGy8mCIgtmNgcx/qUAVH84nrjKSnC/Oxw+itk0afr6s3 uKpYPYjlLFQYDWeYTlI15i2dtUFnTlRQsrXWaXkWw3SFOUkE2zauNKJ1w2AtKBkb0+pURo/6oga EXknI0wIXf0y3KWzD6Vmf5gEseSzJU4G7XSsqnSNysdgCTR9qjekxmc+A6kvhP7 X-Received: by 2002:a17:907:724a:b0:c29:4cb4:8582 with SMTP id a640c23a62f3a-c29d79e7c35mr78298466b.47.1789476754036; Tue, 15 Sep 2026 05:52:34 -0700 (PDT) Received: from Ansuel-XPS24.localdomain (host-79-26-252-140.retail.telecomitalia.it. [79.26.252.140]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-c296605b9a6sm587969266b.25.2026.09.15.05.52.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2026 05:52:33 -0700 (PDT) From: Christian Marangi To: Stephen Boyd , Brian Masney , Jerome Brunet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Christian Marangi , Felix Fietkau , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: clock: airoha: Add PHY binding for Serdes port Date: Tue, 15 Sep 2026 14:52:23 +0200 Message-ID: <20260915125226.20579-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260915125226.20579-1-ansuelsmth@gmail.com> References: <20260915125226.20579-1-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add PHY cell property for Serdes port selection. Currently supported only for Airoha AN7581 SoC, that support up to 4 Serdes port. The Serdes port can support both PCIe, USB3 or Ethernet mode. - PCIe1 Serdes can support PCIe or Ethernet mode. - PCIe2 Serdes can support PCIe or Ethernet mode. - USB1 Serdes can support USB3 or HSGMII mode. - USB2 Serdes can support USB3 or PCIe mode. Add bindings to permit correct reference of the Serdes ports in DT. Values are just symbolic and enumerates the Serdes port with a specific number for precise reference. The available Serdes port can be selected following the dt-binding header in [2]. [2] Signed-off-by: Christian Marangi Reviewed-by: Rob Herring (Arm) --- .../bindings/clock/airoha,en7523-scu.yaml | 24 ++++++++++++++++--- include/dt-bindings/soc/airoha,scu-ssr.h | 11 +++++++++ 2 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 include/dt-bindings/soc/airoha,scu-ssr.h diff --git a/Documentation/devicetree/bindings/clock/airoha,en7523-scu.yaml b/Documentation/devicetree/bindings/clock/airoha,en7523-scu.yaml index eb24a5687639..fc37786ac7ed 100644 --- a/Documentation/devicetree/bindings/clock/airoha,en7523-scu.yaml +++ b/Documentation/devicetree/bindings/clock/airoha,en7523-scu.yaml @@ -23,6 +23,7 @@ description: | All these identifiers can be found in: [1]: . + [2]: . The clocks are provided inside a system controller node. @@ -50,6 +51,12 @@ properties: description: ID of the controller reset line const: 1 + '#phy-cells': + description: + The first cell indicates the serdes phy number, see [2] for the + available serdes port. + const: 1 + required: - compatible - reg @@ -65,12 +72,23 @@ allOf: reg: minItems: 2 + '#phy-cells': false + + - if: + properties: + compatible: + const: econet,en751221-scu + then: + properties: + reg: + maxItems: 1 + + '#phy-cells': false + - if: properties: compatible: - enum: - - airoha,en7581-scu - - econet,en751221-scu + const: airoha,en7581-scu then: properties: reg: diff --git a/include/dt-bindings/soc/airoha,scu-ssr.h b/include/dt-bindings/soc/airoha,scu-ssr.h new file mode 100644 index 000000000000..33c64844ada3 --- /dev/null +++ b/include/dt-bindings/soc/airoha,scu-ssr.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ + +#ifndef __DT_BINDINGS_AIROHA_SCU_SSR_H +#define __DT_BINDINGS_AIROHA_SCU_SSR_H + +#define AIROHA_SCU_SERDES_PCIE1 0 +#define AIROHA_SCU_SERDES_PCIE2 1 +#define AIROHA_SCU_SERDES_USB1 2 +#define AIROHA_SCU_SERDES_USB2 3 + +#endif /* __DT_BINDINGS_AIROHA_SCU_SSR_H */ -- 2.53.0