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 35360C05027 for ; Fri, 20 Jan 2023 13:38:15 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 60B2B85477; Fri, 20 Jan 2023 14:38:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gerhold.net Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gerhold.net header.i=@gerhold.net header.b="k6n20Sf3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8403D854E2; Fri, 20 Jan 2023 14:38:10 +0100 (CET) Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [85.215.255.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B43F3851E6 for ; Fri, 20 Jan 2023 14:38:07 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gerhold.net Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=stephan@gerhold.net ARC-Seal: i=1; a=rsa-sha256; t=1674221877; cv=none; d=strato.com; s=strato-dkim-0002; b=RWMJ2RpwJ7w5aabN0btrDPfscP5d9kxjXhunTX5B09xFHtLSFmBJLbifdyoXSehsir giLWmRu9nJNXK/NTOxoFbFMqfpJklSaf6aLNCQQO18/n8FvCJoVDBXuqQQ1QWIPlDbNc By4v09AFUFlEEZY876WbGVDkdSWZxuAv7PE2dFTbU2QvsA/U8Jh2D9PMZy5JosL/jhp/ M7IlWdnBvHi5PnVSxjWejVSqBcE6ho6MEjr8j1u0ozaIzZQDj685mWeqZYxjQRjtGayP JcSDZZl/M+3OUdsMGE4tRdqTh8FIymCFV4Wd3ye2TEQweQknDiUSSzgd9ucBef1dpT66 D6mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1674221877; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=R1/JG48vYcXSE3+ENbAfWRc5xhmIetwVGtY222PoA8o=; b=AMHFXJG9tdXdMFsPcdqXiFsKsFkIyJgSG8x5rCsNNEU/Yy+U4ZDM42El6aS/IHznCV 1D2H65iwf5ls1QdVBCDyc0Vl4i/77Ua46eyMIucSXp+t1ak97GLamoiwKZhQGdm5v5xQ 5rQMWk0z43QhU8r6BP0VZQw5ZF26pt0meJLM6C3JNwLz23Fjp+pOnIMp0ftb9TKHsnTB +WKpsn3l3R9SJCZjJ33eAw7po/dYwmVSPZdvi6Sgt5nbtK1TOAa/VhHx3uMK/CxbWFjU ueYUYvVH9+3esvhMlmk4DMC0dl0zx/mbVJ3oAOzcuG5LsDWMOvsRxo9visPpp+Ck6CF7 cSXQ== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1674221877; s=strato-dkim-0002; d=gerhold.net; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=R1/JG48vYcXSE3+ENbAfWRc5xhmIetwVGtY222PoA8o=; b=k6n20Sf3uBsGk0GIFWLP1/2SUEQ1IYyJj5ircHX756Qee0+2iA0V9Z3V+/FbMO3VCl /kkJaVe4krWhCeZSgcUmS///8b0hrcdFqyRZfa8YQVb6MQgRV7yqbcn8NTQPQ0Qly5zY BV5w62PM7Oj/v0GyU6G6gg08YVWxQzTT/HFNQ8EoRJ+F1ZWqTvicByruAPQK98Y36Li+ 4Zsx2BEGM96EgZovXzGlsadBC/08ZeJGXmN9ZArMQCDqZwEiZAJirzbyeer/NV0nQCIz OW+E7SRbyl9Uv37L7nXThuqB4NdKgk3j+V2wGhQha86tRiyEtIxR17cQA0Xwi2JNM3mA Ejfw== X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVOQ/OcYgojyw4j34+u267FZF9PwpcNKjXrKw58qY=" Received: from gerhold.net by smtp.strato.de (RZmta 49.1.0 AUTH) with ESMTPSA id 6630d1z0KDbv3Qv (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Fri, 20 Jan 2023 14:37:57 +0100 (CET) Date: Fri, 20 Jan 2023 14:37:49 +0100 From: Stephan Gerhold To: Sumit Garg Cc: hs@denx.de, u-boot@lists.denx.de, rfried.dev@gmail.com, joe.hershberger@ni.com, mworsfold@impinj.com, lgillham@impinj.com, jbrennan@impinj.com, nicolas.dechesne@linaro.org, vinod.koul@linaro.org, daniel.thompson@linaro.org Subject: Re: [PATCH 13/14] i2c: Add support for Qualcomm I2C driver Message-ID: References: <20230120071719.623661-1-sumit.garg@linaro.org> <20230120071719.623661-14-sumit.garg@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: 7bit 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 On Fri, Jan 20, 2023 at 05:55:35PM +0530, Sumit Garg wrote: > On Fri, 20 Jan 2023 at 14:16, Heiko Schocher wrote: > > On 20.01.23 08:17, Sumit Garg wrote: > > > Add support for Qualcomm I2C QUP driver which is inspired from > > > corresponding driver in Linux: drivers/i2c/busses/i2c-qup.c. > > > > > > Currently this driver only support FIFO polling mode which is sufficient > > > to support devices like eeprom, rtc etc. > > > > > > Co-developed-by: Mike Worsfold > > > Signed-off-by: Mike Worsfold > > > Signed-off-by: Sumit Garg > > > --- > > > drivers/i2c/Kconfig | 6 + > > > drivers/i2c/Makefile | 1 + > > > drivers/i2c/qup_i2c.c | 592 ++++++++++++++++++++++++++++++++++++++++++ > > > 3 files changed, 599 insertions(+) > > > create mode 100644 drivers/i2c/qup_i2c.c > > > > > > diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig > > > index 76e19918aa..2a1d36f91a 100644 > > > --- a/drivers/i2c/Kconfig > > > +++ b/drivers/i2c/Kconfig > > > @@ -635,6 +635,12 @@ config SYS_I2C_TEGRA > > > help > > > Support for NVIDIA I2C controller available in Tegra SoCs. > > > > > > +config SYS_I2C_QUP > > > + bool "Qualcomm I2C controller" > > > + depends on ARCH_SNAPDRAGON > > > + help > > > + Support for Qualcomm I2C controller. > [...] > > and may you can ad here some more infos > > like link to datasheet? > > > > I will try to put more info here. However, I don't think the datasheet > is available publically. This driver is inspired from its Linux > counterpart only. > FWIW: The I2C/SPI QUP controller is publicly documented in the Snapdragon 410E (APQ8016E) Technical Reference Manual [1], chapter "6.1 Qualcomm Universal Peripherals Engine (QUP)". Stephan [1]: https://developer.qualcomm.com/download/sd410/snapdragon-410e-technical-reference-manual.pdf