From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a19:ca48:0:0:0:0:0 with SMTP id h8csp1177238lfj; Mon, 10 Jan 2022 13:55:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxj4gcdM42TaUkb3gA++Veotp/Ao2r0i1oL8ile+OaYRYJKjnlSirBCu3Zx23o3kbArBBOu X-Received: by 2002:a25:d793:: with SMTP id o141mr890802ybg.182.1641851758814; Mon, 10 Jan 2022 13:55:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641851758; cv=none; d=google.com; s=arc-20160816; b=MblUVNiPOB8ClhbWgxP/76d0esEJQAQkAEq5ybIpWgVedghjnVTV9mWujZwY5rgJV+ 3xIfh1Q4cj7vSxJKMQXJKQ3rbUu7q721kBqx/0+XfaL/yhbF3Ybc3epG/iYsEiRH5WgL uKmBpAyaIfHyzSieivYTMjLDYxytA7dY9ayZhRREyxYuPykTpsnQyGp74NIxrOhTMAO4 T1fQKoQoCW3c8wXGM15WB0pegHGf2t9FjeFuXRYzxYU6SBrHWe2BJUglb+YJ8bmHVhYy YBjaeHIt047GdmZ8FQJ3bl2fMvihR5mgwQ4H5OgcgaPg+wASlLi0q9/kKwdBAAVhzEtV 89XA== 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=WHrs4ZxHvfioFYxP1AN1QEOX/uscU1ZsN7lvDCuvhXA=; b=gJUvotOfkSP7IjhnnUW/JhZQHpUXFkEbvggiADmIV7C8kP8DgFrgcOtgm3aoTW7vjN hl5AC7BRa52UL+hm2vLwwEMM/LI6QQvoHC+rb9Pf4qr5X7sQY5WdiA4E/HyaFFY8Srik 5KPsAKZXvlOU1BO35xQI0qIxGTB4owBEQkWG5tti/qbo0S5Melbrg4WqV1qFknijEx1F 4y85yfF8AaVjAP+S/wV+1H9E17KC5M1U2xGaGIZwz2uq4UwAT9/sjyWTI1vX1/5+5E20 cCiHyCohBL4yAYaXiJG1HbpOwFLbFc/6kvfYODk27R1cZz9rqxIhSKDV8tCAHxup+BVA oJRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="lNG0/+/L"; 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 e7si6081986ybc.342.2022.01.10.13.55.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Jan 2022 13:55:58 -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="lNG0/+/L"; 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]:56004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n72dy-0003qw-7t for alex.bennee@linaro.org; Mon, 10 Jan 2022 16:55:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <3jqncYQcKCmkcLUabYLNVVNSL.JVTXLTb-KLcLSUVUNUb.VYN@flex--venture.bounces.google.com>) id 1n72c1-0002W3-1k for qemu-devel@nongnu.org; Mon, 10 Jan 2022 16:53:58 -0500 Received: from [2607:f8b0:4864:20::b4a] (port=48891 helo=mail-yb1-xb4a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <3jqncYQcKCmkcLUabYLNVVNSL.JVTXLTb-KLcLSUVUNUb.VYN@flex--venture.bounces.google.com>) id 1n72bz-00039P-5g for qemu-devel@nongnu.org; Mon, 10 Jan 2022 16:53:56 -0500 Received: by mail-yb1-xb4a.google.com with SMTP id p140-20020a257492000000b0060dbb88d8abso29840561ybc.15 for ; Mon, 10 Jan 2022 13:53:49 -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=WHrs4ZxHvfioFYxP1AN1QEOX/uscU1ZsN7lvDCuvhXA=; b=lNG0/+/LCFc+hS0PHjy6Dh0d8OAd6CAq7QkqleDVhkixX0PNyG1gimXxbjKT6KDeNt m6dXAAHDxhOHeuDGqpXrOJmuiy7HLlLO9xjD4Ct+ITklgiH0SAmOdWAMWlqEuX/EsU8W Rehe4UjDt2AYlYpIFJ3GUMrD3jySQLmf0lpJRX3IrSn38+fP0udWuK/IHwQF7Vssg3Ko sT2wguUfruP94rRQzAKdAjrJzEGtoV+aIPB/8ikqmdgZdmIfdocIW6i8gpPFCMBUuBBY 1B0iql61Ev4oP+Vo6uZWDtgokWTWLzStw3REgEmNcRr66j8jHcZyaf3tIiqYuyqRrvUl qssA== 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=WHrs4ZxHvfioFYxP1AN1QEOX/uscU1ZsN7lvDCuvhXA=; b=CwHO8yy9W6wcuEeadDL7Ydn30rgjAuXNSV4FBceJQLVC0L33XXZTvcLyAUS23ygMRM tR5PfBmDXnrGa24mEdhZQBS4AH4zKhUSm6HwnT/ongQzT3VgIDyh4vwTzm/ziEIj+k8L VEPbJP45uNS9y3PPWmRzV82qesyyRtluqf9ujoCgm8HJf9egH9iWPmm918RBksWZjdzp XEKu3tHK20uq56g2Sb34FtXCNsT6o6kv71ZlhxO2SCfGEW6j7P9ml9NlAFTV4onCsmwL Eo4IG5T3lyke5sqb/WeqyVAnovPYJZ29na2uEzBpuI0dpUCa3N0xUDTHp0RNY5y/i1vZ Vybw== X-Gm-Message-State: AOAM530B7P4b6FXytTUkIUjGYWKDUDJNMSLpqO+k/u34LJ8SCb8/nYdl 3YLNdVGf0uMqTYR04H2tmzsc77jthsVa X-Received: from venture.svl.corp.google.com ([2620:15c:2a3:200:55ed:4d46:15ea:437b]) (user=venture job=sendgmr) by 2002:a25:6dc6:: with SMTP id i189mr2192936ybc.471.1641851278329; Mon, 10 Jan 2022 13:47:58 -0800 (PST) Date: Mon, 10 Jan 2022 13:47:53 -0800 Message-Id: <20220110214755.810343-1-venture@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.34.1.575.g55b058a8bb-goog Subject: [PATCH 0/2] Adds designware i2c module and adds it to virt arm From: Patrick Venture To: crauer@google.com, peter.maydell@linaro.org, mst@redhat.com, imammedo@redhat.com, ani@anisinha.ca, shannon.zhaosl@gmail.com Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, Patrick Venture Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::b4a (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::b4a; envelope-from=3jqncYQcKCmkcLUabYLNVVNSL.JVTXLTb-KLcLSUVUNUb.VYN@flex--venture.bounces.google.com; helo=mail-yb1-xb4a.google.com X-Spam_score_int: -87 X-Spam_score: -8.8 X-Spam_bar: -------- X-Spam_report: (-8.8 / 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, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, 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: msRDPElPDsUB This patch series introduces a new i2c module, namely the designware one and further enables this (optionally) for the virt-arm machine. Chris Rauer (2): hw/i2c: Add designware i2c controller. hw/arm: Enable smbus on arm virt machine. MAINTAINERS | 6 + docs/system/arm/virt.rst | 4 + hw/arm/Kconfig | 1 + hw/arm/virt-acpi-build.c | 24 + hw/arm/virt.c | 55 +++ hw/i2c/Kconfig | 4 + hw/i2c/designware_i2c.c | 821 ++++++++++++++++++++++++++++++++ hw/i2c/meson.build | 1 + include/hw/arm/virt.h | 3 + include/hw/i2c/designware_i2c.h | 110 +++++ 10 files changed, 1029 insertions(+) create mode 100644 hw/i2c/designware_i2c.c create mode 100644 include/hw/i2c/designware_i2c.h -- 2.34.1.575.g55b058a8bb-goog