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