From patchwork Thu Apr 13 19:15:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Halaney X-Patchwork-Id: 8143 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1271099vqo; Thu, 13 Apr 2023 12:28:40 -0700 (PDT) X-Google-Smtp-Source: AKy350YB+alkkArkDk1VkZW2Fc20o4Ji3rCmRfBXmAH15vW0bfbw1Pnm4KkWo6Bo7nRj7HSPhzh1 X-Received: by 2002:a05:6a00:1914:b0:63b:4313:f8ab with SMTP id y20-20020a056a00191400b0063b4313f8abmr4548876pfi.0.1681414120174; Thu, 13 Apr 2023 12:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681414120; cv=none; d=google.com; s=arc-20160816; b=c72heMGXroPR5c2ZNneJv/KT3/SziBPLPzj3zxiH1xDF8G6lY5CAZCJPg+W2oxwI9g ojndi2l0chy5RLTJyvs0zngks/N+PRfErQp2euhgksw7huTxyDKfX5oSyLWZFieQilhf FYyMxdAFadNAsQ0LZwrJSyk/q/dN4aVbO4SP2otJLdewEbjQ7ns51OK5UmkJdZx2u4eP tN7s04W2vTR/LMY621P2lq69rSLzDiXwoagFLp18r1mqvDiyTysprziF8BzalOK6/NJS TCgyIJjWW1w0JKI1kLrrQayl0JtyRvTNWE9ozUlYtaFd5Bt8n9HGK7dtX4lNFPtl3jKV PGDQ== 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=CyFNTW2bH08UNfrtJb8ahm47RC7NlEjQsoGfNVxd6ws=; b=qBwhh3Wchbc6Qa1C6EcgKiRBEUdDxculaKwKQ3UnNXMopZtJdPTvVScqvK3BfyM0fu zRxIQQXwpVk8QKyqfASUzqliKyz0qSZD4LWk6R9t/zNX3Tx+nPuL/L9FbxrXa/hXB2i9 tahPkTtb3qOIABXx+e7Igod4RBK6/UYUwduqC3urjgty/fZ0fuWdhdj3SyXAwwCmoUue 4ni8mJtVnE2kv+dBERok/AVQRuaOoMC5D3igXE4yocr8GqerNLT7i1NMwkxzQLCZtQz/ Okr/I79tkj+ZIeWzFYsfiZg13I8rkh5JdTfcdxRJJLJoN5VRveVzFFFAvP86NcdZjYBQ WGWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Tn3jq0yH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w123-20020a626281000000b0063b251c885fsi2327578pfb.348.2023.04.13.12.28.25; Thu, 13 Apr 2023 12:28:40 -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=@redhat.com header.s=mimecast20190719 header.b=Tn3jq0yH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229782AbjDMTQq (ORCPT + 99 others); Thu, 13 Apr 2023 15:16:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229867AbjDMTQn (ORCPT ); Thu, 13 Apr 2023 15:16:43 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15B567ECD for ; Thu, 13 Apr 2023 12:15:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681413350; 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=CyFNTW2bH08UNfrtJb8ahm47RC7NlEjQsoGfNVxd6ws=; b=Tn3jq0yHKGMZO2rn6B7vx+cjPgsiVs2M26rOuJRoMFUJQ+G9pMr6xrCKOXMCtXw3iaL8x8 rRTIkKVMesQtru5d9V0aRFMAfhYIB4FShkxTgDuaHfC9kv9GmV3oxg4Ikvw51DAzXimIzL 5N4/GDDB4dqeLuWjXRAtrdW3zNjTEJk= Received: from mail-yw1-f199.google.com (mail-yw1-f199.google.com [209.85.128.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-549-i-l5cmYtOLSUgRFP81yYbQ-1; Thu, 13 Apr 2023 15:15:48 -0400 X-MC-Unique: i-l5cmYtOLSUgRFP81yYbQ-1 Received: by mail-yw1-f199.google.com with SMTP id 00721157ae682-54f3e30726cso122762997b3.22 for ; Thu, 13 Apr 2023 12:15:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681413348; x=1684005348; 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=CyFNTW2bH08UNfrtJb8ahm47RC7NlEjQsoGfNVxd6ws=; b=O3g9xDAHZZsC3Oc1gyiL+q2rxaBrR29FWrzFomu6uZudCdDBPnuXltq/F8Z+vosxhq eeYAwElUsVs77/DVX9IOcp4/LRtCQ7UZWf9Zu80Oott9VIdI1M8dVZY7o7d60UIhKd3L cZPv280KmuJZZKMkgQ+9UP1FgbQ6+gohRrLqLm8B+jl3L3s+i6UR8XFrYZvst8hozSUg e0lmzb+Ck+oIs5uEd3+JfK3OgA5eOpirebuxd1ipKo8bPOoziUrrv8CNCGjg6zawgwvE 2Pyvs152/94S1PhXAiaqjWmWQgSMleA2lzuAU/FKF29x3I65ZCOw7FULVjzpR/cnVB9A 2GnQ== X-Gm-Message-State: AAQBX9eGVGofr0+4TB1usac2O677dRyrNd39Mmn5HbXRAViRhwyRB1E1 50t1Hw26c8K3i/UGFnxOek4jqPoszRssgkaPHRmGRHsI9qieysdmwkbW7/4StDnLyoDpdS+Gi5u 3R0noPH4dOcPbrMj3xFelUjzezQSM2cidcCaYBq9L4P3nRkF5gv9gX8yzzx0dRqtTCwm7aJv8dX 949kQvz0v+ X-Received: by 2002:a0d:e294:0:b0:54f:d7af:dcd6 with SMTP id l142-20020a0de294000000b0054fd7afdcd6mr2199288ywe.46.1681413348007; Thu, 13 Apr 2023 12:15:48 -0700 (PDT) X-Received: by 2002:a0d:e294:0:b0:54f:d7af:dcd6 with SMTP id l142-20020a0de294000000b0054fd7afdcd6mr2199256ywe.46.1681413347695; Thu, 13 Apr 2023 12:15:47 -0700 (PDT) Received: from halaney-x13s.redhat.com (104-53-165-62.lightspeed.stlsmo.sbcglobal.net. [104.53.165.62]) by smtp.gmail.com with ESMTPSA id t11-20020a81780b000000b00545a4ec318dsm673203ywc.13.2023.04.13.12.15.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 12:15:47 -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 v5 0/3] Add EMAC3 support for sa8540p-ride (devicetree/clk bits) Date: Thu, 13 Apr 2023 14:15:38 -0500 Message-Id: <20230413191541.1073027-1-ahalaney@redhat.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763090492759911116?= X-GMAIL-MSGID: =?utf-8?q?1763090492759911116?= 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. The netdev changes have been merged, so this series should be good to go assuming it passes review (with patch 3 being the only unexplicitly reviewed patch). [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 v4: https://lore.kernel.org/netdev/20230411202009.460650-1-ahalaney@redhat.com/ 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 | 179 ++++++++++++++++++ arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 60 ++++++ drivers/clk/qcom/gcc-sc8280xp.c | 18 ++ include/dt-bindings/clock/qcom,gcc-sc8280xp.h | 2 + 4 files changed, 259 insertions(+)