Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp66026rdb; Fri, 26 Jan 2024 19:23:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgFmGG4Q5RGMOouDrI9/R/rYPETxJP5KLJBb5Sqx4etTaRPE0Du679SV2QDhyIxVm+pXbM X-Received: by 2002:a05:600c:4d96:b0:40e:52cf:3c2c with SMTP id v22-20020a05600c4d9600b0040e52cf3c2cmr535982wmp.73.1706325788892; Fri, 26 Jan 2024 19:23:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706325788; cv=pass; d=google.com; s=arc-20160816; b=ljKGX48tZZs9DRgTk6WKcl3lJRcYBsJ2SadRVqAG5vM1me7eudid0OuSciULcHcD+w MR8cUJXAFGjqY57mXhJMatO4ZO+78IsrUKyDI1juoWUSe/YYnrlX5+SDytzyRKOvjg0h /EuPkUexuCEbgt+5YoXuS7RKgJi/m2jZey/H6S/5OYTqn7//tnp5DbDJKrG/s12umSwa 6glxz2gwADxjC6Icgz+sl/y9fz5yXC/mis8sFOHRJ8kEpJfh2oru5t6guPfKfSKwtk9O NigmdbbxSNVmWDBlxerbjmefdaMgEnjzjvgbokVSdrQ1dNQ8U9R5YMbrUs2Yz/2Axg6q ryQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=PcjeTVsyelbpdNWxkkCJRWruASpwo+2V+ZzZoZejvEg=; fh=LAXBCLR4Vgr9qp8+l93df9h18gIUU/JyJLh+kTOR+2U=; b=u+Ml0qi0v4fVnlbwsfoJZ+R199fzbiiCACQdvfcfuvha3ye3hTvcjzCf9a0ooJM+BI 91UqCeSX0LR4hY4JSOWb6G94goTxkxilVXuQc1fN7puIG/5MgzSsZAtduOOzE79Kw0hm QlJil+6eUF+MSjQlRorlvwQL2BKm9HwK0F1J4mSgUiy3pa4wLu7I3bwC6WyPCCweEEd+ esv1e/3Xx7d51oe1Y0htJyQk91Fs4VgKJHWh8UCKB0yvUqLh1wE5z+YbXBsTopAzHQ3X X9KDiwrqj+TRaC2OoSrsWcAGlPaCkVyw0yXgtdJvwYLiZgxeYJfp2oJwop3tmnGR3fvZ VJzQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KYkg+QAW; 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-41036-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41036-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f16-20020a056402005000b0055a48656686si1284235edu.557.2024.01.26.19.23.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 19:23:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41036-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KYkg+QAW; 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-41036-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41036-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3A36C1F255BA for ; Sat, 27 Jan 2024 03:23:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3ECFF11702; Sat, 27 Jan 2024 03:22:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="KYkg+QAW" Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) (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 A33718F40 for ; Sat, 27 Jan 2024 03:22:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706325778; cv=none; b=lvbyvDF2Pi1BuGIXQyqFEXBcVDBMWts9ZRi5lGqCiBA/o+ShHnCVC9N0b35fjF9pTNT05DEw1J0lohJPQGWt5bz2uB2RGotdtR31lE1ziqwaPAvvbnNH6Us6PSDKg3fng9FwYZICIFNXjUdlF6PGmDqCmBQEq2hRk3UhtjtMRBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706325778; c=relaxed/simple; bh=FrxJXbvKFy9ccwvaK0VXKyIWUFmKqQSsZFadTQHX5ck=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=s33VvxOkXhbyDdnlB+I/aGSfaOz4CpsoW+jmb50ynjDWB361/q8pMMVWOWZz0CCENFgBbjtivn17VfaJTgCHcA0YBwqyZyhM4Bax/V/9GsmurPG4zEbeIuKQ4RyycnzIqmrkWKUbcn9c9v3openI5juAOzLZ3JXuLJ83IRdPEW8= 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=KYkg+QAW; arc=none smtp.client-ip=209.85.160.177 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-qt1-f177.google.com with SMTP id d75a77b69052e-429c00bf0efso7855891cf.1 for ; Fri, 26 Jan 2024 19:22:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706325775; x=1706930575; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PcjeTVsyelbpdNWxkkCJRWruASpwo+2V+ZzZoZejvEg=; b=KYkg+QAW8RlwstPQ79aA90mS/ZG1C3KZ0WfpZLivGNyuIZ2jMrzEAjRlHYcuHpc5TN wmiz8HOo2CHjlnc31H1TZqmLjwHcNThx66/bnquHdEgA+TRIVouTDQQpWkOvHyVhIwd3 bQVoUM2TuCJTLQSE+VZGyJ4wr0OkuUC2+CVowdzjFaWS9MdRP0gWAapesIe3gIVk6qQa s/YhmfI0YC1W7RtphBEZKjAl5Xjd/sLjD3Ey58h31T/AeBuLOe3cVoYQ9e2H5qXAMLvP kQVKC6mOesY8p6RMRbdltMneWGsQxEgixQSc/7tjzrc/DMSvJhbSmbGlmpY8McFThD0x YDNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706325775; x=1706930575; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PcjeTVsyelbpdNWxkkCJRWruASpwo+2V+ZzZoZejvEg=; b=QY8yl/XjYg4SL42fUUy4+2H9+R1YFm6Rky7a7zPmxtnQMSozs7ELanCeCygVoXHklR jeh1r/N0z9d+2n95pBcshtCLbkI02xnu7Wioxp8K4JWeZyMU0/hm/WtMtJBf/F1/T0Nt P71a9jXCgNACzsL2VqJLxY/FOOsEaDWD0sQuI0QhCIaSP08w1ivnYIjKhvlZsamEPIA2 PxjpqJ2WECBTPqcJX2VaGhpqD4yTm8qqurKtqYctkN9xaWNJJxxfsGBaUPFrpzfgRCS0 zBIL3WpvNwQ4pboJ8QJi68SUrb//GRbEQ/zsVv0OWw9Lu5PJdCVtS823Y6LJw2pfPHbG 122g== X-Gm-Message-State: AOJu0Yx3m1X1w3NCwM0dusz7sFxZgi5wHo9boTS1V9NTfBU9U/gLHiQb txDtpNNqVevt+fdvoi6zBwuo/M8FFlHIlCcUFVE17N8QSoTe21hbsZZWHNfb+rF/rCQB8y5KxKU Idz+Su99XZlQ6rcBA+3AoCvChssP1OudoTTPCcw== X-Received: by 2002:a05:622a:181a:b0:42a:5e22:5322 with SMTP id t26-20020a05622a181a00b0042a5e225322mr1144589qtc.21.1706325775572; Fri, 26 Jan 2024 19:22:55 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240127003607.501086-1-andre.draszik@linaro.org> <20240127003607.501086-4-andre.draszik@linaro.org> In-Reply-To: <20240127003607.501086-4-andre.draszik@linaro.org> From: Sam Protsenko Date: Fri, 26 Jan 2024 21:22:44 -0600 Message-ID: Subject: Re: [PATCH 3/5] arm64: dts: exynos: gs101: use correct clocks for usi8 To: =?UTF-8?Q?Andr=C3=A9_Draszik?= Cc: peter.griffin@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-kernel@vger.kernel.org, kernel-team@android.com, tudor.ambarus@linaro.org, willmcvicker@google.com, alim.akhtar@samsung.com, s.nawrocki@samsung.com, tomasz.figa@gmail.com, cw00.choi@samsung.com, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Jan 26, 2024 at 6:37=E2=80=AFPM Andr=C3=A9 Draszik wrote: > > Wrong pclk clocks have been used in this usi8 instance here. For USI > and I2C, we need the ipclk and pclk, where pclk is the bus clock. > Without it, nothing can work. Empty line is missing here? > It is unclear what exactly is using USI8_USI_CLK, but it is not > required for the IP to be operational at this stage, while pclk is. From [1] it looks like DIV_CLK_PERIC0_USI8_USI is a common parrent for these two leaf gate clocks: 1. GOUT_BLK_PERIC0_UID_RSTNSYNC_CLK_PERIC0_USI8_USI_IPCLKPORT_CLK 2. GOUT_BLK_PERIC0_UID_PERIC0_TOP0_IPCLKPORT_IPCLK_7 So IIUC, you replace clock #1 with clock #2 in this patch? If so, I think that's a right move, because in my experience RSTNSYNC clocks shouldn't be used at all for consumer IP-cores. That's why I never added RSTNSYNC clocks in clk-exynos850 driver at all -- I only see them useful for store/restore ops during suspend/resume. [1] https://android.googlesource.com/kernel/gs/+/refs/tags/android-12.0.0_r= 0.17/drivers/soc/google/cal-if/gs101/cmucal-node.c#2793 > This also brings the DT in line with the clock names expected by the > usi and i2c drivers. > > Update the DTSI accordingly. > > Fixes: 6d44d1a1fb62 ("arm64: dts: exynos: gs101: define USI8 with I2C con= figuration") > Signed-off-by: Andr=C3=A9 Draszik > --- Reviewed-by: Sam Protsenko > arch/arm64/boot/dts/exynos/google/gs101.dtsi | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/bo= ot/dts/exynos/google/gs101.dtsi > index bc251e565be6..e5b665be2d62 100644 > --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi > +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi > @@ -380,7 +380,7 @@ usi8: usi@109700c0 { > ranges; > #address-cells =3D <1>; > #size-cells =3D <1>; > - clocks =3D <&cmu_peric0 CLK_GOUT_PERIC0_CLK_PERIC= 0_USI8_USI_CLK>, > + clocks =3D <&cmu_peric0 CLK_GOUT_PERIC0_PERIC0_TO= P0_PCLK_7>, > <&cmu_peric0 CLK_GOUT_PERIC0_PERIC0_TOP0= _IPCLK_7>; > clock-names =3D "pclk", "ipclk"; > samsung,sysreg =3D <&sysreg_peric0 0x101c>; > @@ -397,7 +397,7 @@ hsi2c_8: i2c@10970000 { > pinctrl-names =3D "default"; > pinctrl-0 =3D <&hsi2c8_bus>; > clocks =3D <&cmu_peric0 CLK_GOUT_PERIC0_P= ERIC0_TOP0_IPCLK_7>, > - <&cmu_peric0 CLK_GOUT_PERIC0_CLK= _PERIC0_USI8_USI_CLK>; > + <&cmu_peric0 CLK_GOUT_PERIC0_PER= IC0_TOP0_PCLK_7>; > clock-names =3D "hsi2c", "hsi2c_pclk"; > status =3D "disabled"; > }; > -- > 2.43.0.429.g432eaa2c6b-goog >