From patchwork Mon May 1 20:51:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Halaney X-Patchwork-Id: 13228333 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 E7B55C77B7C for ; Mon, 1 May 2023 20:52:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232523AbjEAUwM (ORCPT ); Mon, 1 May 2023 16:52:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230003AbjEAUwL (ORCPT ); Mon, 1 May 2023 16:52:11 -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 E437B2115 for ; Mon, 1 May 2023 13:51:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1682974286; 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=MGG0ntCow/QlbibW6t17IUqC8Xi8ZkqGV/oovhxkl0U=; b=YvIuHWGPjxaDTy5KHeTYuJbxvqTZqcNJiLTjHc592no7Hj35nG4nbKYX5gh7WWlZrK1quY 9iOOPs+WUyCc7Gf5TdDfCa6dJTGGFNLTwCenFTh+rjW2BC9runCxl6TbiFKoKwnNmFM7As 1fVfo2GeBHJQuVTs8R8BzsmWEnrImHE= Received: from mail-oa1-f72.google.com (mail-oa1-f72.google.com [209.85.160.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-169-weMlIcfDM-yzpW7SvWWHeQ-1; Mon, 01 May 2023 16:51:25 -0400 X-MC-Unique: weMlIcfDM-yzpW7SvWWHeQ-1 Received: by mail-oa1-f72.google.com with SMTP id 586e51a60fabf-191896a9d1dso556773fac.0 for ; Mon, 01 May 2023 13:51:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682974284; x=1685566284; 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=MGG0ntCow/QlbibW6t17IUqC8Xi8ZkqGV/oovhxkl0U=; b=TRgTYryU+tNoT9jVuKj11I/iN4/AFbI7EPKc02XPMfeIZalD0f84+UIaUku+4oHRob DNmZu71Vw4uOGhghvkz7jUvpqjhZoj8Kfy/FfPuFIGLpGNtgS94aQXphHgjsrGXZDK6P gZIWxPdoh5Q5fpsHrgTI7H2Nte3loaoVRPx86q1lkbhEIMH+igs3/wfxoWx06waQLt/o bJ4RjWxdFYZRsVPx7/rRI1cRNe0safQJnuDWrekjGsoZs/EtLvtYRzEndQVyKp5rL+dP hfqCMP2SMm8dDQbC12xHJC4GMoROeJwBWAIisqMbA4jdxn1EhNn9vuCtpqqDuLFVMLSp Djuw== X-Gm-Message-State: AC+VfDzFvsMWcgkzm96TrYqWZxHA+Uy7a8IDo3kRjpVqGyhcuRBgiSa9 SDYJPwgNzfiqwlEoy8/h/YhPvqoiOwYOO7AgIxmyE+TmGdeQ7elDWj8C2IBrfV+6MXkr2DRbW1d P4jaF3zKHPHi8+FoiYMoJwFF6fg== X-Received: by 2002:a05:6870:5382:b0:177:c0e4:1bd2 with SMTP id h2-20020a056870538200b00177c0e41bd2mr5434442oan.52.1682974284728; Mon, 01 May 2023 13:51:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4xrt4fm/7NX8qu/7kFtrE4UnLCYzu/sTudSj3ERVNxEHC2BNrlTT3atPqynD+G8W2tFuHDzA== X-Received: by 2002:a05:6870:5382:b0:177:c0e4:1bd2 with SMTP id h2-20020a056870538200b00177c0e41bd2mr5434437oan.52.1682974284479; Mon, 01 May 2023 13:51:24 -0700 (PDT) Received: from halaney-x13s.attlocal.net ([2600:1700:1ff0:d0e0::22]) by smtp.gmail.com with ESMTPSA id c10-20020a9d67ca000000b0069f153bb37asm12110130otn.62.2023.05.01.13.51.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 13:51:24 -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, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Andrew Halaney Subject: [PATCH v6 0/2] Add EMAC3 support for sa8540p-ride (devicetree bits) Date: Mon, 1 May 2023 15:51:03 -0500 Message-Id: <20230501205105.2518373-1-ahalaney@redhat.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 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], and is merged. The clock patch from this series was picked up from v5, leaving just the devicetree bits here. Together, they result in the ethernet controller working for both controllers on this platform. References: [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 Older versions: v5: https://lore.kernel.org/linux-arm-msm/20230413191541.1073027-1-ahalaney@redhat.com/ 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 (2): arm64: dts: qcom: sc8280xp: Add ethernet nodes arm64: dts: qcom: sa8540p-ride: Add ethernet nodes arch/arm64/boot/dts/qcom/sa8540p-ride.dts | 238 ++++++++++++++++++++++ arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 60 ++++++ 2 files changed, 298 insertions(+) Reviewed-by: Brian Masney