From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 8017813A3F7 for ; Thu, 21 May 2026 15:36:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779377818; cv=none; b=WLxkQN/oMNjYGSZPfMnbZ8q67mirjEpgyUPTmNrf8iLneKYjev6iebd6MeVt87GqAZExmWeAgj6hylRG6KMoO83X1Tob4b0NAC/kjVjnGk2WN16+5y/5Sq+XScuyt5DYUw/kG/i0KYEDTsQb/nvR56XjLx+9W6LWwPugtXrv47E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779377818; c=relaxed/simple; bh=FD8IvK1gXQx5wLqh2EUIHl/A6W3peoBLFvUS6imjxoU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eP7o/Usa9+xEfga8yF98+nDGoahRzBW/0qs3C8jS+XocO22CBNWUbBcTMJdkWLiihIAjTRX4iX/ADJSTXlfNxGf/Zvzpmt88Nv0boDf/9hqHiVhftD8sBg9wXmZWvZWb4wNPjqAq3Fd/eoKbUVUZIGU3UsRhXUOdRNej92YjgPM= 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=orLOn2EC; arc=none smtp.client-ip=209.85.128.50 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="orLOn2EC" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-48896199cbaso49188605e9.1 for ; Thu, 21 May 2026 08:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779377816; x=1779982616; darn=vger.kernel.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; bh=atavLJO9ib3dVO9oXs0ZfRhlR41n5og9pxT0XRvm9dc=; b=orLOn2ECKDOEFtB6WvL4t+HhrcdY49Z5P0pZIVwla/5GYUOYJWYjUNbm+nNqoJVPKs mfsoOzAs7MKUYxZzgs8+t+YVxmD7nYXbRloKM4IkYYsF3OfYqlUcVvBC2oxKixw2UpHp Y7t/W9qGFqfvYONlm+AMHfLPeTwP7kuqdbvEboZLuHgMquVxhQXZ3NhhMQt7FFMnHhMT BNGaaVYTsgk0+FZftShpBaAbM+H/oZ0t1DEAMYDiNWVvdi4xjG6uyhV2Yo2cxB0gkn12 uPVXUBOJ5heeoUPzHbY7Gv8xe0wt1HRn+cfe0QxeeCwwhkR0AkGm7owEWN5rPEHsHf5W P+Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779377816; x=1779982616; 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; bh=atavLJO9ib3dVO9oXs0ZfRhlR41n5og9pxT0XRvm9dc=; b=sD+bPsBLi79UGb/WYs17S6n1bCPZskxUISDkQVEqp0eoFLfL/7tFMOuMr4iDPpKVm5 QbhYVHnN2xFMPpEwV3v8uOvqIV52nvmszBSXXmj0ahVs6Uu6oxu2V2+cTZLJv2pKSKdS +YBmvh1DeEPrzuFC3C5v2MBo5wjwCmXQnxIFeancRwER3GUsUhdRYTVW8U+E3j2uu2Tt rzU525LlJosT9q0Uz5y5pdR20s8TKgTkMU4TgbMnirSOIGYsxeVkwoVRNazDpEM0Cvny 6g7yNIEI5cxYIhYmf98a5nKIYWxinpCLAb0IsBuberh4LVDu6hxRlMZB3b7U4h6kvv0/ xkSg== X-Forwarded-Encrypted: i=1; AFNElJ9lOBcy3k+ZuPVEu9qOVJAh3XLnb5DTzSW77bOLRNQJ2JsAURJ6fPR1U8c7d5qjTyQ5HRO/6ve2AtXtyG0=@vger.kernel.org X-Gm-Message-State: AOJu0YyjdvFOxeMuVJdak6ygcEPXMgIIw+mEn2KfwZjb3UMTQaycVT/6 8/uPQ82zEP8MGRo20NuBuTCJ8iQ3wrRicy+0IbeGu0DK7oDbIzrdl25Q X-Gm-Gg: Acq92OEvrLJG6d6qp2KzWtfDou37ol1e3kX4i2Jp3YVaFj2tZ1s9goAmPdA/rTazCt1 gEROY3SjpHyI0cRYCmx8T1j/x1QpOHqLwkz/MBkksEqLzMEku5t5pZulhJUUjnbpWcuGqBm0ynU WX/zzxhTo70F9fa9n+4jcngiJeaf/3NYR8apk6Yzqvibh6dic7coOY0NlsJzm/wRUFeqP8lpEGM A4tAoaf0RI5t2NNPZTpf41nETjTjobZM5NPnUBQ+VNyejCoYtQn4qObSKGx0FFF00DAI5G6Ih/M tprVNqlk0dYVFwJN4Iv5YUrAJgOnmxkod2GE18yU6gJg9TpPdxSlo9hsTb7rX1/nNQV2xG7d6eM g/qk/JgUw7peL1ytJxfAJtrffPw/1JAdyTX7P5HN211zqu8SICC/4MTzvr7x9yAfNF0et6FLb0G FAGE98JKuWG4mfIN+4wXZQF/yR9C9ZkhAQTnr6w7hya26+WV6nOIIN/gaHL+q63CA= X-Received: by 2002:a05:600c:470e:b0:490:3ec9:8711 with SMTP id 5b1f17b1804b1-4903ec98789mr14784095e9.18.1779377815576; Thu, 21 May 2026 08:36:55 -0700 (PDT) Received: from Ansuel-XPS24 (host-79-22-5-99.retail.telecomitalia.it. [79.22.5.99]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-49033d9edcbsm79159825e9.13.2026.05.21.08.36.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 May 2026 08:36:54 -0700 (PDT) From: Christian Marangi To: Michael Turquette , Stephen Boyd , Brian Masney , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Christian Marangi , Vinod Koul , Neil Armstrong , Lorenzo Bianconi , Felix Fietkau , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH v9 1/5] dt-bindings: clock: airoha: Add PHY binding for Serdes port Date: Thu, 21 May 2026 17:35:52 +0200 Message-ID: <20260521153645.7028-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260521153645.7028-1-ansuelsmth@gmail.com> References: <20260521153645.7028-1-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@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: Krzysztof Kozlowski --- .../devicetree/bindings/clock/airoha,en7523-scu.yaml | 9 +++++++++ include/dt-bindings/soc/airoha,scu-ssr.h | 11 +++++++++++ 2 files changed, 20 insertions(+) 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..913ddc16182b 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,6 +72,8 @@ allOf: reg: minItems: 2 + '#phy-cells': false + - if: properties: compatible: 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