From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: Jason Chen <jason.z.chen@intel.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Sergey Senozhatsky <senozhatsky@chromium.org>,
Hans Verkuil <hverkuil-cisco@xs4all.nl>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v2 2/4] media: dt-bindings: Add OmniVision OV08X40
Date: Tue, 1 Oct 2024 14:47:43 +0100 [thread overview]
Message-ID: <95d7d695-89d2-4c1d-99f6-4f9a687f7d13@linaro.org> (raw)
In-Reply-To: <Zvv3kM1wWDiRCCiA@kekkonen.localdomain>
On 01/10/2024 14:22, Sakari Ailus wrote:
>> + assigned-clocks: true
>> + assigned-clock-parents: true
>> + assigned-clock-rates: true
> As much as I'd like to see these mandatory, there seem to be cases where
> they can't be used. Therefore I'd leave them in the example only.
>
> If that turns out to be the only change to do, I can also handle that while
> applying.
So I took Documentation/devicetree/bindings/media/i2c/ovti,ov9282.yaml
as the reference for this.
Without listing "assigned-clock*" in the required: field I believe the
dts checkers will not require those.
So instead of saying
assigned-clocks:
maxItems: 1
we write
assigned-clocks: true
omit from "required:" and get the desired effect.
For example this passes the checker for me.
&cci1_i2c1 {
camera@36 {
compatible = "ovti,ov08x40";
reg = <0x36>;
reset-gpios = <&tlmm 237 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&cam_rgb_default>;
clocks = <&camcc CAM_CC_MCLK4_CLK>;
assigned-clocks = <&camcc CAM_CC_MCLK4_CLK>;
assigned-clock-rates = <19200000>;
orientation = <0>; /* front facing */
avdd-supply = <&vreg_l7b_2p8>;
dvdd-supply = <&vreg_l7b_2p8>;
dovdd-supply = <&vreg_l3m_1p8>;
port {
ov08x40_ep: endpoint {
clock-lanes = <0>;
data-lanes = <1 2 3 4>;
link-frequencies = /bits/ 64 <400000000>;
remote-endpoint = <&csiphy4_ep>;
};
};
};
};
Eh.. at least that's how I think this works.
Krzysztof/Rob ?
---
bod
next prev parent reply other threads:[~2024-10-01 13:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-01 13:15 [PATCH v2 0/4] ov08x40: Enable use of ov08x40 on Qualcomm X1E80100 CRD Bryan O'Donoghue
2024-10-01 13:15 ` [PATCH v2 1/4] media: ov08x40: Fix burst write sequence Bryan O'Donoghue
2024-10-01 13:15 ` [PATCH v2 2/4] media: dt-bindings: Add OmniVision OV08X40 Bryan O'Donoghue
2024-10-01 13:22 ` Sakari Ailus
2024-10-01 13:47 ` Bryan O'Donoghue [this message]
2024-10-02 6:22 ` Krzysztof Kozlowski
2024-10-02 6:20 ` Krzysztof Kozlowski
2024-10-02 8:32 ` Bryan O'Donoghue
2024-10-01 13:15 ` [PATCH v2 3/4] media: ov08x40: Rename ext_clk to xvclk Bryan O'Donoghue
2024-10-01 13:15 ` [PATCH v2 4/4] media: ov08x40: Add OF probe support Bryan O'Donoghue
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=95d7d695-89d2-4c1d-99f6-4f9a687f7d13@linaro.org \
--to=bryan.odonoghue@linaro.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=jason.z.chen@intel.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=robh@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=senozhatsky@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®