From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.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 8ECC42868B5 for ; Fri, 9 May 2025 11:26:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746789986; cv=none; b=nV/JkZzpTanF0DRSD8Vt5Mn0ZdIdJ3yboi1OXLWbmnlINc4pvgpJpTEJ6pzUCDBojX+Tl6zOfgU/Mjy2NRgbPgqSoGtfKF5ktwxZr9IGjbActRd8Xd02XDxH03dQlQ+DL6VDgpHnwUGGWcMYBTvBfJWcjwBz1FVazdsHVyrJxDY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746789986; c=relaxed/simple; bh=MHHca0equBuNB6LxXbIoeLvc+sprxjrgB/yI56MtObA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=s7k3u0sEP8Jf8RRhc7T3//p4Ylpyrb7SrydepV7B4G9uSRNDxvnLF5BO6SYAo17fQnlZCsb85odqYqGyc7Rt8qSfFFDK4qLQP8lmPyIpdViXUdV5V0u6ENTv78cBjZEsEORW1rg17iRrJf9rgvuAmiBoagdbYxf7sUQ14puhnlE= 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=fLuRdut7; arc=none smtp.client-ip=209.85.221.42 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="fLuRdut7" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-3a108684f90so1029003f8f.1 for ; Fri, 09 May 2025 04:26:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1746789983; x=1747394783; darn=lists.linux.dev; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Lz2WGV5DsARe2ef6xf9hB2gw824v2BlYjF+3OFaRa+Y=; b=fLuRdut7ASCkK5zK/77xgrhI4IB9e/Ph3opP3xhajM8WMN+/7pF/fy8ryytqPtmwtS o9Cai9LyiMQVhuf4ArmOOY9mq4hSxV3RBsbvNUQ4kF6NP85XkXzYVAiZUJOl+J/HfAot lpQxjVMSxtb5DQXc7wYRf1L375HnaNAxuTHfr8hVTwEY+fzC5amvD+wG9Q1qNN5XYSBJ pixAn6m0ZJ8nhqirYWLPp3kQmKRELgLgt3jGOUutsPsqSjDfDiGmLSEcxFGkLg9iwIMl jgZslGXBYYXoQDW6fhrz3LzLQesBierQeu8hSlMGVUFsQQJ4JSIbcYqZY4Vsgi9FQl86 Rwhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746789983; x=1747394783; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Lz2WGV5DsARe2ef6xf9hB2gw824v2BlYjF+3OFaRa+Y=; b=VD9k5P9cL/HzGPfqs0AV8ZyNhYgmbWrdlTTXGezTMETla/3BPjhSqoglwp1C3au9ep BKb3hCrKRMluuKAQ+p8kmEDx8cfoiVbKB8VOvpOQmzXvvJ381Z1BXiYGYtmvVApj5gTr dxJwImVjim1bQK3aJj250GmzB/GQipsQfgDngJnbeEs+0Lm8GcUhsFgCW/cVUzxr8PCF SHzF6NVgQN0Y1FwtkWvxtrxwShKGG58DkxFAj8Ymyz7GtHCqt7DoE8j/35HMLZqb6+s6 vSd7fj09LUAKh7AkNMdSH1JCbK2KLsb5FRObv/vQf39/VwA6Htp2pElyOKdJRZhBtC9y 8NNQ== X-Forwarded-Encrypted: i=1; AJvYcCUISkzGjbsdW9f6grmMifVZKIvCdt3fCfLa+cJm2U0n8nsa7p/JN24YbEHVUzhwpb4hF7g=@lists.linux.dev X-Gm-Message-State: AOJu0YzpzFEUywotPu4yxr56a+DDRtMShOuq/5Rts2XvwdYT9YegZ82s BU6vvWcHsc6K4t6RcLhDkdQrryOYxJpy1o63pNOdNis7s5q24PCMP32TuvFf5nTCoXilTvrNJnR zMtY= X-Gm-Gg: ASbGncvMVdEp0riW7g7IRXm7xSI5frR0qIV5zci1RixDKfQq6aE3OCRpQKKh1qBjn2Y VxXhlkmWJBMJP38aAnj8bM7GeC9tJ7awaloPyaX31AX0NzDqLLk3//rE3Mi/lzabn8MNhmVC+08 ttzKTH1sBnF1GW5KIvPdnuxUbvGTUsmA/LYXe0nn+HpaDu5JPUUQ/q2XL4JIIbl2LHMnHwlDOAl 1Z1IwFPI2EcshY8pqHHXBxX+sxu1Ca38ZxWFj2kba14dfLs/UieMwfbUD5rrdAZQEn+0j+8zwEN IbjU93yjau7Txj5Sp4knvojSnNuBxvgz4JFpTjfcpgU= X-Google-Smtp-Source: AGHT+IF1DqZRXwnqEDJC6RoEDZ05/IxWbN0y1MNMAHjLg08+G1rqNk/P8xMlNeorPMh/z66y3/jqUw== X-Received: by 2002:a5d:4fc7:0:b0:39c:1257:dbaa with SMTP id ffacd0b85a97d-3a1f64b5a66mr2078868f8f.58.1746789982795; Fri, 09 May 2025 04:26:22 -0700 (PDT) Received: from [192.168.1.3] ([77.81.75.81]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a1f5a4c7a5sm2992122f8f.98.2025.05.09.04.26.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 May 2025 04:26:22 -0700 (PDT) Message-ID: <4dbe2a87-2c03-4565-a486-41d4116892ae@linaro.org> Date: Fri, 9 May 2025 12:26:21 +0100 Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 12/14] dt-bindings: spi: dspi: Add S32G support To: Krzysztof Kozlowski Cc: linux-spi@vger.kernel.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ciprian Marian Costea , Vladimir Oltean , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Frank Li , Chester Lin , Matthias Brugger , Ghennadi Procopciuc , NXP S32 Linux Team , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , larisa.grigore@nxp.com, arnd@linaro.org, andrei.stefanescu@nxp.com, dan.carpenter@linaro.org References: <20250509-james-nxp-spi-v1-0-32bfcd2fea11@linaro.org> <20250509-james-nxp-spi-v1-12-32bfcd2fea11@linaro.org> Content-Language: en-US From: James Clark In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 09/05/2025 12:14 pm, Krzysztof Kozlowski wrote: > On 09/05/2025 13:05, James Clark wrote: >> From: Ciprian Marian Costea >> >> Document S32G compatible strings. 's32g2' and 's32g3' use the same >> driver so 's32g2' must follow 's32g3'. >> >> The SPI controller node in dts can define both host and target pinctrl. >> The selection between them will be done based on pinctrl-names. The >> default pinctrl will be loaded first and will be used by the host. If >> the controller is configured as target (spi-slave property is added in >> the dts node), the driver will look for the "slave" pinctrl and apply it >> if found. > > > I do not see any changes in the binding related to above paragraph, so I > do not understand why are you explaining driver? > Yes it's probably a bit verbose, it's just a standard SPI binding that also supports target mode. I can reduce it. I'm also not even sure the "slave" pinctrl part is correct as I was testing it in target mode without any special naming. I will double check that too. >> >> Signed-off-by: Ciprian Marian Costea >> Signed-off-by: Larisa Grigore >> Signed-off-by: James Clark >> --- >> Documentation/devicetree/bindings/spi/fsl,dspi.yaml | 18 ++++++++++++++++++ >> 1 file changed, 18 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/spi/fsl,dspi.yaml b/Documentation/devicetree/bindings/spi/fsl,dspi.yaml >> index 7ca8fceda717..b5fac0bb142a 100644 >> --- a/Documentation/devicetree/bindings/spi/fsl,dspi.yaml >> +++ b/Documentation/devicetree/bindings/spi/fsl,dspi.yaml >> @@ -23,6 +23,7 @@ properties: >> - fsl,ls2080a-dspi >> - fsl,ls2085a-dspi >> - fsl,lx2160a-dspi >> + - nxp,s32g2-dspi >> - items: >> - enum: >> - fsl,ls1012a-dspi >> @@ -37,6 +38,9 @@ properties: >> - items: >> - const: fsl,lx2160a-dspi >> - const: fsl,ls2085a-dspi >> + - items: >> + - const: nxp,s32g3-dspi >> + - const: nxp,s32g2-dspi >> >> reg: >> maxItems: 1 >> @@ -114,3 +118,17 @@ examples: >> spi-cs-hold-delay-ns = <50>; >> }; >> }; >> + # S32G3 in target mode >> + - | >> + spi0: spi@401d4000 { > > Drop unused label. > Will do. > > Reviewed-by: Krzysztof Kozlowski > > Best regards, > Krzysztof Thanks for the review. James