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 A31B4CA5FED for ; Tue, 6 Oct 2026 07:48:52 +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: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:In-Reply-To:References: List-Owner; bh=RZIgfTtYw2VSxZqHJ3SGO6QXoaHtjUTVW2u5S8Y+KSU=; b=QAryyA8jk1azCJ yFrdLXTO2JcLfhvavJz0zkKoQ6FuDzcRFLS+xuS35LcYDMQMNkarlGr9eVaWWqCkWE22T9/I7ubg5 VbCnLecH+8OlPeVcDCbZj5T1S2OIkuYaPSPHRWa0YOuegKIxbv+BLSpuUS8bj/4GAFajMnmAuSdIF sDcrHlFM3GZa56xSCXTYN+sfCceywYYuNmnejYk1i9v/zCzDEk0jAMU5TaJYvYMEFp1e/Veorw30G SFhKdgOmQW68sROwT/NxnJRDZZFJ6yJW3o92DxMoEG5g9pjffrxrpMwD8y6orOYYFrK258R97oRis +jv9sy/YBm7ib8CfXqbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xDzup-00000000DLH-3KPo; Tue, 06 Oct 2026 07:48:47 +0000 Received: from mail-pj2-x08.google.com ([2607:f8b0:4864:39::8]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xDzum-00000000DJO-1OZg for linux-rockchip@lists.infradead.org; Tue, 06 Oct 2026 07:48:45 +0000 Received: by mail-pj2-x08.google.com with SMTP id d9443c01a7336-2e4a61a2ff9so11956435ad.0 for ; Tue, 06 Oct 2026 00:48:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791272923; x=1791877723; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=5FZEAA0Lgtv6ilrYXH3YJyGzw6r/Idq0zYgWK6iHl90=; b=oSB0CBW5HxLnx+YoMMMA/b4pud6jytQM1gEGC0Mh/pgE4pPPVcqUMd10dXCqqr4re2 0uRg+XOu1uvu8E7cDzNJT5n8eUulTe6OO8iz6Of5ljQ9h+8wTdFYfCXhBMbmodw8kEFm TXbijUxniIiTeVcBna4W06MTTdk8bMk9AdAN9augU3G/uY1BkUz1/OY/pk2Yr7aSlF9a 0VIphgOmWFGjbB+OcjtHtNXuxEYrf2IHP+g+UPzJV3uqdG7I+h9q99+tyaSPyQ/vf/M/ AtWrbNuxg6PlIxJE4XStY/46waMQeBPdxE3TFAkhAFowu5XlhNDhpLhsR23UCqYYbrnv H7yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791272923; x=1791877723; h=content-transfer-encoding:mime-version: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=5FZEAA0Lgtv6ilrYXH3YJyGzw6r/Idq0zYgWK6iHl90=; b=rgruH8AMgZv7+ZGIAINUyVDSc85yuRfKvmLoKt2qHgTIyLXL1qCbFkLAHW1nAGCL4/ 0EHmEHPM+68IKA2D5GjQ5Zz9tDgeLLJUrIOcN2imK8L1sAEBVa2SJQivHIgPmqelxsw4 m5gJoXW9TKGql/H0TXFvfMZQ9xpMYjxTG7+49Bu3jkNLOyRffEqlrhfDM2G2VZ9lSdNH 2DJGgExG6CSm3FT3pP8W7dvklxHCEgV9goWB2cQWOMpKkMUFRZAKry7znJITRodHaFtH 3IuTQWV/qjt6gFjNmairzdGgyCj+lJKKsOnhf1WBX8rKaxt+XPiOIFbO8c0u0FKR+TbO eeew== X-Forwarded-Encrypted: i=1; AKwUvBxlDCWYchWYqd9L7jiLh33DTX0XovjyA4tZ3KbxVvWqbQYqoEXV+vPfL/nCq12EzCgthgBK7Gv5VKAn+UdkDQ==@lists.infradead.org X-Gm-Message-State: AFuF++lcXM9wnVVGRoGZSQrfhyDOoqsnejx0vcrvxScczt/hSkYSrJii /r/nR2ECbo9SshLqq+oP/bGtXMq3wsfcdnGj4i7ELJsZ+jZTpbHBSUHG X-Gm-Gg: AYBFou2uFR7xtuhwM3k8INHu86MoY5OeZGOLCh+SWtuGuYpdiecq2xdVYBIu3PcHxCs o295xU9hQsm1Lm0ksdqwSxOTwHiYPtS0bekhXMySiKVYwkaQ/eDAFRn9qSo8kvC9sds4j2tIjTJ OT15rz7YmQvI//B+Bx8csy+y8IT1pdk3nE/H7Cjekf3AmzMDYGg6Ph16FAWM/FIg6tMXRLbW5pc alnAydWQPJPvMTedKGdnUogzzEbCvayLUQpeY04GhoasPP3yfsi0FDzrhe5ztKQvWPwTkoiqG1q fwDzzA0K4HYEeZOalSoD6GP923GvJCD65QQhDZrIRN+2GrvbUncrg+ZC+a8bTCrAGh//DN3vXe/ AloCgWhYbiZ16GlhIywAbfAwtPckzAQWzQYxkE09cXtWNY63Q+69IbDEAXdQTPKEeGoAz5Q9d/R eKk4hFe0SHSigWg8k0Zayct/aGweqWHsYfGpOeSzw0zSD7sINvWqgFjuMRdX9nY5VnP0Lg X-Received: by 2002:a05:6a20:94ca:b0:3dd:85a8:4c56 with SMTP id adf61e73a8af0-3e1246dea5dmr525873637.29.1791272923390; Tue, 06 Oct 2026 00:48:43 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2026 00:48:42 -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 0/2] phy: rockchip: naneng-combphy: add SGMII MAC selection for RK3568 Date: Tue, 6 Oct 2026 15:47:47 +0800 Message-ID: <20261006074749.2010233-1-coiaprant@gmail.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261006_004844_396119_DC9DA85E X-CRM114-Status: GOOD ( 10.48 ) 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 Changes since v11: - Revert changes in v10. Changes since v10: - Drop the top-level "default: 1" for "rockchip,sgmii-mac-sel". dtschema injects top-level defaults into every matching node, and the injected value conflicts with the "else" branch that forbids the property on non-RK3568 variants, breaking dtbs_check on those platforms. The driver already treats an absent property as 1 (GMAC1), so behavior is unchanged. === This is the PHY part split out from the v10 RK3568 SGMII series, sent separately to linux-phy as suggested by Vinod and Jakub. On RK3568, the SGMII interface can be routed to either GMAC0 or GMAC1 via the GRF register pipe_sgmii_mac_sel. Patch 1 documents the "rockchip,sgmii-mac-sel" DT property, patch 2 adds the driver support. >From the RK3568 TRM (Part1, Page 229), PIPE_GRF_XPCS_CON0 bit 1 (pipe_sgmii_mac_sel) is defined as: 0: SGMII routed to GMAC0 1: SGMII routed to GMAC1 The hardware reset value is 1 (GMAC1). If the property is set to 0, the driver routes SGMII to GMAC0; if set to 1 (or omitted), it remains at GMAC1. This is necessary for boards such as the Ariaboard Photonicat, which uses the SGMII interface connected to GMAC0. The DTS changes using this property are sent separately to Heiko/linux-rockchip, and the net-next parts (XPCS glue, dwmac-rk SGMII support) are sent separately to net-next. There is no hard build dependency; the pieces can converge during the merge window. --- Coia Prant (2): dt-bindings: phy: rockchip: naneng-combphy: add rockchip,sgmii-mac-sel property phy: rockchip: naneng-combphy: add SGMII MAC selection for RK3568 .../bindings/phy/phy-rockchip-naneng-combphy.yaml | 13 +++++++++++++ drivers/phy/rockchip/phy-rockchip-naneng-combphy.c | 8 ++++++++ 2 files changed, 21 insertions(+) -- 2.47.3 _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip 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 58D47CA5FF0 for ; Tue, 6 Oct 2026 07:48:48 +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: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:In-Reply-To:References: List-Owner; bh=+XgZS8dhOU0Uqc0JgOgfXmd4ZKEueE0/I2YItk0H69Y=; b=jzB2Q4pXVNq0L+ 4tQa8zJZ6cFNmNs2nLIfXB8qBq4vbdzzaRFdq3V16LGhlSQXKxs/X+1GHtFqImd+q1O56jJVkGnHf twdyI7g8lDLoQ/tnqceiRE+3Daq1qSnp3hevZ0vZh/ksML2R/zXXn5Htw/7SrCFjeOHpNOWAPXfqx O9VgIa3btObQBbhSwH4VvWSiTWg6Tu/Ro5HOg2VF5YuLRNBlI1xL37kXWhIQUs1UWPxuYYM1IR7e7 LgjyPDFn6nrEG9J7Yn0wbfVUsNrcrgAqB7OHAM3vN9MBBGPrVb8k19mXi8yrYujnqJfSfpnPXIE9v 07qRRS7xpejTy/VbvbvA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xDzup-00000000DLR-3xYs; Tue, 06 Oct 2026 07:48:47 +0000 Received: from mail-pj2-x01.google.com ([2607:f8b0:4864:39::1]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xDzum-00000000DJP-1P4M for linux-phy@lists.infradead.org; Tue, 06 Oct 2026 07:48:46 +0000 Received: by mail-pj2-x01.google.com with SMTP id d9443c01a7336-2e31e9f035fso9726705ad.1 for ; Tue, 06 Oct 2026 00:48:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791272923; x=1791877723; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=5FZEAA0Lgtv6ilrYXH3YJyGzw6r/Idq0zYgWK6iHl90=; b=oSB0CBW5HxLnx+YoMMMA/b4pud6jytQM1gEGC0Mh/pgE4pPPVcqUMd10dXCqqr4re2 0uRg+XOu1uvu8E7cDzNJT5n8eUulTe6OO8iz6Of5ljQ9h+8wTdFYfCXhBMbmodw8kEFm TXbijUxniIiTeVcBna4W06MTTdk8bMk9AdAN9augU3G/uY1BkUz1/OY/pk2Yr7aSlF9a 0VIphgOmWFGjbB+OcjtHtNXuxEYrf2IHP+g+UPzJV3uqdG7I+h9q99+tyaSPyQ/vf/M/ AtWrbNuxg6PlIxJE4XStY/46waMQeBPdxE3TFAkhAFowu5XlhNDhpLhsR23UCqYYbrnv H7yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791272923; x=1791877723; h=content-transfer-encoding:mime-version: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=5FZEAA0Lgtv6ilrYXH3YJyGzw6r/Idq0zYgWK6iHl90=; b=0R+pnzLvIQqF72SCvEvsfhoZpTq3W6Dic/o9IY2KAC5/jSbAR7qdCqYsJtbPhR9hzn laNGEtM+bH1FK3Wwy1DjQICGVnOBa3M+HtTAVcQzap5tBtWJPE4aA15lQX555XUKzUZo I4PXZ2wQaruZHoh5KbVAfVyeW4EzridOb/MSu8SvFxqBlccHwVFFTQej3bvvKDjNiL98 rouTKGjTXC1Ln4kjwAV1FeN9V5Ji9BHZwRce+KBZB7LGOfZ/LHFKGKLipozL0ixQcRBu 9zEdggzK29Ca6cmwx4/N4FgyimG4Uv56dvtmtgDsBFjkPKcLCrg8RWZn9AtXNjuLayfJ nozQ== X-Forwarded-Encrypted: i=1; AKwUvBy+KcoazBsROpPJA0Avsn9KDk4gRWW2NqCwLtVgClGanxZpIyhH62XQemxG2HiQVo6uq6jZF06g5rQ=@lists.infradead.org X-Gm-Message-State: AFuF++kgyB0S+FKOQUCxIAdJNRQoL2AerivURBiVX2w2TQh/Nr5cGHA8 rBsg2g9qlOykir/O18Jl0kwA8DZLNq6O9K9TEPW0nHFN4y1QuULd58QW X-Gm-Gg: AYBFou10zpYLIoqRfojgmAnxd6bXEsl1gHOSEbV7xS2fEDpoja63RXbouy0n4nS6VrL R1MavWRmZ6sTYyhGcEudq/vwbIj9ScfqSyq9wDDLTI42JFhXFn8dgXUv2Ehfx+ZYyMlVtUV84Ol waW4Kp5oQSfHi6z/dFU84DXeigsqIiLpBM5e/FMXhKWzUE0Kh57L/CQGsYDqbgxfrRq6Sx14es7 CjvZ2hRYC6jCw37FFUBmzM8WzByC5lAUXMplE8BITjyss/EmipgTBqKRPR7fAaK2/RhavbShBOL dcoYc/ooJ1ZDG/kTXFTGWNQEfg0QUwyMamkL+bA29BRO07L/UMPNOSo9sH0DzW75Dae8cBRYlxe UNnFHBvpam3N0KnMK67cSH/4cWwAFHjJFfMFUxXI/WCoYcP1dm082fLgw+HF33ZAmrKW1+utNx4 F52o+LUozhdMzj60IdybOZ4R2R5Bwidk+Q6zXbnqmfLbeSWdcqKke5hneCskg/HslzVT8V X-Received: by 2002:a05:6a20:94ca:b0:3dd:85a8:4c56 with SMTP id adf61e73a8af0-3e1246dea5dmr525873637.29.1791272923390; Tue, 06 Oct 2026 00:48:43 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2026 00:48:42 -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 0/2] phy: rockchip: naneng-combphy: add SGMII MAC selection for RK3568 Date: Tue, 6 Oct 2026 15:47:47 +0800 Message-ID: <20261006074749.2010233-1-coiaprant@gmail.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261006_004844_399740_3618362D X-CRM114-Status: GOOD ( 10.27 ) 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 Changes since v11: - Revert changes in v10. Changes since v10: - Drop the top-level "default: 1" for "rockchip,sgmii-mac-sel". dtschema injects top-level defaults into every matching node, and the injected value conflicts with the "else" branch that forbids the property on non-RK3568 variants, breaking dtbs_check on those platforms. The driver already treats an absent property as 1 (GMAC1), so behavior is unchanged. === This is the PHY part split out from the v10 RK3568 SGMII series, sent separately to linux-phy as suggested by Vinod and Jakub. On RK3568, the SGMII interface can be routed to either GMAC0 or GMAC1 via the GRF register pipe_sgmii_mac_sel. Patch 1 documents the "rockchip,sgmii-mac-sel" DT property, patch 2 adds the driver support. >From the RK3568 TRM (Part1, Page 229), PIPE_GRF_XPCS_CON0 bit 1 (pipe_sgmii_mac_sel) is defined as: 0: SGMII routed to GMAC0 1: SGMII routed to GMAC1 The hardware reset value is 1 (GMAC1). If the property is set to 0, the driver routes SGMII to GMAC0; if set to 1 (or omitted), it remains at GMAC1. This is necessary for boards such as the Ariaboard Photonicat, which uses the SGMII interface connected to GMAC0. The DTS changes using this property are sent separately to Heiko/linux-rockchip, and the net-next parts (XPCS glue, dwmac-rk SGMII support) are sent separately to net-next. There is no hard build dependency; the pieces can converge during the merge window. --- Coia Prant (2): dt-bindings: phy: rockchip: naneng-combphy: add rockchip,sgmii-mac-sel property phy: rockchip: naneng-combphy: add SGMII MAC selection for RK3568 .../bindings/phy/phy-rockchip-naneng-combphy.yaml | 13 +++++++++++++ drivers/phy/rockchip/phy-rockchip-naneng-combphy.c | 8 ++++++++ 2 files changed, 21 insertions(+) -- 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 Received: from mail-pj2-f9.google.com (mail-pj2-f9.google.com [74.125.227.137]) (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 0C0953B4EB3 for ; Tue, 6 Oct 2026 07:48:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.137 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791272925; cv=none; b=TyXEJsftTQ2lVnN6mvXjDzrQVcS2OpnG+LqGb7b8rexB64J/je2SmoV3FuU3Tc/acoQCiZAMaqkPr7vP8or9Ib7sT/7a7SzkaqS2kslJ8s3bxeEoFyQ5xRDSjT6x1tNldsQMSLBg6vsXFPJaxeLaksF9QbhnF0U7OXFiINF7zsg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791272925; c=relaxed/simple; bh=+jOfCnFXSfPxl0yaVoDKsZecnSdkpw2ZpHxdR4nJTGk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BIjlcg0GMvvllWhjtR3szWXBEQKZJRpgRd+o9v1ntEsyXrIodnOvGkv9xBESFpiWzS3IAizw7m5vRdmC8LR+yVgbbaKiosbkmxLyOg0Sj6+DeGXJsnl0gqfsDVWk4V47ezpwvRMCdG692rV6e8JzsnsdySSJe2wSEtybh0NbVcw= 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=bF5vgcAB; arc=none smtp.client-ip=74.125.227.137 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="bF5vgcAB" Received: by mail-pj2-f9.google.com with SMTP id d9443c01a7336-2e31e9f035fso9726695ad.1 for ; Tue, 06 Oct 2026 00:48:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791272923; x=1791877723; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=5FZEAA0Lgtv6ilrYXH3YJyGzw6r/Idq0zYgWK6iHl90=; b=bF5vgcABrZUQnZpqQ0fBKF5O9JjCbzwpEdVy9INifLC4k9T9zQfyQttEBetsZ/APim Y16Rn14cLYRo9/x1TaTat4jnsa8/1w05D7cuCXVpLA9s+eaNVEl03S+Fe00WjyjmhORB 8yG/mLux9/q4jvERkjyyOhjvcAxZmVZQP8LLdJfjGSBrtn8dIq/6KHRgiKwjijgtvb/5 CWIGTjlB+2UwrJCwM/mOfRaNscYysGhNhk6vOTh+O8oNThm/eD0BSyaHpbvyUcctiWL/ WekBHWAssJNKpxE+NVgT+7RbjTN3I1sTHggCYqGt6KczuXnIZJa5TgAh/iBOmwU3LGcv pe/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791272923; x=1791877723; h=content-transfer-encoding:mime-version: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=5FZEAA0Lgtv6ilrYXH3YJyGzw6r/Idq0zYgWK6iHl90=; b=qJFehAjPsK59HqboR9C9fywcX0dwpw3xohmi2NrXTVU5O39wKVPUNTlVy2ED0GLeH4 qVyKZxu1LGCPFQkDUfnnRrt69rByj6Nq45G2PGCE8694/AqY4X5i6AicUReai0fKWN6m rVbdQKAfggQlE0sUsxmFA+qh0Fn1E9VcYlKAy7RvMdevimKuTJCH5H3ZSWsP4TUq7dq2 qrFmTHwfgmIdXPvUW6V3eD41DsjHXzQKH62NnEW4+GffJlS/nRkG9uviWJdJjcvHTvkc rCb3CVNZKIYoi3wtqhPmnmCIk9qpnemopI0bwwr4GUkXu4rGqu2yMf6UJrGrkdacGSAE a8wQ== X-Forwarded-Encrypted: i=1; AKwUvBxTedPZchxjUTf1N5VRaXaSadkJoQVGJch1LK4vvVnsFILWlWlsrsJuzZChhH4j5A8KFI0d2nfe6JzY@vger.kernel.org X-Gm-Message-State: AFuF++n6illBiotlbdjVDCdWUN0kiSi05z53MpXTDNDYyrHFJZX4/sD5 eYK81Bq3rAamJhXmbxUvXZ5C/pcTYKJGD/b0+14TbM1RCYmEv6SaaJGDQ+GP5+WM51zmfQ== X-Gm-Gg: AYBFou2PDEjUI2hq84CPwuMLzyFBuvjYPJXiP8rPsuekdMapXr5uyCuhK4c2C5epf5B CWN5jElyWY9TzxRy16Ctb1tnu8y37Vd+hIImTG87Dsrv1yE6VRWq2lVMZCzm8XNuhCrGx+CiIRk Qv8Q2nvRCMYlQOCLdwLvS9cjr9XifOXfRcZ2gEg7BGObaGZQODwTSZ9ZuQ3tIXPVWJMA9bF692C MBv7pNVI+QlhfE081Q66x96YGLMdmzMNwOOQ/d0mHKtCPrFPaPXhe/T2yUTva6UzQVjNWMG6gjq CTzvrnHjtsanLepXbv2CxD1Zu6H3Z/d4jGOB9Mum6InTmTNW3CPQzuragmagdKDj3yRG9tHoBNv cMkEJ798GVYIJimdwmVVAeCrRgQyccqMEHNd2PjjEqbsfHHicP7ELFag9+G3ovkJizwxi9ng9ij 2jjEFcpvXQYDTrw2rn+HxFgLEu8jIKKjRpcQzOc2WfnB/vdlnnGlytE0PQs7wiYMK0dwF+ X-Received: by 2002:a05:6a20:94ca:b0:3dd:85a8:4c56 with SMTP id adf61e73a8af0-3e1246dea5dmr525873637.29.1791272923390; Tue, 06 Oct 2026 00:48:43 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2026 00:48:42 -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 0/2] phy: rockchip: naneng-combphy: add SGMII MAC selection for RK3568 Date: Tue, 6 Oct 2026 15:47:47 +0800 Message-ID: <20261006074749.2010233-1-coiaprant@gmail.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Changes since v11: - Revert changes in v10. Changes since v10: - Drop the top-level "default: 1" for "rockchip,sgmii-mac-sel". dtschema injects top-level defaults into every matching node, and the injected value conflicts with the "else" branch that forbids the property on non-RK3568 variants, breaking dtbs_check on those platforms. The driver already treats an absent property as 1 (GMAC1), so behavior is unchanged. === This is the PHY part split out from the v10 RK3568 SGMII series, sent separately to linux-phy as suggested by Vinod and Jakub. On RK3568, the SGMII interface can be routed to either GMAC0 or GMAC1 via the GRF register pipe_sgmii_mac_sel. Patch 1 documents the "rockchip,sgmii-mac-sel" DT property, patch 2 adds the driver support. >From the RK3568 TRM (Part1, Page 229), PIPE_GRF_XPCS_CON0 bit 1 (pipe_sgmii_mac_sel) is defined as: 0: SGMII routed to GMAC0 1: SGMII routed to GMAC1 The hardware reset value is 1 (GMAC1). If the property is set to 0, the driver routes SGMII to GMAC0; if set to 1 (or omitted), it remains at GMAC1. This is necessary for boards such as the Ariaboard Photonicat, which uses the SGMII interface connected to GMAC0. The DTS changes using this property are sent separately to Heiko/linux-rockchip, and the net-next parts (XPCS glue, dwmac-rk SGMII support) are sent separately to net-next. There is no hard build dependency; the pieces can converge during the merge window. --- Coia Prant (2): dt-bindings: phy: rockchip: naneng-combphy: add rockchip,sgmii-mac-sel property phy: rockchip: naneng-combphy: add SGMII MAC selection for RK3568 .../bindings/phy/phy-rockchip-naneng-combphy.yaml | 13 +++++++++++++ drivers/phy/rockchip/phy-rockchip-naneng-combphy.c | 8 ++++++++ 2 files changed, 21 insertions(+) -- 2.47.3