From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj2-f7.google.com (mail-pj2-f7.google.com [74.125.227.135]) (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 37F033AC0D0 for ; Mon, 5 Oct 2026 22:12:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.135 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791238381; cv=none; b=Fmsd/Hn/vJ3Lv5XDh2IBHBtaTPPbNT52g2eRAkiLT8LRXGxBYGbwM37vrBeLu8VP3JouKpFLSJZX70PKZU/v13Ierp+X7CMPQuozbdflnSH59XboRVcHt7XBMmwlmyUYwR2MTmylweyi146Eylbb463s3Rucbgrkhp0c0PhtFTU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791238381; c=relaxed/simple; bh=RQ8/bIf5S9U/FiX3uQoU1u6/FV6K7LLD2uqZys3J7EY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UcRhPTiF9lI+LxuQ0QfZfzOe3kI8A9xtoZw5aGPUKDZclcP086s0XwlriTL0w9pbNze0vwbT2mZqeAvZRSWaAyLj3aOvTqLr4gUr7yVSZQyathUvtr1b3vJ9LG04vos0xkCiZAYlj/VsxR5Zhfq8+ouH4D0XopHbr6tdjIzTYfA= 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=sbsj82Ho; arc=none smtp.client-ip=74.125.227.135 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="sbsj82Ho" Received: by mail-pj2-f7.google.com with SMTP id 98e67ed59e1d1-39e501442e2so790695a91.0 for ; Mon, 05 Oct 2026 15:12:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791238379; x=1791843179; 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:content-type; bh=v2tJApUzC1LEzp8M/eTL2SHChylQhCDDbwAQQxkGsv0=; b=sbsj82HoqdWry/itx8mocPJ+s90YdlNFJ+f6TSQSYANPFJmD07zcwHsFMjXeYaqRTQ sRHcbKJg487/0/JOADiK5jAHor30QO+eU+YdUIyrtA2J+XB4T8EoE3+BLD5uhVLGd5zu +K50NYnIKTNxQvf1cahlwRxlRTrQ/M3RjmNYWMOmbw/B9ezm7//EPk5F4O4IE0Irk1y2 EyOSOxHYKVyG2lIhr9pkVWzMYCr3s5DAmA1A5ActM+tVgfGxPMv+CSxNk2FR+MtooMbs fKDc2i+nRYt4F92Jyu+xgZgqSLUwPsNzPmI+XNbt5RVkFwbxUMf5BocD+ipVjYlCDuz4 rFSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791238379; x=1791843179; 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=v2tJApUzC1LEzp8M/eTL2SHChylQhCDDbwAQQxkGsv0=; b=QQ+BfBtkiAOe9m8ae6dhOJ27aT6sNV2MRblVFT8OKzByYWZ07FCQCoxLPfxtZnPcdx UHV6WCZH+ftSslD0oavvm1TsdhBxqNnYRb6Jmc52IX9PxEvB9rlYgdugOJh4p2Pek33l b+9uYdr+3LlfItntzvnC827LPRIVy/iX+k1hbYQoWvqYqTqXvG/WBc5U9pt3cV1kd0Jd RjZUT4B2CE/FukwJ1T7yXLiLm0S78WC96I5ZFzOyxNHYOmNqKzSnJFsZiWu4UciCRhs7 P9uM92AQOR7c15qVMwibkNta3Zo+VjrHP1Xljh/fwkcL9luafzl70ljH6KQ+t38BvUuS m6Xw== X-Forwarded-Encrypted: i=1; AKwUvByNcgYScPEMjMFrGV+COe5RxxXNLcdEqY8GmBfiJkjoNqNc7rBky7kk2hQpdvkCLt9g6fbQsh1fahpm+mw=@vger.kernel.org X-Gm-Message-State: AFq9FYJ1ec96m/4gPNzNhOpzhYVACy8slaxkzIkpLhG0GDNtIdrwPbMC /PjtQ8fjpNA7Eya2TK2/0UpHFirLf4G67SE+Gksaaqr4oBigGLzCbjXB81RkQNkO2UKX7Q== X-Gm-Gg: AYBFou0zDLGzWCG+Ex2qiQ72BWRU3IFWlcD0ts3KHUGHHmIY8sWnPBvJXBdp9kwtU/H +4xanI3mbN0Ajq4xPlwgmeSdlZAC0Cdmj5Gl9qT8MG6OPo9pud5eBLp/NyvYB6ROZNZVcgzp6WA aMzlq65eZYTm7LPFHZ3JQ/CVDLGB4P3A1uARpJbtf3W4AuL1Ub5cWgr1F4I/vFA5J7cA+LHZVKt 3LnhF6nL98UajZpJdrJEaGdzLAnSwYKvJ1I/oVWTSx8d//MjHmVg3sE9ES80xZT8EDULiamze9C aQ6CuIRjKcoTRfih/ukQzXx9Urw+d5XAnTzUH8kH0MNc34mqM92PeO00u2/9OgKjeqBkS3dEsiO +nsP+29/zUAbOAPzfV71ibBz2N6uUdcdWF/SswWXUT7zqxxYz8AUqdJ961v48obSjyCUkx/wAFo mc04riPZTM3YTpCh/C77ETyztH4rrGsx+8E92Rj7dMy1ps3ICqQpVMCnYVRzGGaIun44Lz X-Received: by 2002:a17:90b:518d:b0:3a4:b418:94cf with SMTP id 98e67ed59e1d1-3a6cec143d7mr10688007a91.14.1791238379236; Mon, 05 Oct 2026 15:12:59 -0700 (PDT) Received: from server.lan ([168.138.199.194]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3a8533aba95sm1719425a91.2.2026.10.05.15.12.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2026 15:12:58 -0700 (PDT) From: Coia Prant To: Vinod Koul Cc: Neil Armstrong , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Coia Prant Subject: [PATCH v10 1/2] dt-bindings: phy: rockchip: naneng-combphy: add rockchip,sgmii-mac-sel property Date: Tue, 6 Oct 2026 06:12:28 +0800 Message-ID: <20261005221229.1095843-2-coiaprant@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261005221229.1095843-1-coiaprant@gmail.com> References: <20261005221229.1095843-1-coiaprant@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 On RK3568, the SGMII interface can be routed to either GMAC0 or GMAC1 via the pipe_sgmii_mac_sel bit in the pipe GRF registers. Add the optional "rockchip,sgmii-mac-sel" property to allow the device tree to select which GMAC controller is used for SGMII. The property takes a value of 0 (GMAC0) or 1 (GMAC1). The hardware reset value is 1 (GMAC1), but this can be overridden by setting the property to 0 for boards where SGMII is connected to GMAC0. This is necessary for boards such as the Ariaboard Photonicat, where the SGMII interface is connected to GMAC0 and needs to be explicitly configured. Signed-off-by: Coia Prant --- .../bindings/phy/phy-rockchip-naneng-combphy.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/phy-rockchip-naneng-combphy.yaml b/Documentation/devicetree/bindings/phy/phy-rockchip-naneng-combphy.yaml index 379b08bd9e97a..8e898bce9af73 100644 --- a/Documentation/devicetree/bindings/phy/phy-rockchip-naneng-combphy.yaml +++ b/Documentation/devicetree/bindings/phy/phy-rockchip-naneng-combphy.yaml @@ -80,6 +80,15 @@ properties: description: Some additional pipe settings are accessed through GRF regs. + rockchip,sgmii-mac-sel: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + default: 1 + description: + Select gmac0 or gmac1 to be used as SGMII controller. + The hardware reset value is GMAC1 (1). Set this to 0 to route + SGMII to GMAC0. + "#phy-cells": const: 1 @@ -105,6 +114,10 @@ allOf: maxItems: 1 reset-names: maxItems: 1 + rockchip,sgmii-mac-sel: true + else: + properties: + rockchip,sgmii-mac-sel: false - if: properties: compatible: -- 2.47.3