From patchwork Fri Jan 20 07:17:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Garg X-Patchwork-Id: 644604 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp637627pvb; Thu, 19 Jan 2023 23:17:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXsg0qQi7+YozqHP9XYJ/aEHW+UA1EjJ1YspSfuvPHjEGxi3VxBWHctDqWyCfTQF0pw+B48o X-Received: by 2002:a05:6870:8dce:b0:141:8693:e544 with SMTP id lq14-20020a0568708dce00b001418693e544mr7857125oab.22.1674199066267; Thu, 19 Jan 2023 23:17:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674199066; cv=none; d=google.com; s=arc-20160816; b=GXrvqlg4Sf2HuD9ZnYbkidza86nVAhBEL+HRLwazATz0GTgeF54u/UNXKKMSdc1ZUx YisJ7YJQK/sh2U5C1ogcqyzOrtg96QFKapR1ZQUwR8WUZKPJaZreZ4E88OBUixuSGcqV si5E1Otj7ddsdBzlH+PYSX05yJVspZWALWAInMV/Chhbx3F3TWRHn5qFJhxLpdDQm8sy LxlN6ksjWopzbh/4HL+Jf0SgXrPbtDTy3dN4AKoES2SVMefoRrGvXyqvH8v0VraKtaxk h5xarxnhScmYHhB6WqxWax4LmrY6soZEim43N2TEp/KRhD+vljzfUMbRjIp4XEjpeDRd CDYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=V80F1uR12MomzVG+8f9/pw21nqANJaVLtmY2tmxBvZQ=; b=ovv6y3+WnpDAe1aEdbKch7ZlWBPUz8vrOE5qCTWznxdEZlTIIpYT7UnheWp/bqTkaH eTZgaOBZ2+xt2gHBCcGuLe1tvBkOE+oSQ5syh0iUXK+VGyAN4HBmRX79cn41zpDK4HGv AzWC6UTjAMOmAWUtopEQDTfVbpLFhYrzuYJnSe+sdyDJsxJ3I2zt0+bZovf+2GENfuvB L6zpymv6VB2kjkUNiggvx3K1nVKeBsFkOwXsQyrrGV8s1zBSWM+l7YM2KupRO9u1GycG wLZVH7jdtAY9tLz7MI5cEYTk3mAzYjvtvYWw7N8tu8h3VNPfAiWEdR37Ywx5DPAS5QFn SIIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Tm4cfjfb; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id t18-20020a056870e75200b00144b90d886asi11526936oak.96.2023.01.19.23.17.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 23:17:46 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Tm4cfjfb; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 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-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 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