From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a17:504:f96:b0:1be9:327d:8ee3 with SMTP id oa22csp212119njb; Mon, 17 Feb 2025 10:06:38 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU0tIhj3+dAoPm/IWJlw7yp5g3cbowC980QNzn4FM7su3JHQJVG442UD/yrYRHb47sqUpuJVfFP3XjwcA==@linaro.org X-Google-Smtp-Source: AGHT+IGI47E3wQkabLsj2ttfZqUwqLEVu90IPj+CtgY4+zxogWWVQ1gUcihetB8Qrmr6Ezc30bOk X-Received: by 2002:a05:620a:1986:b0:7c0:791a:6faf with SMTP id af79cd13be357-7c08aa74353mr1603969585a.53.1739815598206; Mon, 17 Feb 2025 10:06:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1739815598; cv=none; d=google.com; s=arc-20240605; b=c0e4d2H3F4vK3pdPeK24sOkoThcTHhTFGkBE1IGKNVokYnPGWpweE7/OFwslxVV6zZ yVG+nnJb40lHPpoF7V5e2hFBb1LC43JG6BTabP+TYQjo5WWIGCyqfOnk43J6C7obglq1 SmJhjiJnoQOEf1vD9r5yxhZdKiHgOmbe/RGtiwFSGgEeKVZ6G/NjGfjdT7ANEiU4uUOq j79IQkujrRw5jL98ZUZp9WK1CivykQo6uWKYQOhd1yKOHXzUb9+tNZW28UpLpgTgEfw0 zgR6/l0EsTfx7sfq3ljKVwEHziDF1HngpvWeanQa0wYLelEegZMC2x8J/OVD/kE6d7GS VA5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:references:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=vaN2sSPFFiwBnMfqYqsl5cyD2PC40+ClPj2oGdRuNAw=; fh=zhmfxUXk91XYz8NF9r+yYVlZeFj4f/YIy3J3HQiGwlE=; b=b08FW0x2HiSEau+/ljiixvtxPoS7hUrX0doe2p5WWsurkx8kC/DwUykEW0TLhgR6Xw fbQSntiepObgAnqcC+N7oE6FY35gzjolHILdUSBfAv2snWEw+KznKYQKLBoAazQKQ7h/ FIipKRQZdHC/u0kLUTT9x7FpvxAeFWzqu8J65+PONoa0tTxxKu/Tt/owfYh/IUCvxE/x SMsPWd41fi9/2QmF0Nat0gJ7cXaX/ynxoszFQ2tY9vNfP8WEqRRJUCcOvLOOVuqlYCGN I11GGxW1msx0aYvmCXLr5nhjBa6qCLLyXiN5MBzSyCHtI90Vw4kqylu77WLMzNUDUu1L /JXw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="fFr3u/T4"; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7c0a252cdf2si154231285a.322.2025.02.17.10.06.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 Feb 2025 10:06:38 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-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=@gmail.com header.s=20230601 header.b="fFr3u/T4"; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tk5VR-0003io-QO; Mon, 17 Feb 2025 13:06:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tk5VQ-0003iP-5U; Mon, 17 Feb 2025 13:06:08 -0500 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tk5VO-0005Nx-Fu; Mon, 17 Feb 2025 13:06:07 -0500 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5e04064af07so3751057a12.0; Mon, 17 Feb 2025 10:06:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739815564; x=1740420364; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=vaN2sSPFFiwBnMfqYqsl5cyD2PC40+ClPj2oGdRuNAw=; b=fFr3u/T4BjYZX4rxftcOzo5jDC5iQzi0rpuND7aM79FW1BsFK2aZ8j6r2C85arzDAY s9SQst3zNPGS82jBJjUkyTAyxT7xgvRcomgM1hiEUZ6f6T89inuoc9QA/msfaglKOpy4 bAI0QSLLOSa4swPxcdsODfJgFvy6jRcgfLHdh9zqqGmUtZCr8wkRTYbanGv5S5tUEp6l n6XMaNuFINDq1jn+HE7G/qGNfgq/MCRMpV7mgfmkaaeHQL/2p9rTnxXKQkonXMZuqYgD MOsmNxhSx1vINupZXN/t4gujZOe/1O1LNBPM/t2lw4RzV37sNqm6if7kS0yztPZuZN01 316A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739815564; x=1740420364; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vaN2sSPFFiwBnMfqYqsl5cyD2PC40+ClPj2oGdRuNAw=; b=gXtb3X/FlgViR3rNCTjUxUHox/c9Jlj+IFHHY/eMajfa0USCVtO+50YtrWvYjNBijB hcBKYRoZfQGGXvgne+fgY7CoWrlXcxTrk9eskkUDZwPK37dS4JURprN10xoRjzwJKJqX mAw6pu6JoymkrXfYliYkaF+mLKHiV2ZYWq1SZtDHyQascwPO4/gMfby/L9pHBp6XhQ74 kv6o8s0+97jIllRoUL2qgV2UBcCmdqBRixMtefRVr5/QWMABGjQEbZTHn3l6/mu95FRu F0quougCwSNp3bU3vDwzT3FzFmRZfeNNpi9SVXfVDt+3k8vo4JpU/inA8m1n9SXxN8u0 jVVw== X-Forwarded-Encrypted: i=1; AJvYcCUabD0QendhZ4fzp0JNJ2Hin0VL4Ryk3HX73KOpVR/H2mXXJSW0u5K9iVKD7A7T1RTGYudaNHfW/A==@nongnu.org, AJvYcCUsUFN9+07B7fGexP5ILwwrhIksAfD5EyfKLVIQybjLtjx41vpaHODuzRHlXC2x4wYAxzxrSdOd42bBkw==@nongnu.org X-Gm-Message-State: AOJu0YwkJ0JXwXqLGMtvx1GDo8EMd2IUfOkh6G+yyDb+IatiQT7INwuE fb+20wz4gHHAxyAKqIlYoi7RWVlNKl8ICi5TH/JaSH3ibYQ+FF5R X-Gm-Gg: ASbGncsLWFAv5gq3A71eV83wUxaPpPCweiMoCyidusG1w4buTH1VYnaLjWHu2/wM6/A W18z5GukBE0OegExQvYKDdrwItfhP7JLpAWIYkcrj9wU5/r6CpRu9xwjLj5lSFvR0YIUM5Boyiy oWVYAp71JHBHfX5oJNTrlYqBPABf9GZfeyAINJ8ccwIPNI1sxCs+iknhmOC53i3U62i5UELTTmG hgbsq6IiKCB3LHgm8iGbQAed8fJVB+vqn6hQoKtGP8RJr63Dj/UcVsrvuKNEsakb9t+U5ypD96P j1BzjyXV2VE= X-Received: by 2002:a05:6402:4413:b0:5dc:d0be:c348 with SMTP id 4fb4d7f45d1cf-5e0361cc69amr10060460a12.20.1739815563764; Mon, 17 Feb 2025 10:06:03 -0800 (PST) Received: from [127.0.0.1] ([90.187.110.129]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5dece1b4debsm7544846a12.15.2025.02.17.10.06.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Feb 2025 10:06:03 -0800 (PST) Date: Mon, 17 Feb 2025 18:06:01 +0000 From: Bernhard Beschow To: Dmitriy Sharikhin , "sai.pavan.boddu@amd.com" , "edgar.iglesias@amd.com" , "francisco.iglesias@amd.com" , "philmd@linaro.org" CC: "andrew.smirnov@gmail.com" , "alistair@alistair23.me" , "marcandre.lureau@redhat.com" , "qemu-arm@nongnu.org" , "peter.maydell@linaro.org" , "edgar.iglesias@gmail.com" , "jcd@tribudubois.net" , "pbonzini@redhat.com" , "qemu-devel@nongnu.org" Subject: Re: [PATCH 20/21] hw/i2c: Import TCA6416 emulation from Xilinx In-Reply-To: References: <20250120203748.4687-1-shentey@gmail.com> <20250120203748.4687-21-shentey@gmail.com> <32A9B14A-A0F9-4768-A28F-80702FA93960@gmail.com> <9d957453-5749-47c7-aad1-6977dac9aeea@linaro.org> Message-ID: <10A067EA-99B7-4898-BA08-15657BE841C4@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=shentey@gmail.com; helo=mail-ed1-x52f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@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-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: WAKd1cmr3Tv9 Am 3=2E Februar 2025 05:42:55 UTC schrieb Dmitriy Sharikhin : >At Sun, 02/02/2025 at 18:09 +0100, Philippe Mathieu-Daud=C3=A9 writes: >> No clue about compatibility=2E If you unfortunately need to add it, >> then please address my comments in the next version=2E >TCA6416 is _way_ more complex device than PCF8574=2E Basically PCF8574 is >shift register directly connected to IO lines, while TCA6416 is more like >fully-fledged GPIO controller with output direction, drive strength, inte= rrupt >mask configuration etc etc=2E > >In Linux kernel these devices are handled by family-compatible driver > drivers/gpio/gpio-pca953x=2Ec >Closest things by implementation in QEMU source tree are > hw/gpio/pca9552=2Ec and > hw/gpio/pca9554=2Ec >However they are NOT register-compatible with pca953x=2E I suppose, best >decision would be new driver for TCA6416 which eventually should support = whole >pca953x family of I2C GPIO expanders=2E Just for the record: There has been an attempt to implement it: > >Best regards, >Dmitrii