Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5964779rwr; Mon, 1 May 2023 13:53:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5FHrwbbemIycMnTPUl5+qdHJOQVappnYdtEoeF24VLlQOacTjlVo0uYzSSkAHSRJJNbpwH X-Received: by 2002:a17:903:11c4:b0:1a9:7365:fc2a with SMTP id q4-20020a17090311c400b001a97365fc2amr18842598plh.26.1682974435880; Mon, 01 May 2023 13:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682974435; cv=none; d=google.com; s=arc-20160816; b=egQyksV8sr1iMnFgzcIVppIrSNU0qq5yBVlPVXNgyOuM0fv+hIc0WrvNYnMDQmPhNi sDJwTNMtB2P2wQ2roR3aUfcGCTi70Ra1llTf9yafpcs0E8ORUiTaA+LrTCqQB55stF8b uDaGlaLAChHhrt2vZRLrzctAtoGPAhNYA3TW49QRTnQElToQOPlazpVh16+Bi472pV9j 6eqxyOFBmeWK/l9Uub4LLXgRuqJEtjW06HG4wV8Zs91vuCIpQ6vZA4Fgn4nxWXRuPrYA W3pwV8kn7+X04YlyaUTTu6SrLoRPABfGcfak7IQEP7Wr7IlHLVngCxegUV5OXe129VJ+ mxIg== 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=MGG0ntCow/QlbibW6t17IUqC8Xi8ZkqGV/oovhxkl0U=; b=ziJetUunAqxqyu+AF10/Jr0POVgNMUdSXp7HRauCPGq7IPW1k1T1VCYbDRR8/VCWYu IHOU0IOgBEFQZlgJC2busSf2IqK1p9U8lUmpG6Iu+kGa0qTClU2asTT75GyG2KcnTxtv y7azNFaMDnGzLYyf4vwebjlaRTF3VXZLRjyQt3vTtIiIqZkTYbQkkDGcpPvbsiu3P2f1 Hfzp4qMo0fp3l3XhebkyrXSLa48BU6fm1BDIslBLqABfWuvT+Xy0KOvo5XegLgdtUJIx b/kcj5QRjwJakMzmHmg+dKWQxlPAk/eHCJFteAtYxtRx8QBkjeoVa1yBRZDRy38H9O8U RIMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YvIuHWGP; 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 w8-20020a170902e88800b001a6a015c7d9si30214091plg.623.2023.05.01.13.53.44; Mon, 01 May 2023 13:53:55 -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=YvIuHWGP; 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 S230003AbjEAUwN (ORCPT + 99 others); Mon, 1 May 2023 16:52:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbjEAUwL (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.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2F32210E 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-f70.google.com (mail-oa1-f70.google.com [209.85.160.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-616-px_Ja9FWP0WLCNCNY7C91A-1; Mon, 01 May 2023 16:51:25 -0400 X-MC-Unique: px_Ja9FWP0WLCNCNY7C91A-1 Received: by mail-oa1-f70.google.com with SMTP id 586e51a60fabf-191896a9d1dso556776fac.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=1682974285; x=1685566285; 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=PbTbRMxghEVulNUa5D0pLyUAzjzXB0vczSaL2BQ3mOM1EWbqbDINWnTxAnd7R6pT3n MhoOH+MVk4A2zuSGzLL8ieV0CvtRg+1Oa6cCPVhYm001oit9OggD8R0x0QXyJgw4ga7z ACUefoVhsvyuox31bvs4/Icp+Ug6f7oyrMidXS3XfofCURsB6LlM9KM2OZ8SJPQdqFru 6Qu5ZhLjJ9GR1VEUsTYklGPXZeFVtYfics4HKUrhvRJdPTdiVUW1Tdz0ogR36RG6r7zO mmzYjU2XrIeUdI/JpscL9isNghoS3B5Fjb16AZIS7oypKzczNWrzQY9NZJ+VABp8G6cl kxeQ== X-Gm-Message-State: AC+VfDyeoqzyYNGtvVMz+4yfHHq+vCeVqeN4oArBIpNeg53JWJXDe8oV 3cCV8arfi0UyAyFDEmJxuzlwsgbswzcsdWU5QeLV25FdlH+9zXaXRHr2rYVqz5+L5P68IsyZwcp /PkpH7rQcDyIO3C9g5rr6tWHfB/M1HK2Q2nfvtKavFZ8L4IY53cBlhTJieRgrIgqLD/PPVzpHkG le7XWhiEZz X-Received: by 2002:a05:6870:5382:b0:177:c0e4:1bd2 with SMTP id h2-20020a056870538200b00177c0e41bd2mr5434451oan.52.1682974284793; Mon, 01 May 2023 13:51:24 -0700 (PDT) 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 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,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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(+) -- 2.40.0