From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 4685A7261E for ; Wed, 1 Oct 2025 07:07:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759302448; cv=none; b=aT/z0Q2tK0w4EFkAHHGcVew6oru8L6HhlZPGlBmmU+shc1BOLqEZqI8VzLvndSeffaB5aB5MSH3ushrFvDBgMKOM//Xn1vhAy7gfzLqmbFQNknchp6RFjjc8hEwrPaRCzE+WuHXAyJrxgaJzu9ptb2SkZrDCW7g+TEbAbFFlaHU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759302448; c=relaxed/simple; bh=TXavt5GUo/dW2X4D6klTWaoIUqB5VD85VTgMFo07NnU=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=rpkfJqEGxkX8F+ECF8Co/OYWRcg+8xlSdaIu79krgURXoz6mpomGL7+7iUrjgBASyg+osCnIOAn2DfTD7NO+QC7subXoVGUKZpaXBREzeftDjpI/4Ka5r+i2CWkcrE/oGNzWrnVbFRrDDV18dQz0hGjOBlGpKMy5HNGIvhoezr0= 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=dmxYv+BK; arc=none smtp.client-ip=209.85.128.43 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="dmxYv+BK" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-46e47cca387so49850595e9.3 for ; Wed, 01 Oct 2025 00:07:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1759302444; x=1759907244; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=6903O+T5kzlWuzZHa7QhKxp3lHsZbgO6JKoHA8UWXyk=; b=dmxYv+BKiVFZnX/Rccrm76jXUTd0jV6FweHrtRloTLYJQz1xj0KuEVB6Gmar+VvTcC OpWHh9eJIvLHBkzpxRXyTVMjkxqWrFQ1pxnudvizOWxBncvvisZRw2TSLjpTL2BoWGXk Cxx/G6ekAR+4DJC6DxAJwGHw7UxvsCDObUW/AA+LIqkrCeq3o4J1Lf7HCpZRZpwYAxw0 PT+StQRUQ6gjk1Lna8WA8hkeW/bf7anO8dhvWfoEPz9IIV+fZ0AZKDkKblrP51r2KyqJ /CZrGZvNV3bYr/vdmbRytRA8trqbbleAgSkGX9FlWqdre7zdeujCGTH91NcEddgVr0bw 9jlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759302444; x=1759907244; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=6903O+T5kzlWuzZHa7QhKxp3lHsZbgO6JKoHA8UWXyk=; b=qsXWqRKZGa4BU/cFLLupDpMNB7G1L7D566jN12XKrP6jMu4E2oRp2uqj+i6zSvVXlT sijQnOPcZzZKVWAWxGXmcfVLPRTyBDShNXvG8KXsJcwP3CCEdbLLfq06VMX65OkXCsZ1 MMboFUaC7uFJg520wDlXSjjeiWQkW9wFOAwKPn/RTq2RShv8N0o8rG91wiyuRjFRXtoU YptfCTfc2P3ddF83FJFLtecWbeb+i5UPNT/nfig1e0mS72VK1YvvXlEcUTHqMZbFOPPh dT50E9afHxsBsYegfkXNeivnrILw3RqMES5rMaHi94vTCyhtTwR21oXNDBHTh2ppaKdD V8oA== X-Forwarded-Encrypted: i=1; AJvYcCXpSLJXEXnGeyJpszQJnetmCTXjXVgA5jOTC7+q7gGJPaqoRonkiumBzSx/b7mjPFsfroOmXYB/FeDyZiI=@vger.kernel.org X-Gm-Message-State: AOJu0Yw9+PAfDRfhtaqfTMY6uqbq2hLuuGecCL/zrVGyOfQ2+hnjdXCz DDguWnX552nuv9a3KIgNMkdEYJbwneFY8GVqMZAaoLj2HEuXYIos5ZkIk+pqmu9Xw8U= X-Gm-Gg: ASbGncvKjA5wTtAOsvhYY29ypYxLapzwVBBY7J4weVkBgVWk1yE17y/m8JrcpcbpMY/ tjFCOo9vzlefqQ5QxG9rI8uLhe2gCs8V4hbAZnaEOAQarVYuMZCkO0Vy/LBJkopMZuDCHl1Nr0e 5MS5XOUp93ju3eoCPih93ap6UVnKTNJ/+v+C4NpY98WmH0rKTDmff891oj9vuVTgEyQPjt7N/HS xc6kVkUADE9y3H0Wbo7+sKy+PoIb+I0j3lz+7sS+RUWWEoYdxKEu1zX4v6B0+31DJaMVpKXFE7W 63OtoY4YObzIn90czMd4Qr1ZrYdQVCwGeoFln+wJy3/9r57D1ORAhulaFY2SnvIxl/729Tr+Dc+ 5t8ZCLb9Nm1UuQimsdB2FVVW7yoR0RwbVEyjkR609TWg2/hkPgycI0PpzvWwJqcnreMsJ3d8vpy pCwHWbfEG8TjRwcYgdG/KP/Mc= X-Google-Smtp-Source: AGHT+IGBw7CxJ7qDcqycnbC3TnzJ/BlwqGMYHQoYN72vdTSBaOUGSkrrJvxGgqOYBs6co2ci25rVDw== X-Received: by 2002:a05:600c:3b13:b0:46e:448a:1235 with SMTP id 5b1f17b1804b1-46e612861fcmr23527745e9.16.1759302444501; Wed, 01 Oct 2025 00:07:24 -0700 (PDT) Received: from ?IPV6:2a01:e0a:3d9:2080:f45f:c590:9006:d394? ([2a01:e0a:3d9:2080:f45f:c590:9006:d394]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-46e6199193dsm25464495e9.1.2025.10.01.00.07.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Oct 2025 00:07:24 -0700 (PDT) Message-ID: <99eae1be-3067-4698-aa3f-a0ff565cb62e@linaro.org> Date: Wed, 1 Oct 2025 09:07:23 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: Neil Armstrong Subject: Re: [PATCH] dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp: do not reference whole usb-switch.yaml To: Dmitry Baryshkov , Rob Herring Cc: Vinod Koul , Kishon Vijay Abraham I , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20250902-topic-sm8x50-fix-qmp-usb43dp-usb-switch-v1-1-5b4a51c8c5a8@linaro.org> <20250905175533.GA1000951-robh@kernel.org> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUT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xXRQmTvqa3 3eDIHu/zr1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 9/30/25 21:10, Dmitry Baryshkov wrote: > On Fri, Sep 05, 2025 at 12:55:33PM -0500, Rob Herring wrote: >> On Tue, Sep 02, 2025 at 06:10:05PM +0200, Neil Armstrong wrote: >>> Both bindings describe a different layout of the ports properties, >>> leading to errors when validating DT using this PHY bindings as >>> reported by Rob Herring. >>> >>> Reported-by: Rob Herring >>> Closes: https://lore.kernel.org/all/175462129176.394940.16810637795278334342.robh@kernel.org/ >>> Fixes: 3bad7fe22796 ("dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp: Reference usb-switch.yaml to allow mode-switch") >>> Signed-off-by: Neil Armstrong >>> --- >>> .../devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 8 +++++--- >>> 1 file changed, 5 insertions(+), 3 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml >>> index c8bc512df08b5694c8599f475de78679a4438449..5005514d7c3a1e4a8893883497fd204bc04e12be 100644 >>> --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml >>> +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml >>> @@ -73,8 +73,11 @@ properties: >>> description: >>> See include/dt-bindings/phy/phy-qcom-qmp.h >>> >>> - mode-switch: true >>> - orientation-switch: true >>> + mode-switch: >>> + $ref: /schemas/usb/usb-switch.yaml#properties/mode-switch >>> + >>> + orientation-switch: >>> + $ref: /schemas/usb/usb-switch.yaml#properties/orientation-switch >> >> This is a pattern we try to avoid with references at a property level. I >> prefer you make port and ports not required in usb-switch.yaml. > > But this solution is also not perfect. E.g. > Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml should > only allow the orienttion-switch property, while using > allOf:$ref:usb-switch.yaml allows all three (orientation-switch, > mode-switch, retimer-switch). > I agree, but I'm not the original author of this change. Neil