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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 722C7C25B4E for ; Fri, 20 Jan 2023 07:17:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1B74C85676; Fri, 20 Jan 2023 08:17:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Tm4cfjfb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8228C84FB4; Fri, 20 Jan 2023 08:17:39 +0100 (CET) Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E568185657 for ; Fri, 20 Jan 2023 08:17:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sumit.garg@linaro.org Received: by mail-pf1-x433.google.com with SMTP id w2so3300486pfc.11 for ; Thu, 19 Jan 2023 23:17:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=V80F1uR12MomzVG+8f9/pw21nqANJaVLtmY2tmxBvZQ=; b=Tm4cfjfbKQSg8S7ZAJcQin713AAkFX8LQ4EQmBMo0UAtLI/JQs1vHeiFylqC4AEY3z yyCVjsYa+6yf//l0jGo26wcyyTnKLoPhrUuT6tT7l6/AGSFZd+YNXCA6RLxU/MOI78Oy OVMTExvrb43iTDUVVFKy8QDbdzQyiURIH5XxaxPV9OIbjPmewa5n0059ZdhG0tIXzNmS w+h+vwRNLyeQ1M4AZyKfkRInrnkthzkgHSPoTfi1euiciAVTPzhN1wEKj+x337LmE33C OVO3D3LGHNJd/1W6RApusYry9pThGo7Bn4eXQdHMJzUi+7WPRJ5WwUSHUXJZnFTdAG4H yh9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=V80F1uR12MomzVG+8f9/pw21nqANJaVLtmY2tmxBvZQ=; b=0vURVvdCwFByLrVP0un0YQSfmAF/T8m9vD8+T5i2GHygL8p51aJZ5Xr69ZSDoiYIku l4nfxUR/NZU8xAIgzDPoa+FtDQjTnP1Mf7sdx+5tjlmhc+wZwNHBS1/ExceH0dEFNpqq 1u8MG1IMmHTkO4L4hwnAAT3K6BrANT3c2WRntLme0xBZJ3deAaozwhlVF21o1VHoSKPD E7vcdPzTLA08nDcyk50ZhDlu6xlHZG7V0yXOyG6U6ThKIgY0LGTEPzN2jlDflJo97n0J Q7cZAVXJGX+JShVduoz9GCqy7nR/a0ofOl0I/+RloctJxYSJd/wr95D67c6dXAy+4Euj MGFw== X-Gm-Message-State: AFqh2kpXRMzBuRs/Sebj/lMEr1Hgkz6dKliqG+KTVKyNHO2snP5lZIO+ 0g2OOacBZGZh+5WEealj9ca0PNxMFTzGuT86 X-Google-Smtp-Source: AMrXdXszjPs4M3qtuh8p0r7gpYTVAEb8KYKndTI6kCgCmyOZP9vCWButiuORXADliGWYkg3mCmHCow== X-Received: by 2002:aa7:9569:0:b0:58b:97f2:2e3b with SMTP id x9-20020aa79569000000b0058b97f22e3bmr14176492pfq.1.1674199054919; Thu, 19 Jan 2023 23:17:34 -0800 (PST) Received: from sumit-X1.. ([223.178.212.120]) by smtp.gmail.com with ESMTPSA id x15-20020aa7956f000000b0058bacd6c4e8sm9797586pfq.207.2023.01.19.23.17.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 23:17:34 -0800 (PST) From: Sumit Garg To: u-boot@lists.denx.de Cc: rfried.dev@gmail.com, hs@denx.de, joe.hershberger@ni.com, stephan@gerhold.net, mworsfold@impinj.com, lgillham@impinj.com, jbrennan@impinj.com, nicolas.dechesne@linaro.org, vinod.koul@linaro.org, daniel.thompson@linaro.org, Sumit Garg Subject: [PATCH 00/14] QCS404: Add ethernet and I2C drivers Date: Fri, 20 Jan 2023 12:47:05 +0530 Message-Id: <20230120071719.623661-1-sumit.garg@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Patch#1 is a fix for QCS404 system memory map to not map reserved memory regions as an occasional system hang is observed. Rest of the patches add support for Qualcomm ethernet and I2C drivers specifically tested on QCS404 SoC. Sumit Garg (14): qcs404: sysmap: Don't map reserved memory ranges qcs404-evb: Enable msm_gpio driver support clocks: qcs404: Add support for ethernet clocks pinctrl: qcs404: Enable ethernet pinmux options pinctrl-snapdragon: Get rid of custom drive-strength values net: dwc_eth_qos: Make eqos_get_tick_clk_rate callback optional net: dwc_eth_qos: Allow platform to override tx/rx_fifo_sz net: dwc_eth_qos: Add Qcom ethernet driver glue layer dts: qcs404-evb: Add ethernet controller node clock-snapdragon: Add clk_rcg_set_rate() with mnd_width=0 clocks: qcs404: Add support for I2C clocks pinctrl: qcs404: Enable I2C pinmux options i2c: Add support for Qualcomm I2C driver dts: qcs404-evb: Add I2C controller nodes arch/arm/dts/dragonboard410c.dts | 3 +- arch/arm/dts/dragonboard820c.dts | 3 +- arch/arm/dts/qcom-ipq4019.dtsi | 1 - arch/arm/dts/qcs404-evb.dts | 200 +++++- arch/arm/mach-snapdragon/clock-qcs404.c | 118 ++++ arch/arm/mach-snapdragon/clock-snapdragon.c | 24 + arch/arm/mach-snapdragon/clock-snapdragon.h | 2 + .../include/mach/sysmap-qcs404.h | 31 + arch/arm/mach-snapdragon/pinctrl-qcs404.c | 13 + arch/arm/mach-snapdragon/pinctrl-snapdragon.c | 8 +- arch/arm/mach-snapdragon/sysmap-qcs404.c | 14 +- configs/qcs404evb_defconfig | 1 + drivers/i2c/Kconfig | 6 + drivers/i2c/Makefile | 1 + drivers/i2c/qup_i2c.c | 592 +++++++++++++++++ drivers/net/Kconfig | 7 + drivers/net/Makefile | 1 + drivers/net/dwc_eth_qos.c | 35 +- drivers/net/dwc_eth_qos.h | 4 + drivers/net/dwc_eth_qos_qcom.c | 612 ++++++++++++++++++ .../dt-bindings/pinctrl/pinctrl-snapdragon.h | 22 - 21 files changed, 1658 insertions(+), 40 deletions(-) create mode 100644 drivers/i2c/qup_i2c.c create mode 100644 drivers/net/dwc_eth_qos_qcom.c delete mode 100644 include/dt-bindings/pinctrl/pinctrl-snapdragon.h -- 2.34.1