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 75B0CCA5FF0 for ; Tue, 6 Oct 2026 07:49:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=v2tJApUzC1LEzp8M/eTL2SHChylQhCDDbwAQQxkGsv0=; b=rj04pZwd0jl0HRpDzaR4qviXwF XWyniLEc8O2eF2DIl5uYMnpUfNWxfgfjqD8tY5j+Ee0ooCap+oe0Avv1YqSX4OlSsoDxdnAtfzjuc q/neyrcl46tEA7em7ZM/Ohp856UyimkH000dJISaAlGrhaaAzl3rcXfL/TfqblTg00bYQpCHHgI3y y1h8Bd3FSzPe0qMZoa/nWGH3fsHZTf80VUJfbhppjJk665oABd4QOJxXP0pEgJ2JgkEZOHDw1F2dQ 5PmO8jqZ5Ao73uZhOwLkvLxryuqoUAW8srOO7KsUsU2Vfbc3d2Ot+xjlTSKvp5pRhmeZt2JtNgHH4 Bk7yoP5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xDzuv-00000000DPN-0XHx; Tue, 06 Oct 2026 07:48:53 +0000 Received: from mail-pj2-x09.google.com ([2607:f8b0:4864:39::9]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xDzur-00000000DMW-3kmA for linux-arm-kernel@lists.infradead.org; Tue, 06 Oct 2026 07:48:51 +0000 Received: by mail-pj2-x09.google.com with SMTP id d9443c01a7336-2e13013f1ceso5399925ad.1 for ; Tue, 06 Oct 2026 00:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791272929; x=1791877729; 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=v2tJApUzC1LEzp8M/eTL2SHChylQhCDDbwAQQxkGsv0=; b=bhSZWqptRQsUl5/k+N+khLQrR6n/uXrOTL68hc+lCIdbzzmqPd4SI73TkSLRGTZwE3 lX9n0daXhiypssBVE/sHqmChmAirWs5/emXulUVuHFwYIDVqSBNRhPSCyhJBITNI/TGK ehFckzNfpj4Hs9wN0KFIQ/f0x4l9KEHNZOznUWt4xt9QZSdkdh1Okg6syPWiT8tko3Oi VZKlemj05vYVxTCZ17F+bRrggRzOyXYXb41iaZhoRgLzLmtvN7m57bbJf1VnOzXDVEmn xan4zssh7cDM8fencoOdFWQ9Eh3UqB3FNoyOhMGsq64+jxcn1oet0gCsRqPyoxSX/aPr fCrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791272929; x=1791877729; 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=kTrlw+uTpn9Aw/zvkNxavbcGJQXiznFmHigEp7w4TfHuEn6bnb9nMOWk2tjQyZJ4Gm YFkFyzAKRc64KMrKkybYxb284KUdkw0Js4lsZwgJQKD4LlevKyEulPaij0Hb0yKUBVSO F3znyAu0A+f1tVJFpFrzYn1+uwNvvbeWwljaZ9eIw+VlWQtbyJ9jUdJOEXuSULdSkkvD g1BoKUhaeMTwWCpjuSsXW7Y14uthh0hQq2FzsRc2hBu/9Qlr8uHyP92D33+6Fm14MtG6 /blkfot/SmDjpwA24zAuy7JsxKLIMFC4mIWYvrGrdanRZPKdZvLIACFUvWiWaeLjWhv+ 9feg== X-Forwarded-Encrypted: i=1; AKwUvBx97hww6AKNXu9EV/UI6KkMDZXyDWuRc5rNVMhfePcIDGy7LIW1dsoULBV4gBRu1HQCjZL+M98Re3IMNSEASp84@lists.infradead.org X-Gm-Message-State: AFuF++mofTE5p/VRwdwV3UO64zPl5Dz1s1IBvg0VdwHhtw9ML7ZyvCmC 2+ml2/fkC7y3tET+cC+k0Nbg1R70q+O4/vBnq7sPhaOIr1lCMy3+omme6mZVqk8DDWUgVw== X-Gm-Gg: AYBFou3rnfvq8KKOgyytvRYUtTtIfu/HD5ysX0rrMU0Mjis3YDsfliLnMinYToOomNx 1ceKsIFNbX9X3pME0mE4/TuCMf5+pz7dXWPDtvFcnWl1Bvjc5cePsmi9A3cwMPIhZillVijUA/D Lxo+gX/2XFNRznwL7YnuDHfRv87ewVY69IkXKmz/dtqF2OqUnDssgUL8N15ubNQCYHf8MrvvQaA M3LJRE8MyXFuLifLKdKG1J3S/LgKFAE2HWShebjeatqvL9WLcrOiH2ZYJb7nk2zmkk9pgmfyPph O2OxWIvYWfYuHe7ZRQDUXHqTjUrgtxQNaVgj7pzSzqWnA3kiC1VggSDmtZ+Uw11+zlU0l2hwmKz QE2ZiTOXdT6Q3Xns/lEzmNv7Aa2YOVXgPfP9/HmT3cdFzs6DD3AT24MqqIfW+u4prYonaFimNbM ramkAyqC88EzeWotM0SZsCmaIelQ0lCmgEcDxR6wpYLb4v1IqnfFxgKLLRJbqp0EL8ZFpr X-Received: by 2002:a05:6a21:6b01:b0:3e1:1689:1ebd with SMTP id adf61e73a8af0-3e12485fceamr550520637.49.1791272928795; Tue, 06 Oct 2026 00:48:48 -0700 (PDT) Received: from server.lan ([168.138.199.194]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-cce6d2406b1sm1998173a12.8.2026.10.06.00.48.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2026 00:48:48 -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 v12 1/2] dt-bindings: phy: rockchip: naneng-combphy: add rockchip,sgmii-mac-sel property Date: Tue, 6 Oct 2026 15:47:48 +0800 Message-ID: <20261006074749.2010233-2-coiaprant@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261006074749.2010233-1-coiaprant@gmail.com> References: <20261006074749.2010233-1-coiaprant@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261006_004849_997543_C55E8572 X-CRM114-Status: GOOD ( 13.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 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 72481CA5FFC for ; Tue, 6 Oct 2026 07:48:53 +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=EkekRenuAsJhpFU2uDvgM2TvfpEigWEYeY3rP/EPu8I=; b=DzUAmhtXk3+9ah 1Yl/Tz7Q5mN13c/iuHzLsywYgRHVqOIYLMmC6o8l0YeveNcd+pAGazfpt2O9eFMwzb+E1TjAksUOl XJeyP+m+S8p/xr7noL68HZbcag67/OGXJI/bfxc8ZTOIXkTT17XMqosULfnkXR3FvMC/PsbvBU+Kx OLq5W05L7lReSJTnAs++MTpEQXZKCgjcRFTOlJR8B7duTzI1h0p5SMg/Qjr8LtLXvASY4/IQNFxKZ tJvFly98Q2OJdwBm+MITXPFwsDkR6BKWzeX7BC72SvoQemHl6+PCaJQkov7px+KnCM6whnpUQvMic bsbQaxPnwlhJXpTwoUIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xDzuv-00000000DPG-0HWA; Tue, 06 Oct 2026 07:48:53 +0000 Received: from mail-pj2-x09.google.com ([2607:f8b0:4864:39::9]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xDzur-00000000DMX-3knp for linux-phy@lists.infradead.org; Tue, 06 Oct 2026 07:48:51 +0000 Received: by mail-pj2-x09.google.com with SMTP id d9443c01a7336-2e13013f1ceso5399965ad.1 for ; Tue, 06 Oct 2026 00:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791272929; x=1791877729; 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=v2tJApUzC1LEzp8M/eTL2SHChylQhCDDbwAQQxkGsv0=; b=bhSZWqptRQsUl5/k+N+khLQrR6n/uXrOTL68hc+lCIdbzzmqPd4SI73TkSLRGTZwE3 lX9n0daXhiypssBVE/sHqmChmAirWs5/emXulUVuHFwYIDVqSBNRhPSCyhJBITNI/TGK ehFckzNfpj4Hs9wN0KFIQ/f0x4l9KEHNZOznUWt4xt9QZSdkdh1Okg6syPWiT8tko3Oi VZKlemj05vYVxTCZ17F+bRrggRzOyXYXb41iaZhoRgLzLmtvN7m57bbJf1VnOzXDVEmn xan4zssh7cDM8fencoOdFWQ9Eh3UqB3FNoyOhMGsq64+jxcn1oet0gCsRqPyoxSX/aPr fCrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791272929; x=1791877729; 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=sokM5dRF4Hc3Esc/aiRBOpgHkR3GnK65+dZECdnUA1UkVkh7jxjXZDPxX9kApG3QzM GmAXMwmoVZUy5INjfjs2CLUVn187/PmYEvjaOtfaJIhvJY60J3RPYF65tznS9nCWeWgR kpfWBoh/yoDbPDAb8MABz7sU+LEdSZcAk0qfBEqFYw+EN1zBhw4h4rcc3S6KEI/MnXvz h0wtCWPH79uv+ox3AciLk8UQZ/MBYZw0x7wmUDFlsp+p3+1xXPbvvN9BvJ1vDJkX3P8A 2aWuMCClJDqVHysVSJndG57wMcQhsB/rv8U7ewmhDkdvHFLhnL87LBUXI9l/0BWQjV42 hfsw== X-Forwarded-Encrypted: i=1; AKwUvBxhUs1EADO0TPCS89vzVgAb11+lJ2+KTWI1TrSeTMUNZ6ZOROAUUR6VGiPlcaJOkfzjv2wUpwIPD6U=@lists.infradead.org X-Gm-Message-State: AFuF++lu1bKegEe7o98yDZnZF1Ii0UApoYzIQ0o190JuylDlkymAF6IU +93cHJiTLBksiW3/q5jMRNj1grs+BCmfCmH/0VVOnN0Ch6oa+vswYsfI X-Gm-Gg: AYBFou1c/dA7kchX1rXPA2AR7cwPfuxhXUidxG3K2x5T6V/aGmQMMm/6wXE9EBAbNuh 4ctCfVaqRVQaf5QwB7pf4CiX2Nea9Y7Ypqzb8KYYbBQHNA5QgWCwwp/iE6YhG3SBP3BnQQqzCQQ anJ99sxFRNGie/zKbSWKcBbHhxKupK6G8kPYWCj91Eqi3l8DjrX1NjIH9dVbjwGgUDi2Zhk8AnJ g/82aPraOzf43R+zA1kuqtKCXoSw4lPn7nouA9brDfUaA8xdIt8+LvqJrVkyhWzISev2OmP065n q3ijgMuU4GhjaD492PRtJ43gjizM7w6bLbcQjWAg54cW179F+DlhBGimSkZNuD/HqsV12LO6U93 d3YeXPO2m08IVArF+WFyM90Sp4Ug1EcmKScnKXU8Yyiif9cOv2LaPQEpwCPa4nrP/kXq8+faSej 2GTiUCSkM2eoJT3iwBajh3axsJdNEIp1GGZ+7Bl3A422/NXgn0rwOkIvlUuopn+/4M/8o7 X-Received: by 2002:a05:6a21:6b01:b0:3e1:1689:1ebd with SMTP id adf61e73a8af0-3e12485fceamr550520637.49.1791272928795; Tue, 06 Oct 2026 00:48:48 -0700 (PDT) Received: from server.lan ([168.138.199.194]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-cce6d2406b1sm1998173a12.8.2026.10.06.00.48.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2026 00:48:48 -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 v12 1/2] dt-bindings: phy: rockchip: naneng-combphy: add rockchip,sgmii-mac-sel property Date: Tue, 6 Oct 2026 15:47:48 +0800 Message-ID: <20261006074749.2010233-2-coiaprant@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261006074749.2010233-1-coiaprant@gmail.com> References: <20261006074749.2010233-1-coiaprant@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261006_004849_968645_BCD0B250 X-CRM114-Status: GOOD ( 12.42 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org 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 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy 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 80C82CA5FFE for ; Tue, 6 Oct 2026 07:48:55 +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=lueJppVxy52ZEFEQ+3ID+cWS4uCV1Jkr1/oFm+5M5dw=; b=TUlrGXGi0sv732 TJzXW77BnbYvIsvtVyXdld74EuE08cRV/azQW4iBXyb42XMznhYHSsiJJsaQKY6YhOfbeD1qsNI/r BTLTB+16Fcr8vvmvnn91kPPWHJVng2n2e2TdzF04LaA1c2pIlBEAsXbUtFArpiMtu4JzIWliZSSPw hC1dKoXEt+rjwXDgSROzQJY5mbwUZGJdvK+EdhG9aZdkvIILwEeUNEMgWaamm2DZDVJNJErJevJL4 W5cLCH3tNVak8aiiUnW/RGDJ9vLqqhgpRwvQZLoUHqYw/Ay4Rd+zPA8M9QfdbBnaxOtKea1ijEF58 Che9SRaW1gubOoCwLKPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xDzuv-00000000DPu-1JjE; Tue, 06 Oct 2026 07:48:53 +0000 Received: from mail-pj2-x02.google.com ([2607:f8b0:4864:39::2]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xDzur-00000000DMV-3kop for linux-rockchip@lists.infradead.org; Tue, 06 Oct 2026 07:48:52 +0000 Received: by mail-pj2-x02.google.com with SMTP id d9443c01a7336-2e5cb5a0831so1555275ad.0 for ; Tue, 06 Oct 2026 00:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791272929; x=1791877729; 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=v2tJApUzC1LEzp8M/eTL2SHChylQhCDDbwAQQxkGsv0=; b=bhSZWqptRQsUl5/k+N+khLQrR6n/uXrOTL68hc+lCIdbzzmqPd4SI73TkSLRGTZwE3 lX9n0daXhiypssBVE/sHqmChmAirWs5/emXulUVuHFwYIDVqSBNRhPSCyhJBITNI/TGK ehFckzNfpj4Hs9wN0KFIQ/f0x4l9KEHNZOznUWt4xt9QZSdkdh1Okg6syPWiT8tko3Oi VZKlemj05vYVxTCZ17F+bRrggRzOyXYXb41iaZhoRgLzLmtvN7m57bbJf1VnOzXDVEmn xan4zssh7cDM8fencoOdFWQ9Eh3UqB3FNoyOhMGsq64+jxcn1oet0gCsRqPyoxSX/aPr fCrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791272929; x=1791877729; 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=M40SRkpco31CBJ4VJ+JI6VsNbeNbhoBtpCC3IRHmJalMysYSKyltuKOiECMt8HtTYn lG3TkMZrKJl8C9S2Us9CzV/xb3sou47YQf7rI+A1cMmaCTx0ZZOrZvgJ2dwTvAOsqNFV m3EFKS5fSlgL7tOK4v3DhssHEkRVA7/4v8sbaSNRFN/XUue+sArE76ZXy5IfzawWrj9T cpvPNqz7hcE6u9IkmT6vd7VpUea458S+xefggC0gOrOW3bNIHjR3/eMS92y6w4pn3mG+ Thcs/qnRjsWwCb4HAhYhlecVT2kbq8q8tSh5gXrbMKQLLwQ7LJyxgxkNxZ49EFvvgI6h BSUQ== X-Forwarded-Encrypted: i=1; AKwUvBzJCMwkPP1YjCMAYEe0IBpaWYXRTihxhZv0xXZ09iXmA+GmMEGa3KO9yrVCwzCbArXlouedAfypoEqyw5cj4Q==@lists.infradead.org X-Gm-Message-State: AFuF++nURUaum3h2C49zHOWq+Aa4ZGOVaU5gg6VvT0iqBnzBP/JYLs5r Ke5W9sVcvPoqmbxj+XTZ6Qlhc8IwujEFuNmOJgCYPlx84IpG1l6+WnK+ X-Gm-Gg: AYBFou3/8XLDW1Z4qwJdGuijh5MVTLEWuFLdLnPhzjZ1PBk4XSSW+nRf3If3ST/QtTO UqQZC2bob2xzqEFCDOVw8gWAai3G+JoWnD6BIJhud/sOVS0MpLN9Qq/n24mH/XdjG8INVeke5hp kTCMqRRW1/Mu2r0it6kNQFbS/364K9ZPb3z/ntUOE9e7/VOuAHQJmtepMezT+p+g/z14beSdigp CZx7DY59NrUSQEQTC8UhW2ruYut6J7pbjg81p7l/3fFooowf8D78Q8Xc3HZhHgVG9E6CPtyui/a 2aC7sGm5Iz+oYyIOUWN+ndZMJzuTd/t/ZNcepwSYQO9kqv3dGBvN2wlnU9jAWyXT0CFA4eKCkSn 0gWn9lRtEA3LwCTzIhI+X5jX7ml63ogjSUvoOq/S5J8bCwuuruDqJZgwDOC4Jg1Ulp5nDEziGOJ p/M/oWYGf2qJVO1IwyTGrEVBXFzq4KY2ivUNXWJQBHqmGpAQdq4/1j1E1jpDrpKJFepAsq X-Received: by 2002:a05:6a21:6b01:b0:3e1:1689:1ebd with SMTP id adf61e73a8af0-3e12485fceamr550520637.49.1791272928795; Tue, 06 Oct 2026 00:48:48 -0700 (PDT) Received: from server.lan ([168.138.199.194]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-cce6d2406b1sm1998173a12.8.2026.10.06.00.48.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2026 00:48:48 -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 v12 1/2] dt-bindings: phy: rockchip: naneng-combphy: add rockchip,sgmii-mac-sel property Date: Tue, 6 Oct 2026 15:47:48 +0800 Message-ID: <20261006074749.2010233-2-coiaprant@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261006074749.2010233-1-coiaprant@gmail.com> References: <20261006074749.2010233-1-coiaprant@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261006_004849_987485_4C0DF511 X-CRM114-Status: GOOD ( 12.64 ) 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 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 _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip