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 53092CA5FED for ; Tue, 6 Oct 2026 07:48:56 +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: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:In-Reply-To:References:List-Owner; bh=5FZEAA0Lgtv6ilrYXH3YJyGzw6r/Idq0zYgWK6iHl90=; b=MqR1lSQbJ2BAHW8+Ao0TG/FT3/ FGPMW9PIKEQ1lJjXMFM9RBglJluYDKHbXdOvmwtgiGmlxp98co+n2TAYujbhDaRhu6iG/tOMm7FAM R8y9yJM1o8PjWPhDMsL4k9RdtNkP7AanDn5OvmygnRlzQxWyMiCveATqchQ7KGIN2TXVxs1UsAAkq E5YrTkNKTALOD2vNyrulecCjP8hY8N6PRyI7ZJOb1ccRA++Z6YKCEr9AkK9S16pA6xsu+Qp8M9xVC qJCPrPmhKqmWVWvxqR4AdKKQchH943BobyhZys8lECqs+f7ri5OYa03gmqzkfeLeu0sWe7OgK6QZu BsMagVZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xDzup-00000000DLN-3d0y; 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-00000000DJN-1Opt for linux-arm-kernel@lists.infradead.org; Tue, 06 Oct 2026 07:48:45 +0000 Received: by mail-pj2-x08.google.com with SMTP id d9443c01a7336-2e4a61a2ff9so11956375ad.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=LKD7Aim8iCkXlzn8nmJcp6hDjaczwrWZwzo4AJoXs/faakkR4f5mb5SVhSduQlrE73 1FKAHuHkKwM/aVJ1pzDLLfMnotQ5qqIAStDqqDPaZX4JWfO9k/6+rRRFKfCigtq0b736 q6f6vAQCgH1e3AbFMk3bazWH4JsU1US0g+J8TuvmqdyUlzZuwf3bWIwIeyKw4rvXyfp/ qGD86BvrlQvFP6dzvJQx5wJFjFuTxnGazKCuIjqdzLliQD7v/zfUUYPtmziiPH+on8pY OoNXYD9R5YH7pjTIeoTxyD7J8FKCn+CySnvBVM5baTKBBk5sefcaK197yvAP+zFDyR1G TPNw== X-Forwarded-Encrypted: i=1; AKwUvBwEXnFLaQqCHz+ttl+FLMkFefaodh8DnxUiTD7wygzvQY4xI3Rk15RH/Wh4UVKatFxEUrlKRidjRF97Mod2PmWU@lists.infradead.org X-Gm-Message-State: AFuF++mLDTAfxz4C/O2qRsrrbEdaUcxWv23320yOMQfZvXPRjKUh3ER9 hmZgIFV+3dxiKJnOMWrXl7N/yENknKc7+lXjAXS1N88/MlDUN4hMkUJH X-Gm-Gg: AYBFou3LfoiJhvVSQXt7rijKCjIcsTzCCsc7nLUBVhZoj9OeE/QxuK5hv8dV3MuNvW5 rdTENODiAhw+mua+I7L2HxV7Ll02llZLNgVah5qHesLWYa9eQ/023+4hC08FHEygZOUbtcAJThI t2eWku8nHO6fzNr6R4RphVOSnKUMGfFeCmxfQdQXZJykbSUoHMofsXmAWJ72QZwIJzaewSNeA71 n7yuOHWXnovaaL37F/KgLx5tLFZvRyrhsFslDUjvN4kivjuHrmCJol7Cn1hm8t2EmwKzkO2f1Mm J322WU3aS5TbW9mNTennE2x6OxaM7OzvUsA0KkLlnsgta3pYQHnp72/7WZC0Hqe8dQPPqUj3hLd k01TpaQ6T/T8HaGbftcla8SbgFrE0C5CqmR60uFV9fI/0GTgsS77T6SoYlzxgazCmkQFETJxvS1 MjETTpxEJnsI9OLpqylpt0cOjtNYIHjP0LgDEY+vIFVOqu8H4yaY7Oc8VYj7FAdc485xus 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 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261006_004844_399155_1FA121A9 X-CRM114-Status: GOOD ( 11.79 ) 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 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