Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1685022rwl; Fri, 31 Mar 2023 15:15:16 -0700 (PDT) X-Google-Smtp-Source: AKy350ZTnTSF7iGSiSkp1FtGezjNMqEJqwvPplXiCvNPn7S0VoXvZitG/PNSgIUkhva0a2kLShev X-Received: by 2002:a17:906:207:b0:933:23c4:820b with SMTP id 7-20020a170906020700b0093323c4820bmr6101132ejd.4.1680300915941; Fri, 31 Mar 2023 15:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680300915; cv=none; d=google.com; s=arc-20160816; b=x/Y1pvN7wk2p89Vl3wGUFJAt+7WWTsaCLlKET/XNcM5stuAIFlLpGkONQUukOSP/Zr 1P156LbhDgay8uK2EUa3yuI/q2/Wiu//1clwGdSePhuIlxtQzuj4nHIOdS1LTkuXThja Od3ZFrft3itVOrCSFXdqxrl0kImmV3BMwJLjRDLo01k9EmN1r7wuxlvzdHlMJ3SsUIUy r6RjFR0/7ZCSOFWvw473QApDselINaXHtbieKpdKDcpA9idvCInjDBtMwiRWESYSS4ut lnTs/DR87rfKNhyhGOkp9guoPSKMr+9leTzmLhuFn7hBMlLZQXf46vmZ0Bev96N+Pqnj c28Q== 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=7tV7oZA0rf1CWc0Q6Zc1vdOEds4O2Q0Uu3zvNJJAMp4=; b=IqSWWBbXpwICq+88ZCBA+nUqrYIzyNcVVAVOEFfXVYYCvTFPuwWZ8O3zUt45ATLckc zeGdH5VsxsF1582fKI0rkdpjpHP5snix3Hm7u/kEwjtLA6BDDZdztuFof/tE5ucLdW76 VKCT7wJVdIJ18kaeewLf1PnQVAjYV6ucljWKK/MwggLGDMy89WnywWkzrDdKsGmXr1GH kxEVqA1vSoC68wXodkB9a52S8GxIj65LRQCu5aLqsKvny/vcDkwU0HdvuON449coPeoM 6oMU+Rve7MIkZMsl+/iCNwC7TUQdX05w9xdFprrm8ox6YDce9eyrFXLwArJI0a0WMr41 462g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=M9mAM9Ml; 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 qt1-20020a170906ece100b0093b4e9918fdsi2576798ejb.154.2023.03.31.15.14.50; Fri, 31 Mar 2023 15:15:15 -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=M9mAM9Ml; 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 S233260AbjCaV7j (ORCPT + 99 others); Fri, 31 Mar 2023 17:59:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232917AbjCaV7g (ORCPT ); Fri, 31 Mar 2023 17:59:36 -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 BD36022907 for ; Fri, 31 Mar 2023 14:58:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680299897; 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=7tV7oZA0rf1CWc0Q6Zc1vdOEds4O2Q0Uu3zvNJJAMp4=; b=M9mAM9Ml9vBVA313qdJB0VbXqpash/b/JS7mYulmYD/BCuJwEYroF4N3hr53SSw26dgTw8 jGoTyT0Mo2khe3Md+F+S91jVCvz4V9EKEZO/FV7MFwlzeNC3ZQwmrxEUz8gcy0qxjYxiTt xxJcQktPsR1PgNW6xUfVr8f1GzOVGKQ= Received: from mail-oo1-f69.google.com (mail-oo1-f69.google.com [209.85.161.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-167-yDbvsh2lP72Fcnm6dMRU_A-1; Fri, 31 Mar 2023 17:58:15 -0400 X-MC-Unique: yDbvsh2lP72Fcnm6dMRU_A-1 Received: by mail-oo1-f69.google.com with SMTP id z133-20020a4a498b000000b0053b5c4e33c5so6422015ooa.6 for ; Fri, 31 Mar 2023 14:58:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680299895; 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=7tV7oZA0rf1CWc0Q6Zc1vdOEds4O2Q0Uu3zvNJJAMp4=; b=bma4+74++VfoXm02v743d3xDyz4jMRSxL9ZEekmT8eB4UUBCiCRfU1ZnoJv+iaDvmI K2Kp2K+5ZxkhFV0WXmdYaz9uDhKILTt7YwhKYmqBcfZiA200GmzgarQsc8YT5YRDag/R sQMSEibVJzKONeWwjlKxlOcqayvIU+NVNbIfcn+3Jxuy7kvB1lTpC6u+0iWkzlFniaf+ DOaEr28hM5IUfwlpYXDF9/UwmviMBy9yjUJPixtLYww8+XZ0FhcL4NokLCugRBkKrdRb pyRWJ2eLGfjT8sWqg/Gtg4kxplLKfQ+HWc3AHo7OmrNmjnhnGMLFGwF4vlLIdiaxcRPo iTWg== X-Gm-Message-State: AAQBX9fGYixLh8gjRyBFHlQNx1MjiRbfcGEPLdymlKleNXx9o0UhR36C PkHrGAgK48Aya7ebOcwcnmxy8ZOcgBxwuT4MKubKC03eG7AbsNEbfCGFjm+5ZLotJeLagyZd/eA S1O5wpsuVTOfX/g8V0V4YVnFMhwPgSyAy8VKTGzu5YCWrfaTWkmR6grQJiHDWbi1fQyQOshI5U3 HLRsQ8IBmT X-Received: by 2002:a05:6808:317:b0:389:802c:e05c with SMTP id i23-20020a056808031700b00389802ce05cmr2914625oie.36.1680299893361; Fri, 31 Mar 2023 14:58:13 -0700 (PDT) X-Received: by 2002:a05:6808:317:b0:389:802c:e05c with SMTP id i23-20020a056808031700b00389802ce05cmr2914579oie.36.1680299891595; Fri, 31 Mar 2023 14:58:11 -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 g11-20020a4a894b000000b0053bb2ae3a78sm1299277ooi.24.2023.03.31.14.58.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 14:58:11 -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 v3 0/3] Add EMAC3 support for sa8540p-ride (devicetree/clk bits) Date: Fri, 31 Mar 2023 16:58:01 -0500 Message-Id: <20230331215804.783439-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=-0.2 required=5.0 tests=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 time / maintainer tree. The associated v3 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/20230331214549.756660-1-ahalaney@redhat.com/T/#m0afcad0e8031c02bcb5dbfb86cb8acfc287968fe 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 | 181 ++++++++++++++++++ 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, 260 insertions(+) -- 2.39.2