From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D742413B2AC; Tue, 27 Feb 2024 13:57:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709042236; cv=none; b=mGykJTqYeBLp/eaVFnmIB4AG9701drWXS2g3/7tiMfKo5AlKLCQ9MFqm/ksZlsp99AWnH5AJpoDKKJdw69SdJPnINUO0Zu0kJsfGJMts3HZrXDYxc46hdEz0OiaJbPWtgPKfbByoCDRNNRj0P4JAbJoz3WYfBA3mTi+XfpgRoeU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709042236; c=relaxed/simple; bh=nkA8GWhdWbFVpOKyLQ10KiemRj3WUmAgmJB9PP/p5Pw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hudrH6na4hx05Y1pmTcmOWQWdiR4SzCEWI4liuU+6cVxOHOUUShHXmAjut0vzIVCImztvaw3WEZxK5Tyz//0MMnaWTdTvE8sVQY+JDAPkQM4fVtne5Da6wRQjxzh+hTZFSn8lwuChEv6CqRXkkwFL7TalzCf2fyi+8HC0EFX/5E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Jm1KpPYI; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Jm1KpPYI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64E50C433F1; Tue, 27 Feb 2024 13:57:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709042236; bh=nkA8GWhdWbFVpOKyLQ10KiemRj3WUmAgmJB9PP/p5Pw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jm1KpPYIZL4UiTH2SFDGHPUxyLS8lIs/u7aGopWb0XAoxTpBlJGOYjtmDDHc+98o5 zP/B7BFfuE9vWbsqJ1wwwQa5/t+1NGwg04ZTSVCnuNgRB54lSOVUjQuY7lrruiKj+C A5CbiGlACC5MrmyBh4G5XFnhd8K9nvRgrDcl7Dzo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Heiko Stuebner , Quentin Schulz , Heiko Stuebner , Sasha Levin Subject: [PATCH 6.6 227/299] arm64: dts: rockchip: set num-cs property for spi on px30 Date: Tue, 27 Feb 2024 14:25:38 +0100 Message-ID: <20240227131633.060619416@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240227131625.847743063@linuxfoundation.org> References: <20240227131625.847743063@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Heiko Stuebner [ Upstream commit 334bf0710c98d391f4067b72f535d6c4c84dfb6f ] The px30 has two spi controllers with two chip-selects each. The num-cs property is specified as the total number of chip selects a controllers has and is used since 2020 to find uses of chipselects outside that range in the Rockchip spi driver. Without the property set, the default is 1, so spi devices using the second chipselect will not be created. Fixes: eb1262e3cc8b ("spi: spi-rockchip: use num-cs property and ctlr->enable_gpiods") Signed-off-by: Heiko Stuebner Reviewed-by: Quentin Schulz Link: https://lore.kernel.org/r/20240119101656.965744-1-heiko@sntech.de Signed-off-by: Heiko Stuebner Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/rockchip/px30.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/px30.dtsi b/arch/arm64/boot/dts/rockchip/px30.dtsi index 42ce78beb4134..20955556b624d 100644 --- a/arch/arm64/boot/dts/rockchip/px30.dtsi +++ b/arch/arm64/boot/dts/rockchip/px30.dtsi @@ -632,6 +632,7 @@ clock-names = "spiclk", "apb_pclk"; dmas = <&dmac 12>, <&dmac 13>; dma-names = "tx", "rx"; + num-cs = <2>; pinctrl-names = "default"; pinctrl-0 = <&spi0_clk &spi0_csn &spi0_miso &spi0_mosi>; #address-cells = <1>; @@ -647,6 +648,7 @@ clock-names = "spiclk", "apb_pclk"; dmas = <&dmac 14>, <&dmac 15>; dma-names = "tx", "rx"; + num-cs = <2>; pinctrl-names = "default"; pinctrl-0 = <&spi1_clk &spi1_csn0 &spi1_csn1 &spi1_miso &spi1_mosi>; #address-cells = <1>; -- 2.43.0