From patchwork Tue Apr 11 20:20:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Halaney X-Patchwork-Id: 13208235 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07E20C77B72 for ; Tue, 11 Apr 2023 20:21:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229527AbjDKUVY (ORCPT ); Tue, 11 Apr 2023 16:21:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229805AbjDKUVW (ORCPT ); Tue, 11 Apr 2023 16:21:22 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60A8B46A5 for ; Tue, 11 Apr 2023 13:20:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681244425; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1X1257RiPm0+EqIQdLdY8EZJdNOboaVApm9s8W5RPoA=; b=VUOCpcvpr9wsNj9SWXB+DvZTkYCav0TQy2bYRPwb9gV+RI/I6up6fHe46YyGwuKEj3J0w2 47+1jW4XxnpbeEFy8HegdxQqMGfveZRxz6e8Sw7QLvzMnVRmoLKlbTzkaAu8lmw5Gf7nok czwN4EW5M5zlNnHAwirRElOQgZkpBg4= Received: from mail-oo1-f71.google.com (mail-oo1-f71.google.com [209.85.161.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-34-zeBXpb_rMv2CPDfVE8L93Q-1; Tue, 11 Apr 2023 16:20:24 -0400 X-MC-Unique: zeBXpb_rMv2CPDfVE8L93Q-1 Received: by mail-oo1-f71.google.com with SMTP id j3-20020a4a9443000000b0053b693ef13dso3066971ooi.16 for ; Tue, 11 Apr 2023 13:20:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681244423; 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=1X1257RiPm0+EqIQdLdY8EZJdNOboaVApm9s8W5RPoA=; b=d5IWmJHMDjnfIZwdZu+c3Fy8iHs2VptMxerNuicPmBRne6vQrEJvP6qXREYxZBDTdf kTINS7DrbmFC296lrYyFbGBWr2SfFPQw1+Ik7irXp77Sxn8QZAwWdT2JC8tz4YEnHNFU Wq79m/jdYHKTYjOhT1phf5jm8ech+r8VdBC5sP3e6xnMljJ+qRF+O2qIA5mDs5Pe8fps kY53jP7Ct8Xwq2K6GE70xT9zzqSU07Vr7qvOSJGee8fwpNW8hFB7eswnTuoT2KkQnLLh WqiyLI0TQjSGGT+nY1xhAYiRDfyPoFjiIY6z02LyHGg1lKddIAS+ogiXZf6YHdrBIlXk oOSg== X-Gm-Message-State: AAQBX9dPtg+pDVNydulDcEf1B+rvtpiA5V45vbIWHDx4ZFkE6EBpNMwJ dasC0Z0FjLRqkDQ0g5rJ272eyXvpi4iaLuhBx6s2bmPINSpps3BtQSyAEwAg38f3pHD417o/1+P ttMhMZmdOnWqjjTG1vesz X-Received: by 2002:aca:2116:0:b0:384:2d3d:8dab with SMTP id 22-20020aca2116000000b003842d3d8dabmr6403623oiz.58.1681244423569; Tue, 11 Apr 2023 13:20:23 -0700 (PDT) X-Google-Smtp-Source: AKy350YJHMM7YveuM1hzKClhx7F7zKb9Wmh+6PKHIi//bXeiNy/POD5elG9ihQ3BmihU0dfLzqgvfg== X-Received: by 2002:aca:2116:0:b0:384:2d3d:8dab with SMTP id 22-20020aca2116000000b003842d3d8dabmr6403605oiz.58.1681244423339; Tue, 11 Apr 2023 13:20:23 -0700 (PDT) Received: from halaney-x13s.attlocal.net (104-53-165-62.lightspeed.stlsmo.sbcglobal.net. [104.53.165.62]) by smtp.gmail.com with ESMTPSA id a6-20020a056808120600b003874631e249sm5976710oil.36.2023.04.11.13.20.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 13:20:22 -0700 (PDT) From: Andrew Halaney To: linux-kernel@vger.kernel.org Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, richardcochran@gmail.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, netdev@vger.kernel.org, bmasney@redhat.com, echanude@redhat.com, ncai@quicinc.com, jsuraj@qti.qualcomm.com, hisunil@quicinc.com, Andrew Halaney Subject: [PATCH v4 0/3] Add EMAC3 support for sa8540p-ride (devicetree/clk bits) Date: Tue, 11 Apr 2023 15:20:06 -0500 Message-Id: <20230411202009.460650-1-ahalaney@redhat.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org This is a forward port / upstream refactor of code delivered downstream by Qualcomm over at [0] to enable the DWMAC5 based implementation called EMAC3 on the sa8540p-ride dev board. From what I can tell with the board schematic in hand, as well as the code delivered, the main changes needed are: 1. A new address space layout for dwmac5/EMAC3 MTL/DMA regs 2. A new programming sequence required for the EMAC3 base platforms This series addresses the devicetree and clock changes to support this hardware bringup. As requested[1], it has been split up by compile deps / maintainer tree. The associated v4 of the netdev specific changes can be found at [2]. Together, they result in the ethernet controller working for both controllers on this platform. [0] https://git.codelinaro.org/clo/la/kernel/ark-5.14/-/commit/510235ad02d7f0df478146fb00d7a4ba74821b17 [1] https://lore.kernel.org/netdev/20230320202802.4e7dc54c@kernel.org/ [2] https://lore.kernel.org/netdev/20230411200409.455355-1-ahalaney@redhat.com/T/#t v3: https://lore.kernel.org/netdev/20230331215804.783439-1-ahalaney@redhat.com/T/#m2f267485d215903494d9572507417793e600b2bf v2: https://lore.kernel.org/netdev/20230320221617.236323-1-ahalaney@redhat.com/ v1: https://lore.kernel.org/netdev/20230313165620.128463-1-ahalaney@redhat.com/ Thanks, Andrew Andrew Halaney (3): clk: qcom: gcc-sc8280xp: Add EMAC GDSCs arm64: dts: qcom: sc8280xp: Add ethernet nodes arm64: dts: qcom: sa8540p-ride: Add ethernet nodes arch/arm64/boot/dts/qcom/sa8540p-ride.dts | 180 ++++++++++++++++++ arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 59 ++++++ drivers/clk/qcom/gcc-sc8280xp.c | 18 ++ include/dt-bindings/clock/qcom,gcc-sc8280xp.h | 2 + 4 files changed, 259 insertions(+) Tested-by: Brian Masney