From patchwork Thu Feb 22 08:16:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nam Cao X-Patchwork-Id: 1902603 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=TolDNSwb; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=GyfC8sD/; dkim=fail reason="signature verification failed" header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=9t9zJ/mS; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TgQwG2PXPz23cl for ; Thu, 22 Feb 2024 19:16:46 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PWW8W2Yj4U1kT6KMDX1Rfk3o4FPL/eoUAbjXxZGVYeQ=; b=TolDNSwbb2k9ur j7t/5WlRez+fvU2y+J+OZkvcq2cutdef1s0U2LOUiPOwXjGS/e4/pEgF+zYIdOZ6osAiqDd/il9oW /VeqW8INsJ7DwUeV4e7sNW/U4NIkyqesI3Mjb5y1xNMtdZa0n1ANW4h/S/D76beJIaC7mfZIENC2y 5qqgCXR6slFCI1bEg5AEXmKZNsD56AyKV8q5aCq1Eh9daG/xStKhwVD/vMErCsu6xO+yKOoeBpUhf EcIeKnPyUQVek5HKqkSOOngwJfs1H4iKrcPxjMx6Tvau2eYd0wUVCeAlMGHhgpzTncFEeiydXyt9Y tZJ8byuZCUQJiQzbdK6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rd4Fw-00000003y36-3dqk; Thu, 22 Feb 2024 08:16:36 +0000 Received: from galois.linutronix.de ([193.142.43.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rd4Fq-00000003y09-3Ikl for opensbi@lists.infradead.org; Thu, 22 Feb 2024 08:16:34 +0000 From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708589784; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sy5P2TuMSN0ChqhBtME3NbgfbYOfKGLHLmtt4MUvcAU=; b=GyfC8sD/NmbbuJk5ZkMg/mggC+L3g4jW6+IKYp6oANXORAD2DfmoCqXeLoQfldfPUrCd0w FKUVJyEKowgw2YTdOo5D5hXtLRbnpX0A8w9oFwm2ktiO+VxORHUR3oeXG8SY+GONaG07Ay bCDV+VHLVmAMzh0ph44ttUSZfjRCCeEKTgzwVaTURF9mC+5gj0UVW3RxAHxTMgfbu394Va au8w3liqds1xz2196dOSTxrQJo/DRxCjXvI/bdV3PIfoTTh5xDscQWqxyDi+go16uSckGy GA2SCzMwJ4Lhau00mBC6r/F3SSSr6339enPxMuAwsYL6oSM008V2KGXoHnL67w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708589784; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sy5P2TuMSN0ChqhBtME3NbgfbYOfKGLHLmtt4MUvcAU=; b=9t9zJ/mSg5zlhT2AD7dx8H43vlhWJ9+v6vhihWllEz26VCqp7adN6Nz9NXkp7TFZUgi+fo 9i5/BY3HPsRI0ADA== To: opensbi@lists.infradead.org, cheehong.ang@starfivetech.com, weiliang.lim@starfivetech.com, minda.chen@starfivetech.com Cc: Nam Cao Subject: [PATCH v5 1/6] platform: starfive: correct system clock device tree node Date: Thu, 22 Feb 2024 09:16:14 +0100 Message-Id: <20240222081619.275869-2-namcao@linutronix.de> In-Reply-To: <20240222081619.275869-1-namcao@linutronix.de> References: <20240222081619.275869-1-namcao@linutronix.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240222_001630_997394_1A486558 X-CRM114-Status: UNSURE ( 9.31 ) X-CRM114-Notice: Please train this message. X-Spam-Note: SpamAssassin invocation failed X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "opensbi" Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Starfive names the system clock device tree node "starfive,jh7110-clkgen" in all their git repositories. However, a different name is used in upstream U-Boot (and also Linux): "starfive,jh7110-syscrg". Since OpenSBI gets the device tree from U-Boot, this inconsistency leads the problem that OpenSBI doesn't know the system clock device exists. Correct this name to keep the consistency. Signed-off-by: Nam Cao Acked-by: Minda Chen Tested-by: Minda Chen --- platform/generic/starfive/jh7110.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/generic/starfive/jh7110.c b/platform/generic/starfive/jh7110.c index dcd6306..4b22175 100644 --- a/platform/generic/starfive/jh7110.c +++ b/platform/generic/starfive/jh7110.c @@ -252,7 +252,7 @@ static int starfive_jh7110_inst_init(void *fdt) jh7110_inst.pmu_reg_base = addr; } - noff = fdt_node_offset_by_compatible(fdt, -1, "starfive,jh7110-clkgen"); + noff = fdt_node_offset_by_compatible(fdt, -1, "starfive,jh7110-syscrg"); if (-1 < noff) { rc = fdt_get_node_addr_size(fdt, noff, 0, &addr, NULL); if (rc)