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 EF5B3CA5FF0 for ; Mon, 5 Oct 2026 23:00:06 +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=I1HrHv/HXqYQlO3va8Ogv03NAgSH1ZZWj1aW4S5+qvg=; b=UHHescECnLRHK7 1pCTrrh4NI5tRegOlJHqdnmmhMILPxsmp+8j0NAgbieCxvVb1qhk5U2B/W/upKw9BLU73ur+YlThw n2cjaa2W3OvDoi0Rg6nJxjFV62Y5FjBeq48+/6+f6wIufeGo2qo3Nixmpl75OPiX1JSCwOW+ob3n+ X/8PHAqwWyeUUqQ3NFJYJeTalSX/DamfdxWbD6GJF9qYuadbVRbz7OHax2L2sK4VkhLAB4f92kLeK FbvW8Rl/9hXP68kaWKklT8YD9y7171un4tyOlbZ7WedMLv8w7r4nrZXD4Wh3XAETSkpaHvybOU0aG Eh02d6QzveRQfZLqZ47A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xDrfA-0000000HJ75-3NzX; Mon, 05 Oct 2026 23:00:04 +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 1xDrf7-0000000HJ4e-0s3L for linux-rockchip@lists.infradead.org; Mon, 05 Oct 2026 23:00:03 +0000 Received: by mail-pj2-x08.google.com with SMTP id 98e67ed59e1d1-398b9f722abso1220656a91.0 for ; Mon, 05 Oct 2026 16:00:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791241200; x=1791846000; 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=7KYnx5M9SIckzrzxm/OntzsZgVfGL+NHQqwQMkKwNaA=; b=FBb/PgLBAf28+Rdhc49+zKz0laE6iJW669mAbgyZDxaAT1xuTWWeQ+09xhBJQ+FEvc RfbzA6vJDrhHOoSS6LLHayCCOetNX7HHikMsoCaLJef21ek12oH7IQVhEVIWy3GEz+lq 35hU7O60Q6isl8EDgh9H9vUxwgvoGMP7zLT3C/ar5CNMXBWYH6VyiAkZyyfue1r+7Bhg lNTZbfs7mxgsFcc4iv8ywxTwFJ9pFnsU6aPaC/kb7tCw/nluARI5fOkJEdAXEoNCzD2A iSPPsYyWQxeNBdPTdNK/JmsxnflYrGMGd2lwDCd26vkD5j0qranoFFnaaMgfs+hUkPiJ z+Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791241200; x=1791846000; 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=7KYnx5M9SIckzrzxm/OntzsZgVfGL+NHQqwQMkKwNaA=; b=MyNi5GNt0Zfx5i6sBU1VtxcUCBr8JRVdDfPMko+ribWszl580PbYlLMbpcFPgu2mDu nNT7A5BMDysNU64FPT3ZI4U75ypoKt/AHvpTeWz32fKbcmEgIZJEMiOxLMw0tAvkyXzp 5EbGPrArb0KVZVmSPipTau8etjmAdCAvpE/y/KqQEjby7uwy7F8OH2qywjFMd/hFdY88 BcsrEZphAbry1bdcs0n+GQsGQOalAjhgI1tedDRZZET1cfQdgbgqUKy7lJaQcjRDMqYI tdWKpbAKG0uyXwIBeVGx9iYULmtIhipeL5kHoOsa/GteDh0/rHvEB9wsu6q9UNVwuVeu G/Bw== X-Forwarded-Encrypted: i=1; AKwUvBy0nOA5m5jGsjgm1qFxB2sOV4rYdDqghhEVZsIV7/HmeahKnT4XlcTawVo/O7L14qLYv25+Di9uZhfbIt2jlw==@lists.infradead.org X-Gm-Message-State: AFuF++nEJFIM6KMW5wu/bpOeISDyzjtmAMdlK8G7uyQbBz7X4RDS6r9k X6h7GbhOiuHp4XAuXjMAoyrI8qSmrQcpOBTQ6x9CPGbiI49pwblryNxB X-Gm-Gg: AYBFou3KEAZXvIc9fycMQ5MuIbFu5L+lNl1wEbUShX0xxBuzedo2HTD81CG+02tyuVf yavu/vkDnbi407Wbh6/OBBN93zGrp49RTDrtbfnAjSb9AxyWT2Ni5xx2veRVe5utE8WCm0VWtlI 4YW6hrKPBx2Y2sydu0d4+KF1AyfvcGXz0W2T0nl4TY6kUMGau+rrvMtI/SdMseOCt+25V0tuvLK UUnIx1tZ9Ux0kPJ7uqxn/bRDhtlcQ5h/2V2iDYlHIBd7cQb9Z4kn8fj0pc/fjNx/qfzg5k2x4+Y HVCKxKWl/7n9aO4vlfRNFBMPopmWyth+Pt8Ik4x/SYdh5bqttqtZ0F3TmVWrTOH6Tu6qGJWrSoK 3//yFKYnpJr5hq6ajx3MXIs0MipxWHz5j4S+d/FR6BA3OktCZoRmgCEq5rmSuxzEeQYhtkhJh0j f+pmrkoChxRGNTFOYbPihPSlt+lSXqkt0GmV7Q1XVg4BeymTnVH+kB4LzHyNMnHTHctHA9 X-Received: by 2002:a05:6a00:4fc6:b0:886:9078:546 with SMTP id d2e1a72fcca58-88af4b4804emr12417342b3a.26.1791241200320; Mon, 05 Oct 2026 16:00:00 -0700 (PDT) Received: from server.lan ([168.138.199.194]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-88b0b8f5b79sm4183327b3a.15.2026.10.05.15.59.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2026 15:59:59 -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 v11 1/2] dt-bindings: phy: rockchip: naneng-combphy: add rockchip,sgmii-mac-sel property Date: Tue, 6 Oct 2026 06:59:43 +0800 Message-ID: <20261005225944.1171574-2-coiaprant@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261005225944.1171574-1-coiaprant@gmail.com> References: <20261005225944.1171574-1-coiaprant@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261005_160001_265694_5E135754 X-CRM114-Status: GOOD ( 12.15 ) 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 | 12 ++++++++++++ 1 file changed, 12 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..2f72b83bdd6a9 100644 --- a/Documentation/devicetree/bindings/phy/phy-rockchip-naneng-combphy.yaml +++ b/Documentation/devicetree/bindings/phy/phy-rockchip-naneng-combphy.yaml @@ -80,6 +80,14 @@ properties: description: Some additional pipe settings are accessed through GRF regs. + rockchip,sgmii-mac-sel: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 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 +113,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 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 611AECA5FFC for ; Mon, 5 Oct 2026 23:00:03 +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=uzDHmzpPqqa/PhfLWGWfSMu9Ugynz/pU0fT6L//goEs=; b=DUHWiVjLJgOkU5 Wl62hjODB8bSGs5LLNZ90H2AH4n6GFTFGtM5kRA6zLvtCNgoWEDuvcy6MP9ZM+FWotexCSkGzmHUx 1qQ6rC1ZX9X0MEtfEB34P0BXM37Zv2FA09ZSWcEG9QDf3Ltb7ilDu1hTrDDzPzmwtrerOOQSFivdz 0vH/aGInJjEi771kpoq4JeUsttFF9l8tMzcrBgIvJsi1HYyukRG7ggfuhpzrPKge1aEeIfHCb3iiC G60uEDJZKZsICgl+7JOzQbGzWJySG/G6tBoAnljHnLYnb9xcupqcRNJ/Nwg7zNUYfEwfDNy4LS0Gd VyoIDv4tTcR4vXo1FGVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xDrf9-0000000HJ6I-2jJW; Mon, 05 Oct 2026 23:00:03 +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 1xDrf7-0000000HJ4f-0s3R for linux-phy@lists.infradead.org; Mon, 05 Oct 2026 23:00:02 +0000 Received: by mail-pj2-x08.google.com with SMTP id 98e67ed59e1d1-398b9f722abso1220658a91.0 for ; Mon, 05 Oct 2026 16:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791241200; x=1791846000; 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=7KYnx5M9SIckzrzxm/OntzsZgVfGL+NHQqwQMkKwNaA=; b=FBb/PgLBAf28+Rdhc49+zKz0laE6iJW669mAbgyZDxaAT1xuTWWeQ+09xhBJQ+FEvc RfbzA6vJDrhHOoSS6LLHayCCOetNX7HHikMsoCaLJef21ek12oH7IQVhEVIWy3GEz+lq 35hU7O60Q6isl8EDgh9H9vUxwgvoGMP7zLT3C/ar5CNMXBWYH6VyiAkZyyfue1r+7Bhg lNTZbfs7mxgsFcc4iv8ywxTwFJ9pFnsU6aPaC/kb7tCw/nluARI5fOkJEdAXEoNCzD2A iSPPsYyWQxeNBdPTdNK/JmsxnflYrGMGd2lwDCd26vkD5j0qranoFFnaaMgfs+hUkPiJ z+Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791241200; x=1791846000; 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=7KYnx5M9SIckzrzxm/OntzsZgVfGL+NHQqwQMkKwNaA=; b=cmkq8NboL7KOhJmp1zrXS96q5C+IA9wSRCDyIYBNkM6Ijm/Ysu7N/yhWkxJXIgQ9Gu GFVLxBMXU6EnvVePQjJ/ygzeGoKkvxwdFLHemRB5dJEDlfNFxYDxITwvfA21wXMmyWYw 4ZQhzIa3+7VnM9u4/ugDirNfhql9JXMrxegTkRz57ZrG4DzXeWOh4tiigq5MC0SWhTMl q2cdSJamIrB4ubUfyoXeRWzS0/Odal84C6pX/WhGdYmaF/dhqnZNahf3EXSlOuk8diTM SzP3k7SA7KJhcOsMyKgGq369DxXNUtJmnGAq/YnUAvhisGdBCMfozRY1wzSKX5ojHyBh e3Lg== X-Forwarded-Encrypted: i=1; AKwUvBwIo1pHIznmzy6elowybHQUzZP+thYKtyh8e2CzPKGfWmV1D5dOoam2XxdWigBFWg2qrpkIcdZddqE=@lists.infradead.org X-Gm-Message-State: AFuF++n8ZXx8PoRNG6OvvKI5Ih+W/8PU373WLN8x3L9rmdwD5AOvuY61 pAOo/kxZ35nHCYAaEIBOnnwjXxRjCIpOj7ckCKCC2qWgj0zSby2JHNAy X-Gm-Gg: AYBFou19E9o1IEdmIl7vzxNKSCNCpuPBthNF2G9QDldjTZnZ5W/LwK1Vl/1r16fuYK/ 4hA+x4s+JrBO6Z7SzZ+qtO6Gs6VM359hP0lTf46D/aHtntiWz4B8Sm7ymB6dCa+AnICabY8HBvo 5AJC4y3tjsblKmJwTqYCx/j0tdTswnhMLWl52NvTID5fZOqHvrb9XtMCLI988xUHerASpUGdjpD 5xcRcUSZOEyqFA7oLs4kJ249xBeLav+H22Pi2h8Np4Rfo469gl/LFsdh984rpv+PXT7hLRHUliA yBS9kjqv3bUMVcOnz+46o2rUGaNmu8YN4/Pzch8ttz8johA8jiCe4NsoaBg3IpP+vKDOGCvR+ga gxx/qeegIByIdbC9G/tGrdGZn/5d5XF+MquOH2zITMYytcZDzOhE0Zhs0f/tKoI6UGnfLbumN0J pcIuCDktDmsJ8xFFk1XbzzsoJirb3YfWsDi9UhEdFsTGHv3UCT/MvftXfWd5dQnjLs6bdM X-Received: by 2002:a05:6a00:4fc6:b0:886:9078:546 with SMTP id d2e1a72fcca58-88af4b4804emr12417342b3a.26.1791241200320; Mon, 05 Oct 2026 16:00:00 -0700 (PDT) Received: from server.lan ([168.138.199.194]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-88b0b8f5b79sm4183327b3a.15.2026.10.05.15.59.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2026 15:59:59 -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 v11 1/2] dt-bindings: phy: rockchip: naneng-combphy: add rockchip,sgmii-mac-sel property Date: Tue, 6 Oct 2026 06:59:43 +0800 Message-ID: <20261005225944.1171574-2-coiaprant@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261005225944.1171574-1-coiaprant@gmail.com> References: <20261005225944.1171574-1-coiaprant@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261005_160001_268041_012F418C X-CRM114-Status: GOOD ( 11.94 ) 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 | 12 ++++++++++++ 1 file changed, 12 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..2f72b83bdd6a9 100644 --- a/Documentation/devicetree/bindings/phy/phy-rockchip-naneng-combphy.yaml +++ b/Documentation/devicetree/bindings/phy/phy-rockchip-naneng-combphy.yaml @@ -80,6 +80,14 @@ properties: description: Some additional pipe settings are accessed through GRF regs. + rockchip,sgmii-mac-sel: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 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 +113,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 Received: from mail-pj2-f4.google.com (mail-pj2-f4.google.com [74.125.227.132]) (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 127073921DB for ; Mon, 5 Oct 2026 23:00:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.132 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791241202; cv=none; b=L5SBW4bEjFtQxJ/ZKHn06QV3+mOhwgaNEA+cY3x4gi0sYQEEiFL9d2PfwXhtmPgQEBXs/0Qxi5cUQU6ASiPRIt/qXjRNQ3dP/pemMvwsw7HLbx3OTK3EtgUGa35ydBCG7okMKsdK6hEv0BhWXqe8VkYz5CF4QkZr2Hrr+oSDfP8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791241202; c=relaxed/simple; bh=d+nEjmG2ObASuyRn2vUldl+THGz0eNdKRFlZDvVF09g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=frtPcORrMPmv+MX0QB3RJR4iMWgVsEewCyLiCgTAxg6TjdAQOoPpYHjPzeD5vz+HPv7UIpQiaTrHa6sGp6hey56akaYIUvVLv04Hi2XGGv/jY54uP5hCDEZnZ8mue/ToZQorWR8aQGxZR9jOM7gGZxexTN6T9gu1Yi/OQlBKg5c= 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=rZDiY/H8; arc=none smtp.client-ip=74.125.227.132 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="rZDiY/H8" Received: by mail-pj2-f4.google.com with SMTP id 98e67ed59e1d1-3a854dffb5dso173766a91.1 for ; Mon, 05 Oct 2026 16:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791241200; x=1791846000; 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=7KYnx5M9SIckzrzxm/OntzsZgVfGL+NHQqwQMkKwNaA=; b=rZDiY/H8v5NVyTHyElQOxdJN9DfGBY2q88x629TkAn3nnNP6XG+iYYJlgM0W4yrBEk on0mpHMHoYvT65e+pKu7Is8aJEZ4mATN2oVV66XHW95QjriCXKYo2GWgFx0ava2h6XeL UW6z4M9I2v6VsQv5AVsksCy5DukRCLQqBqIpdVYH4zorAGuHKdwShamkB/GU8Wjx+l60 SA3w/gkgsqfUSdPjBbTv2A2GIxDxv0GzB6Hy+eymSxDH69dVAvsseb1b+AC3eYFRrLJk Cr+VvOD7R2cyAS4lfRoxVn6sgG2K2CJQrRddTckSMHZr5HP6/gfBtaqGx18eCTIs26G5 ID6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791241200; x=1791846000; 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=7KYnx5M9SIckzrzxm/OntzsZgVfGL+NHQqwQMkKwNaA=; b=L8ftjNFflXgkeFeiTaszd14+nZN33hE35PP+GI9dYUlf218CzfDsDdhgXaZn03R3/i pzQ9U2kS326Z8fiEDENvB51kZICMQgyRrv7kCivkg5rnrIP9nAuv9y2qlImtbtkk0+R9 AxD0CUfdx1pE387EcF4WeMV6zZAuADrt/cVGapu167pXMS0a2OcoNicXco2raZHXOzu8 Q1aZ3/YMTo4pPxwWn6dnE5u4LzKDGM2AtA/15u6P67VBVL8jWxV6LskCXlpUYQFAgQC5 UdbfX1Ey1tjK+0k5p2r3PAtDenHLKoIeCVk7G0X4oQfNbErPA3gcX0+/zyWK4TmxQGil WdrA== X-Forwarded-Encrypted: i=1; AKwUvBxzIhHKYhtWGWjEsxcmcFcZI3WkjL5D8FWwpGvlROHA69vd9a8nIENHPihJQq9cWqOe/yHjGovvX6jX@vger.kernel.org X-Gm-Message-State: AFuF++lXS0XZdrxukNg41dkrAIydbShc+c3/EwwPy40yc3Hj3zQeY3yA moKrn5OYmSXqo8PRIjCQLttwe/i9dOHkDE7afyBTkBXHxy6qJOM7a5ct X-Gm-Gg: AYBFou3K2omTIAxuJDjGzvYxvPJ5i1xG1xDWBS3ktQEKrtYL7iyj8CFC3af1UXrfF9i 10etqHCLETMBzG7gpf/X7boVqlDc8/VDXjiFP9NtY+BXuKwmWGNdArhB9ZzL4l+YMktrAb9OOmv K4aL85zjWSybURulj91y/LWmLQ4A75XBiH+cvo4Aj/z+aQGuCjFjq/i4SxckaVdleC5NsX8IPq5 uGLWcqNZpmW0aFfApG3BSYJooLS5uoelxAYtaRA8t+/LCZT81Nb8vL4V9JzhltzO8vD5QUsh/8A HkVmD6F8QvQv7R8Yp9biG6rc1MkX6ys23E/VkQbuJppSDqzgdUMTqnv1QjBugK/INwCzFkA25Zu kwhSHhX8Mlcehfes14Uo0fMykJOrU9nxndMNSDfdrkbqc5BMpnhwmwfq/jfineOX/FZAk53gVlA Eks4hD+fEobrm15RKD7qvWxPDV/mvU662zx0Q+LdyJoDcN3JRVbUCTkadeLaxxACHsPa7g X-Received: by 2002:a05:6a00:4fc6:b0:886:9078:546 with SMTP id d2e1a72fcca58-88af4b4804emr12417342b3a.26.1791241200320; Mon, 05 Oct 2026 16:00:00 -0700 (PDT) Received: from server.lan ([168.138.199.194]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-88b0b8f5b79sm4183327b3a.15.2026.10.05.15.59.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2026 15:59:59 -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 v11 1/2] dt-bindings: phy: rockchip: naneng-combphy: add rockchip,sgmii-mac-sel property Date: Tue, 6 Oct 2026 06:59:43 +0800 Message-ID: <20261005225944.1171574-2-coiaprant@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261005225944.1171574-1-coiaprant@gmail.com> References: <20261005225944.1171574-1-coiaprant@gmail.com> Precedence: bulk X-Mailing-List: devicetree@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 | 12 ++++++++++++ 1 file changed, 12 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..2f72b83bdd6a9 100644 --- a/Documentation/devicetree/bindings/phy/phy-rockchip-naneng-combphy.yaml +++ b/Documentation/devicetree/bindings/phy/phy-rockchip-naneng-combphy.yaml @@ -80,6 +80,14 @@ properties: description: Some additional pipe settings are accessed through GRF regs. + rockchip,sgmii-mac-sel: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 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 +113,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