From nobody Sun Nov 24 00:05:33 2024 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=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1730846980; cv=none; d=zohomail.com; s=zohoarc; b=hKAuRvAarAB/madSz563EuDxih1VSWc2nww3Zuh27614ZN/3wie490H99WIpS+mv1eodHgYmTBUwFtSePWPX43JLiKsPCmkjvp/kBuZTb++Zws6iUJSRUiBBpmW5I1doSnigCvPPuP0SCciNcckM/Ial1H62DQNfM6wzxo5k/sw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1730846980; 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:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=NPiTbeFUpLsDNifMMkKjkFMgZkCHLSWYVGMZNdH6EJE=; b=TKwNrpZL0vytSod/teTPogz/E3egpSNHzrrO1Re1UrOIr8Hd0lKD4fzzdXOQ8FLfvIitVPxVzd3fvkPif44p5VOKYuxiruI1I6jwA1MgTfN22dJg7ywnLgFDeg2RHBQhNC/gR3O0INGo62lpqgy5ilICZgEjMUFy8YH8q+cerWs= 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=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1730846980961557.4461061089477; Tue, 5 Nov 2024 14:49:40 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8SMB-0006or-IX; Tue, 05 Nov 2024 17:49:03 -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 1t8SLu-0006JP-Mu for qemu-devel@nongnu.org; Tue, 05 Nov 2024 17:48:47 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t8SLt-0004HU-8q for qemu-devel@nongnu.org; Tue, 05 Nov 2024 17:48:46 -0500 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-43161e7bb25so46634695e9.2 for ; Tue, 05 Nov 2024 14:48:44 -0800 (PST) Received: from localhost.localdomain ([89.101.134.25]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432aa523a0esm1344825e9.0.2024.11.05.14.48.41 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 05 Nov 2024 14:48:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730846923; x=1731451723; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NPiTbeFUpLsDNifMMkKjkFMgZkCHLSWYVGMZNdH6EJE=; b=nHXOKXbQdxTw2tHi9ATxjS44zFmaAXgw2omsAsZ32kJju9QJXwHGEbixGf1sIIjEJd Ne/46rw0ez6awleQe6mjDOslPHkokukksqjuXByIHAKN450zwSxXptTiFZ/piF/jAZTQ J74EyuWLirOB0b1dj6uQBMpnAdVKOChmgafaBOjZsjlXdyp8doBgzctReoaKgoeC8IFW kKryqaNf7qv0cV6LRCU2V6XaqXruflHgSQJEepMzcSiWr4bcj4TIryG3/QFfUX2+Ck4g G7i+ebzFqBQ1bO36GmaQx9fYGK0bLL6wiA36Ufn68fWkcFWujNnZJo5aZZg1Ko6vh6t/ 1VsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730846923; x=1731451723; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NPiTbeFUpLsDNifMMkKjkFMgZkCHLSWYVGMZNdH6EJE=; b=b4q0qZDXm3pT0Rwghic2HbGP3290nHD6kEa0VwG+cqoPzY8a24oibT1tnMqOWHrkSm trIcq7DA6z0HwzloNCGIBmL09RgyU1491dEnHrCZBuiuz+zIiQy6HRvTnWmH9CC7Jm+f qHPArOkoRUnKYvwJ4DPsGtGn+M+JqFpUdDZrkkWO0e3y0VWR2UdHDuHTXaQpWWnGoVBg t5S7irYOibdw8FRnwnzKDqtctuxi8vsIdcKws2EWefXd0zOoJIycWcn5KKcj1NGBAg95 o/UJMKeJgDSb9sNHGuGOoQqb+we4szjYzELNLSfWsWHZeJJOSVmvLt8XO48Cg+h26Ze2 05Tw== X-Gm-Message-State: AOJu0YwjZyAhjswqMf4mKGTZjsOdpEARy5bGcVfWQKbG5qfiwNR64eDo n2Xuc4PBmKosiCRuy033a2TvQeZSQ8heW2K7CTDK6BcS27asciivuAW4S7kwonAgFjnxclbWX6c RD2Q0CQ== X-Google-Smtp-Source: AGHT+IGgFv2AHyZsYpvVbFA3qfqouUD+2wnBvxKK6SnaOzJ+4Wi+Yo5/t8Le/8/A/5ypzZfSsZcZ4g== X-Received: by 2002:a05:600c:4753:b0:431:5632:4497 with SMTP id 5b1f17b1804b1-431bb9d1122mr246178075e9.26.1730846923577; Tue, 05 Nov 2024 14:48:43 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Bernhard Beschow , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 14/29] hw/ppc/e500: Add missing device tree properties to i2c controller node Date: Tue, 5 Nov 2024 22:47:12 +0000 Message-ID: <20241105224727.53059-15-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241105224727.53059-1-philmd@linaro.org> References: <20241105224727.53059-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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=2a00:1450:4864:20::32a; envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.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, 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-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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1730846981186116600 From: Bernhard Beschow When compiling a decompiled device tree blob created with dumpdtb, dtc comp= lains with: /soc@e0000000/i2c@3000: incorrect #address-cells for I2C bus /soc@e0000000/i2c@3000: incorrect #size-cells for I2C bus Fix this by adding the missing device tree properties. Reviewed-by: C=C3=A9dric Le Goater Signed-off-by: Bernhard Beschow Message-ID: <20241103133412.73536-6-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/ppc/e500.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index d4d3a927968..46261223f3c 100644 --- a/hw/ppc/e500.c +++ b/hw/ppc/e500.c @@ -203,6 +203,8 @@ static void dt_i2c_create(void *fdt, const char *soc, c= onst char *mpic, qemu_fdt_setprop_cells(fdt, i2c, "cell-index", 0); qemu_fdt_setprop_cells(fdt, i2c, "interrupts", irq0, 0x2); qemu_fdt_setprop_phandle(fdt, i2c, "interrupt-parent", mpic); + qemu_fdt_setprop_cell(fdt, i2c, "#size-cells", 0); + qemu_fdt_setprop_cell(fdt, i2c, "#address-cells", 1); qemu_fdt_setprop_string(fdt, "/aliases", alias, i2c); =20 g_free(i2c); --=20 2.45.2