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