* [RFC PATCH 0/3] KingFisher: support regulators for PCIe @ 2023-05-08 10:45 Wolfram Sang 2023-05-08 10:45 ` [RFC PATCH 1/3] dt-bindings: PCI: rcar-pci-host: add optional regulators Wolfram Sang 2023-05-08 10:45 ` [RFC PATCH 3/3] arm64: dts: renesas: ulcb-kf: add regulators for PCIe ch1 Wolfram Sang 0 siblings, 2 replies; 9+ messages in thread From: Wolfram Sang @ 2023-05-08 10:45 UTC (permalink / raw) To: linux-renesas-soc Cc: Wolfram Sang, devicetree, linux-kernel, linux-pci, Marek Vasut, Yoshihiro Shimoda Here are the patches to make PCIe cards work in the slot CN15 on a KingFisher board. This is still RFC only, so we can agree on all the DT namings before I send out the patches individually. Looking forward to comments! Wolfram Wolfram Sang (3): dt-bindings: PCI: rcar-pci-host: add optional regulators PCI: rcar-host: add support for optional regulators arm64: dts: renesas: ulcb-kf: add regulators for PCIe ch1 .../bindings/pci/rcar-pci-host.yaml | 8 +++++++ arch/arm64/boot/dts/renesas/ulcb-kf.dtsi | 21 +++++++++++++++++++ drivers/pci/controller/pcie-rcar-host.c | 9 ++++++++ 3 files changed, 38 insertions(+) -- 2.30.2 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [RFC PATCH 1/3] dt-bindings: PCI: rcar-pci-host: add optional regulators 2023-05-08 10:45 [RFC PATCH 0/3] KingFisher: support regulators for PCIe Wolfram Sang @ 2023-05-08 10:45 ` Wolfram Sang 2023-05-08 11:27 ` Rob Herring 2023-05-08 13:40 ` Geert Uytterhoeven 2023-05-08 10:45 ` [RFC PATCH 3/3] arm64: dts: renesas: ulcb-kf: add regulators for PCIe ch1 Wolfram Sang 1 sibling, 2 replies; 9+ messages in thread From: Wolfram Sang @ 2023-05-08 10:45 UTC (permalink / raw) To: linux-renesas-soc Cc: Wolfram Sang, Marek Vasut, Yoshihiro Shimoda, Lorenzo Pieralisi, Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas, Krzysztof Kozlowski, Conor Dooley, linux-pci, devicetree, linux-kernel Support regulators found on the e.g. KingFisher board. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> --- Documentation/devicetree/bindings/pci/rcar-pci-host.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/rcar-pci-host.yaml b/Documentation/devicetree/bindings/pci/rcar-pci-host.yaml index 8fdfbc763d70..23e44f78e62e 100644 --- a/Documentation/devicetree/bindings/pci/rcar-pci-host.yaml +++ b/Documentation/devicetree/bindings/pci/rcar-pci-host.yaml @@ -68,6 +68,12 @@ properties: phy-names: const: pcie + vpcie1v5-supply: + description: The 1.5v regulator to use for PCIe. + + vpcie3v3-supply: + description: The 3.3v regulator to use for PCIe. + required: - compatible - reg @@ -121,5 +127,7 @@ examples: clock-names = "pcie", "pcie_bus"; power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; resets = <&cpg 319>; + vpcie1v5-supply = <&pcie_1v5>; + vpcie3v3-supply = <&pcie_3v3>; }; }; -- 2.30.2 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [RFC PATCH 1/3] dt-bindings: PCI: rcar-pci-host: add optional regulators 2023-05-08 10:45 ` [RFC PATCH 1/3] dt-bindings: PCI: rcar-pci-host: add optional regulators Wolfram Sang @ 2023-05-08 11:27 ` Rob Herring 2023-05-08 13:40 ` Geert Uytterhoeven 1 sibling, 0 replies; 9+ messages in thread From: Rob Herring @ 2023-05-08 11:27 UTC (permalink / raw) To: Wolfram Sang Cc: Krzysztof Kozlowski, Conor Dooley, Marek Vasut, linux-renesas-soc, Lorenzo Pieralisi, devicetree, linux-kernel, Krzysztof Wilczyński, linux-pci, Yoshihiro Shimoda, Bjorn Helgaas On Mon, 08 May 2023 12:45:55 +0200, Wolfram Sang wrote: > Support regulators found on the e.g. KingFisher board. > > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> > --- > Documentation/devicetree/bindings/pci/rcar-pci-host.yaml | 8 ++++++++ > 1 file changed, 8 insertions(+) > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13): yamllint warnings/errors: dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/rockchip-isp1.example.dtb: camera@3c: port:endpoint:data-lanes: [[1]] is too short From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.yaml /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.example.dtb: camera-sensor@3c: port:endpoint:data-lanes: [[1]] is too short From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.yaml /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.example.dtb: pcie-ep@33800000: Unevaluated properties are not allowed ('assigned-clock-parents', 'assigned-clock-rates', 'assigned-clocks' were unexpected) From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml doc reference errors (make refcheckdocs): Documentation/usb/gadget_uvc.rst: Documentation/userspace-api/media/v4l/pixfmt-packed.yuv.rst MAINTAINERS: Documentation/devicetree/bindings/pwm/pwm-apple.yaml See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230508104557.47889-2-wsa+renesas@sang-engineering.com The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RFC PATCH 1/3] dt-bindings: PCI: rcar-pci-host: add optional regulators 2023-05-08 10:45 ` [RFC PATCH 1/3] dt-bindings: PCI: rcar-pci-host: add optional regulators Wolfram Sang 2023-05-08 11:27 ` Rob Herring @ 2023-05-08 13:40 ` Geert Uytterhoeven 2023-05-08 18:48 ` Wolfram Sang 1 sibling, 1 reply; 9+ messages in thread From: Geert Uytterhoeven @ 2023-05-08 13:40 UTC (permalink / raw) To: Wolfram Sang Cc: linux-renesas-soc, Marek Vasut, Yoshihiro Shimoda, Lorenzo Pieralisi, Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas, Krzysztof Kozlowski, Conor Dooley, linux-pci, devicetree, linux-kernel Hi Wolfram, On Mon, May 8, 2023 at 12:46 PM Wolfram Sang <wsa+renesas@sang-engineering.com> wrote: > Support regulators found on the e.g. KingFisher board. ... for the mini-PCIe slot. > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Thanks for your patch! > --- a/Documentation/devicetree/bindings/pci/rcar-pci-host.yaml > +++ b/Documentation/devicetree/bindings/pci/rcar-pci-host.yaml > @@ -68,6 +68,12 @@ properties: > phy-names: > const: pcie > > + vpcie1v5-supply: > + description: The 1.5v regulator to use for PCIe. +1.5V is only present on mini-PCIe slots... > + > + vpcie3v3-supply: > + description: The 3.3v regulator to use for PCIe. ... while +3.3V is present on PCIe, mini-PCIe, and M2 PCIe slots. In addition, normal PCIe slots also have +12V. So I think it would be prudent to add a vpcie12v0-supply property, too. W.r.t. to the actual naming, I don't know if there's already a (de facto) standard for that? > + > required: > - compatible > - reg > @@ -121,5 +127,7 @@ examples: > clock-names = "pcie", "pcie_bus"; > power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; > resets = <&cpg 319>; > + vpcie1v5-supply = <&pcie_1v5>; > + vpcie3v3-supply = <&pcie_3v3>; > }; > }; Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RFC PATCH 1/3] dt-bindings: PCI: rcar-pci-host: add optional regulators 2023-05-08 13:40 ` Geert Uytterhoeven @ 2023-05-08 18:48 ` Wolfram Sang 2023-05-09 10:35 ` Geert Uytterhoeven 0 siblings, 1 reply; 9+ messages in thread From: Wolfram Sang @ 2023-05-08 18:48 UTC (permalink / raw) To: Geert Uytterhoeven Cc: linux-renesas-soc, Marek Vasut, Yoshihiro Shimoda, Lorenzo Pieralisi, Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas, Krzysztof Kozlowski, Conor Dooley, linux-pci, devicetree, linux-kernel [-- Attachment #1: Type: text/plain, Size: 892 bytes --] Hi Geert, > > + vpcie1v5-supply: > > + description: The 1.5v regulator to use for PCIe. > > +1.5V is only present on mini-PCIe slots... Since mini-PCIe is a subset of PCIe, I'd think we can leave the description as-is. > > + > > + vpcie3v3-supply: > > + description: The 3.3v regulator to use for PCIe. > > ... while +3.3V is present on PCIe, mini-PCIe, and M2 PCIe slots. > > In addition, normal PCIe slots also have +12V. > So I think it would be prudent to add a vpcie12v0-supply property, too. I agree. I can't test it but it is trivial enough to add 12v support as well. > W.r.t. to the actual naming, I don't know if there's already a (de facto) > standard for that? I couldn't find one and took what I think is the most used pattern. But I wasn't entirely sure, this is why the series is still RFC. Thanks for the review! Wolfram [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RFC PATCH 1/3] dt-bindings: PCI: rcar-pci-host: add optional regulators 2023-05-08 18:48 ` Wolfram Sang @ 2023-05-09 10:35 ` Geert Uytterhoeven 2023-05-09 12:30 ` Wolfram Sang 0 siblings, 1 reply; 9+ messages in thread From: Geert Uytterhoeven @ 2023-05-09 10:35 UTC (permalink / raw) To: Wolfram Sang, Geert Uytterhoeven, linux-renesas-soc, Marek Vasut, Yoshihiro Shimoda, Lorenzo Pieralisi, Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas, Krzysztof Kozlowski, Conor Dooley, linux-pci, devicetree, linux-kernel Hi Wolfram, On Mon, May 8, 2023 at 8:48 PM Wolfram Sang <wsa+renesas@sang-engineering.com> wrote: > > > + vpcie1v5-supply: > > > + description: The 1.5v regulator to use for PCIe. > > > > +1.5V is only present on mini-PCIe slots... > > Since mini-PCIe is a subset of PCIe, I'd think we can leave the > description as-is. Sure, the description is fine. > > > + > > > + vpcie3v3-supply: > > > + description: The 3.3v regulator to use for PCIe. > > > > ... while +3.3V is present on PCIe, mini-PCIe, and M2 PCIe slots. > > > > In addition, normal PCIe slots also have +12V. > > So I think it would be prudent to add a vpcie12v0-supply property, too. > > I agree. I can't test it but it is trivial enough to add 12v support as > well. > > > W.r.t. to the actual naming, I don't know if there's already a (de facto) > > standard for that? > > I couldn't find one and took what I think is the most used pattern. But > I wasn't entirely sure, this is why the series is still RFC. Upon second thought, shouldn't these supplies be part of a PCIe connector subnode, as they are not properties of the PCIe host controller itself? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RFC PATCH 1/3] dt-bindings: PCI: rcar-pci-host: add optional regulators 2023-05-09 10:35 ` Geert Uytterhoeven @ 2023-05-09 12:30 ` Wolfram Sang 0 siblings, 0 replies; 9+ messages in thread From: Wolfram Sang @ 2023-05-09 12:30 UTC (permalink / raw) To: Geert Uytterhoeven Cc: linux-renesas-soc, Marek Vasut, Yoshihiro Shimoda, Lorenzo Pieralisi, Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas, Krzysztof Kozlowski, Conor Dooley, linux-pci, devicetree, linux-kernel [-- Attachment #1: Type: text/plain, Size: 373 bytes --] > > I couldn't find one and took what I think is the most used pattern. But > > I wasn't entirely sure, this is why the series is still RFC. > > Upon second thought, shouldn't these supplies be part of a PCIe > connector subnode, as they are not properties of the PCIe host > controller itself? Beats me. Current practice is to put it in the host controller. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* [RFC PATCH 3/3] arm64: dts: renesas: ulcb-kf: add regulators for PCIe ch1 2023-05-08 10:45 [RFC PATCH 0/3] KingFisher: support regulators for PCIe Wolfram Sang 2023-05-08 10:45 ` [RFC PATCH 1/3] dt-bindings: PCI: rcar-pci-host: add optional regulators Wolfram Sang @ 2023-05-08 10:45 ` Wolfram Sang 2023-05-08 13:46 ` Geert Uytterhoeven 1 sibling, 1 reply; 9+ messages in thread From: Wolfram Sang @ 2023-05-08 10:45 UTC (permalink / raw) To: linux-renesas-soc Cc: Wolfram Sang, Geert Uytterhoeven, Magnus Damm, Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree, linux-kernel Without them, no power, so cards do not get recognized. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> --- arch/arm64/boot/dts/renesas/ulcb-kf.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi b/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi index efc80960380f..ff3a9ab6e6b0 100644 --- a/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi +++ b/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi @@ -52,6 +52,24 @@ hdmi_3v3: regulator-hdmi-3v3 { regulator-max-microvolt = <3300000>; }; + pcie_1v5: regulator-pcie-1v5 { + compatible = "regulator-fixed"; + regulator-name = "pcie-1v5"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1500000>; + gpio = <&gpio_exp_77 15 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + pcie_3v3: regulator-pcie-3v3 { + compatible = "regulator-fixed"; + regulator-name = "pcie-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio_exp_77 14 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + snd_3p3v: regulator-snd_3p3v { compatible = "regulator-fixed"; regulator-name = "snd-3.3v"; @@ -335,6 +353,9 @@ &pciec0 { &pciec1 { status = "okay"; + + vpcie1v5-supply = <&pcie_1v5>; + vpcie3v3-supply = <&pcie_3v3>; }; &pfc { -- 2.30.2 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [RFC PATCH 3/3] arm64: dts: renesas: ulcb-kf: add regulators for PCIe ch1 2023-05-08 10:45 ` [RFC PATCH 3/3] arm64: dts: renesas: ulcb-kf: add regulators for PCIe ch1 Wolfram Sang @ 2023-05-08 13:46 ` Geert Uytterhoeven 0 siblings, 0 replies; 9+ messages in thread From: Geert Uytterhoeven @ 2023-05-08 13:46 UTC (permalink / raw) To: Wolfram Sang Cc: linux-renesas-soc, Geert Uytterhoeven, Magnus Damm, Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree, linux-kernel On Mon, May 8, 2023 at 12:46 PM Wolfram Sang <wsa+renesas@sang-engineering.com> wrote: > Without them, no power, so cards do not get recognized. > > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> LGTM (modulo changes to the bindings), so Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-05-09 12:30 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-05-08 10:45 [RFC PATCH 0/3] KingFisher: support regulators for PCIe Wolfram Sang 2023-05-08 10:45 ` [RFC PATCH 1/3] dt-bindings: PCI: rcar-pci-host: add optional regulators Wolfram Sang 2023-05-08 11:27 ` Rob Herring 2023-05-08 13:40 ` Geert Uytterhoeven 2023-05-08 18:48 ` Wolfram Sang 2023-05-09 10:35 ` Geert Uytterhoeven 2023-05-09 12:30 ` Wolfram Sang 2023-05-08 10:45 ` [RFC PATCH 3/3] arm64: dts: renesas: ulcb-kf: add regulators for PCIe ch1 Wolfram Sang 2023-05-08 13:46 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).