Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp656657lqg; Fri, 1 Mar 2024 17:56:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUtdlU1Ju0R9pwusMzFbhj9y+fZcqFRIUj8e7eCEQ89JXzhZg7Yzz4tUYUYZIdkrJ375qv4Emr9i2sirK1i9k2UOWQjwDcuz6PkWf8zbg== X-Google-Smtp-Source: AGHT+IGix6Dvb0ASnvEFeAy0+3jX+oBSmEWefqdol3JHWgitpBOluNnlr6ouXWuxPXp4mv9aeZsv X-Received: by 2002:aa7:88c5:0:b0:6e4:f4b4:9ea2 with SMTP id k5-20020aa788c5000000b006e4f4b49ea2mr4437277pff.32.1709344614226; Fri, 01 Mar 2024 17:56:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709344614; cv=pass; d=google.com; s=arc-20160816; b=RBMe+bNZXBPwXmn7lX/9/x1xqZxSalw8K4lk9RqPAJx85cPBn8rgEY9DXBB7yHV4QW SJHbkVC/w6Z7SV317orU5ZUJ4uLCkuYZA3HuhK4tfIxSJmBCy9DiND73AySEQkK6Brxo QFvwBKEMvYUKZdNJQxjY1PJwvItkntevLI7OHjgFNwGnqLo85xA+n76wND12pznjeC95 3KaxumF1HYj+u/FNl8wmdsOIk5xGq452dtAnLCvlAaWkGeex8ZqWkvogolfbNl0SoNXU hgsleAJ9GEufsfBzY5H3zY5dnwItqnqFggIHBZNKr2HoMJHHZWi7P3Cpg7YGVXMwwJ3a ouWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rAjZ+kaDMbKRwjpcrRG3XyrYoFrf4nbBV7+HyQvCf8U=; fh=YIYducC+TzsR2zkRKlkmCHh792FkUXHLe9V+ry83qcQ=; b=qntnTVk+SA+RjWwLYDCf+dbcY1wdmXN79qPK7axH2Ng9pbldSgrok3d3LxFtPjLYqO OrblMAdO7/wFLBFtH3FZqirGTzaFyTwgwmED2Gqhtu/U+IuLaWmYOi+C/bf5cYNufIAV QEhHiNZAYmZNl9gk079QlkA6AJDW/RNDbjEzgcRyyRcUdTLGMs2h4bNlJUsllQPl5ZSb MW1PP+EDK3OuJU2teA4sEM9+/3nx7H4IrYMP/bxIh8kL5N1jTsuEGqVbTa3xmUbRa1NL 8XhPbYN1fKDhn5aivyi1VWlUbKrkaooY25Lz6c7Zqd9cF7I0rIjJa4p2s+nCfkWfrXHN Xvzg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jqt5QWo+; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-89305-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89305-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w5-20020a63af05000000b005cfda2f9e48si4734453pge.860.2024.03.01.17.56.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 17:56:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89305-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jqt5QWo+; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-89305-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89305-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D6430286562 for ; Sat, 2 Mar 2024 01:56:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B941C7483; Sat, 2 Mar 2024 01:56:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jqt5QWo+" Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (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 579756FB2; Sat, 2 Mar 2024 01:56:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709344604; cv=none; b=AMMs5GCKeNnz+bzWudfzC6kpnm9HmG5l6K+BpvCENdAQbuMjg1s9QJxoaql3r+xjfOWUKpTCzWerub4mU7bkd40XbfdD40ggXOr7fu1BSZoP415esXzrZ9w8AbdjmdFkFwdhE7RCOs81IJKY4zvyN/eP3y12J8sv8a4/HtjXsPE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709344604; c=relaxed/simple; bh=4He+PksBWilHxg+Qq6L94o151aUu8ph/uHKR1cVfTdI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dNhEvSahsWf985EmHrOmYxOEuhOLF7i1dLJv1s1KC+rKSoC5ANaG3jFVgzskA5Pbi2L0pqXQHPQ4YQS8qc+lIsVv9mBgQEUTEc4kffO8TOF7+dkXOa5DxwTUWWBep/3fdepaNmiWQc9TZ1pHnKZ2h0ziRimcxn9xe/nNBiwfudo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=jqt5QWo+; arc=none smtp.client-ip=209.85.216.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-29a2d0f69a6so2053195a91.3; Fri, 01 Mar 2024 17:56:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709344602; x=1709949402; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=rAjZ+kaDMbKRwjpcrRG3XyrYoFrf4nbBV7+HyQvCf8U=; b=jqt5QWo+NQlLavjbYyx0NwGN8FvKCvmg01P8vSonZQZx456wH9MQ0L/DvAtKCmokYq EDemalp1Ohvvg9jU8aNkTGY/eNQ1jWUA67tvuQCzIARV3vmbwDIYgtw93Gs8RdB9gIxg viCpyuXcFFao0lQudf/nZaNG/8mjk7mEG0hcisqZfhaJnHvhtB9PdpD9F81QF/YHc6ge nltDYdzLSR9p/JO6C2+Hy3w7ZWSVflQlogLM7yySet45Ws38RFobmKGnopAZ986uThww dGSLT3zf4xK1Fi4y6Vt9yoqiKB9f8OqifgWnuF0LTJCyW6/Q04A+6IIQFVlDBdCcpp4L Eulg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709344602; x=1709949402; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rAjZ+kaDMbKRwjpcrRG3XyrYoFrf4nbBV7+HyQvCf8U=; b=IhDwbrwzkIN0CWzJIQrXQ0d/4s+BlifADLQwHSfn0kK73q8W3rIqb6GGBIvfsSaqXe QG5gdE5zJhsAecYrXi1AAuxbsWAWepMnfoX/PFH34YEzXm1Z9lhbOQNPvzp+SOp/WieF xYvCvFBmY+CpGTZfkqDPgexDfRJaAbc9iRboqtO6Qn9VxTNXJERpkrDHEjadRAT8vPGG QebfwmaZavFmpmQXBD233WW9BK2oEnkowTSJAM+kqOoSBWh9PiywTHMEdCv16gapUAbJ svAfmmWKe4XuVMpVpe+wNO36bxgMsjWoGGEd7Ap0V5XQPCNLd7kflKLRJF23m2/dW07m mrkg== X-Forwarded-Encrypted: i=1; AJvYcCUWUyexEcKb7O4i/HLVGHS4plaDzxxr/fSY09iTUGaG+Kl4FscrCFrgzg543U02sMKMbN6t5aEHZLASFexfbhLXPdaSa0vSH3ybVtyW+Rwec+y1ZzLlY1NXlvBsYKOX9v5CYw9YrGpXaiDW2QqiYyNlP6jEgB9GiyKjRmPv4IjDMOuZ+w== X-Gm-Message-State: AOJu0YwcC3eyYAYLJearv0fAUAvFjpZ2BBjm04hvI8g3M88Wb0XqnOxf 9Vi/jHcwdrdJkJzXWXMyAMX6vWwInB2AkJaM/oROkuVJYd/Mol9ylco6zzkLKCA= X-Received: by 2002:a17:90a:fb81:b0:29a:1708:9878 with SMTP id cp1-20020a17090afb8100b0029a17089878mr3559394pjb.38.1709344602521; Fri, 01 Mar 2024 17:56:42 -0800 (PST) Received: from linux-8mug (111-248-209-112.dynamic-ip.hinet.net. [111.248.209.112]) by smtp.gmail.com with ESMTPSA id g24-20020a170902869800b001dbae7b85b1sm4118565plo.237.2024.03.01.17.56.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 17:56:42 -0800 (PST) Date: Sat, 2 Mar 2024 09:56:24 +0800 From: Chester Lin To: Ghennadi Procopciuc Cc: Andreas Farber , Matthias Brugger , Shawn Guo , Sascha Hauer , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , NXP S32 Linux Team , Pengutronix Kernel Team , NXP Linux Team , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Ghennadi Procopciuc , Ciprian Costea Subject: Re: [PATCH v2 2/2] arm64: dts: s32g: add uSDHC node Message-ID: References: <20240122140602.1006813-1-ghennadi.procopciuc@oss.nxp.com> <20240122140602.1006813-3-ghennadi.procopciuc@oss.nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Feb 26, 2024 at 08:29:31AM +0200, Ghennadi Procopciuc wrote: > On 2/24/24 12:44, Chester Lin wrote: > > Hi Ghennadi, > > > > On Sat, Feb 24, 2024 at 04:22:30PM +0800, Chester Lin wrote: > >> Hi Ghennadi, > > Hi Chester, > >> > >> On Mon, Jan 22, 2024 at 04:06:01PM +0200, Ghennadi Procopciuc wrote: > >>> From: Ghennadi Procopciuc > >>> > >>> Add the uSDHC node for the boards that are based on S32G SoCs. > >>> > >>> Signed-off-by: Ciprian Costea > >>> Signed-off-by: Ghennadi Procopciuc > >>> --- > >>> arch/arm64/boot/dts/freescale/s32g2.dtsi | 10 ++++++++++ > >>> arch/arm64/boot/dts/freescale/s32g274a-evb.dts | 6 +++++- > >>> arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts | 6 +++++- > >>> 3 files changed, 20 insertions(+), 2 deletions(-) > >>> > >>> diff --git a/arch/arm64/boot/dts/freescale/s32g2.dtsi b/arch/arm64/boot/dts/freescale/s32g2.dtsi > >>> index ef1a1d61f2ba..fc19ae2e8d3b 100644 > >>> --- a/arch/arm64/boot/dts/freescale/s32g2.dtsi > >>> +++ b/arch/arm64/boot/dts/freescale/s32g2.dtsi > >>> @@ -138,6 +138,16 @@ uart2: serial@402bc000 { > >>> status = "disabled"; > >>> }; > >>> > >>> + usdhc0: mmc@402f0000 { > >>> + compatible = "nxp,s32g2-usdhc"; > >>> + reg = <0x402f0000 0x1000>; > >>> + interrupts = ; > >>> + clocks = <&clks 32>, <&clks 31>, <&clks 33>; > >> > >> Same as I have mentioned in [PATCH v2 1/2], could we have fixed dt-bindings to > >> replace with these raw clock id values (32, 31, 33)? > >> > > > > Just found the previous review discussion in v1: > > https://lore.kernel.org/all/f54d947c-58dc-498f-8871-b472f97be4a8@oss.nxp.com/ > > > Indeed, I switched to raw clocks instead of placing them into a binding > header after receiving this feedback on v1. > > > What I'm worried is that, could these raw clock IDs be rearranged in the > > downstream TF-A? If so it would cause ABI inconsistency and clock issues > > since the kernel is not aware of any raw ID changes in downstream TF-A. > > These clock IDs will become immutable in the downstream version of TF-A > once the patches get merged. This will prevent any unfortunate events > when the Kernel and TF-A are not in sync with regard to SCMI clock IDs. > > Best regards, > Ghennadi Thanks for explanation. Reviewed-by: Chester Lin > > > > Chester > > > >>> + clock-names = "ipg", "ahb", "per"; > >>> + bus-width = <8>; > >>> + status = "disabled"; > >>> + }; > >>> + > >>> gic: interrupt-controller@50800000 { > >>> compatible = "arm,gic-v3"; > >>> reg = <0x50800000 0x10000>, > >>> diff --git a/arch/arm64/boot/dts/freescale/s32g274a-evb.dts b/arch/arm64/boot/dts/freescale/s32g274a-evb.dts > >>> index 9118d8d2ee01..00070c949e2a 100644 > >>> --- a/arch/arm64/boot/dts/freescale/s32g274a-evb.dts > >>> +++ b/arch/arm64/boot/dts/freescale/s32g274a-evb.dts > >>> @@ -1,7 +1,7 @@ > >>> // SPDX-License-Identifier: GPL-2.0-or-later OR MIT > >>> /* > >>> * Copyright (c) 2021 SUSE LLC > >>> - * Copyright (c) 2019-2021 NXP > >>> + * Copyright 2019-2021, 2024 NXP > >>> */ > >>> > >>> /dts-v1/; > >>> @@ -32,3 +32,7 @@ memory@80000000 { > >>> &uart0 { > >>> status = "okay"; > >>> }; > >>> + > >>> +&usdhc0 { > >>> + status = "okay"; > >>> +}; > >>> diff --git a/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts b/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts > >>> index e05ee854cdf5..b3fc12899cae 100644 > >>> --- a/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts > >>> +++ b/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts > >>> @@ -1,7 +1,7 @@ > >>> // SPDX-License-Identifier: GPL-2.0-or-later OR MIT > >>> /* > >>> * Copyright (c) 2021 SUSE LLC > >>> - * Copyright (c) 2019-2021 NXP > >>> + * Copyright 2019-2021, 2024 NXP > >>> */ > >>> > >>> /dts-v1/; > >>> @@ -38,3 +38,7 @@ &uart0 { > >>> &uart1 { > >>> status = "okay"; > >>> }; > >>> + > >>> +&usdhc0 { > >>> + status = "okay"; > >>> +}; > >>> -- > >>> 2.43.0 > >>> > > -- > Regards, > Ghennadi >