Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1437023iob; Sat, 14 May 2022 08:58:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb7lUUWm3hpHCYk8IRN3xMmyVDmUwO+E5A4PrjHnOGeUQbw4B7Do7CNMF+kqruLb6hh4ZK X-Received: by 2002:a17:906:1845:b0:6f4:346f:f767 with SMTP id w5-20020a170906184500b006f4346ff767mr8485896eje.214.1652543920128; Sat, 14 May 2022 08:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652543920; cv=none; d=google.com; s=arc-20160816; b=zEQVsGrWlRkoxETZFEjxHDiHqsRdANfWgafaCMNCV93FJBSWwGnAeXO3vfp7ThRa/e 82N3OjdTRzsffWjnKysQw8DGifGZ+D/3T3kCYooYwbLAwSzy73W2DV1WHxaWVZw7JhqC dShbdKAfErTfFeWWHfs17EjBzeAqzxj90w2dNCWMpXFzpJHyAjrXKaVoF6n4EFxrS/Xm MFUPK3yJLhWd5JIPe9XXyzvA2GPCTbVez8mTG0qabbVxE7Z0uHjCNBjvupnYsQRzP7jH b15u/XseucZnxTptd8AbRRexDqQmCeE3/7bDCe5aE568UWqFw4SYtuonF9UqFXbos920 2Img== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oioTQWxtec+lTDMdLAC/e7vnn3p17HifwpG1OTnINv4=; b=YnEageSXgcE0EKmjTuaSJYUzOqnprDYoAw8fhMKdaAKWa6/dEK87760lk7o4EH6rih 6wsqyx8Nj5bEZ6mPtSDztEc66fj+0/tHgFZcEtIU0vsFRLKLV9GJfEIWEwBgyJ4tlW8w eHtxDgOur4Ec4K8Be3D4zoS6vLEVCEEwe2oYKReAUg2w5oDXB1eHZOpOoXU06hKW3Z7Y bfXagaF7PboTiP/XmK2xrNWwWj1aWA9MtX0CoYeX3Iaf1WrAVNOvH4OxoAbRD+EtRNRw lZfI6wxK4eYRZDtpYGGlMkQiZi4XAoJCkWhmGcDlOamL4fqRFg37njU3rpBQQr0ZqJKc o9dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=AcgJ09xZ; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l13-20020a170906794d00b006f39baaeacbsi5632156ejo.70.2022.05.14.08.58.13; Sat, 14 May 2022 08:58: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=@bootlin.com header.s=gm1 header.b=AcgJ09xZ; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233909AbiENPHk (ORCPT + 99 others); Sat, 14 May 2022 11:07:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233760AbiENPHg (ORCPT ); Sat, 14 May 2022 11:07:36 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18529BCA9; Sat, 14 May 2022 08:07:10 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id E632AC0014; Sat, 14 May 2022 15:07:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1652540829; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oioTQWxtec+lTDMdLAC/e7vnn3p17HifwpG1OTnINv4=; b=AcgJ09xZ4e+zg7/UmOi0sFyCRaSdje5F0p8i1vR0nMZXkUsc1hrpzCBlrgQin7zodGmfNZ aTLoYQZ7Yba8rJrNiebFwg6t5+YH2rTM4HhH5sBCnTyBSIz0fctZYBFLbhdWyv2op3ah3b I9NrHXJp93o9cgpk/nwqPqgMFY3MxluYkhUWWWQNcm8SPCCP5LUpmx5YENva3W8xOgsJNz txhZsJHbsr1tIXFoT+0ukCmwzPy7GE+7fcdllhLgK0JMnStAl/PDy1EV+ZmVKrtUeojQFZ nsfUyvi8sZS/5KEDzonLXmasWbF2yv1ev2VkIC2CQZDjhtDmaH8ANh/BM4vIdg== From: Maxime Chevallier To: davem@davemloft.net, Rob Herring Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Florian Fainelli , Heiner Kallweit , Russell King , linux-arm-kernel@lists.infradead.org, Vladimir Oltean , Luka Perkov , Robert Marko Subject: [PATCH net-next v2 5/5] ARM: dts: qcom: ipq4019: Add description for the IPQESS Ethernet controller Date: Sat, 14 May 2022 17:06:56 +0200 Message-Id: <20220514150656.122108-6-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220514150656.122108-1-maxime.chevallier@bootlin.com> References: <20220514150656.122108-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,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 The Qualcomm IPQ4019 includes an internal 5 ports switch, which is connected to the CPU through the internal IPQESS Ethernet controller. This commit adds support for this internal interface, which is internally connected to a modified version of the QCA8K Ethernet switch. This Ethernet controller only support a specific internal interface mode for connection to the switch. Signed-off-by: Maxime Chevallier --- V1->V2: - Added clock and resets arch/arm/boot/dts/qcom-ipq4019.dtsi | 46 +++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom-ipq4019.dtsi index cac92dde040f..1afabee37fc6 100644 --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi @@ -38,6 +38,7 @@ aliases { spi1 = &blsp1_spi2; i2c0 = &blsp1_i2c3; i2c1 = &blsp1_i2c4; + ethernet0 = &gmac; }; cpus { @@ -668,6 +669,51 @@ swport5: port@5 { /* MAC5 */ }; }; + gmac: ethernet@c080000 { + compatible = "qcom,ipq4019-ess-edma"; + reg = <0xc080000 0x8000>; + resets = <&gcc ESS_RESET>; + reset-names = "ess"; + clocks = <&gcc GCC_ESS_CLK>; + clock-names = "ess"; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + + status = "disabled"; + + phy-mode = "internal"; + }; + mdio: mdio@90000 { #address-cells = <1>; #size-cells = <0>; -- 2.36.1