From patchwork Wed Jun 16 07:33:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 12324431 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=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 8B381C48BE5 for ; Wed, 16 Jun 2021 07:38:47 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2EE2D6109E for ; Wed, 16 Jun 2021 07:38:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2EE2D6109E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:54452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltQ8M-0003zx-8f for qemu-devel@archiver.kernel.org; Wed, 16 Jun 2021 03:38:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltQ3v-0001FM-QB; Wed, 16 Jun 2021 03:34:11 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]:45818) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ltQ3t-00019a-QL; Wed, 16 Jun 2021 03:34:11 -0400 Received: by mail-pg1-x530.google.com with SMTP id q15so1237065pgg.12; Wed, 16 Jun 2021 00:34:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4DtrUP/MiMzrX0T5UIQ4BfAJOymoToD8UJQg58+oReo=; b=hE1VcQliZ+X52eb89Cvmt3qSaK7N9I393kQJUYYssPFNxg4OG2CUPp7D2MuiOYZeDf b+3TIow6HYBaMBppvWi/3Eqm/OYXnqcx/lKE21wiA+JeA5ndkkLJvuzs8CsRVqOSgcCN E7lfkCdTT+68bbqnO/hcep8JMdPO+rtdsenBhsJNqfCiK0RMqCraw9zMuH7qZVGtb310 kajTZ2bhLXBoTyjvu5zDgAZ52dQ1t0bUAJmE5nXehWHjAbu1B0IWzw5yuNfXbDlFqxPa V59tqwwAGqlz9XKfHic18+3sWgMvbhmLFzYLut0OwDFg9KUlgWQh7ax/h7fu4ZZZfPzu 39FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=4DtrUP/MiMzrX0T5UIQ4BfAJOymoToD8UJQg58+oReo=; b=K09L1vvgYVOgGsFgF97hrZn3E1csiFOK9+jDhUnCHSOXEyWC1CBtY3pjYQcdFvIqS1 4ZxtpWplbAYTB8Tc7MJXDLgep86HEVqx/dzZTz6Ba2cZ1DTgzZdtxGXynBXWJrF8R/o+ yHsri3xA8mOST81SNf0nSMkiWTVUisgI6qNKremk6fFVC+eg06z/eqGJIGq9nSwCBoSl RzpcHQ1zpF4sWYg5+PN3UltOna51QyuANMgmuQfmPJCZjuZ1OW26Gs6tM3aagA6dtNHd zqtgj/yiZCM0snjU6cGZsBp7dxzsVeH1GPcsWcEqvbxFK239TSCOJTsjEh/uHK2dL++f AWJA== X-Gm-Message-State: AOAM530SSTAbdGTMPLpHBn5Z7HqU+gbBEKwmU2y51GQpiA3codq0zUzo /mGBu3wkyD3X/0/btittGXc= X-Google-Smtp-Source: ABdhPJyGp908mXdZZ9uEkhOyZ3ARfczXCw54FL8MZiGpDSMZmJHD6cx/D39tpkabGrkPlWtk7yQWRg== X-Received: by 2002:aa7:9988:0:b029:2fa:c8cd:eb66 with SMTP id k8-20020aa799880000b02902fac8cdeb66mr8336344pfh.62.1623828846430; Wed, 16 Jun 2021 00:34:06 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id a25sm1208420pff.54.2021.06.16.00.34.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jun 2021 00:34:05 -0700 (PDT) From: Joel Stanley To: =?utf-8?q?C=C3=A9dric_Le_Goater?= Subject: [PATCH v2 0/2] hw/misc: DPS310 temp and pressure sensor model Date: Wed, 16 Jun 2021 17:03:56 +0930 Message-Id: <20210616073358.750472-1-joel@jms.id.au> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=joel.stan@gmail.com; helo=mail-pg1-x530.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Jeffery , qemu-arm@nongnu.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" v2 addresses the review from Cédric. I chose to drop the qom get/setters as the logic was quite involved, and requires more work to get right. This is a model for the Infineon DPS310 temperature and barometric pressure sensor. Joel Stanley (2): hw/misc: Add Infineon DPS310 sensor model arm/aspeed: Add DPS310 to Witherspoon and Rainier hw/arm/aspeed.c | 4 +- hw/misc/dps310.c | 231 ++++++++++++++++++++++++++++++++++++++++++++ hw/arm/Kconfig | 1 + hw/misc/Kconfig | 4 + hw/misc/meson.build | 1 + 5 files changed, 239 insertions(+), 2 deletions(-) create mode 100644 hw/misc/dps310.c