[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3euh4nn2ceyigu3fd46f42ibsyep3c2m7b66uqezwvdkzoh5jo@t2b3rty3dzhs>
Date: Fri, 10 Oct 2025 21:10:50 -0700
From: Manivannan Sadhasivam <mani@...nel.org>
To: "Rob Herring (Arm)" <robh@...nel.org>
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@....qualcomm.com>,
Conor Dooley <conor+dt@...nel.org>, Konrad Dybcio <konrad.dybcio@....qualcomm.com>,
Bjorn Helgaas <bhelgaas@...gle.com>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Bjorn Andersson <andersson@...nel.org>, Lorenzo Pieralisi <lpieralisi@...nel.org>,
linux-arm-msm@...r.kernel.org, devicetree@...r.kernel.org,
Krishna Chaitanya Chundru <krishna.chundru@....qualcomm.com>, linux-pci@...r.kernel.org, linux-kernel@...r.kernel.org,
Abraham I <kishon@...nel.org>, Krzysztof Wilczyński <kwilczynski@...nel.org>,
Dmitry Baryshkov <dmitry.baryshkov@....qualcomm.com>
Subject: Re: [PATCH 2/3] dt-bindings: PCI: qcom: Enforce check for PHY,
PERST# and WAKE# properties
On Fri, Oct 10, 2025 at 02:33:23PM -0500, Rob Herring (Arm) wrote:
>
> On Fri, 10 Oct 2025 11:25:48 -0700, Manivannan Sadhasivam wrote:
> > Currently, the binding supports specifying the PHY, PERST#, WAKE#
> > properties in two ways:
> >
> > 1. Controller node (deprecated)
> > - phys
> > - perst-gpios
> > - wake-gpios
> >
> > 2. Root Port node
> > - phys
> > - reset-gpios
> > - wake-gpios
> >
> > But there is no check to make sure that the both variants are not mixed.
> > For instance, if the Controller node specifies 'phys', 'reset-gpios',
> > 'wake-gpios' or if the Root Port node specifies 'phys', 'perst-gpios',
> > 'wake-gpios', then the driver will fail as reported. Hence, enforce the
> > check in the binding to catch these issues.
> >
> > It is also possible that DTs could have 'phys' property in Controller node
> > and 'reset-gpios/wake-gpios' properties in the Root Port node. It will also
> > be a problem, but it is not possible to catch these cross-node issues in
> > the binding.
> >
> > Reported-by: Konrad Dybcio <konrad.dybcio@....qualcomm.com>
> > Closes: https://lore.kernel.org/linux-pci/8f2e0631-6c59-4298-b36e-060708970ced@oss.qualcomm.com
> > Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@....qualcomm.com>
> > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@....qualcomm.com>
> > ---
> > .../devicetree/bindings/pci/qcom,pcie-common.yaml | 20 ++++++++++++++++++++
> > 1 file changed, 20 insertions(+)
> >
>
> My bot found errors running 'make dt_binding_check' on your patch:
>
> yamllint warnings/errors:
>
> dtschema/dtc warnings/errors:
> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pci/qcom,pcie-sc8180x.example.dtb: pcie@...0000 (qcom,pcie-sc8180x): 'oneOf' conditional failed, one must be fixed:
> 'perst-gpios' is a required property
> 'wake-gpios' is a required property
> False schema does not allow [[4294967295]]
> from schema $id: http://devicetree.org/schemas/pci/qcom,pcie-sc8180x.yaml#
> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pci/qcom,pcie-sc8180x.example.dtb: pcie@...0000 (qcom,pcie-sc8180x): Unevaluated properties are not allowed ('#address-cells', '#interrupt-cells', '#size-cells', 'bus-range', 'device_type', 'dma-coherent', 'interconnect-names', 'interconnects', 'interrupt-map', 'interrupt-map-mask', 'iommu-map', 'linux,pci-domain', 'num-lanes', 'phy-names', 'phys', 'power-domains', 'ranges' were unexpected)
> from schema $id: http://devicetree.org/schemas/pci/qcom,pcie-sc8180x.yaml#
> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pci/qcom,pcie-sc7280.example.dtb: pcie@...8000 (qcom,pcie-sc7280): pcie@0: 'oneOf' conditional failed, one must be fixed:
> 'wake-gpios' is a required property
> False schema does not allow [[4294967295]]
> False schema does not allow [[4294967295, 2, 1]]
> from schema $id: http://devicetree.org/schemas/pci/qcom,pcie-sc7280.yaml#
> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pci/qcom,pcie-sc7280.example.dtb: pcie@...8000 (qcom,pcie-sc7280): Unevaluated properties are not allowed ('#address-cells', '#interrupt-cells', '#size-cells', 'bus-range', 'device_type', 'dma-coherent', 'interrupt-map', 'interrupt-map-mask', 'iommu-map', 'linux,pci-domain', 'num-lanes', 'pcie@0', 'power-domains', 'ranges', 'vddpe-3v3-supply' were unexpected)
> from schema $id: http://devicetree.org/schemas/pci/qcom,pcie-sc7280.yaml#
>
I need to add the missing properties to the example nodes in these bindings.
- Mani
--
மணிவண்ணன் சதாசிவம்
Powered by blists - more mailing lists