mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 23:46:45 +00:00

The ahci-platform binding requires phys/target-supply property. After converting the binding to yaml the following files reporting "'anyOf' conditional failed" on sata@540000: sata-port@0 armada-7040-db.dts armada-8040-clearfog-gt-8k.dts armada-8040-mcbin.dts armada-8040-mcbin-singleshot.dts cn9130-db.dts cn9130-db-B.dts cn9131-db.dts cn9131-db-B.dts cn9132-db.dts cn9132-db-B.dts the following files reporting 'anyOf' conditional failed on sata@540000: sata-port@1 cn9132-db.dts cn9132-db-B.dts cn9130-crb-B.dts 'phys' is a required property 'target-supply' is a required property >From schema: Documentation/devicetree/bindings/ata/ahci-platform.yaml This is caused by defining sata-ports incomplete in armada-cp11x.dtsi and overriding only a subset of ports with the needed phys/target-supply property. Fix this by disabling the node-templates and enabling the needed nodes. Signed-off-by: Frank Wunderlich <frank-w@public-files.de> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
48 lines
826 B
Plaintext
48 lines
826 B
Plaintext
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2020 Marvell International Ltd.
|
|
*/
|
|
|
|
#include "cn9130-crb.dtsi"
|
|
|
|
/ {
|
|
model = "Marvell Armada CN9130-CRB-B";
|
|
};
|
|
|
|
&cp0_pcie0 {
|
|
status = "okay";
|
|
num-lanes = <1>;
|
|
num-viewport = <8>;
|
|
/* Generic PHY, providing serdes lanes */
|
|
phys = <&cp0_comphy0 0>;
|
|
iommu-map =
|
|
<0x0 &smmu 0x480 0x20>,
|
|
<0x100 &smmu 0x4a0 0x20>,
|
|
<0x200 &smmu 0x4c0 0x20>;
|
|
iommu-map-mask = <0x031f>;
|
|
};
|
|
|
|
&cp0_sata0 {
|
|
status = "okay";
|
|
sata-port@0 {
|
|
status = "okay";
|
|
/* Generic PHY, providing serdes lanes */
|
|
phys = <&cp0_comphy2 0>;
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
&cp0_usb3_0 {
|
|
status = "okay";
|
|
usb-phy = <&cp0_usb3_0_phy0>;
|
|
phy-names = "usb";
|
|
phys = <&cp0_comphy1 0>;
|
|
};
|
|
|
|
&cp0_usb3_1 {
|
|
status = "okay";
|
|
usb-phy = <&cp0_usb3_0_phy1>;
|
|
phy-names = "usb";
|
|
phys = <&cp0_comphy3 1>;
|
|
};
|