Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp820033rwl; Thu, 10 Aug 2023 02:01:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGI+DRkM1bAA6XGrX/PHHrUMvMJMJRuaFTgUsczCmvh7J54qHB6WH093dwg89tPjdvj3QWO X-Received: by 2002:a05:6512:64:b0:4fe:18be:ef37 with SMTP id i4-20020a056512006400b004fe18beef37mr1188825lfo.61.1691658061745; Thu, 10 Aug 2023 02:01:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691658061; cv=none; d=google.com; s=arc-20160816; b=GuMTKUeveUiA0dt8OaIbuGr6SM9i0Te5tXMoSFloOu8U5BFiZz6FDBv9mEuGuTcaZj qXj3AQOfPfEBNMkt+o8nIC1h1maQeugtmpn1Kk9zYBP2W8hYRK91Mx+Yt0aPqW1SHey/ 8ahMxCP33/Wed7d1kcXzUM1wYva/YABgyZaIb/ur5OuzLzdbz0E0dFTkZkajn04FQ4XK sX+TCis7noft0UWvRSSX99bQHHynJOAXlS+cp9J9hFyE8BBEgxIqR5Q8zxbVH2WYkCzp xSbstnLLE/x1Zzsm8dUOE7uBTVsZCK+v3JC13q8L+phGfcPxHfoc87m1ppTVwLZWbNyL H8fA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=tsX5oKEyFSe+RgZBEB8JkNzTpB96tD6QQCUVk3EhDv4=; fh=v6UDtM1LG1pNigs7Y52IFg78NWSS5jq/R3uih93pXmc=; b=YpQ0qCPTyK5f3lWznvnFFVGlRQfPaPH8LPomQZ5PKQFJ4KfchwiC52r4J200pxcTqn kL9Az9uztx6mZ/RMs1gqeRl+Bh6O/y7v73+EYeLriY1bA16hlyvtQGFyl5NWUxtQQtZE 22rBYFo30VZdaehbc8584RQ4oQ5+Js8P0g8cv9hYVmLzUYpyMGJki3ypc2soiUilutnd QzjrsBGDpsA5SEQVvamNH16iQi176MQqgmm2ti4Imr89AzUFfDaPj7BJkKYBAegaychh Xn1ZjdQskB5wDmlR9kww/sBZdt5GP7SMCTXGwgQBCqYvijX3OhET4JvC7bQNUsjHUmps zhQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=yZWUCfTH; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u22-20020aa7d0d6000000b00523409dcaabsi1040217edo.617.2023.08.10.02.00.37; Thu, 10 Aug 2023 02:01:01 -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=yZWUCfTH; 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 S233175AbjHJIJQ (ORCPT + 99 others); Thu, 10 Aug 2023 04:09:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231976AbjHJIJQ (ORCPT ); Thu, 10 Aug 2023 04:09:16 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 425121BCF for ; Thu, 10 Aug 2023 01:09:15 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3fe426b86a8so5519195e9.3 for ; Thu, 10 Aug 2023 01:09:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691654954; x=1692259754; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=tsX5oKEyFSe+RgZBEB8JkNzTpB96tD6QQCUVk3EhDv4=; b=yZWUCfTHC7LgxowkMm97O88bFAr77Q7obnNSg4cGopsi/uqBRPVsruAFADVTUr3fQc pou96Zmf+K8VrjJcYz0PwRwx/I0TOagmb6iDEPTfTRfI0t0MljUh7Sq3yfPvsSEGiyZE D452pmg7V/go7sIoHuCTSJz4jevW3pj0oLBID14MipZMUGZcRiWv/t4lDttis8uBAK8W eWMkm3r7iBV7hQVjJXy28YXDSrhCIDZVlJ6qsEqH0/iXg970m9zAciZQy7cJsdxFlMVu /OO8gGmdddDMtddSZW9MN47Jv8cABZ+ppPO/jM7jV26CTkiBUXbAcYJFRcZFmuuYKZ17 tMLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691654954; x=1692259754; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tsX5oKEyFSe+RgZBEB8JkNzTpB96tD6QQCUVk3EhDv4=; b=bVzs9lORwfuuD+vnwWcjI3ZEiTIwJ35QBL/ng84RyCU8g1nOobIvy3hugYsoEE7eNt 8/XWJfJBXgxyG4IIzCU8kPc74MFX0Qw/rUd0SlB9MQQ6o3kLRA0v5kZ7S+OHaJKu7h4F 0+XyI3od3tuAPcLMZ4RG0KxZgMK/lktGZnidflxyQ03lrLd8SEuPeVihlDGlb/8ogoQw 542tm1yQpAyELJ/+xodJy5Yly6JR5mKxpYWjspCqHCXDmP1dNo06qixL0B8VejK3pGKY iEvOwe/0v0cYen/WFh02wRL/p2KbKRb4E6pXtAUqiCLy0ScYggQWUBnCog+WUXfKRJOZ W4Vw== X-Gm-Message-State: AOJu0YxsnTRc9IwBXFbAJUEIHkDHWPFjs8s7JAyBDGx1zLEaviNbqo32 fw7moz5ggkbKRXas5VOfesZslQ== X-Received: by 2002:a1c:f716:0:b0:3fc:92:73d6 with SMTP id v22-20020a1cf716000000b003fc009273d6mr1204841wmh.11.1691654953620; Thu, 10 Aug 2023 01:09:13 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:74d3:226a:31b3:454c]) by smtp.gmail.com with ESMTPSA id y10-20020a1c4b0a000000b003fe2f3a89d4sm1321790wma.7.2023.08.10.01.09.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 01:09:13 -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 v3 0/9] arm64: dts: qcom: enable EMAC1 on sa8775p Date: Thu, 10 Aug 2023 10:09:00 +0200 Message-Id: <20230810080909.6259-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 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: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski This series contains changes required to enable EMAC1 on sa8775p-ride. This iteration no longer depends on any changes to the stmmac driver to be functional. It turns out I was mistaken in thinking that the two MACs' MDIO masters share the MDIO clock and data lines. In reality, only one MAC is connected to an MDIO bus and it controlls PHYs for both MAC0 and MAC1. The MDIO master on MAC1 is not connected to anything. v1 -> v2: - remove pin functions for MDIO signals and don't assign them to MAC1 - add a delay after asserting the PHY's reset signal, not only when it's released - remove the entire concept of shared-mdio property - add aliases for ethernet nodes in order to avoid MDIO bus name conflicts in stmmac v2 -> v3: - add a patch sorting aliases in sa8775p-ride.dts and sort the ethernet entries - remove a newline between clocks and clock-names properties - collect tags Bartosz Golaszewski (9): arm64: dts: qcom: sa8775p: add a node for the second serdes PHY arm64: dts: qcom: sa8775p: add a node for EMAC1 arm64: dts: qcom: sa8775p-ride: enable the second SerDes PHY arm64: dts: qcom: sa8775p-ride: move the reset-gpios property of the PHY arm64: dts: qcom: sa8775p-ride: index the first SGMII PHY arm64: dts: qcom: sa8775p-ride: add the second SGMII PHY arm64: dts: qcom: sa8775p-ride: sort aliases alphabetically arm64: dts: qcom: sa8775p-ride: add an alias for ethernet0 arm64: dts: qcom: sa8775p-ride: enable EMAC1 arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 102 ++++++++++++++++++++-- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 42 +++++++++ 2 files changed, 136 insertions(+), 8 deletions(-) -- 2.39.2