Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1263rwl; Tue, 11 Apr 2023 13:24:23 -0700 (PDT) X-Google-Smtp-Source: AKy350Y2IeHr8ZWvE3sMnztrnRjgSD13axwgZZTgsShUlkxkZA9WRy5VHm0tzLp0pgqwp594KhBy X-Received: by 2002:a17:902:d4c9:b0:1a1:b36d:7803 with SMTP id o9-20020a170902d4c900b001a1b36d7803mr21427249plg.36.1681244663393; Tue, 11 Apr 2023 13:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681244663; cv=none; d=google.com; s=arc-20160816; b=WVLJwsHqQp6zLmvH7hVd+8KSZzyIao7tqP3lJ1yv5wlq5JpnrqOZoTCHqSdj9XlGfd 6m/PcN4jfpKUbqDoEckgmTW8aJCE8UIqflaFmjPYqGictwl0nfrV35+v1gS2DqtWHKLt i+kLrIt0fCIFq1InmFkiq5qSwp0pVpLflnvaIXF/cJJ2MFvZlFgYbDfRJ8LB8mKWvp6x b7JLbb5KwgxDZOTi+9quUhVDUJZWUFzlISyLE15Sbt9N4l/jvA4i/gkSnoPhoAH7eMfM iqJXQAIEwaEamikzYWOiLFl5W9BEVavQ6KDmAq5r7ho7rO7pkfuCvxS0moFyV23Gra4u xWuQ== 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=1X1257RiPm0+EqIQdLdY8EZJdNOboaVApm9s8W5RPoA=; b=WJ1oR7gTTtRmoHGrATh4xgU2GGkqV+T1ivKX8xdsMPI3kYkR12XKd0zHwRlLBIhrPu dKRP7LYXu8xBKfNxMXQ+kX5mCFZrKf7xA5tuXqba9eNJ6vTNRmzBWVN1wHwM+QhoOEer wJtC98cq4HjT6rYj8zDC/+KDrFFHE9yCosu+ch8DMPo2YAUK08ArYrDVPCeME/tx5a74 +Fo+vMDwHr2y9lUAnbhSdepdedwo+u0paPdbKMqmb61Q04C/ypHmkjl3AhKmhZP2BrXL 7A5HPpPf3yNpwdf10h1fyJ+96v6X6XLqI52zMfFKf4Fm8bqexpFVOiqkndFv89AHNa+o j6ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YsGpqhqs; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b11-20020a170902d50b00b0019adf805babsi15268844plg.500.2023.04.11.13.24.12; Tue, 11 Apr 2023 13:24:23 -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=YsGpqhqs; 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 S229713AbjDKUVW (ORCPT + 99 others); Tue, 11 Apr 2023 16:21:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbjDKUVU (ORCPT ); Tue, 11 Apr 2023 16:21:20 -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 BE8FF49ED 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=1681244426; 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=YsGpqhqsJ/n9guTZ4MZm8KB0ecKH5uDS5JPFPsSbBLHv9+ziWyzsjNPPfvXgX473e4rV5G WmFfp/4mkAjB1hicsLtWyurseK/Uqtf+pglLWwQXZZpqNdfM4ApsTu7dvuyxvtxwRqwMSQ hzM2c8oE9IM5mtMoKfEusIamuIKhGYA= Received: from mail-oa1-f69.google.com (mail-oa1-f69.google.com [209.85.160.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-498-iUt1n8crNTGvysHPaOX1Iw-1; Tue, 11 Apr 2023 16:20:24 -0400 X-MC-Unique: iUt1n8crNTGvysHPaOX1Iw-1 Received: by mail-oa1-f69.google.com with SMTP id 586e51a60fabf-1842c947865so5249614fac.0 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=UZc5NwjKC42rXfVvDxcVVT2PB6MOMpqopNbVR13xwCEJzob0VU/SdAvMGkRf80Og2r +i79JyD2K2n/1H2fQhHGhchx0ullVtrhGbVUm8opl9AOnF4Lb/UtnnqDKZsTZav9vY7B MFfv7YaARzKSDLgk46ZczFFkPGA/roRYfCpjpo0iiD1VEg1t8BUdEvbkTbI8QAoe+IzE 7NM3aMQblzMIojD29mlSaMgorQeRLolB1w7TCX6/Fqfw4YBgdcFxjNgGOqZE4WvckQZy 1+rOl9r0LSWWhLAdONXsDCDL7wI3CM2a/UjIjvHG02Exa0EJF8TZ8z8GX6JlekhW8aDf VMqw== X-Gm-Message-State: AAQBX9dORyZOCsf+Cn2q77klM+DP1K2NxZ/3j69XE8qmnYDXJHut2pLx jtyc/T7b9mt6uOjngbRKnNR2dMPm2jkHqaToy+a1jjPabxhKLUjD+7nknDMspEJktKugVusN6o/ rmjRG2yKk9YAesmlhx6ELcM72LvXcZkT1ErM6sw03veNsQ8AbRoVulldXhmIeOGCTZ7a46Omxdt zmjA34oDUR X-Received: by 2002:aca:2116:0:b0:384:2d3d:8dab with SMTP id 22-20020aca2116000000b003842d3d8dabmr6403631oiz.58.1681244423650; Tue, 11 Apr 2023 13:20:23 -0700 (PDT) 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 Content-Transfer-Encoding: 8bit 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 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 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(+) -- 2.39.2