Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com [209.85.167.169]) (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 98BEC28B519 for ; Thu, 19 Jun 2025 16:29:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750350563; cv=none; b=SEoJyWQRZUCkaVenuTXh3ZMw2bJ1Q09QoKETNu9afXk84+1jCPivDweQRh6cIk8rZMFP8hyl4o8IORcHowBA1lIsrzbaw8e+QQkv67FKloCuNma05Xa5Dy9t3b9O0XZ9gAtsXX10uNpb/muNO2oYbnRtf3dS3Ccg0AU+UTVuHfk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750350563; c=relaxed/simple; bh=EMyL1Uo0zzWNprcGuHaXIt2QwhvXtZojt+40ir9jHkc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=W/kpSOFK0hSwh5w1NMgR8GtZOVnmPthCPIUNTd+hedRMEH1LqOehFmO2dq+AxHDd21qDY/XYA4+GMqpbPVLPCAWFTLBijhN2WbDyJ0FuI0UslcXrA72f1sVnBd0fRGk9jc+6VgEhvVfCekRLluZiKh1hM7A7J6L7Gdb/Y9LeypE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=RAvdPmVZ; arc=none smtp.client-ip=209.85.167.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="RAvdPmVZ" Received: by mail-oi1-f169.google.com with SMTP id 5614622812f47-407a5b577f8so221272b6e.3 for ; Thu, 19 Jun 2025 09:29:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1750350559; x=1750955359; darn=vger.kernel.org; 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=Id+f7kVLppAX20HAP2AURqNW1tLLgPJWhJTti78Nq48=; b=RAvdPmVZiiyVV4XKLJ/iNfBCoCl62eXfu4FRUgmdYnhCOWt2SZTcRC1I3WR3MS1/Nq jCuzzAKhWNHn5vpD1jA3NxkVySJT2XQQ1xmaOdljUbkiV0jiOLfrcMusqmxqrkZC+iJy FyGi2IMa6cQLNbiF4zpsPH9ZIjpRZ+MSYxaKKm5uoAzaw5Y0B+U3O9PrFV8CLHqbxrh2 vkRIhltCm/N9tAiADQh1A4dpMxJKeYJOOJ0oifd0o+mkrbEhOPxrwk+FN/Kj12NGSUI0 Z8CdYGf1TgBNftKk1//XtTnEeudbOLwecnK3RJfc25/NK7ofRaifBv6j81/QOCNno0QT 36wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750350559; x=1750955359; 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=Id+f7kVLppAX20HAP2AURqNW1tLLgPJWhJTti78Nq48=; b=qswP3dzVlBVvRofYFykeuKFv8SaxsfN2AZnnFbZ8tT3nWHJbbduiJWS6Q1Eb88/aAq b3uwoZXMYNo5iWpHBg0ghMoY9tu180ox72QIWPJ7tsAaantO8RakNRJuj0BOFr0oZKgD RIOkqhBicxXuZ1x2tYut0nCYY96m/ASUc/z5WLgMcJkBuiGzdWzFGT84Lb6bWpyDcTNZ hs5bUKPZaAbmlmW1s6v3UoIAG6LOsXE8h6mjKEwljGyIu8Y0TpwIdXsudogFEjK73h2o PUg8nHieO16yrjJAHln7ON9luEkGkelDQ5LOlHkk9sKyCWz1vfhrTrg1XQXx33wa+8+Q wIYw== X-Forwarded-Encrypted: i=1; AJvYcCUkECNjpw/5acp7irPyipGDbhFUDWuqoczKhzjVC3sa/VVBOj5HvTI+4zpBLsJC0bVXB6t6Dh8ZEPMv@vger.kernel.org X-Gm-Message-State: AOJu0Yz2S7y4un2B6a177NBzHbTPpDs+2XpcgQHNHfwUHnQwELqyObgn Up1+hkcpdNkuBvIT5sesCMrx5ivIEePyDqo38YG6GTxnTBtxW/aqOBNdxnIOTW+k0ew= X-Gm-Gg: ASbGncs21RN0Zc8cS6JJMXsue7x08lHEPZPI0Zmy2xnDHYhkPygV7UqHmQE2MNPOo19 XyWvjJeRXiO2Hx6abh34erQkO4z4Cqgs6PeF/b94KsC4TRMpMOeA9F0dejsgjDNBLLyOQoXVGn2 8horwkkNDQilWLm4kGFaOADefEYFmEN/i4v5fSkYvFRd9tD+EsEgb0LzRZVcQeTyHzDjW2a2dL/ wuY0mDtmbKq+RBCwC7I6aeL528QdKIUjO2Qb8x614Nghc2de14zqu1U1pOs7wxxhykvAsbWTpA2 BFkpaJAU15uf5ucCOtrvhFd++7d0OwiIloyu9VWHQteWYFdSpeCI9kuPdGUE/TAMF8CJrzYbcdC rfUyYVVO1hiqDKDq96Qizk3Hmd3W4jS7TcDPIOcE= X-Google-Smtp-Source: AGHT+IE3wykgtpudCLPxyYXHgot19QH7CguFGEPEsZeTABHQ1Nd9aytQtOo9OtA4EGXFPZmqiX54mQ== X-Received: by 2002:a05:6808:189c:b0:40a:56e7:1e59 with SMTP id 5614622812f47-40a7c17ecdemr15537482b6e.5.1750350559492; Thu, 19 Jun 2025 09:29:19 -0700 (PDT) Received: from ?IPV6:2600:8803:e7e4:1d00:5504:5211:6fc4:c093? ([2600:8803:e7e4:1d00:5504:5211:6fc4:c093]) by smtp.gmail.com with ESMTPSA id 5614622812f47-40a74172cb3sm2790979b6e.25.2025.06.19.09.29.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Jun 2025 09:29:19 -0700 (PDT) Message-ID: Date: Thu, 19 Jun 2025 11:29:17 -0500 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/9] dt-bindings: spi: zynqmp-qspi: Add example dual upper/lower bus To: Sean Anderson , Mark Brown , Michal Simek , linux-spi@vger.kernel.org Cc: Jinjie Ruan , Miquel Raynal , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Amit Kumar Mahapatra , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org References: <20250616220054.3968946-1-sean.anderson@linux.dev> <20250616220054.3968946-3-sean.anderson@linux.dev> <2588bb7f-2a3a-4001-ab1b-6d9bd57b545b@baylibre.com> Content-Language: en-US From: David Lechner In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 6/19/25 11:20 AM, Sean Anderson wrote: > On 6/18/25 14:27, David Lechner wrote: >> On 6/16/25 5:00 PM, Sean Anderson wrote: >>> Add an example of the spi-buses property showcasing how to have devices >>> on both the upper and lower buses. >>> >>> Signed-off-by: Sean Anderson >>> --- >>> >>> Changes in v2: >>> - New >>> >>> .../bindings/spi/spi-zynqmp-qspi.yaml | 22 ++++++++++++++++++- >>> 1 file changed, 21 insertions(+), 1 deletion(-) >>> >>> diff --git a/Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml b/Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml >>> index 02cf1314367b..c6a57fbb9dcf 100644 >>> --- a/Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml >>> +++ b/Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml >> >> >> In addition to changing the example, we could also extend the >> spi-buses property for this controller since we know this controller >> has 2 buses. >> >> properties: >> ... >> > > OK, but this property is for the slaves not the master. I'm not sure what the right incantation is. I think using patternProperties, like in Documentation/devicetree/ bindings/spi/spi-controller.yaml patternProperties: "^.*@[01]$": spi-buses: ... > >> spi-buses: >> description: 0 is the "lower" bus, 1 is the "upper" bus >> maxItems: 2 >> items: >> enum: [0, 1] >>