* [PATCH v2 0/8] MT8188 DT and binding fixes
@ 2024-10-01 11:27 Fei Shao
2024-10-01 11:27 ` [PATCH v2 2/8] dt-bindings: PCI: mediatek-gen3: Allow exact number of clocks only Fei Shao
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Fei Shao @ 2024-10-01 11:27 UTC (permalink / raw)
To: AngeloGioacchino Del Regno
Cc: Fei Shao, Andrew-CT Chen, Bin Liu, Bjorn Helgaas, Conor Dooley,
Fabien Parent, Jianjun Wang, Krzysztof Kozlowski,
Krzysztof Wilczyński, Lorenzo Bianconi, Lorenzo Pieralisi,
MandyJH Liu, Manivannan Sadhasivam, Matthias Brugger,
Mauro Carvalho Chehab, Rob Herring, Ryder Lee, Tiffany Lin,
Ulf Hansson, Xia Jiang, Yunfei Dong, devicetree, linux-arm-kernel,
linux-kernel, linux-media, linux-mediatek, linux-pci
Hi,
This series is split from a previous series[*] to focus on few fixes and
improvements around MediaTek MT8188 device tree and associated bindings,
and addressed comments and carried tags from the previous series.
[*]: https://lore.kernel.org/all/20240909111535.528624-1-fshao@chromium.org/
[v1]: https://lore.kernel.org/all/20240925110044.3678055-1-fshao@chromium.org/
Regards,
Fei
Changes in v2:
- new patch to MediaTek jpeg and vcodec bindings
- new patch to move MT8188 SPI NOR cell properties
- revise commit message of vdec power domain changes
Fei Shao (8):
dt-bindings: power: mediatek: Add another nested power-domain layer
dt-bindings: PCI: mediatek-gen3: Allow exact number of clocks only
dt-bindings: media: mediatek,jpeg: Relax IOMMU max item count
dt-bindings: media: mediatek,vcodec: Revise description
arm64: dts: mediatek: mt8188: Add missing dma-ranges to soc node
arm64: dts: mediatek: mt8188: Update vppsys node names to syscon
arm64: dts: mediatek: mt8188: Move vdec1 power domain under vdec0
arm64: dts: mediatek: mt8188: Move SPI NOR *-cells properties
.../media/mediatek,vcodec-subdev-decoder.yaml | 100 +++++++++++-------
.../bindings/media/mediatek-jpeg-decoder.yaml | 3 +-
.../bindings/media/mediatek-jpeg-encoder.yaml | 2 +-
.../bindings/pci/mediatek-pcie-gen3.yaml | 5 +-
.../power/mediatek,power-controller.yaml | 4 +
arch/arm64/boot/dts/mediatek/mt8188-evb.dts | 2 -
arch/arm64/boot/dts/mediatek/mt8188.dtsi | 33 +++---
7 files changed, 88 insertions(+), 61 deletions(-)
--
2.46.1.824.gd892dcdcdd-goog
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 2/8] dt-bindings: PCI: mediatek-gen3: Allow exact number of clocks only
2024-10-01 11:27 [PATCH v2 0/8] MT8188 DT and binding fixes Fei Shao
@ 2024-10-01 11:27 ` Fei Shao
2024-10-02 9:33 ` (subset) [PATCH v2 0/8] MT8188 DT and binding fixes AngeloGioacchino Del Regno
2024-12-02 4:24 ` Chen-Yu Tsai
2 siblings, 0 replies; 4+ messages in thread
From: Fei Shao @ 2024-10-01 11:27 UTC (permalink / raw)
To: AngeloGioacchino Del Regno
Cc: Fei Shao, Krzysztof Kozlowski, Bjorn Helgaas, Conor Dooley,
Jianjun Wang, Krzysztof Kozlowski, Krzysztof Wilczyński,
Lorenzo Bianconi, Lorenzo Pieralisi, Manivannan Sadhasivam,
Matthias Brugger, Rob Herring, Ryder Lee, devicetree,
linux-arm-kernel, linux-kernel, linux-mediatek, linux-pci
In MediaTek PCIe gen3 bindings, "clocks" accepts a range of 1-6 clocks
across all SoCs. But in practice, each SoC requires a particular number
of clocks as defined in "clock-names", and the length of "clocks" and
"clock-names" can be inconsistent with current bindings.
For example:
- MT8188, MT8192 and MT8195 all require 6 clocks, while the bindings
accept 4-6 clocks.
- MT7986 requires 4 clocks, while the bindings accept 4-6 clocks.
Update minItems and maxItems properties for individual SoCs as needed to
only accept the correct number of clocks.
Fixes: c6abd0eadec6 ("dt-bindings: PCI: mediatek-gen3: Add support for Airoha EN7581")
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Fei Shao <fshao@chromium.org>
---
(no changes since v1)
.../devicetree/bindings/pci/mediatek-pcie-gen3.yaml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml
index 898c1be2d6a4..f05aab2b1add 100644
--- a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml
+++ b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml
@@ -149,7 +149,7 @@ allOf:
then:
properties:
clocks:
- minItems: 4
+ minItems: 6
clock-names:
items:
@@ -178,7 +178,7 @@ allOf:
then:
properties:
clocks:
- minItems: 4
+ minItems: 6
clock-names:
items:
@@ -207,6 +207,7 @@ allOf:
properties:
clocks:
minItems: 4
+ maxItems: 4
clock-names:
items:
--
2.46.1.824.gd892dcdcdd-goog
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: (subset) [PATCH v2 0/8] MT8188 DT and binding fixes
2024-10-01 11:27 [PATCH v2 0/8] MT8188 DT and binding fixes Fei Shao
2024-10-01 11:27 ` [PATCH v2 2/8] dt-bindings: PCI: mediatek-gen3: Allow exact number of clocks only Fei Shao
@ 2024-10-02 9:33 ` AngeloGioacchino Del Regno
2024-12-02 4:24 ` Chen-Yu Tsai
2 siblings, 0 replies; 4+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-10-02 9:33 UTC (permalink / raw)
To: Fei Shao
Cc: Andrew-CT Chen, Bin Liu, Bjorn Helgaas, Conor Dooley,
Fabien Parent, Jianjun Wang, Krzysztof Kozlowski,
Krzysztof Wilczyński, Lorenzo Bianconi, Lorenzo Pieralisi,
MandyJH Liu, Manivannan Sadhasivam, Matthias Brugger,
Mauro Carvalho Chehab, Rob Herring, Ryder Lee, Tiffany Lin,
Ulf Hansson, Xia Jiang, Yunfei Dong, devicetree, linux-arm-kernel,
linux-kernel, linux-media, linux-mediatek, linux-pci
On Tue, 01 Oct 2024 19:27:18 +0800, Fei Shao wrote:
> This series is split from a previous series[*] to focus on few fixes and
> improvements around MediaTek MT8188 device tree and associated bindings,
> and addressed comments and carried tags from the previous series.
>
> [*]: https://lore.kernel.org/all/20240909111535.528624-1-fshao@chromium.org/
> [v1]: https://lore.kernel.org/all/20240925110044.3678055-1-fshao@chromium.org/
>
> [...]
Applied to v6.12-next/dts64, thanks!
[5/8] arm64: dts: mediatek: mt8188: Add missing dma-ranges to soc node
https://git.kernel.org/mediatek/c/ad9d9e15
[6/8] arm64: dts: mediatek: mt8188: Update vppsys node names to syscon
https://git.kernel.org/mediatek/c/c1134cbf
[7/8] arm64: dts: mediatek: mt8188: Move vdec1 power domain under vdec0
https://git.kernel.org/mediatek/c/66c466da
[8/8] arm64: dts: mediatek: mt8188: Move SPI NOR *-cells properties
https://git.kernel.org/mediatek/c/08ea5de5
Cheers,
Angelo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 0/8] MT8188 DT and binding fixes
2024-10-01 11:27 [PATCH v2 0/8] MT8188 DT and binding fixes Fei Shao
2024-10-01 11:27 ` [PATCH v2 2/8] dt-bindings: PCI: mediatek-gen3: Allow exact number of clocks only Fei Shao
2024-10-02 9:33 ` (subset) [PATCH v2 0/8] MT8188 DT and binding fixes AngeloGioacchino Del Regno
@ 2024-12-02 4:24 ` Chen-Yu Tsai
2 siblings, 0 replies; 4+ messages in thread
From: Chen-Yu Tsai @ 2024-12-02 4:24 UTC (permalink / raw)
To: AngeloGioacchino Del Regno, Krzysztof Kozlowski
Cc: Fei Shao, Andrew-CT Chen, Bin Liu, Bjorn Helgaas, Conor Dooley,
Fabien Parent, Jianjun Wang, Krzysztof Wilczyński,
Lorenzo Bianconi, Lorenzo Pieralisi, MandyJH Liu,
Manivannan Sadhasivam, Matthias Brugger, Mauro Carvalho Chehab,
Rob Herring, Ryder Lee, Tiffany Lin, Ulf Hansson, Xia Jiang,
Yunfei Dong, devicetree, linux-arm-kernel, linux-kernel,
linux-media, linux-mediatek, linux-pci
Hi,
On Tue, Oct 1, 2024 at 7:31 PM Fei Shao <fshao@chromium.org> wrote:
>
> Hi,
>
> This series is split from a previous series[*] to focus on few fixes and
> improvements around MediaTek MT8188 device tree and associated bindings,
> and addressed comments and carried tags from the previous series.
>
> [*]: https://lore.kernel.org/all/20240909111535.528624-1-fshao@chromium.org/
> [v1]: https://lore.kernel.org/all/20240925110044.3678055-1-fshao@chromium.org/
>
> Regards,
> Fei
>
> Changes in v2:
> - new patch to MediaTek jpeg and vcodec bindings
> - new patch to move MT8188 SPI NOR cell properties
> - revise commit message of vdec power domain changes
>
> Fei Shao (8):
> dt-bindings: power: mediatek: Add another nested power-domain layer
This one ^
> dt-bindings: PCI: mediatek-gen3: Allow exact number of clocks only
> dt-bindings: media: mediatek,jpeg: Relax IOMMU max item count
> dt-bindings: media: mediatek,vcodec: Revise description
and these two ^ have not been picked up, and now v6.13-rc1 has DT
validation errors for MT8188:
/ssd1/wenst/linux/mtk/arch/arm64/boot/dts/mediatek/mt8188-evb.dtb:
syscon@10006000:
power-controller:power-domain@15:power-domain@16:power-domain@29:power-domain@30:
Unevaluated properties are not allowed ('power-domain@31',
'power-domain@32' were unexpected)
from schema $id:
http://devicetree.org/schemas/mfd/mediatek,mt8195-scpsys.yaml#
/ssd1/wenst/linux/mtk/arch/arm64/boot/dts/mediatek/mt8188-evb.dtb:
power-controller:
power-domain@15:power-domain@16:power-domain@29:power-domain@30:
Unevaluated properties are not allowed ('power-domain@31',
'power-domain@32' were unexpected)
from schema $id:
http://devicetree.org/schemas/power/mediatek,power-controller.yaml#
/ssd1/wenst/linux/mtk/arch/arm64/boot/dts/mediatek/mt8188-evb.dtb:
jpeg-decoder@1a040000: iommus: [[101, 685], [101, 686], [101, 690],
[101, 691], [101, 692], [101, 693]] is too long
from schema $id:
http://devicetree.org/schemas/media/mediatek-jpeg-decoder.yaml#
Is there any way we can get them into v6.13 as well?
ChenYu
> arm64: dts: mediatek: mt8188: Add missing dma-ranges to soc node
> arm64: dts: mediatek: mt8188: Update vppsys node names to syscon
> arm64: dts: mediatek: mt8188: Move vdec1 power domain under vdec0
> arm64: dts: mediatek: mt8188: Move SPI NOR *-cells properties
>
> .../media/mediatek,vcodec-subdev-decoder.yaml | 100 +++++++++++-------
> .../bindings/media/mediatek-jpeg-decoder.yaml | 3 +-
> .../bindings/media/mediatek-jpeg-encoder.yaml | 2 +-
> .../bindings/pci/mediatek-pcie-gen3.yaml | 5 +-
> .../power/mediatek,power-controller.yaml | 4 +
> arch/arm64/boot/dts/mediatek/mt8188-evb.dts | 2 -
> arch/arm64/boot/dts/mediatek/mt8188.dtsi | 33 +++---
> 7 files changed, 88 insertions(+), 61 deletions(-)
>
> --
> 2.46.1.824.gd892dcdcdd-goog
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-12-02 4:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-01 11:27 [PATCH v2 0/8] MT8188 DT and binding fixes Fei Shao
2024-10-01 11:27 ` [PATCH v2 2/8] dt-bindings: PCI: mediatek-gen3: Allow exact number of clocks only Fei Shao
2024-10-02 9:33 ` (subset) [PATCH v2 0/8] MT8188 DT and binding fixes AngeloGioacchino Del Regno
2024-12-02 4:24 ` Chen-Yu Tsai
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).