From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.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 4B36A1B21B5 for ; Fri, 13 Dec 2024 09:39:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734082753; cv=none; b=dPjRzpMjbEJ4dZrfEeO/XW/tQbKM9SKOoq8eoG3P/gluRLpG4OZtucWsrX5NmxiP6RIz3nEheHkFXtcl4eMKWfHJojNuwVqckz0Iu0Flpl8xcYsmEXOZCdR+FlaVzHanIwmQxPmyWLZaPrixrF+A6gZ6ibcTZ8fGDJ2ojPBpcVc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734082753; c=relaxed/simple; bh=2dVHZNzyurcrnKSHioCNBqidibj8sEypNo67w3dWXbg=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=UAoaFzkSF6Ff6GvG7HyMAq3VkR6fA+0s7chiGD4H+ZnvH0cQKGXgyF3DEXetXDOp/Vz0M1P65I80WdMaIJrLGmNPT9QPbW9xxxcFMeQ+EM8GMMNNoUsfAupYLtPySzubM9vLRD/gEqjA2jTVEcHpFyK3IX4+N9TMAfnP1q6xw5I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=g7OhLdu5; arc=none smtp.client-ip=209.85.221.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="g7OhLdu5" Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-385ed7f6605so781554f8f.3 for ; Fri, 13 Dec 2024 01:39:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1734082750; x=1734687550; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=t4JqniyrUVA29zrwSIJYAdkpKjXdhEDlx602bvtZzJU=; b=g7OhLdu5JF+wOJRljRkKcUYiMoR2IphW/B1mYJJOudFHF873xfXgc8Ie1n92m4ruDu No7Ue6P3NIBv6exHD3+X6G6DFCLtjg9fpJFrVugbuz5y7p2e2+bbgcltBv/m2Maagpo9 y2pd4FunZqFaWEj+PlSbXvkpys8Anfe2vaazOSsrMJo6qQvyRKZfUNkVSKwzZ+6kdhJo 1dMgGdish7xXxQPwvaHm4dkLzogun6AX3+7QzRg7iQiTXdEKz2XQJ8gGbqbqKfMA7Q+r oKIlkOcoBcPWf+LjwMIb5NiX2a00zY+awCASDakCDGilNmDU65shrr9/vCVQw4yVXWH6 2D7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734082750; x=1734687550; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=t4JqniyrUVA29zrwSIJYAdkpKjXdhEDlx602bvtZzJU=; b=qQ4oauFsE35g63IEsAl7Cy1xrqF6gyGqbXfTzN9l0YDgS7zwNjvTdaJOkdDrLdsbTT SZ57cN7n1EPOUQrvxVX6LPsUZ4glDb6llLMOlL3zkmqhBQgrYnrrc914qK474xhr/921 s/kk5u8pTj1f6jbhWgfVl1omZiEJy9d1tTtSO1vEV3SIT5oJhUDuiORJ6Wz4du6JpUZc ZCX+AzZ9uSA48OzukCgaYd0G3GCqtohe+siMf6zEa86/C1XqpxNZNwH+L9XHZt3kJKhz o+iJn/aKSxuUGMQHJIDYJmhpGwWR2cL096QjEm7c5Tac9dSExgpcdGe0mUBky1E53R4H XjDQ== X-Forwarded-Encrypted: i=1; AJvYcCXPhViXcuPqXoU603+idsNFXclTUVu6xNaAZhTAzUEa/Cj0p3wPxOHVEyfLqICNB7Yy0G6Od95VfnbUMMM=@vger.kernel.org X-Gm-Message-State: AOJu0YwcQc+eekD5tqFJ7cVGvd+vdvPpH8yjW0kvQL8hLvVSvG/777U4 O7IcDJm/31OG4xJLdkPeVQ9GibNYoAGhuBzemK/0pGfkWjC5o/kW/VKG4HnE178= X-Gm-Gg: ASbGnctT7oAyuvBMWXcA0qcr9kZ/O8jH51o9MlNVirthy/wEGR42s8cqD7Ez+ESlJJt 4k52jZhO4BRa0YBjDP6ekTOLFxpXPvlOmqLFPfJWgPzdXSY2ODXtArd6Ze/ZkHQmtRhOLOH2ZNh z/d8QbBkiUTr19GpeFqHcqzX9N8sGmlhB0hrO81fnHVSjcRekFBIO2TU04U+54X6zr4EB2AxVFB N+ORmoLjZ1SgZJFBaHsXE34Hc9nhYOvL4vKeBd78muJEsnRA5kcLByx14FV/4d2rS+fMD5I+b6f kJD5mEkZ8CqfUrjGgloXiAHkvw== X-Google-Smtp-Source: AGHT+IH/9u8CkqVlx6cHHLvAJS9uDAoxtK09++pI/aUoVOp3EvdqqeNkdS8a6S0cwyVHTzYjlA51+A== X-Received: by 2002:a05:6000:4609:b0:386:39fd:5ec with SMTP id ffacd0b85a97d-3888e0c15c4mr1424272f8f.57.1734082749648; Fri, 13 Dec 2024 01:39:09 -0800 (PST) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-387824c5c98sm6495726f8f.58.2024.12.13.01.39.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Dec 2024 01:39:09 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 13 Dec 2024 10:39:08 +0100 Message-Id: Cc: "Robert Foss" , "Todor Tomov" , "Bryan O'Donoghue" , "Mauro Carvalho Chehab" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Barnabas Czeman" , "AngeloGioacchino Del Regno" , "Caleb Connolly" , "David Heidelberg" , <~postmarketos/upstreaming@lists.sr.ht>, , , , , Subject: Re: [PATCH 1/2] media: dt-bindings: media: camss: Restrict bus-type property From: "Luca Weiss" To: "Krzysztof Kozlowski" X-Mailer: aerc 0.18.2-0-ge037c095a049 References: <20241209-camss-dphy-v1-0-5f1b6f25ed92@fairphone.com> <20241209-camss-dphy-v1-1-5f1b6f25ed92@fairphone.com> In-Reply-To: On Fri Dec 13, 2024 at 10:34 AM CET, Krzysztof Kozlowski wrote: > On Mon, Dec 09, 2024 at 01:01:05PM +0100, Luca Weiss wrote: > > The CSIPHY of Qualcomm SoCs support both D-PHY and C-PHY standards for > > CSI-2, but not any others so restrict the bus-type property describing > > this to the supported values. > >=20 > > The only exception here is MSM8916 which only supports D-PHY. C-PHY was > > introduced with newer SoCs. > >=20 > > Do note, that currently the Linux driver only supports D-PHY. > >=20 > > Signed-off-by: Luca Weiss > > --- > > .../bindings/media/qcom,msm8916-camss.yaml | 8 ++++++ > > .../bindings/media/qcom,msm8953-camss.yaml | 15 +++++++++++ > > .../bindings/media/qcom,msm8996-camss.yaml | 20 ++++++++++++++= + > > .../bindings/media/qcom,sc8280xp-camss.yaml | 20 ++++++++++++++= + > > .../bindings/media/qcom,sdm660-camss.yaml | 20 ++++++++++++++= + > > .../bindings/media/qcom,sdm845-camss.yaml | 20 ++++++++++++++= + > > .../bindings/media/qcom,sm8250-camss.yaml | 30 ++++++++++++++= ++++++++ > > 7 files changed, 133 insertions(+) > >=20 > > diff --git a/Documentation/devicetree/bindings/media/qcom,msm8916-camss= .yaml b/Documentation/devicetree/bindings/media/qcom,msm8916-camss.yaml > > index 9cc0a968a401836814560c1af3ee84d946500b4f..3de2a3d2b5b761106975aab= 65ff614b2ef579ef5 100644 > > --- a/Documentation/devicetree/bindings/media/qcom,msm8916-camss.yaml > > +++ b/Documentation/devicetree/bindings/media/qcom,msm8916-camss.yaml > > @@ -94,6 +94,10 @@ properties: > > minItems: 1 > > maxItems: 4 > > =20 > > + bus-type: > > + enum: > > + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY > > + > > required: > > - data-lanes > > =20 > > @@ -113,6 +117,10 @@ properties: > > minItems: 1 > > maxItems: 4 > > =20 > > + bus-type: > > + enum: > > + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY > > + > > required: > > - data-lanes > > =20 > > diff --git a/Documentation/devicetree/bindings/media/qcom,msm8953-camss= .yaml b/Documentation/devicetree/bindings/media/qcom,msm8953-camss.yaml > > index 8856fba385b1123d748199b46c5009c97700ad9b..6d776b0ca71140c0816b246= dbaf41ef376205bba 100644 > > --- a/Documentation/devicetree/bindings/media/qcom,msm8953-camss.yaml > > +++ b/Documentation/devicetree/bindings/media/qcom,msm8953-camss.yaml > > @@ -112,6 +112,11 @@ properties: > > minItems: 1 > > maxItems: 4 > > =20 > > + bus-type: > > + enum: > > + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY > > Just 1 > > > + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY > > Just 4 > > The type and meaning is already stated by video-interfaces and the > binding headers. This is actually something I find rather curious why this is not done more obvious, e.g. there's basically no link that a '4' is MEDIA_BUS_TYPE_CSI2_DPHY from dt-bindings/media/video-interfaces.h video-interfaces.yaml only states "- 4 # MIPI CSI-2 D-PHY" and it's then the users excercise to find MEDIA_BUS_TYPE_CSI2_DPHY for that. Regards Luca > > Anyway: > > Reviewed-by: Krzysztof Kozlowski > > Best regards, > Krzysztof