From patchwork Tue Aug 8 19:01:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 132836 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2373974vqr; Tue, 8 Aug 2023 13:21:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGygYuhNtqfvYjVObqPETUYT04nImBJSgqyzZG0cLRFuRzx9R4wwY5pByY10a9nDUAV8Ylq X-Received: by 2002:a17:902:c950:b0:1bc:6c8:cded with SMTP id i16-20020a170902c95000b001bc06c8cdedmr880040pla.67.1691526094538; Tue, 08 Aug 2023 13:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691526094; cv=none; d=google.com; s=arc-20160816; b=h8LNYJHwFbkL4WFAALWnGONCcx8ZNo0vH8I7I1yS0nj1zU4GBoFXhdVI6duR6lYSTW 6GC+JQXSW8k38/qxOyO8uqNbGK70Hqy6r0xd18Wf3K+9bUErAbgoWFMlty3EgCacWJ48 PJwl3u+JvpaKZ6nl+O5V+UZ2Wi7nZO3CmYcQ5ePKRGcGP894W1hVj68Lb54KfbfKb2ny 2mJO+mbRxsTSM0gc3QSFRPlsxhv3BbTX4ZWFu7l2/gY/r/N4UyTLtYvGNo4HcTwZjaOE xfbk7hXp7jeg1UGQEDGBlOQwlpbFLBlwUkpG4Z+6FL2WmJyeNnY5myPQoprNJdPLIyiH sxig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Eaczrn+uDVu4zRaXwsIp1V486qR5q1q+geaugqipQfM=; fh=v6UDtM1LG1pNigs7Y52IFg78NWSS5jq/R3uih93pXmc=; b=BWP6BlqKbKbjMgWhc5ntvqfqLQQSilbkt5MqDO3o0GlxNJZftNIlpf/g6iTvTSG2HX 3vkDMAi9s7hS5pdaIhv06ARJj6HLuyzmCK/SNv91H8/1uF738oU5WoJ3+bayZ/DpBD3L BIdxXXTjgjKq30x+0A27Y5mZOklCFga6pEUYtWHjHi3KuOpXqNjGK8NsAgJDhPxODpWt 0ueyNPj3wcGC6AL7XKw/wLHt1eLoM9KztN3ZJSEdC/uREpDNnMLf8lMOJkfwu2/xz0X5 NGLE3lzE21KXkKr8tN50kYq602hIiPlQVFzAZiAKEX+Z6+XM9kyZKk1VCg4i6OA1S35q zQtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=ycRLRc+t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c12-20020a170902d48c00b001bba8a9e29dsi3852230plg.100.2023.08.08.13.21.21; Tue, 08 Aug 2023 13:21:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=ycRLRc+t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236576AbjHHThW (ORCPT + 99 others); Tue, 8 Aug 2023 15:37:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236724AbjHHThG (ORCPT ); Tue, 8 Aug 2023 15:37:06 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D605B217A0 for ; Tue, 8 Aug 2023 12:02:02 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3fe32016bc8so50665075e9.1 for ; Tue, 08 Aug 2023 12:02:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691521321; x=1692126121; 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; bh=Eaczrn+uDVu4zRaXwsIp1V486qR5q1q+geaugqipQfM=; b=ycRLRc+t47LToHS303dsAghXPi+WMCksYE/Zyy156NmKKpzzWsecjq8UVFucS6Eloy xdmkLpwSpKLhjL9+JHhcpyPfTyydM5W5xrUOxyzQkmdip15cLZdmLNCXpKZKUxjZID6L Xz8ePC0InZ9epnXAi1qrQeuewpybWOu5l9mnpTGNUxIhNQtuIQcGO3iv7iDQZhweUfAh f7RTcX08vJFsBdfxOTtYhVQAp3THIyuIuacsp5WCKXo++B4E0QxhVLdgAyi0Wa0jchT/ mc8K0Nf2nYfS/J+rJHMY3u2Zb0rMGdth9F//QNPxVdFek454ht7m0LsiJKPeON5lPJc3 fk4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691521321; x=1692126121; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Eaczrn+uDVu4zRaXwsIp1V486qR5q1q+geaugqipQfM=; b=ZuDW507m9TzcshdC3RyX8zErFSXiAhC6VoXRkXFqWScmhRue83Mgwt4pCbSLhdX6Gn lP2r8Pf6ZNo4wjaJ5fqtODvoWf59TeCZL0O6V4PklfDjQoEmP7/cHNHYIZJZYhzSbL4P H/ct3nkBgNACydFmPL5jEQxYHGrfoYRVz4wX2lEh/H5/k+7hffGKSRmMZ5C7XO0/Znf5 0sUkwmAy4rufNRjM6Il5xWO1eluU3bAE5dUxg5SMSrjpvVXiMhTeLy/nel+y8cuQRPIv xC6d/akf85eUAyp3bZkZcOR4u11x1OkGN6XtFj8Nt12Cm3QJLuFkS4SGwhujZf7VLHN1 1aQQ== X-Gm-Message-State: AOJu0YzJrudNoJb2bJ8EqdJx5Pwt2moz7zKjxwIvXcYcHNPrzZLtUgMp gN8FxdUzD+gEC1OWWsSRvzcpEzD9QDj6jA5pDGoe1w== X-Received: by 2002:a1c:cc0d:0:b0:3f8:f1db:d206 with SMTP id h13-20020a1ccc0d000000b003f8f1dbd206mr508160wmb.25.1691521321456; Tue, 08 Aug 2023 12:02:01 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:6a08:bcc0:ae83:e1dc]) by smtp.gmail.com with ESMTPSA id z14-20020adfe54e000000b00317e9f8f194sm7301055wrm.34.2023.08.08.12.02.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 12:02:00 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alex Elder , Srini Kandagatla , Andrew Halaney Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v2 8/8] arm64: dts: qcom: sa8775p-ride: enable EMAC1 Date: Tue, 8 Aug 2023 21:01:44 +0200 Message-Id: <20230808190144.19999-9-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230808190144.19999-1-brgl@bgdev.pl> References: <20230808190144.19999-1-brgl@bgdev.pl> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773693666403878179 X-GMAIL-MSGID: 1773693666403878179 From: Bartosz Golaszewski Enable the second MAC on sa8775p-ride. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 71 +++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 330553742204..c843bb974689 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -24,6 +24,7 @@ aliases { spi16 = &spi16; ufshc1 = &ufs_mem_hc; ethernet0 = ðernet0; + ethernet1 = ðernet1; }; chosen { @@ -359,6 +360,76 @@ queue3 { }; }; +ðernet1 { + phy-mode = "sgmii"; + phy-handle = <&sgmii_phy1>; + + snps,mtl-rx-config = <&mtl_rx_setup1>; + snps,mtl-tx-config = <&mtl_tx_setup1>; + snps,ps-speed = <1000>; + + status = "okay"; + + mtl_rx_setup1: rx-queues-config { + snps,rx-queues-to-use = <4>; + snps,rx-sched-sp; + + queue0 { + snps,dcb-algorithm; + snps,map-to-dma-channel = <0x0>; + snps,route-up; + snps,priority = <0x1>; + }; + + queue1 { + snps,dcb-algorithm; + snps,map-to-dma-channel = <0x1>; + snps,route-ptp; + }; + + queue2 { + snps,avb-algorithm; + snps,map-to-dma-channel = <0x2>; + snps,route-avcp; + }; + + queue3 { + snps,avb-algorithm; + snps,map-to-dma-channel = <0x3>; + snps,priority = <0xc>; + }; + }; + + mtl_tx_setup1: tx-queues-config { + snps,tx-queues-to-use = <4>; + snps,tx-sched-sp; + + queue0 { + snps,dcb-algorithm; + }; + + queue1 { + snps,dcb-algorithm; + }; + + queue2 { + snps,avb-algorithm; + snps,send_slope = <0x1000>; + snps,idle_slope = <0x1000>; + snps,high_credit = <0x3e800>; + snps,low_credit = <0xffc18000>; + }; + + queue3 { + snps,avb-algorithm; + snps,send_slope = <0x1000>; + snps,idle_slope = <0x1000>; + snps,high_credit = <0x3e800>; + snps,low_credit = <0xffc18000>; + }; + }; +}; + &i2c11 { clock-frequency = <400000>; pinctrl-0 = <&qup_i2c11_default>;