* [PATCH 1/2] arm64: dts: mediatek: mt7622: readd syscon to pciesys node
@ 2024-06-27 20:52 Christian Marangi
2024-06-27 20:52 ` [PATCH 2/2] dt-bindings: clock: mediatek: add syscon compatible for mt7622 pciesys Christian Marangi
0 siblings, 1 reply; 3+ messages in thread
From: Christian Marangi @ 2024-06-27 20:52 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Matthias Brugger, AngeloGioacchino Del Regno,
Rafał Miłecki, linux-clk, devicetree, linux-kernel,
linux-arm-kernel, linux-mediatek
Cc: Christian Marangi, Frank Wunderlich, stable
Sata node reference the pciesys with the property mediatek,phy-node
and that is used as a syscon to access the pciesys regs.
Readd the syscon compatible to pciesys node to restore correct
functionality of the SATA interface.
Fixes: 3ba5a6159434 ("arm64: dts: mediatek: mt7622: fix clock controllers")
Reported-by: Frank Wunderlich <frank-w@public-files.de>
Co-developed-by: Frank Wunderlich <frank-w@public-files.de>
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Cc: stable@vger.kernel.org
---
arch/arm64/boot/dts/mediatek/mt7622.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
index 917fa39a74f8..bb0ec1edbe5b 100644
--- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
@@ -790,7 +790,7 @@ u2port1: usb-phy@1a0c5000 {
};
pciesys: clock-controller@1a100800 {
- compatible = "mediatek,mt7622-pciesys";
+ compatible = "mediatek,mt7622-pciesys", "syscon";
reg = <0 0x1a100800 0 0x1000>;
#clock-cells = <1>;
#reset-cells = <1>;
--
2.45.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] dt-bindings: clock: mediatek: add syscon compatible for mt7622 pciesys
2024-06-27 20:52 [PATCH 1/2] arm64: dts: mediatek: mt7622: readd syscon to pciesys node Christian Marangi
@ 2024-06-27 20:52 ` Christian Marangi
2024-06-27 22:21 ` Rob Herring (Arm)
0 siblings, 1 reply; 3+ messages in thread
From: Christian Marangi @ 2024-06-27 20:52 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Matthias Brugger, AngeloGioacchino Del Regno,
Rafał Miłecki, linux-clk, devicetree, linux-kernel,
linux-arm-kernel, linux-mediatek
Cc: Christian Marangi
Add required syscon compatible for mt7622 pciesys. This is required for
SATA interface as the regs are shared.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
.../bindings/clock/mediatek,mt7622-pciesys.yaml | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/clock/mediatek,mt7622-pciesys.yaml b/Documentation/devicetree/bindings/clock/mediatek,mt7622-pciesys.yaml
index c77111d10f90..17f0d960c314 100644
--- a/Documentation/devicetree/bindings/clock/mediatek,mt7622-pciesys.yaml
+++ b/Documentation/devicetree/bindings/clock/mediatek,mt7622-pciesys.yaml
@@ -14,9 +14,11 @@ maintainers:
properties:
compatible:
- enum:
- - mediatek,mt7622-pciesys
- - mediatek,mt7629-pciesys
+ oneOf:
+ - items:
+ - const: mediatek,mt7622-pciesys
+ - const: syscon
+ - const: mediatek,mt7629-pciesys
reg:
maxItems: 1
--
2.45.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] dt-bindings: clock: mediatek: add syscon compatible for mt7622 pciesys
2024-06-27 20:52 ` [PATCH 2/2] dt-bindings: clock: mediatek: add syscon compatible for mt7622 pciesys Christian Marangi
@ 2024-06-27 22:21 ` Rob Herring (Arm)
0 siblings, 0 replies; 3+ messages in thread
From: Rob Herring (Arm) @ 2024-06-27 22:21 UTC (permalink / raw)
To: Christian Marangi
Cc: linux-kernel, devicetree, linux-clk, Krzysztof Kozlowski,
Stephen Boyd, Michael Turquette, Conor Dooley,
Rafał Miłecki, linux-arm-kernel,
AngeloGioacchino Del Regno, linux-mediatek, Matthias Brugger
On Thu, 27 Jun 2024 22:52:57 +0200, Christian Marangi wrote:
> Add required syscon compatible for mt7622 pciesys. This is required for
> SATA interface as the regs are shared.
>
> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
> ---
> .../bindings/clock/mediatek,mt7622-pciesys.yaml | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
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/clock/mediatek,mt7622-pciesys.example.dtb: clock-controller@1a100800: compatible: 'oneOf' conditional failed, one must be fixed:
['mediatek,mt7622-pciesys'] is too short
'mediatek,mt7629-pciesys' was expected
from schema $id: http://devicetree.org/schemas/clock/mediatek,mt7622-pciesys.yaml#
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20240627205309.28742-2-ansuelsmth@gmail.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] 3+ messages in thread
end of thread, other threads:[~2024-06-27 22:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-27 20:52 [PATCH 1/2] arm64: dts: mediatek: mt7622: readd syscon to pciesys node Christian Marangi
2024-06-27 20:52 ` [PATCH 2/2] dt-bindings: clock: mediatek: add syscon compatible for mt7622 pciesys Christian Marangi
2024-06-27 22:21 ` Rob Herring (Arm)
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).