Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp153930rdb; Sun, 28 Jan 2024 19:02:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IEpTRyWUTTzvWMcDaww8JIjnbyHVG90P3DBEW3m+0p037Ydu+7BC/s0uVaF630qCoCTY76S X-Received: by 2002:a05:6870:b489:b0:218:4be3:810a with SMTP id y9-20020a056870b48900b002184be3810amr4498143oap.37.1706497328255; Sun, 28 Jan 2024 19:02:08 -0800 (PST) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y23-20020a631817000000b005d8c118be4dsi2144774pgl.136.2024.01.28.19.02.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 19:02:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42112-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; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-42112-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42112-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.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 F1B6CB22E73 for ; Mon, 29 Jan 2024 03:01:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBE14FBF7; Mon, 29 Jan 2024 03:01:28 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 92441F9DF; Mon, 29 Jan 2024 03:01:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706497288; cv=none; b=DvPh/4gbKo2ICaUBXaMcbScc1Vlf/smHztJwHj5V8KG9K6fdr0MWCgauAfBlxx+MrY5gRAidU8RlN+em1/gObgn6eUL3Qbs2aQVvJCNwxDl9NwM4inS2Z52vH5SBE9jPcDVeYVnQ42huvWGdvCk6csXrzQwi5XWdoRCoe9D/fj4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706497288; c=relaxed/simple; bh=2xUcCAm+iqsfWkBCNUqENNuPxYyGpXz+6bPj71mvjR0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=snfsquH39kXfuAIHi6Kjh+ELNVR+6eF1UaDgWVi+Eexu9u1f/SeGTZjJnGo9vi0WvvZSmx9v0dWiBUZLmv0JnDFdE8SR+WrBZeHdkmKH36jP6+YBuhVXuFjYBGhvkrMRnboc9RUxdtXgy+0jsF/puZY/FEmXkDYYmgDMBx6Samk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org Date: Mon, 29 Jan 2024 03:01:15 +0000 From: Yixun Lan To: Inochi Amaoto Cc: Chao Wei , Chen Wang , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jisheng Zhang , Liu Gui , Jingbao Qiu , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org Subject: Re: [PATCH 1/2] riscv: dts: sophgo: cv18xx: Add spi devices Message-ID: <20240129030115.GB1097489@ofsar> References: 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: Hi Inochi Amaoto On 10:26 Mon 29 Jan , Inochi Amaoto wrote: > Add spi devices for the CV180x, CV181x and SG200x soc. > > Signed-off-by: Inochi Amaoto > --- > arch/riscv/boot/dts/sophgo/cv18xx.dtsi | 44 ++++++++++++++++++++++++++ > 1 file changed, 44 insertions(+) > > diff --git a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi > index 7c88cbe8e91d..e66f9e9feb48 100644 > --- a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi > +++ b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi > @@ -176,6 +176,50 @@ uart3: serial@4170000 { > status = "disabled"; > }; > > + spi0: spi@4180000 { > + compatible = "snps,dw-apb-ssi"; > + reg = <0x04180000 0x10000>; > + interrupts = <54 IRQ_TYPE_LEVEL_HIGH>; > + clocks = <&clk CLK_SPI>, <&clk CLK_APB_SPI0>; > + clock-names = "ssi_clk", "pclk"; . > + #address-cells = <1>; > + #size-cells = <0>; I'd suggest moving those two above 'interrupts' property there is an ongoing discussion here.. https://lore.kernel.org/all/20231203174622.18402-1-krzysztof.kozlowski@linaro.org/ > + status = "disabled"; > + }; > + > + spi1: spi@4190000 { > + compatible = "snps,dw-apb-ssi"; > + reg = <0x04190000 0x10000>; > + interrupts = <55 IRQ_TYPE_LEVEL_HIGH>; > + clocks = <&clk CLK_SPI>, <&clk CLK_APB_SPI1>; > + clock-names = "ssi_clk", "pclk"; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; > + }; > + > + spi2: spi@41a0000 { > + compatible = "snps,dw-apb-ssi"; > + reg = <0x041a0000 0x10000>; > + interrupts = <56 IRQ_TYPE_LEVEL_HIGH>; > + clocks = <&clk CLK_SPI>, <&clk CLK_APB_SPI2>; > + clock-names = "ssi_clk", "pclk"; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; > + }; > + > + spi3: spi@41b0000 { > + compatible = "snps,dw-apb-ssi"; > + reg = <0x041b0000 0x10000>; > + interrupts = <57 IRQ_TYPE_LEVEL_HIGH>; > + clocks = <&clk CLK_SPI>, <&clk CLK_APB_SPI3>; > + clock-names = "ssi_clk", "pclk"; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; > + }; > + > uart4: serial@41c0000 { > compatible = "snps,dw-apb-uart"; > reg = <0x041c0000 0x100>; > -- > 2.43.0 -- Yixun Lan (dlan) Gentoo Linux Developer GPG Key ID AABEFD55