Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp596867rdb; Mon, 29 Jan 2024 11:40:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9I5YM6gMPxCaXLARNs/DxN7zIN5+ibqrvLZqop+DZFc0Gb5H6tgEReMYtuJaSl8myi8RK X-Received: by 2002:a05:6a00:4503:b0:6db:605c:b9e4 with SMTP id cw3-20020a056a00450300b006db605cb9e4mr3906090pfb.31.1706557232094; Mon, 29 Jan 2024 11:40:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706557232; cv=pass; d=google.com; s=arc-20160816; b=sVc91sdM7lAoT2ommH64kxDca4EELTeHOCobwjISUmChHl20WZwDmo37uhWCS/bLXE 6dBeiy5DPRTX9ZfO+M894+aCQIdTva94ub/0HHmjyQiPSOqyeKBseXffmyZszu15yWOW CoovJQ2DuLWWCMqIhVbl3LYVChrWBE6VXNwAGfHLZgxUKlppL+9YOz43hVbyEQn3JRP5 k+QXSQfQ+1Yi14ZIRupojl+7aTNdvVSTPLxxz65r91BXIStrBb7PqMJq/SASKJRj7EmP k6BP1UrEmZSSNmYyEmrm3HrWqTJUMYZ/1IgIhDjQpt+yJxpMJ87zlnJekOXDYm3GGidr 5Kzw== 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=RgJSsvdPN9rhZ08JgxNFLNGNMYP1B2o2EInR2eAPHu4=; fh=sfMTk15Xfs0VkGLdJM52HZZxXwiejeZZVmpFGYPQUUY=; b=pUKGQ4yGwEudJqzVRmSgc0I1shPRfkoFN8DZdM4elyQyAqYTm/4M2oDVOeEdXMzkWf y0A0b15NXLk3NG7eUnCotIkyhI5BFab1SHJUJMmsrM8SzaXWgnC62epZiQZ8PRCWCc4p LyBe7mDeMEH4fv61do6QEREhXX81TSv3TLModDa6WNmTwqBFpYrI4zWLynvJgWVpw86a H15RZA3phHzgkGkbOa/hyxDT9YPLkeDUTccdsQnmVJvTeeKodwdG5FvXAbQIGW1OPzW+ lTamjxn8JJkupD16vAcUGVC8KsRLFDVViaMgfyLOkdR87eZbHJ3YtrwinHQymupEVihn elYA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="VtpYXJ1/"; 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-43423-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43423-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h10-20020a056a00218a00b006ddc43061fasi6185880pfi.324.2024.01.29.11.40.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 11:40:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43423-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=@linaro.org header.s=google header.b="VtpYXJ1/"; 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-43423-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43423-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AC01728B14C for ; Mon, 29 Jan 2024 19:39:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04F56179AB; Mon, 29 Jan 2024 19:39:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VtpYXJ1/" Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) (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 7F02B4CB24 for ; Mon, 29 Jan 2024 19:39:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706557172; cv=none; b=RfDRCtcls9pXdmCQQJ6pp2JgKyhrO+Kx4PnBmdthKX2hjN92/Ue/oWOctOdZc2tCGvUMenU2CIXz5zQZDg5nilnNsQz1rBIss8Wv2ScGQT6q7aws5NVR8t1M+ie5c8ItWHZwNhZIExWeDIJzR5ZD1fG5TISciLldkpDZrLHMUZs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706557172; c=relaxed/simple; bh=DdjBawn+WSbP73IbOFM9d1u/5ppo1GsvtgaQyIJe3kA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=OUWknla8y5JwrtxWbJ+mRoAUejAoe57PityjDF9kFqL61fMDFKJOsHXGaXuUY2ltv3mTmuyRz6I36E8zIyzGN8woJCTuF8w4+N32ODOPDEQIf0+CHI4EDaF+lJrFFgBe6wa27S9mbnjW+iGrdIMp3weDvb6voVzjoA0OFGbjrS4= 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=VtpYXJ1/; arc=none smtp.client-ip=209.85.215.181 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-pg1-f181.google.com with SMTP id 41be03b00d2f7-5cdf76cde78so1722853a12.1 for ; Mon, 29 Jan 2024 11:39:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706557170; x=1707161970; 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=RgJSsvdPN9rhZ08JgxNFLNGNMYP1B2o2EInR2eAPHu4=; b=VtpYXJ1/ZRt/yp49dW4z6pUVLe3ZWJKWNLNL0/cMzEf6n/TAU93Url4568BdQGsqf7 TlIiXAbeXpC6zoeOHdJ+YF3KLlwQ74mldGsv+T6JACo8V4YebiWbCtbP00cOsI2fq2gm 42qOYFbhqsbPem5S8OU6SAiWdoGe/afuHtXaSbcU42qIDj+rj3aKO9iP3pYTNV4L2Wc9 qS+7eEdJ1YeT1WmRTwQNjdkgOLNtQgzLO3f5f3bI8zZ5Ba/4i9c64FjHCv3Bv+kfEcGz EJioCr3w2i6oT1gF4DLK0i7DRV5VQHi2xwAxYNzmtWakYiHT3npeIsPXHc+0+12QKGV2 bbwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706557170; x=1707161970; 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=RgJSsvdPN9rhZ08JgxNFLNGNMYP1B2o2EInR2eAPHu4=; b=GBTTCupBIwoSQXuJX0JD/XqKOyYfM2OkAUOTXRutBE4wWDjnV5iCll9k6EjoQAYXHJ etEIb1Sz7buq/hpmxOsxYfGhfpmdP53KmvlM01UeTE0CeM6lw5Ezx23KcifvrUqLi98m QLps+3rSOU+gitoYrF1C5s31NsRmIGuaKagA7SxETi462yc8WO1Jmgp5lQH2oHxE92hG N4EAvFmLopjhUmIPpzdjhKcU23EU5MRInuo48KJ7laXj2DyyYXYG/DK6+CRdEel3z/ws gxHEGk4tX+Z8gKFpnR215B6ZAsDPbT3EJK6kt9Vp+iwRBh6+SAHIs1CY4dk6AXhmX+BK Gcuw== X-Gm-Message-State: AOJu0YxldhHDJ6y45+anTUWxQ5qkaPryNIKZJOzSK2llLfA8umslu6bu 7+C6xgXum+u3K1250E/OcEDopIG0imyZz24DG5e4jpQXsy7SHcKabEHRUzS4Tm1fUsnNQmpbJbp Tx4yV+cm+UhZmPUN6OrP3jeqw6g+rSV1SeBTfFg== X-Received: by 2002:a17:90a:cc04:b0:28f:fa54:eb30 with SMTP id b4-20020a17090acc0400b0028ffa54eb30mr2782484pju.37.1706557169830; Mon, 29 Jan 2024 11:39:29 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240125013858.3986-1-semen.protsenko@linaro.org> <20240125013858.3986-4-semen.protsenko@linaro.org> <1b27fa0d-5dc8-497f-ab17-76d82c2aaf40@linaro.org> In-Reply-To: <1b27fa0d-5dc8-497f-ab17-76d82c2aaf40@linaro.org> From: Sam Protsenko Date: Mon, 29 Jan 2024 13:39:18 -0600 Message-ID: Subject: Re: [PATCH v2 3/3] arm64: dts: exynos: Add SPI nodes for Exynos850 To: Tudor Ambarus Cc: Krzysztof Kozlowski , Rob Herring , Conor Dooley , Alim Akhtar , Sylwester Nawrocki , Tomasz Figa , Chanwoo Choi , linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jan 29, 2024 at 11:51=E2=80=AFAM Tudor Ambarus wrote: > > > > On 1/25/24 01:38, Sam Protsenko wrote: > > diff --git a/arch/arm64/boot/dts/exynos/exynos850.dtsi b/arch/arm64/boo= t/dts/exynos/exynos850.dtsi > > index 618bc674896e..ca257da74b50 100644 > > --- a/arch/arm64/boot/dts/exynos/exynos850.dtsi > > +++ b/arch/arm64/boot/dts/exynos/exynos850.dtsi > > @@ -738,6 +738,24 @@ usi_spi_0: usi@139400c0 { > > <&cmu_peri CLK_GOUT_SPI0_IPCLK>; > > clock-names =3D "pclk", "ipclk"; > > status =3D "disabled"; > > + > > + spi_0: spi@13940000 { > > + compatible =3D "samsung,exynos850-spi"; > > + reg =3D <0x13940000 0x30>; > > + interrupts =3D ; > > + pinctrl-0 =3D <&spi0_pins>; > > + pinctrl-names =3D "default"; > > + clocks =3D <&cmu_peri CLK_GOUT_SPI0_IPCLK= >, > > + <&cmu_peri CLK_GOUT_SPI0_PCLK>; > > + clock-names =3D "spi_busclk0", "spi"; > > + samsung,spi-src-clk =3D <0>; > > this optional property > The reason this property is provided here despite being optional, is to avoid corresponding dev_warn() message from spi-s3c64xx.c driver: if (of_property_read_u32(dev->of_node, "samsung,spi-src-clk", &temp= )) { dev_warn(dev, "spi bus clock parent not specified, using clock at index 0 as parent\n"); The same usage (samsung,spi-src-clk =3D <0>) can be encountered in multiple other Exynos dts in arch/arm/ and arch/arm64/, and it's also used in bindings example. Probably for the same reason explained above. Even if dev_warn() is removed in the driver, I guess the older kernels will still print it if spi-src-clk is omitted. So I'd like to keep it here. > > + dmas =3D <&pdma0 5>, <&pdma0 4>; > > + dma-names =3D "tx", "rx"; > > + num-cs =3D <1>; > > and this one, are already defaults in the driver. Shall you remove them? > For exactly the same reasoning as stated above, I'd like to keep this here to keep dmesg clean and tidy. Otherwise it prints this warning: if (of_property_read_u32(dev->of_node, "num-cs", &temp)) { dev_warn(dev, "number of chip select lines not specified, assuming 1 chip select line\n"); And even if the warning is removed in the driver, older kernels will still print it. > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + status =3D "disabled"; > > + }; > > };