From: Ayushi Makhija <quic_amakhija@quicinc.com>
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Cc: <konradybcio@kernel.org>, <linux-arm-msm@vger.kernel.org>,
<dri-devel@lists.freedesktop.org>,
<freedreno@lists.freedesktop.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <robdclark@gmail.com>,
<dmitry.baryshkov@linaro.org>, <sean@poorly.run>,
<marijn.suijten@somainline.org>, <andersson@kernel.org>,
<robh@kernel.org>, <robh+dt@kernel.org>, <krzk+dt@kernel.org>,
<conor+dt@kernel.org>, <andrzej.hajda@intel.com>,
<neil.armstrong@linaro.org>, <rfoss@kernel.org>,
<Laurent.pinchart@ideasonboard.com>, <jonas@kwiboo.se>,
<jernej.skrabec@gmail.com>, <quic_abhinavk@quicinc.com>,
<quic_rajeevny@quicinc.com>, <quic_vproddut@quicinc.com>,
<quic_jesszhan@quicinc.com>
Subject: Re: [PATCH v3 07/10] arm64: dts: qcom: sa8775p-ride: add anx7625 DSI to DP bridge nodes
Date: Mon, 14 Apr 2025 15:26:43 +0530 [thread overview]
Message-ID: <bb277124-a225-450b-acfe-0acd0f94b263@quicinc.com> (raw)
In-Reply-To: <wzqct2y67h6bkazxv3se77slsheaw5rspgcrcfjm7ngr5t4alw@nktpqrt5woky>
Hi Dmitry,
On 4/11/2025 1:31 AM, Dmitry Baryshkov wrote:
> On Thu, Apr 10, 2025 at 06:37:54PM +0530, Ayushi Makhija wrote:
>> Hi Dmirity/Konard
>>
>> On 4/7/2025 1:42 AM, Dmitry Baryshkov wrote:
>>> On Fri, Apr 04, 2025 at 05:25:36PM +0530, Ayushi Makhija wrote:
>>>> Add anx7625 DSI to DP bridge device nodes.
>>>>
>>>> Signed-off-by: Ayushi Makhija <quic_amakhija@quicinc.com>
>>>> ---
>>>> arch/arm64/boot/dts/qcom/sa8775p-ride.dtsi | 208 ++++++++++++++++++++-
>>>> 1 file changed, 207 insertions(+), 1 deletion(-)
>>>>
>>>> diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-ride.dtsi
>>>> index 175f8b1e3b2d..8e784ccf4138 100644
>>>> --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dtsi
>>>> +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dtsi
>>>> @@ -28,6 +28,13 @@ chosen {
>>>> stdout-path = "serial0:115200n8";
>>>> };
>>>>
>>>> + vph_pwr: vph-pwr-regulator {
>>>> + compatible = "regulator-fixed";
>>>> + regulator-name = "vph_pwr";
>>>> + regulator-always-on;
>>>> + regulator-boot-on;
>>>> + };
>>>> +
>>>> vreg_conn_1p8: vreg_conn_1p8 {
>>>> compatible = "regulator-fixed";
>>>> regulator-name = "vreg_conn_1p8";
>>>> @@ -128,6 +135,30 @@ dp1_connector_in: endpoint {
>>>> };
>>>> };
>>>> };
>>>> +
>>>> + dp-dsi0-connector {
>>>> + compatible = "dp-connector";
>>>> + label = "DSI0";
>>>> + type = "full-size";
>>>> +
>>>> + port {
>>>> + dp_dsi0_connector_in: endpoint {
>>>> + remote-endpoint = <&dsi2dp_bridge0_out>;
>>>> + };
>>>> + };
>>>> + };
>>>> +
>>>> + dp-dsi1-connector {
>>>> + compatible = "dp-connector";
>>>> + label = "DSI1";
>>>> + type = "full-size";
>>>> +
>>>> + port {
>>>> + dp_dsi1_connector_in: endpoint {
>>>> + remote-endpoint = <&dsi2dp_bridge1_out>;
>>>> + };
>>>> + };
>>>> + };
>>>> };
>>>>
>>>> &apps_rsc {
>>>> @@ -517,9 +548,135 @@ &i2c11 {
>>>>
>>>> &i2c18 {
>>>> clock-frequency = <400000>;
>>>> - pinctrl-0 = <&qup_i2c18_default>;
>>>> + pinctrl-0 = <&qup_i2c18_default>,
>>>> + <&io_expander_intr_active>,
>>>> + <&io_expander_reset_active>;
>>>
>>> These pinctrl entries should go to the IO expander itself.
>>>
>>>> pinctrl-names = "default";
>>>> +
>>>> status = "okay";
>>>> +
>>>> + io_expander: gpio@74 {
>>>> + compatible = "ti,tca9539";
>>>> + reg = <0x74>;
>>>> + interrupts-extended = <&tlmm 98 IRQ_TYPE_EDGE_BOTH>;
>>>> + gpio-controller;
>>>> + #gpio-cells = <2>;
>>>> + interrupt-controller;
>>>> + #interrupt-cells = <2>;
>>>> +
>>>> + gpio2-hog {
>>>
>>> This needs a huuge explanation in the commit message. Otherwise I'd say
>>> these pins should likely be used by the corresponding anx bridges.
>>
>> Thanks, for the review.
>>
>> Previously, I was referring to the downstream DT and misunderstood the use of gpio-hog.
>> After reading the schematic, I realized that gpio2, gpio3, gpio10, and gpio11 are all input pins
>> to the IO expander TC9539. We have already configured gpio2 and gpio10 as interrupts in the
>> ANX7625 bridges, so the gpio-hog is not required. It is working without the gpio-hog configuration.
>
> Please make sure that there are pinctrl entries for all pins.
>
Thanks, for the review.
While declaring the pinctrl entries inside the io_expander node, I am getting below error while checking the DTBS check against DT-binding.
Error : /local/mnt/workspace/amakhija/linux_next_11042025/linux/arch/arm64/boot/dts/qcom/sa8775p-ride.dtb: gpio@74: 'dsi0-int-pin-state', 'dsi1-int-pin-state' do not match any of the regexes:
'^(hog-[0-9]+|.+-hog(-[0-9]+)?)$', 'pinctrl-[0-9]+' from schema $id: http://devicetree.org/schemas/gpio/gpio-pca95xx.yaml#
io_expander: gpio@74 {
compatible = "ti,tca9539";
reg = <0x74>;
interrupts-extended = <&tlmm 98 IRQ_TYPE_EDGE_BOTH>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
pinctrl-0 = <&io_expander_intr_active>,
<&io_expander_reset_active>;
pinctrl-names = "default";
dsi0_int_pin: dsi0-int-pin-state {
pins = "gpio2";
input-enable;
bias-disable;
};
dsi1_int_pin: dsi1-int-pin-state {
pins = "gpio10";
input-enable;
bias-disable;
};
};
I couldn't find any devicetree example of tca9539 which is using pinctrl. The gpio-pca95xx.yaml DT binding does not match with any regex of the patterns properties.
Thanks,
Ayushi
next prev parent reply other threads:[~2025-04-14 9:57 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-04 11:55 [PATCH v3 00/10] Add DSI display support for SA8775P target Ayushi Makhija
2025-04-04 11:55 ` [PATCH v3 01/10] dt-bindings: display: msm-dsi-phy-7nm: document the SA8775P DSI PHY Ayushi Makhija
2025-04-04 11:55 ` [PATCH v3 02/10] dt-bindings: msm: dsi-controller-main: document the SA8775P DSI CTRL Ayushi Makhija
2025-04-06 12:36 ` Krzysztof Kozlowski
2025-04-04 11:55 ` [PATCH v3 03/10] dt-bindings: display: msm: document DSI controller and phy on SA8775P Ayushi Makhija
2025-04-05 7:48 ` Krzysztof Kozlowski
2025-04-04 11:55 ` [PATCH v3 04/10] drm/msm/dsi: add DSI PHY configuration " Ayushi Makhija
2025-04-04 11:55 ` [PATCH v3 05/10] drm/msm/dsi: add DSI support for SA8775P Ayushi Makhija
2025-04-04 11:55 ` [PATCH v3 06/10] arm64: dts: qcom: sa8775p: add Display Serial Interface device nodes Ayushi Makhija
2025-04-04 22:27 ` Konrad Dybcio
2025-04-04 11:55 ` [PATCH v3 07/10] arm64: dts: qcom: sa8775p-ride: add anx7625 DSI to DP bridge nodes Ayushi Makhija
2025-04-04 22:39 ` Konrad Dybcio
2025-04-06 20:12 ` Dmitry Baryshkov
2025-04-10 5:04 ` Ayushi Makhija
2025-04-10 13:07 ` Ayushi Makhija
2025-04-10 20:01 ` Dmitry Baryshkov
2025-04-14 9:56 ` Ayushi Makhija [this message]
2025-04-14 10:05 ` Konrad Dybcio
2025-04-14 10:07 ` Dmitry Baryshkov
2025-04-14 13:54 ` Ayushi Makhija
2025-04-15 9:30 ` Dmitry Baryshkov
2025-04-15 9:52 ` Ayushi Makhija
2025-04-04 11:55 ` [PATCH v3 08/10] drm/bridge: anx7625: enable HPD interrupts Ayushi Makhija
2025-04-06 20:26 ` Dmitry Baryshkov
2025-04-04 11:55 ` [PATCH v3 09/10] drm/bridge: anx7625: update bridge_ops and sink detect logic Ayushi Makhija
2025-04-06 20:14 ` Dmitry Baryshkov
2025-04-04 11:55 ` [PATCH v3 10/10] drm/bridge: anx7625: change the gpiod_set_value API Ayushi Makhija
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=bb277124-a225-450b-acfe-0acd0f94b263@quicinc.com \
--to=quic_amakhija@quicinc.com \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=andersson@kernel.org \
--cc=andrzej.hajda@intel.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=neil.armstrong@linaro.org \
--cc=quic_abhinavk@quicinc.com \
--cc=quic_jesszhan@quicinc.com \
--cc=quic_rajeevny@quicinc.com \
--cc=quic_vproddut@quicinc.com \
--cc=rfoss@kernel.org \
--cc=robdclark@gmail.com \
--cc=robh+dt@kernel.org \
--cc=robh@kernel.org \
--cc=sean@poorly.run \
/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