From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a05:6512:204:0:0:0:0 with SMTP id a4csp339535lfo; Tue, 1 Mar 2022 17:59:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9cIzkjtvSEncLs+Ap9Ijf+2/usCt2imXEhDBo9UXqdqOQ7eSVXznqH9C/S4FU1CWkXM+O X-Received: by 2002:a05:6902:1105:b0:61a:94f2:b1e5 with SMTP id o5-20020a056902110500b0061a94f2b1e5mr27007411ybu.325.1646186349562; Tue, 01 Mar 2022 17:59:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646186349; cv=none; d=google.com; s=arc-20160816; b=etyA3Eu7+6kNJrLPESQckTI6q45vf9XOhruGPgcnp0fqo3ImgUuZPzBwW8D/u4KHN6 UkCkdbuquWPJBgyfFqZdfmltCiH39ZfkwUCngzzU2qW61GCCkyWYve2jT9ow9J80VueD JPwNUezvI/14aJdZZO20ffdcVR4Q5FOeWf/Tpv/CsuD+i04IWiOQVNErB/v5oy6m2gUW uGJ3m2VgKQH7cTUoypZDBVw1/5WgjX94GtIGQuglC68cY2iQAa/vGMYDqNvs58C/gGsr llS1nZhyYOercqqiX/qLw/MiiTK3aNooI7TMd4C0yYEO9rBQLJLXgbSteDLPGR0eJQaW Ybeg== 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:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=myjcARcgVaqRTXq5PFEdPinnf6fzxQhBTPRXxxbCglI=; b=lyIqG+r/4/wrrts748VgQ9QMGxzK/tY92wv8/ZI7sa+Wqmk/GStEXuEBGaTZthPZVr dYqxqJxDd6NA9fKiOGsuDZxncUE9CP5sjVVdpQaqHubSyeUeUXZyETlNDRqWzqc4vsJ4 NS2J+wqvvTEqTCLH/EoEeVUlrS9dUK+b0GtKnyWNHpyuHm+Mi8KR4FQsqNzxZuPw8l6g uzCUOcY5Z80T41mY/QjkE2+cQO5RSLZmr4WBlXTvdXld0RpKCQgDkQyqtrd8i0NG+TwC azl0yZVue8aU5fuNOio/giT7bVgnRPbTRH7d2z3FOSVu+IaNcLvj2LDr2sJtUCSvMq6J FFuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="JeH/9ng8"; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 65-20020a250444000000b0062886b8d013si2430997ybe.553.2022.03.01.17.59.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 Mar 2022 17:59:09 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="JeH/9ng8"; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from localhost ([::1]:53154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nPEGi-0000b5-Vd for alex.bennee@linaro.org; Tue, 01 Mar 2022 20:59:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35278) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <3hM0eYgYKCrEkZkljiXffXcV.TfdhVdl-UVmVcefeXel.fiX@flex--titusr.bounces.google.com>) id 1nPEG8-0000XN-O8 for qemu-devel@nongnu.org; Tue, 01 Mar 2022 20:58:32 -0500 Received: from [2607:f8b0:4864:20::114a] (port=45476 helo=mail-yw1-x114a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <3hM0eYgYKCrEkZkljiXffXcV.TfdhVdl-UVmVcefeXel.fiX@flex--titusr.bounces.google.com>) id 1nPEG7-0008CW-Bp for qemu-devel@nongnu.org; Tue, 01 Mar 2022 20:58:32 -0500 Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-2d07ae11467so1721357b3.12 for ; Tue, 01 Mar 2022 17:58:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=myjcARcgVaqRTXq5PFEdPinnf6fzxQhBTPRXxxbCglI=; b=JeH/9ng8GA7ZvJ8ePu6jO5j7DsVnzv/sae0wSe6gSWirvRuY1XWLE2mXSmGNW0rvan G7IUa1+WVhRbCkoOinLPK8OY/zUwuMLClteSFqARE4ipqOGv3ght+rQUfxJnNcFyw6O0 ShZ7TF8wsmC8TlUQ3Z4CqpmHTD4ZLB6XvAoFvbGt2fc69Upu0RNjqHl4wRuxIlXVqYLR z6XNKNRdsTqNqTCATlStgBt5h9qAy1pFfWMve8flCE9eDZ0W9rR2lO4rjrSoYosfAx8g xor3NXHCAiKZItY6VqS2o8RmfuzxDgD/y7FrhzdXbBapPmYi7aQ36AajkiCgY9MbgOuT LVCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=myjcARcgVaqRTXq5PFEdPinnf6fzxQhBTPRXxxbCglI=; b=6r6si6UY7yQJN10ZfSXIoOS9Jq3pcss4SP+tc2GV0VbHasQhNrB4khJTu6EHcJEuIG FIf2mLebiT+gX8CQXxPSbYc2MFd4abRLAxCDmqMzgH0Gk+ABonOF5j8xfXzc5S+ft06c 9QpZ4X3G7KIiDXt36kPB3qEXQZ15fXSUKVX9rL+GiKh1myPRWmNnGKMBoR8QnM14BvHc AcAN/CqnSjAqr+DNGeJSEL5k0jorzhbTVnYg35bAAxEhuIlhdgPPXaPU5OPp/4kNaPjJ u0uj1Iqu4Mr9baS6mspEJFceFo2yv+PKUcTs9ed7ep8TwiEEiCavqV1lw7Ht6rIOwCuZ sBhQ== X-Gm-Message-State: AOAM530gxEGjhoru7yAMloJk9m4h//Jsua5LRdYWjS/LBe/l4aottZiz sSQgslSlZM8rAY8sJn7ZJA1mzVhpgYA= X-Received: from titusr.svl.corp.google.com ([2620:15c:2a3:201:3a0a:5449:c096:dc84]) (user=titusr job=sendgmr) by 2002:a25:8c86:0:b0:628:a042:9529 with SMTP id m6-20020a258c86000000b00628a0429529mr433572ybl.231.1646185860876; Tue, 01 Mar 2022 17:51:00 -0800 (PST) Date: Tue, 1 Mar 2022 17:50:44 -0800 Message-Id: <20220302015053.1984165-1-titusr@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.35.1.616.g0bdcbb4464-goog Subject: [PATCH v3 0/9] This patch series contains updates to PMBus in QEMU along with some PMBus device models for Renesas regulators. I have also added myself to MAINTAINERS as this code is in use daily, where I am responsible for it. From: Titus Rwantare To: Corey Minyard Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, f4bug@amsat.org, wuhaotsh@google.com, venture@google.com, peter.maydell@linaro.org, Titus Rwantare Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::114a (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::114a; envelope-from=3hM0eYgYKCrEkZkljiXffXcV.TfdhVdl-UVmVcefeXel.fiX@flex--titusr.bounces.google.com; helo=mail-yw1-x114a.google.com X-Spam_score_int: -81 X-Spam_score: -8.2 X-Spam_bar: -------- X-Spam_report: (-8.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DEF_DKIM_WL=-7.5 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-devel" X-TUID: NdQUiV+4q6No v2: - split PMBus commit with updates into individual fixes - renamed isl_pmbus[.ch] adding _vr for voltage regulators v3: - split uint refactor commit and removed commit renaming files - rename rolled into preceding commits - update commit description for uint refactoring change Shengtan Mao (1): hw/i2c: Added linear mode translation for pmbus devices Titus Rwantare (8): hw/i2c: pmbus: add registers hw/i2c: pmbus: guard against out of range accesses hw/i2c: pmbus: add PEC unsupported warning hw/i2c: pmbus: refactor uint handling hw/i2c: pmbus: update MAINTAINERS hw/sensor: add Intersil ISL69260 device model hw/sensor: add Renesas raa229004 PMBus device hw/sensor: add Renesas raa228000 device MAINTAINERS | 13 + hw/arm/Kconfig | 1 + hw/i2c/pmbus_device.c | 106 ++++++- hw/sensor/Kconfig | 5 + hw/sensor/isl_pmbus_vr.c | 279 ++++++++++++++++++ hw/sensor/meson.build | 1 + include/hw/i2c/pmbus_device.h | 23 +- include/hw/sensor/isl_pmbus_vr.h | 52 ++++ tests/qtest/isl_pmbus_vr-test.c | 474 +++++++++++++++++++++++++++++++ tests/qtest/meson.build | 1 + 10 files changed, 944 insertions(+), 11 deletions(-) create mode 100644 hw/sensor/isl_pmbus_vr.c create mode 100644 include/hw/sensor/isl_pmbus_vr.h create mode 100644 tests/qtest/isl_pmbus_vr-test.c -- 2.35.1.616.g0bdcbb4464-goog