Message ID | 20230807193507.6488-5-brgl@bgdev.pl |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp1720690vqr; Mon, 7 Aug 2023 14:28:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEEt5DT9+6mphn6qoZ7fZnj2zNxNnHRMSbVfRagIVOLCeRekHsYPs/wi0PTsGT4Zp8Nyy7F X-Received: by 2002:a05:6a00:21cf:b0:680:d00c:b164 with SMTP id t15-20020a056a0021cf00b00680d00cb164mr11874325pfj.34.1691443719307; Mon, 07 Aug 2023 14:28:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691443719; cv=none; d=google.com; s=arc-20160816; b=s+gquMXfK5UVSxYZIGTGv5w6OzgKb9g247PNnh1B+kH0n4SwG1e/2Jj16yVeO0NWWf CgrpEPZs5xcHQwXrmp/zmC2J3W2vjRs1NuMdazvDrFLAh79kCbad6bJ/FoqPbLvC47xy Uq1a74NrVhY5vxfcJ5n8AW5Yg09Gj6TqrGjh3gHYs1/YmwsKtFdjueSoMcq8NsbMxHqs F70DNV4mE4J2yBYwhr4w2C4HMlGtX91fa884CzvASvd/wfMq17GriYUQ0xFnwcFGP8sj z19R8Jlj5gfMt5WRPU+wmtZwpS2ACBCUXx5wSrg+1Pn7yPcWJQoYPY/7USNuAEwWfY11 UDfg== 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=fEn7Vyzxp0oT+8eRlG36dyHTspz7ckMQVTd2N8j7ySI=; fh=v6UDtM1LG1pNigs7Y52IFg78NWSS5jq/R3uih93pXmc=; b=sMnK5xGK2wWA0X5ZFWF/r1/FdvhnlDgyk1T5KI6CA6Kx6aUuNHVnQvClfvdmd8LviC ExJQRlzZ+RYTcZJBhB3VGj/pHwEEUr+JxPM274n9s42gpdCamzkbck8K310iKM2dB82d BLdUABKqNG3tQ0ssoDjtuscgIMIUb0Oy4ygIZ8lr4vrTAf8thRPuCDt05PuoiWYcNFtE RQr5cGZiUiviYwvlgdELdDENH9PdadSoLwyx0EPrQI02G7L//Dr1ltE5HZRsD9T/fSP5 rwZWkwSpBGQJ5Cy4FTVRq5x3tRIMYvJlUDO0h23wLFDtTj6vcPV3sJmauP+EAB/0mGc5 k1vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=2xJv9sDH; 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 g15-20020a056a000b8f00b00682c0908d51si6317268pfj.126.2023.08.07.14.28.26; Mon, 07 Aug 2023 14:28:39 -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=2xJv9sDH; 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 S231376AbjHGTfh (ORCPT <rfc822;aaronkmseo@gmail.com> + 99 others); Mon, 7 Aug 2023 15:35:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230429AbjHGTf0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 7 Aug 2023 15:35:26 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CF031722 for <linux-kernel@vger.kernel.org>; Mon, 7 Aug 2023 12:35:24 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3fe4cdb724cso28864255e9.1 for <linux-kernel@vger.kernel.org>; Mon, 07 Aug 2023 12:35:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691436923; x=1692041723; 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=fEn7Vyzxp0oT+8eRlG36dyHTspz7ckMQVTd2N8j7ySI=; b=2xJv9sDHJKP5PmcQdVHo1SUlesf5gaJlLd8lQYvoteDchIWKBRSVJAMI1oZpAr27Ec wRwU11Jx/l6GHM3u6UvvAZX8cqvyhiUppJd3l7U1NPJkP3Xss8KlH8homneaSFWCPVXy kcptShpBP3L9qosCIjH8M2OLqVFnX/AnWy+uyDeTfQZ1ndG0pxKg4ADQVZb3fbJaIvkp XJ7imsBYFC22SFv+0yZSXrhW3dmfop09nGBchQ1pot7JY7JjhKlebDzqlF0g97fYWrYj La3D1AuBVu6LdDL0jLMmhi1WJ8CS5l22HW9VEI0LkH2cY7ZoLrzmsS+g2iosDBX6dHc5 YJZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691436923; x=1692041723; 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=fEn7Vyzxp0oT+8eRlG36dyHTspz7ckMQVTd2N8j7ySI=; b=ehfwqpqJ5BmrneTxM7g9s7xICBBL4CppTkarJPQRgDKGI90vZmf5ru8r6JAMoYTil2 NcbjNsghYXWhNR/bE6GTXFbmWCzBFFUzvO8/lbjKh38FnPNDJMuBqFNW/TPdfwCPy6D6 YNXM+A77brYW7GEIAkSq+lkOLI+SF7Dm0ZULH3xACSn1DrUmf0SrcB2cFZkn0zu2xwfe uQDHDPAxIzD9JDeRkuQ4YArYuZ8yByOGvdRN7aP9JXDASiXWtwTZriev5XRJ31wqSv03 T6V8jrvae7rKy851GeMYr28RtKuqoXBRNTNeBA4HpR8lB4a9lRKmiEEkPldHopsmMgE7 oENA== X-Gm-Message-State: AOJu0Yzs4j+VN0uJlMhsloFlRlHidh4hVOeGhj1ORLv5Y5/1+/8cT/s0 9moTLPXLNEeepeiwrKayBo5bmg== X-Received: by 2002:a7b:c7ca:0:b0:3fe:4548:188d with SMTP id z10-20020a7bc7ca000000b003fe4548188dmr7888606wmk.7.1691436922836; Mon, 07 Aug 2023 12:35:22 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:b3d6:9e6:79d9:37cd]) by smtp.gmail.com with ESMTPSA id q9-20020a1ce909000000b003fc04d13242sm16061488wmc.0.2023.08.07.12.35.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 12:35:22 -0700 (PDT) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Alex Elder <elder@linaro.org>, Srini Kandagatla <srinivas.kandagatla@linaro.org>, Andrew Halaney <ahalaney@redhat.com> Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Subject: [PATCH 4/9] arm64: dts: qcom: sa8775p-ride: add pin functions for ethernet1 Date: Mon, 7 Aug 2023 21:35:02 +0200 Message-Id: <20230807193507.6488-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230807193507.6488-1-brgl@bgdev.pl> References: <20230807193507.6488-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773607289346263835 X-GMAIL-MSGID: 1773607289346263835 |
Series |
arm64: dts: qcom: enable EMAC1 on sa8775p
|
|
Commit Message
Bartosz Golaszewski
Aug. 7, 2023, 7:35 p.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Add the MDC and MDIO pin functions for ethernet1 on sa8775p-ride. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
Comments
On Mon, Aug 07, 2023 at 09:35:02PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > Add the MDC and MDIO pin functions for ethernet1 on sa8775p-ride. > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > --- > arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts > index 09ae6e153282..38327aff18b0 100644 > --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts > +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts > @@ -480,6 +480,22 @@ ethernet0_mdio: ethernet0-mdio-pins { > }; > }; > > + ethernet1_default: ethernet1-default-state { > + ethernet1_mdc: ethernet1-mdc-pins { > + pins = "gpio20"; > + function = "emac1_mdc"; > + drive-strength = <16>; > + bias-pull-up; > + }; > + > + ethernet1_mdio: ethernet1-mdio-pins { > + pins = "gpio21"; > + function = "emac1_mdio"; > + drive-strength = <16>; > + bias-pull-up; > + }; > + }; > + With the whole "EMAC0 MDIO handles the ethernet phy for EMAC1", this doesn't seem to make sense. I don't have all the schematics, but these pins are not connected from what I see.
On Mon, Aug 07, 2023 at 04:18:21PM -0500, Andrew Halaney wrote: > On Mon, Aug 07, 2023 at 09:35:02PM +0200, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > > > Add the MDC and MDIO pin functions for ethernet1 on sa8775p-ride. > > > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > --- > > arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 16 ++++++++++++++++ > > 1 file changed, 16 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts > > index 09ae6e153282..38327aff18b0 100644 > > --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts > > +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts > > @@ -480,6 +480,22 @@ ethernet0_mdio: ethernet0-mdio-pins { > > }; > > }; > > > > + ethernet1_default: ethernet1-default-state { > > + ethernet1_mdc: ethernet1-mdc-pins { > > + pins = "gpio20"; > > + function = "emac1_mdc"; > > + drive-strength = <16>; > > + bias-pull-up; > > + }; > > + > > + ethernet1_mdio: ethernet1-mdio-pins { > > + pins = "gpio21"; > > + function = "emac1_mdio"; > > + drive-strength = <16>; > > + bias-pull-up; > > + }; > > + }; > > + > > With the whole "EMAC0 MDIO handles the ethernet phy for EMAC1", this > doesn't seem to make sense. > > I don't have all the schematics, but these pins are not connected from > what I see. I kind of agree. I've seen different ways of describing pinmux. What i've done for Kirkwood was to put all the common pinmux configurations into the SoC .dtsi file. The .dts file can then reference it if needed. In this case, since the bus is unused, it seems odd to mux it. And later versions of the board could actually use the pins for something else, GPIOs etc. Andrew
diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 09ae6e153282..38327aff18b0 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -480,6 +480,22 @@ ethernet0_mdio: ethernet0-mdio-pins { }; }; + ethernet1_default: ethernet1-default-state { + ethernet1_mdc: ethernet1-mdc-pins { + pins = "gpio20"; + function = "emac1_mdc"; + drive-strength = <16>; + bias-pull-up; + }; + + ethernet1_mdio: ethernet1-mdio-pins { + pins = "gpio21"; + function = "emac1_mdio"; + drive-strength = <16>; + bias-pull-up; + }; + }; + qup_uart10_default: qup-uart10-state { pins = "gpio46", "gpio47"; function = "qup1_se3";