Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF14EC12002 for ; Wed, 14 Jul 2021 20:56:38 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 74DE2613D0 for ; Wed, 14 Jul 2021 20:56:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 74DE2613D0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 31D9183200; Wed, 14 Jul 2021 22:54:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="S6zZjnQ2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 12496829D4; Wed, 14 Jul 2021 22:53:27 +0200 (CEST) Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) (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 60B8081FD5 for ; Wed, 14 Jul 2021 22:53:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82b.google.com with SMTP id z25so2858556qto.12 for ; Wed, 14 Jul 2021 13:53:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=zJt1vc4dkTFZcv5oc9sk0esQweXghNLvMFLAgEqxzm0=; b=S6zZjnQ292anLf4XfWJRAHBuywgg9TAsOlbYkVhM56BLRWGnavx1QHgkbbUzp6SgpH DPic0ZRdrLMqK1IpycB5+n0rRzeY/DFI/GIK6PmEvtS0PnZDM6Indk1c9eXnGiIQEWNr YiDwGkOVZwrBDBI6+j6RWFpa3qugYC3g4tQp0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=zJt1vc4dkTFZcv5oc9sk0esQweXghNLvMFLAgEqxzm0=; b=lSIa4FBqUs6/TC1CNwdduNTX7PSQCZaxIxMqWQP9LAWOdPTUxjK/qcfTISa20qJQr8 uCN8rN27jseIzNpLO2i+sWeQLXVUxxPI1zWKVOFQFfY3iyLqoQTQ5Ht5FaSonIKkZepk qu5yP9jb+f8mnJ04tSQyVoKDriXvvU5gGeEmCCf8dFIZnvRVmXja57fsEUri98U/cHDJ W+bt7VcROLmrYTyIj33D2n/exhY+fKgLEPVx/IPaSUcXAzACGarmDoOVtVDZK6GDQNKc P4QmkdPygTD1URGjoR5W0eoM/ULye47vmqlNTdz9NFpWt9wr4UkgWjywt/uN51oR74hQ XVDQ== X-Gm-Message-State: AOAM531tKlM7R1/CkyfsFcP6TrCtGS8fUVmPXKNH0wAo4o5FdgvJA5Ai IJUi/itUcR550TL15/Gn5ZmSrw== X-Google-Smtp-Source: ABdhPJyCkIvzwoxdIy9HmCV5XM2hCtHvlbb5POM+ew4O4LuzOWCSSooO39N8T4yhc+RoRwBEk+dB+Q== X-Received: by 2002:ac8:7fcc:: with SMTP id b12mr6774502qtk.39.1626296002236; Wed, 14 Jul 2021 13:53:22 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-715c-901d-db03-e6e4.res6.spectrum.com. [2603:6081:7b01:cbda:715c:901d:db03:e6e4]) by smtp.gmail.com with ESMTPSA id s1sm1173548qta.27.2021.07.14.13.53.21 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Jul 2021 13:53:21 -0700 (PDT) Date: Wed, 14 Jul 2021 16:53:19 -0400 From: Tom Rini To: Stephan Gerhold Cc: u-boot@lists.denx.de, Jaehoon Chung , Joe Hershberger , Marek Vasut , Linus Walleij Subject: Re: [PATCH v2 1/3] power: pmic: Add driver for ST-Ericsson AB8500 via PRCMU Message-ID: <20210714205319.GG9516@bill-the-cat> References: <20210708183350.26592-1-stephan@gerhold.net> <20210708183350.26592-2-stephan@gerhold.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cQMnElTymLwdkqub" Content-Disposition: inline In-Reply-To: <20210708183350.26592-2-stephan@gerhold.net> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean --cQMnElTymLwdkqub Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 08, 2021 at 08:33:48PM +0200, Stephan Gerhold wrote: > All devices based on ST-Ericsson Ux500 use a PMIC similar to AB8500 > (Analog Baseband). There is AB8500, AB8505, AB9540 and AB8540 > although in practice only AB8500 and AB8505 are relevant since the > platforms with AB9540 and AB8540 were cancelled and never used in > production. >=20 > In general, the AB8500 PMIC uses I2C as control interface, where the > different register banks are represented as separate I2C devices. > However, in practice AB8500 is always connected to a special I2C bus > on the DB8500 SoC that is controlled by the power/reset/clock > management unit (PRCMU) firmware. >=20 > Add a simple driver that allows reading/writing registers of the > AB8500 PMIC. The driver directly accesses registers from the PRCMU > parent device (represented by syscon in U-Boot). Abstracting it > further (e.g. with the i2c uclass) would not provide any advantage > because the PRCMU I2C bus is always just connected to AB8500 and > vice-versa. >=20 > The ab8500.h header is mostly taken as-is from Linux (with some > minor adjustments) to allow using similar code in both Linux and > U-Boot. >=20 > Cc: Linus Walleij > Signed-off-by: Stephan Gerhold > Acked-by: Jaehoon Chung Applied to u-boot/master, thanks! --=20 Tom --cQMnElTymLwdkqub Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmDvTr8ACgkQFHw5/5Y0 tyyjBQv/Ydr9HNHkdunKbyRvFbW+2MOZVrny6dX2jWvjgjtd02Urx7CvHZpWgHmp A9V4SRnGv1W7nogPfjNO4w1QHL2QAieVtS5sa/QMbHy6x9GEBv0i2yVT+94F2nPi xRa70+S4Lyboh/N3HIP3LvmGPmnts2N7+4cT1YpXP5c+7QkbSIdqaMhNr3dOCG9U x5m9HHh2BsWqimT0yr9BmUBqxwcsehkRH8FdUbDJFTzHeui6zSMdxIh+gZBQKwSe lP6R3JksOTmqOALQNj4BLiYDUv/61qg31iOTTZ5x+GiIhJWBN5hvReAJ3sfu7AbN rYwrxbQnEe0QlpkDjDob9rCWwR7FxbGZzKHFdCCfWnBPUAIcw24goljDzpOFQ3Lt k4N1EQvrIZ0ikO2yuiQ1ovZwsRqYOWdk08h6VyjGcjrpJTgP04+6kQwXLAxiDKbT z0SsunsmthlklLYjckzunTl5tDnA8FwgFCENlbjhWI6crngHyQs5i54k1yiUMab1 xCnM7IBq =RLox -----END PGP SIGNATURE----- --cQMnElTymLwdkqub--