Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp498931lqs; Tue, 5 Mar 2024 07:59:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX9uB34/e4Dir8u717HPaGBV0VhA1UJfOsC52SRpMCdlyPihyj//+R2ND2Q0pbN6vagDiwijAT1X2W9NzRD4rBaNQmnIv+xzJA7rSysLw== X-Google-Smtp-Source: AGHT+IF/mn1+4mXMM8T03NOE+1Esd5rH5P9rN/N2f3oORHhzycOUbxU4PiEEzExOEXMY02sMnpFQ X-Received: by 2002:a05:6a20:3ca1:b0:1a1:4fce:8ee1 with SMTP id b33-20020a056a203ca100b001a14fce8ee1mr2290143pzj.8.1709654395745; Tue, 05 Mar 2024 07:59:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709654395; cv=pass; d=google.com; s=arc-20160816; b=oMC1w54wP81ybBNLYNZiJSxUHB9oOC+EFABv95GklDLGA/qio4Ggpkd7MgcX+NrfJr xKp0iSpLAAoU1pe0JFpz4SLTkM4+bvUtcddTrWaOC9ZElHCe+EWUoFGFJDEMscE/lARG YVAzYwPozTF5Ch+oaSAeChXS2BzTDCYc9srNmG/PLe1hTivS1zyt/I6SL7NVrhQ5k0LZ D4LwN/ipwMDiBEMLlGYC8sfgcfDW6DJ+QtbmS5nN1TvHuFmiFy9LXOXM9uDiO28W9AEn AufRNoyGQcLxiufogOudj2Yhq31Ji9Vo5UyEUqs1tk06GmX1Dx/7baAtu+45gN3IYbzi CgRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=3r7Bnl4XN924keLTWvY+GFPpZnAjIYOoWtnEA26PCh0=; fh=lJaJZGxGAzKKsF1XGPoVp4HJqcTfpf6QJ4EB3Gyvg4U=; b=Kipqyp1LXQNe9LVl8LoxOdvu7msz1/l8T0yei6PgSXh5d9rUNcFkjWafdpkgSJ5pyl ZfLVeYI2mgOF/jV1CSCon/Ft1Q9BIjFsZprVTmdBMBrYsj1DSl+I5q1hOE2Mlk2569d1 Ndcf4ljp3Wqr+kwikuSvMSkzdyy03soddZvFSCPM8mbGBtZnje1xjoYPyb02eSjOdlcF 307gCEzYfnDcIo9/IjUcdJIChJT0uX0G0m3rC3ESWNT3U7jmvPCs/Y6OK2vIYMcXDr+a uPSOa4p+G73hRZ4ZwfPgHQCu4COyVIBvqO745418vkfvl94cT7MdKxwiZiPoe7xevQRl LRMw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xNJKp2+y; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-92636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92636-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i24-20020a631318000000b005d8e28279bcsi9905877pgl.540.2024.03.05.07.59.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 07:59:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xNJKp2+y; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-92636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92636-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5E806B21257 for ; Tue, 5 Mar 2024 15:55:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67421128374; Tue, 5 Mar 2024 15:55:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xNJKp2+y" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C931127B68 for ; Tue, 5 Mar 2024 15:55:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709654111; cv=none; b=lTLg+rIMXMdm5gmS8bmOtqj3hyW7Mk6hoR5bvbx74VjITYCorD/JqOpqz5dRTR1UjR1msL0t+Xl/tAP1noRvWE18R52JHShCAIW0cIS3m5cBK/Bsg8uwEQh9VvaeP3pITZ7N8e2sip1XZ6NCgTdIL5EBpdUhJJwZ89B8U9L/Y1A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709654111; c=relaxed/simple; bh=0MFMA/5/EBNpSxHlCl5hMLR/T70CB1Xb8VS/QDE+tKI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=FQl8AprTOXxuWQkmJIYQGpYfktETX/1GLNiUlhrjAaf/KyKWXk4FlJwRFQhFlA0/vE593oL9fi+T52P5XaqwIybWAkWH8C5T9SKpzVQFXupM+TzBcuOLngi6Ud5zuo0psWaR8Jd+wCak36fbbgs67BtG7MITdAfkgxEm90sFv1k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=xNJKp2+y; arc=none smtp.client-ip=209.85.167.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-5134d7e16a8so2118031e87.3 for ; Tue, 05 Mar 2024 07:55:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709654107; x=1710258907; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=3r7Bnl4XN924keLTWvY+GFPpZnAjIYOoWtnEA26PCh0=; b=xNJKp2+ywCkCcKTDyR+ChK/CmT8lC0PNh9t46Hst7kvJ0vptAamGU6aYPQY8mtaj8n B0qTh+tcEsuqY4tRm5xoruBi9UjofU2srBdUDs+BMFBAgjL/fyjB5OjH+tzei/M5L+Ng OwAUOEOJTlqWr59cVfAlX4PprjHZcVxKDMzeAbK7n0R3ygAnXCo7ttbtDFKwUiI7OhvR 6tH/VcXXsJftL0Rupb2qAfJsktVw4cG0yycG/UY91PQoS6rXrXPfPsy3DiWYGUctB8Vf AlrKdmfsWsSPQUQ9Tt280p2gr0rnKouJaD8r7o1Iu+JY0ZFIHI+JXCL1lEHtbrv/GxAo b9JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709654107; x=1710258907; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3r7Bnl4XN924keLTWvY+GFPpZnAjIYOoWtnEA26PCh0=; b=CxOruQymcjONmLmeU0lINQ/D7WSPxnoJrIPECB6TKHGLszK6VaBpGu190vb/9joW1f iFBaZuC96C+40AVr6Ff9rOmAogpDS1hSVJHLdfqw3xiNqbadtSZyuHT4Iwf6a9g74Rrj ltwIMLgJ+wm6NBlheM3uT/GUDxTUSlDxCXmGwujdoOD2sEW9u9rzWVWRCvBvOmaGdDXJ 98rM+buMkkB6fpFg6Q4xbWM5DiffDbZXTe+7pscxW/zr5r/ywZbpJWwF9EO6SjMUEN2A Kg0fLZ7TG/kkVnVPwheslZqmnIwWhGzJ/JITFnuO1CnAnsv5cRz8dllCEuP3s/ip2ZIe o3gA== X-Forwarded-Encrypted: i=1; AJvYcCVGXDz2CNAafujkzdv6LKLKLSWQnZ952opu/8vVTo0QvOeEU9V7dRbNU6tiNLgoUzUr13EcX5ewVrh9zVDzAXJFhClYzEzrFmUin3A0 X-Gm-Message-State: AOJu0Yz0PUyiappEmVwItlshuqaLGuiReHdGgXHtBwAJuSUIqww5w0tp SCVvxV0vNGXVr93QjMJrEyQh8WJwSdHCuP2f2ifxDzXAnBzEsdeM2+pESmEMJHA= X-Received: by 2002:a19:5206:0:b0:512:d89e:946 with SMTP id m6-20020a195206000000b00512d89e0946mr1350557lfb.44.1709654107433; Tue, 05 Mar 2024 07:55:07 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id n14-20020a170906118e00b00a45a72fadfcsm867761eja.23.2024.03.05.07.55.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Mar 2024 07:55:06 -0800 (PST) Message-ID: <27bdcc35-a821-4dc4-a410-a939ef0d9af6@linaro.org> Date: Tue, 5 Mar 2024 16:55:05 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] riscv: dts: starfive: replace underscores in node names Content-Language: en-US To: Geert Uytterhoeven Cc: Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk References: <20240213144638.341509-1-krzysztof.kozlowski@linaro.org> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9C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t2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 05/03/2024 15:44, Geert Uytterhoeven wrote: > Hi Krzysztof > > On Tue, Feb 13, 2024 at 3:48 PM Krzysztof Kozlowski > wrote: >> Underscores should not be used in node names (dtc with W=2 warns about >> them), so replace them with hyphens. >> >> Signed-off-by: Krzysztof Kozlowski > > Thanks for your patch, which is now commit f03606470886e781 ("riscv: > dts: starfive: replace underscores in node names") in v6.8-rc6. > > This causes e.g. BeagleV Starlight to hang during boot without any > output. Booting with "earlycon" reveals: > > dw-apb-uart 12440000.serial: error -EINVAL: clock rate not defined > dw-apb-uart: probe of 12440000.serial failed with error -22 > > and indeed, p->uartclk = 0. > >> --- a/arch/riscv/boot/dts/starfive/jh7100.dtsi >> +++ b/arch/riscv/boot/dts/starfive/jh7100.dtsi >> @@ -113,28 +113,28 @@ cpu_crit { >> }; >> }; >> >> - osc_sys: osc_sys { >> + osc_sys: osc-sys { >> compatible = "fixed-clock"; >> #clock-cells = <0>; >> /* This value must be overridden by the board */ >> clock-frequency = <0>; >> }; >> >> - osc_aud: osc_aud { >> + osc_aud: osc-aud { >> compatible = "fixed-clock"; >> #clock-cells = <0>; >> /* This value must be overridden by the board */ >> clock-frequency = <0>; >> }; >> >> - gmac_rmii_ref: gmac_rmii_ref { >> + gmac_rmii_ref: gmac-rmii-ref { >> compatible = "fixed-clock"; >> #clock-cells = <0>; >> /* Should be overridden by the board when needed */ >> clock-frequency = <0>; >> }; >> >> - gmac_gr_mii_rxclk: gmac_gr_mii_rxclk { >> + gmac_gr_mii_rxclk: gmac-gr-mii-rxclk { >> compatible = "fixed-clock"; >> #clock-cells = <0>; >> /* Should be overridden by the board when needed */ > > The clock driver relies on the clock names, which are (in the absence > of clock-output-names properties) identical to the actual node names: > > drivers/clk/starfive/clk-starfive-jh7100.c: parents[i].fw_name = "osc_sys"; > drivers/clk/starfive/clk-starfive-jh7100.c: parents[i].fw_name = "osc_aud"; > drivers/clk/starfive/clk-starfive-jh7100.c: parents[i].fw_name = > "gmac_rmii_ref"; > drivers/clk/starfive/clk-starfive-jh7100.c: parents[i].fw_name = > "gmac_gr_mii_rxclk"; > > Hence these clocks can no longer be found, and all children have a > zero clock rate, causing the breakage. Uh, sorry :( and thanks for the report. I'll add clock-output-names. Best regards, Krzysztof