From nobody Fri Apr 4 05:10:48 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1742388704; cv=none; d=zohomail.com; s=zohoarc; b=n4VHdVT4aCKGiIx2pJrGZGeptwlxN/D56cQo11m5HPvrZO0vytXNgkVBNwu65lhLcS8zi0ovocnwNWSRIBWhO1+Kd8jIw9Q594pVrJyLCQ5klLrVOKmQAa+VwulO9d+n0qUlIx3MpYlU4JoHZe48FyFhVr5g1Jn+FVKMuALn7eE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1742388704; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Sender:Subject:Subject:To:To:Message-Id; bh=2S+gCr/ZmS/2XzcQj+fkib4he/2WAdCRi6VEw360IkA=; b=fOyY1PUoZ0UZtiSzuduePAZhuO1Evwzuo2VK+EuCaN4lLpghbKCS3L0rSb4cm1o1hClw5QtlVnRv8pBbELAb7F7bcu0AzvQYM0/pHrjKnKJ5j+pQycD2Du2zA4G1u/H09GcXIpxVjg9+y6bBj3dX0XF6BTHQtjtdLviw4M8PI6Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 174238870453885.04468088054318; Wed, 19 Mar 2025 05:51:44 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tusrv-0000zF-H6; Wed, 19 Mar 2025 08:49:59 -0400 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 1tuoJS-0006Fc-1x; Wed, 19 Mar 2025 03:58:06 -0400 Received: from nyc.source.kernel.org ([147.75.193.91]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tuoJQ-0003dj-9l; Wed, 19 Mar 2025 03:58:05 -0400 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id C644BA48FE3; Wed, 19 Mar 2025 07:52:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id E4FC3C4CEEF; Wed, 19 Mar 2025 07:57:54 +0000 (UTC) Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA704C35FFF; Wed, 19 Mar 2025 07:57:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1742371074; bh=V6JyXTsCHqBhWu72poz6myByuKukdL7x3liRuKYDlkI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=fM4QTAfUudNUeLqravY9OudThnNDj5Y408XmDnZ96Li8z7gAQxBJvAsfHZ1+v77kV WWFVEW+MrjDbHXgRRpvI8xU5mh7358X+Fjr9RORhwsM/ffGp3AaqB1KTgU+b62rhG0 mdSfk0FFv30jeQOb1JO9gN+3LfPBTBStzu/vU9IgobtkoWvrvA+rVOWBHQWYYm1Jog CNsf0sbtmCohiL5uoCMGM4xJjSiJecWHqyN+a21dMfc9JrTnjqbX7EXKAA2lPo7prW GWijFNrPwLhQVXuFK9azlmkZQ0O/1Q4RxUW//NGnEpbluRePVAce7XYdu4yPr/zhry kaE/hsH1J/H8g== From: Nikita Shubin via B4 Relay Date: Wed, 19 Mar 2025 10:57:56 +0300 Subject: [PATCH PoC 6/7] hw/arm: ast2600: set id for gpio MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250319-gpiodev-v1-6-76da4e5800a1@yadro.com> References: <20250319-gpiodev-v1-0-76da4e5800a1@yadro.com> In-Reply-To: <20250319-gpiodev-v1-0-76da4e5800a1@yadro.com> To: qemu-devel@nongnu.org Cc: Linus Walleij , Bartosz Golaszewski , "Enrico Weigelt, metux IT consult" , Viresh Kumar , Eric Blake , Markus Armbruster , Michael Roth , Paolo Bonzini , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Eduardo Habkost , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Peter Maydell , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , qemu-arm@nongnu.org, Nikita Shubin , Nikita Shubin X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1742371072; l=1103; i=n.shubin@yadro.com; s=20230718; h=from:subject:message-id; bh=ZOgjocFiFStuSlL6CpsC0EWN3qypvGoWvCiDbIQ78mk=; b=Vwy8tuQYViL0KS5HXziEaSyE+3uqL/5Fka7z5rVZNFPHizyVXIDmwheLuuQutLX2PZ8CSbnH6 1AhK/AFXhUwAtkeiNPV5mI1KLQSGIvJuoKE1/pPkQS68OIWlqJNmkPn X-Developer-Key: i=n.shubin@yadro.com; a=ed25519; pk=vqf5YIUJ7BJv3EJFaNNxWZgGuMgDH6rwufTLflwU9ac= X-Endpoint-Received: by B4 Relay for n.shubin@yadro.com/20230718 with auth_id=161 X-Original-From: Nikita Shubin Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=147.75.193.91; envelope-from=devnull+n.shubin.yadro.com@kernel.org; helo=nyc.source.kernel.org X-Spam_score_int: -46 X-Spam_score: -4.7 X-Spam_bar: ---- X-Spam_report: (-4.7 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.332, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 19 Mar 2025 08:49:27 -0400 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: , Reply-To: n.shubin@yadro.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @kernel.org) X-ZM-MESSAGEID: 1742388706858019100 From: Nikita Shubin Set device id for gpios to allow gpiodev binding. Signed-off-by: Nikita Shubin --- hw/arm/aspeed_ast2600.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/arm/aspeed_ast2600.c b/hw/arm/aspeed_ast2600.c index 07210483bb29a50824c8312021bebf1ca32cac95..09ce944d6263d810db650a1e566= c3f3b1701702d 100644 --- a/hw/arm/aspeed_ast2600.c +++ b/hw/arm/aspeed_ast2600.c @@ -537,6 +537,7 @@ static void aspeed_soc_ast2600_realize(DeviceState *dev= , Error **errp) aspeed_soc_get_irq(s, ASPEED_DEV_XDMA)); =20 /* GPIO */ + DEVICE(&s->gpio)->id =3D g_strdup("aspeed-gpio0"); if (!sysbus_realize(SYS_BUS_DEVICE(&s->gpio), errp)) { return; } @@ -545,6 +546,7 @@ static void aspeed_soc_ast2600_realize(DeviceState *dev= , Error **errp) sysbus_connect_irq(SYS_BUS_DEVICE(&s->gpio), 0, aspeed_soc_get_irq(s, ASPEED_DEV_GPIO)); =20 + DEVICE(&s->gpio_1_8v)->id =3D g_strdup("aspeed-gpio1"); if (!sysbus_realize(SYS_BUS_DEVICE(&s->gpio_1_8v), errp)) { return; } --=20 2.45.2