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 5AA5BC433EF for ; Fri, 18 Mar 2022 04:52:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C10D583D21; Fri, 18 Mar 2022 05:52:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sholland.org 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=sholland.org header.i=@sholland.org header.b="M1SvXIGv"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="iDtIZGCE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EC1C183D0D; Fri, 18 Mar 2022 05:52:44 +0100 (CET) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (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 2A2CD83AFD for ; Fri, 18 Mar 2022 05:52:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel@sholland.org Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 063F23200F9F; Fri, 18 Mar 2022 00:52:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 18 Mar 2022 00:52:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; bh=sjzSzDAci528JBaRwe34ykH2W4GPGkOsWiumuE39CTY=; b=M1SvX IGvbV1+nhdVL1InOuIq+Wg6IpV5GoVe5AllrSO/JCpTZVSfDv/+5PDo0+vWoHigk iOdHMhgEoksnLSey8LLMNrJnCzVzCDHhIhCqu5HsmRKZBBjrJD8inlWnYJdojbMy lv8U4Wd38NYQHErykhh5P6DGRYWVwb9Q6mev7WgxqgA0PJh37Au06zo91OQV+Qbu tDTSUgcM09eHdpQXWjPlr4f7ArOvGvoCT+sfgK2vCtrcsxqnYMAjY0bm/LFeyQH6 BnNparFQ04tp5NbapUNXDkxznab7bYsKTzY0dKLRIB4kuFEdNs6sDjkVzTOWJZSm uirQKmxTuadMAeAng== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=sjzSzDAci528JBaRwe34ykH2W4GPG kOsWiumuE39CTY=; b=iDtIZGCEDN/sO5SzRyIcSt3LCX1qWbzeFESJDHQM0GBaC uJThk8rO/qMOxIJY1FAYDAIUZy2Zp7zNcdcVKbk3yJH9QAPGCChYz6R+yp3ljkW6 Or/F+CmRksjX0dz44NHDjPD+4KuyceRHpgdDmsMy9oazD3tSXI/ltjv5+91FHVYo QaY1ifZ0k2700XcI5zqc0R8PCz2QbiZi65LfSVFTaVd4+e8ktP+UBvDCT3F/JpS/ xqG9Zl1IsyXEER35XLE3zLMJh3bBm/A0F0kkpe+m+ruBJJcK57Pu9N9Y1jHkfG2c /8fhxMj5kmxu6LvixkM1dSYlMcf9CEtWytsejykCg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudefhedgjeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpeeiteekhfehuddugfeltddufeejjeefgeevheekueffhffhjeekheeiffdt vedtveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 18 Mar 2022 00:52:38 -0400 (EDT) From: Samuel Holland To: Heiko Schocher , u-boot@lists.denx.de, Jagan Teki , Andre Przywara Cc: Samuel Holland Subject: [PATCH 0/4] sunxi: Fixes for DM I2C drivers Date: Thu, 17 Mar 2022 23:52:32 -0500 Message-Id: <20220318045237.56237-1-samuel@sholland.org> X-Mailer: git-send-email 2.33.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.5 at phobos.denx.de X-Virus-Status: Clean A while back, the sunxi-specific P2WI and RSB drivers were converted to support DM_I2C. Now they are used as non-DM drivers in SPL, and DM drivers in U-Boot proper. However, the DM version of the code did not fully initialize either the controller or the connected chips. So the DM driver would only work if the non-DM version had previously been used in SPL. With these bug fixes and the pinctrl series, the drivers now work on SoCs like A64 and H6, which have a PMIC but do not set it up in SPL. Samuel Holland (4): i2c: sun6i_p2wi: Initialize chips in .child_pre_probe i2c: sun6i_p2wi: Add support for DM clocks and resets i2c: sun8i_rsb: Initialize chips in .child_pre_probe i2c: sun8i_rsb: Add support for DM clocks and resets drivers/i2c/sun6i_p2wi.c | 15 ++++++++++++++- drivers/i2c/sun8i_rsb.c | 15 ++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) -- 2.33.1