Skip to contentSkip to conversation

arm64: dts: ti: k3-j7200-main: Add McASP nodes

PATCH In review Peter Ujfalusi 3 participants 9 messages Oct 5, 2020 – Oct 27, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: ti: k3-j7200-main: Add McASP nodes

Add the nodes for McASP 0-2 and keep them disabled because several required properties are not present as they are board specific.

---
 arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 57 +++++++++++++++++++++++
 1 file changed, 57 insertions(+)
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi +57 -0
index 72d6496e88dd..cc6c2a81887a 100644
@@ -446,4 +446,61 @@ usb0: usb@6000000 {
 			dr_mode = "otg";
 		};
 	};
+
+	mcasp0: mcasp@02b00000 {
+		compatible = "ti,am33xx-mcasp-audio";
+		reg = <0x0 0x02b00000 0x0 0x2000>,
+			<0x0 0x02b08000 0x0 0x1000>;
+		reg-names = "mpu","dat";
+		interrupts = <GIC_SPI 544 IRQ_TYPE_LEVEL_HIGH>,
+				<GIC_SPI 545 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-names = "tx", "rx";
+
+		dmas = <&main_udmap 0xc400>, <&main_udmap 0x4400>;
+		dma-names = "tx", "rx";
+
+		clocks = <&k3_clks 174 40>;
+		clock-names = "fck";
+		power-domains = <&k3_pds 174 TI_SCI_PD_EXCLUSIVE>;
+
+		status = "disabled";
+	};
+
+	mcasp1: mcasp@02b10000 {
+		compatible = "ti,am33xx-mcasp-audio";
+		reg = <0x0 0x02b10000 0x0 0x2000>,
+			<0x0 0x02b18000 0x0 0x1000>;
+		reg-names = "mpu","dat";
+		interrupts = <GIC_SPI 546 IRQ_TYPE_LEVEL_HIGH>,
+				<GIC_SPI 547 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-names = "tx", "rx";
+
+		dmas = <&main_udmap 0xc401>, <&main_udmap 0x4401>;
+		dma-names = "tx", "rx";
+
+		clocks = <&k3_clks 175 40>;
+		clock-names = "fck";
+		power-domains = <&k3_pds 175 TI_SCI_PD_EXCLUSIVE>;
+
+		status = "disabled";
+	};
+
+	mcasp2: mcasp@02b20000 {
+		compatible = "ti,am33xx-mcasp-audio";
+		reg = <0x0 0x02b20000 0x0 0x2000>,
+			<0x0 0x02b28000 0x0 0x1000>;
+		reg-names = "mpu","dat";
+		interrupts = <GIC_SPI 548 IRQ_TYPE_LEVEL_HIGH>,
+				<GIC_SPI 549 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-names = "tx", "rx";
+
+		dmas = <&main_udmap 0xc402>, <&main_udmap 0x4402>;
+		dma-names = "tx", "rx";
+
+		clocks = <&k3_clks 176 40>;
+		clock-names = "fck";
+		power-domains = <&k3_pds 176 TI_SCI_PD_EXCLUSIVE>;
+
+		status = "disabled";
+	};
 };
Signature · 4 lines
Peter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
maintainer
#1 lore raw
Quoted 24 lines · Peter Ujfalusi

Add the nodes for McASP 0-2 and keep them disabled because several required properties are not present as they are board specific.

---
 arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 57 +++++++++++++++++++++++
 1 file changed, 57 insertions(+)
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi +8 -0
index 72d6496e88dd..cc6c2a81887a 100644
@@ -446,4 +446,61 @@ usb0: usb@6000000 {
 			dr_mode = "otg";
 		};
 	};
+
+	mcasp0: mcasp@02b00000 {
+		compatible = "ti,am33xx-mcasp-audio";
+		reg = <0x0 0x02b00000 0x0 0x2000>,
+			<0x0 0x02b08000 0x0 0x1000>;
+		reg-names = "mpu","dat";
+		interrupts = <GIC_SPI 544 IRQ_TYPE_LEVEL_HIGH>,
+				<GIC_SPI 545 IRQ_TYPE_LEVEL_HIGH>;

arch/arm64/boot/dts/ti/k3-j7200-main.dtsi usb0: usb@6000000 { · line 466

Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi +10 -0
+		interrupt-names = "tx", "rx";
+
+		dmas = <&main_udmap 0xc400>, <&main_udmap 0x4400>;
+		dma-names = "tx", "rx";
+
+		clocks = <&k3_clks 174 40>;
+		clock-names = "fck";
+		power-domains = <&k3_pds 174 TI_SCI_PD_EXCLUSIVE>;
+
+		status = "disabled";

I see that there is inconsistent usage of "disabled" in our SoC.dts

Our generic rule has been set them to disabled in board.dtsi McASP and DSS for existing SoC dts do not follow this.. which is a tad confusing.. (considering that not even all uarts come out on every board and every uart needs pinmux to function..)

Tero: Thoughts?

[...]

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
#2 lore raw
Quoted 38 lines · Nishanth Menon
Quoted 24 lines · Peter Ujfalusi

Add the nodes for McASP 0-2 and keep them disabled because several required properties are not present as they are board specific.

---
 arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 57 +++++++++++++++++++++++
 1 file changed, 57 insertions(+)
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi +8 -0
index 72d6496e88dd..cc6c2a81887a 100644
@@ -446,4 +446,61 @@ usb0: usb@6000000 {
 			dr_mode = "otg";
 		};
 	};
+x
+	mcasp0: mcasp@02b00000 {
+		compatible = "ti,am33xx-mcasp-audio";
+		reg = <0x0 0x02b00000 0x0 0x2000>,
+			<0x0 0x02b08000 0x0 0x1000>;
+		reg-names = "mpu","dat";
+		interrupts = <GIC_SPI 544 IRQ_TYPE_LEVEL_HIGH>,
+				<GIC_SPI 545 IRQ_TYPE_LEVEL_HIGH>;

arch/arm64/boot/dts/ti/k3-j7200-main.dtsi usb0: usb@6000000 { · line 466

Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi +10 -0
+		interrupt-names = "tx", "rx";
+
+		dmas = <&main_udmap 0xc400>, <&main_udmap 0x4400>;
+		dma-names = "tx", "rx";
+
+		clocks = <&k3_clks 174 40>;
+		clock-names = "fck";
+		power-domains = <&k3_pds 174 TI_SCI_PD_EXCLUSIVE>;
+
+		status = "disabled";

I see that there is inconsistent usage of "disabled" in our SoC.dts

Quoted 4 lines

Our generic rule has been set them to disabled in board.dtsi McASP and DSS for existing SoC dts do not follow this.. which is a tad confusing.. (considering that not even all uarts come out on every board and every uart needs pinmux to function..)

"keep them disabled because several required properties are not present as they are board specific."

In board file the enabled mcasp must be updated with options that is required for operation. Without those option the McASP can not be initialized.

I think we have been revisiting the very same discussion every time we have a new SoC with McASP...

Quoted 5 lines

Tero: Thoughts?

[...]

- Péter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

maintainer
#3 lore raw
Quoted 49 lines · Peter Ujfalusi
Quoted 38 lines · Nishanth Menon
Quoted 24 lines · Peter Ujfalusi

Add the nodes for McASP 0-2 and keep them disabled because several required properties are not present as they are board specific.

---
 arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 57 +++++++++++++++++++++++
 1 file changed, 57 insertions(+)
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi +8 -0
index 72d6496e88dd..cc6c2a81887a 100644
@@ -446,4 +446,61 @@ usb0: usb@6000000 {
 			dr_mode = "otg";
 		};
 	};
+x
+	mcasp0: mcasp@02b00000 {
+		compatible = "ti,am33xx-mcasp-audio";
+		reg = <0x0 0x02b00000 0x0 0x2000>,
+			<0x0 0x02b08000 0x0 0x1000>;
+		reg-names = "mpu","dat";
+		interrupts = <GIC_SPI 544 IRQ_TYPE_LEVEL_HIGH>,
+				<GIC_SPI 545 IRQ_TYPE_LEVEL_HIGH>;

arch/arm64/boot/dts/ti/k3-j7200-main.dtsi usb0: usb@6000000 { · line 466

Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi +10 -0
+		interrupt-names = "tx", "rx";
+
+		dmas = <&main_udmap 0xc400>, <&main_udmap 0x4400>;
+		dma-names = "tx", "rx";
+
+		clocks = <&k3_clks 174 40>;
+		clock-names = "fck";
+		power-domains = <&k3_pds 174 TI_SCI_PD_EXCLUSIVE>;
+
+		status = "disabled";

I see that there is inconsistent usage of "disabled" in our SoC.dts

Quoted 4 lines

Our generic rule has been set them to disabled in board.dtsi McASP and DSS for existing SoC dts do not follow this.. which is a tad confusing.. (considering that not even all uarts come out on every board and every uart needs pinmux to function..)

"keep them disabled because several required properties are not present as they are board specific."

Quoted 7 lines

In board file the enabled mcasp must be updated with options that is required for operation. Without those option the McASP can not be initialized.

I think we have been revisiting the very same discussion every time we have a new SoC with McASP...

Yep.. This doe'snt really follow the rest of the SoC definition. [1] came to mind. The McASP discussion is a variation in the debate of the same. I'd argue Serdes, or for that matter any IP that has a link to outside-the-SoC world has the same discussion point.

[1] https://patchwork.kernel.org/patch/9304575/

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
#4 lore raw
Quoted 54 lines · Nishanth Menon
Quoted 53 lines · Peter Ujfalusi
Quoted 38 lines · Nishanth Menon
Quoted 24 lines · Peter Ujfalusi

Add the nodes for McASP 0-2 and keep them disabled because several required properties are not present as they are board specific.

---
 arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 57 +++++++++++++++++++++++
 1 file changed, 57 insertions(+)
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi +8 -0
index 72d6496e88dd..cc6c2a81887a 100644
@@ -446,4 +446,61 @@ usb0: usb@6000000 {
 			dr_mode = "otg";
 		};
 	};
+x
+	mcasp0: mcasp@02b00000 {
+		compatible = "ti,am33xx-mcasp-audio";
+		reg = <0x0 0x02b00000 0x0 0x2000>,
+			<0x0 0x02b08000 0x0 0x1000>;
+		reg-names = "mpu","dat";
+		interrupts = <GIC_SPI 544 IRQ_TYPE_LEVEL_HIGH>,
+				<GIC_SPI 545 IRQ_TYPE_LEVEL_HIGH>;

arch/arm64/boot/dts/ti/k3-j7200-main.dtsi usb0: usb@6000000 { · line 466

Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi +10 -0
+		interrupt-names = "tx", "rx";
+
+		dmas = <&main_udmap 0xc400>, <&main_udmap 0x4400>;
+		dma-names = "tx", "rx";
+
+		clocks = <&k3_clks 174 40>;
+		clock-names = "fck";
+		power-domains = <&k3_pds 174 TI_SCI_PD_EXCLUSIVE>;
+
+		status = "disabled";

I see that there is inconsistent usage of "disabled" in our SoC.dts

Quoted 4 lines

Our generic rule has been set them to disabled in board.dtsi McASP and DSS for existing SoC dts do not follow this.. which is a tad confusing.. (considering that not even all uarts come out on every board and every uart needs pinmux to function..)

"keep them disabled because several required properties are not present as they are board specific."

In board file the enabled mcasp must be updated with options that is required for operation. Without those option the McASP can not be initialized.

Quoted 7 lines
Quoted 3 lines

I think we have been revisiting the very same discussion every time we have a new SoC with McASP...

Yep.. This doe'snt really follow the rest of the SoC definition. [1] came to mind. The McASP discussion is a variation in the debate of the same.

Right, saying status = "okay" to a node which is missing required properties (which can only be added by boards when the McASP is connected up) does not sound a good solution.
How should the SW handle that? Fail the device probe and return with -EINVAL or eat up the error and just probe with broken configuration. Since the peripheral is not used, the broken configuration will not cause much runtime errors as there will be no runtime use of the peripheral.

status of fail or fail-sss is not a good one either, their definition is:
"Indicates that the device is not operational. A serious error was detected in the device, and it is unlikely to become operational without repair."

The peripheral is fine, we are just trying to enable it without providing the needed properties.

Quoted 2 lines

I'd argue Serdes, or for that matter any IP that has a link to outside-the-SoC world has the same discussion point.

status = "disabled" is still the closest thing for everything which have external dependencies. There is not much point to enable an i2c bus without making sure that the signals are actually routed to the pins where they supposed to go.

Or from other pow: a board design is not based on what is _not_ connected to outside world, but you actually _connect_ or _enable_ certain peripherals to external components, connectors.

Quoted 2 lines

[1] https://patchwork.kernel.org/patch/9304575/

- Péter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

maintainer
#5 lore raw

Peter,

On 13:38-20201007, Peter Ujfalusi wrote:
[...]

Quoted 43 lines
Quoted 16 lines
Quoted 16 lines
Quoted 8 lines

Review

Quoted 1 line
(quoted diff) +1 -0
+		status = "disabled";

I see that there is inconsistent usage of "disabled" in our SoC.dts

Our generic rule has been set them to disabled in board.dtsi McASP and DSS for existing SoC dts do not follow this.. which is a tad confusing.. (considering that not even all uarts come out on every board and every uart needs pinmux to function..)

"keep them disabled because several required properties are not present as they are board specific."

In board file the enabled mcasp must be updated with options that is required for operation. Without those option the McASP can not be initialized.

Quoted 7 lines
Quoted 3 lines

I think we have been revisiting the very same discussion every time we have a new SoC with McASP...

Yep.. This doe'snt really follow the rest of the SoC definition. [1] came to mind. The McASP discussion is a variation in the debate of the same.

Right, saying status = "okay" to a node which is missing required properties (which can only be added by boards when the McASP is connected up) does not sound a good solution.
How should the SW handle that? Fail the device probe and return with -EINVAL or eat up the error and just probe with broken configuration. Since the peripheral is not used, the broken configuration will not cause much runtime errors as there will be no runtime use of the peripheral.

status of fail or fail-sss is not a good one either, their definition is:
"Indicates that the device is not operational. A serious error was detected in the device, and it is unlikely to become operational without repair."

The peripheral is fine, we are just trying to enable it without providing the needed properties.

Quoted 2 lines

I'd argue Serdes, or for that matter any IP that has a link to outside-the-SoC world has the same discussion point.

Quoted 8 lines

status = "disabled" is still the closest thing for everything which have external dependencies. There is not much point to enable an i2c bus without making sure that the signals are actually routed to the pins where they supposed to go.

Or from other pow: a board design is not based on what is _not_ connected to outside world, but you actually _connect_ or _enable_ certain peripherals to external components, connectors.

OK, I will buy the argument that the current status thingy is a bit overloaded and does'nt imply the correct state we need it to imply with "fail-sss" either - I remember an argument for "fail-incomplete", but that never happened anyways.

Lets add this argument to the commit message and repost after testing on 5.10-rc1 please?

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
#6 lore raw
Quoted 49 lines · Nishanth Menon

On 13:38-20201007, Peter Ujfalusi wrote:
[...]

Quoted 47 lines
Quoted 16 lines
Quoted 16 lines
Quoted 8 lines

Review

Quoted 1 line
(quoted diff) +1 -0
+		status = "disabled";

I see that there is inconsistent usage of "disabled" in our SoC.dts

Our generic rule has been set them to disabled in board.dtsi McASP and DSS for existing SoC dts do not follow this.. which is a tad confusing.. (considering that not even all uarts come out on every board and every uart needs pinmux to function..)

"keep them disabled because several required properties are not present as they are board specific."

In board file the enabled mcasp must be updated with options that is required for operation. Without those option the McASP can not be initialized.

Quoted 7 lines
Quoted 3 lines

I think we have been revisiting the very same discussion every time we have a new SoC with McASP...

Yep.. This doe'snt really follow the rest of the SoC definition. [1] came to mind. The McASP discussion is a variation in the debate of the same.

Right, saying status = "okay" to a node which is missing required properties (which can only be added by boards when the McASP is connected up) does not sound a good solution.
How should the SW handle that? Fail the device probe and return with -EINVAL or eat up the error and just probe with broken configuration. Since the peripheral is not used, the broken configuration will not cause much runtime errors as there will be no runtime use of the peripheral.

status of fail or fail-sss is not a good one either, their definition is:
"Indicates that the device is not operational. A serious error was detected in the device, and it is unlikely to become operational without repair."

The peripheral is fine, we are just trying to enable it without providing the needed properties.

Quoted 2 lines

I'd argue Serdes, or for that matter any IP that has a link to outside-the-SoC world has the same discussion point.

status = "disabled" is still the closest thing for everything which have external dependencies. There is not much point to enable an i2c bus without making sure that the signals are actually routed to the pins where they supposed to go.

There is one reason to keep using the default status = "okay", for i2c Linux can properly idle the device on boot without dependencies to a certain boot loader version.

Quoted 11 lines
Quoted 3 lines

Or from other pow: a board design is not based on what is _not_ connected to outside world, but you actually _connect_ or _enable_ certain peripherals to external components, connectors.

OK, I will buy the argument that the current status thingy is a bit overloaded and does'nt imply the correct state we need it to imply with "fail-sss" either - I remember an argument for "fail-incomplete", but that never happened anyways.

Lets add this argument to the commit message and repost after testing on 5.10-rc1 please?

We should use status = "disabled" when the hardware is not accessible to the SoC. That goes for things like secure world devices, and hardware that relies on a missing external clock for example. For other things we should just stick to the default which "okay" :)

Regards,

Tony

maintainer
#7 lore raw

Hi Tony,

Thanks for joining the discussion.

Quoted 46 lines · Tony Lindgren
Quoted 45 lines · Nishanth Menon

On 13:38-20201007, Peter Ujfalusi wrote:
[...]

Quoted 43 lines
Quoted 16 lines
Quoted 16 lines
Quoted 8 lines

Review

Quoted 1 line
(quoted diff) +1 -0
+		status = "disabled";

I see that there is inconsistent usage of "disabled" in our SoC.dts

Our generic rule has been set them to disabled in board.dtsi McASP and DSS for existing SoC dts do not follow this.. which is a tad confusing.. (considering that not even all uarts come out on every board and every uart needs pinmux to function..)

"keep them disabled because several required properties are not present as they are board specific."

In board file the enabled mcasp must be updated with options that is required for operation. Without those option the McASP can not be initialized.

Quoted 7 lines
Quoted 3 lines

I think we have been revisiting the very same discussion every time we have a new SoC with McASP...

Yep.. This doe'snt really follow the rest of the SoC definition. [1] came to mind. The McASP discussion is a variation in the debate of the same.

Right, saying status = "okay" to a node which is missing required properties (which can only be added by boards when the McASP is connected up) does not sound a good solution.
How should the SW handle that? Fail the device probe and return with -EINVAL or eat up the error and just probe with broken configuration. Since the peripheral is not used, the broken configuration will not cause much runtime errors as there will be no runtime use of the peripheral.

status of fail or fail-sss is not a good one either, their definition is:
"Indicates that the device is not operational. A serious error was detected in the device, and it is unlikely to become operational without repair."

The peripheral is fine, we are just trying to enable it without providing the needed properties.

Quoted 2 lines

I'd argue Serdes, or for that matter any IP that has a link to outside-the-SoC world has the same discussion point.

Quoted 8 lines
Quoted 4 lines
Quoted 4 lines

status = "disabled" is still the closest thing for everything which have external dependencies. There is not much point to enable an i2c bus without making sure that the signals are actually routed to the pins where they supposed to go.

There is one reason to keep using the default status = "okay", for i2c Linux can properly idle the device on boot without dependencies to a certain boot loader version.

Yes, but in K3 architecture (and I suspect in many SCMI like architectures involving heterogenous systems), Linux does'nt even own the system power management of peripherals at all. In fact,
we dont even see all the SoC components. if a particular I2C is being used by some other processor, then that node is disabled for linux.

So, I am wondering if the argument of "status = okay" helps Linux PM idle unused devices holds good on architectures where System PM is not owned by Linux. That (system level PM) is not really Linux's job anymore.

Quoted 9 lines
Quoted 9 lines
Quoted 3 lines

Or from other pow: a board design is not based on what is _not_ connected to outside world, but you actually _connect_ or _enable_ certain peripherals to external components, connectors.

OK, I will buy the argument that the current status thingy is a bit overloaded and does'nt imply the correct state we need it to imply with "fail-sss" either - I remember an argument for "fail-incomplete", but that never happened anyways.

Quoted 5 lines
Quoted 2 lines

Lets add this argument to the commit message and repost after testing on 5.10-rc1 please?

We should use status = "disabled" when the hardware is not accessible to the SoC. That goes for things like secure world devices, and hardware

I'd argue 'not accessible to Linux instance' (considering how visibility of peripherals are constrained further in VMs)

Quoted 2 lines

that relies on a missing external clock for example. For other things we should just stick to the default which "okay" :)

ok, the debate here (and looks like the DSS series as well[1]) is what do you do when the there are not enough properties for a valid device node. Do you still do status="okay" and let the driver fail ? The driver folks are arguing, they don't want to do that since it is an incomplete description of the hardware..

[1]
https://lore.kernel.org/linux-arm-kernel/[email protected]/

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
#8 lore raw
In reply to Tony Lindgren
Quoted 46 lines · Tony Lindgren
Quoted 45 lines · Nishanth Menon

On 13:38-20201007, Peter Ujfalusi wrote:
[...]

Quoted 43 lines
Quoted 16 lines
Quoted 16 lines
Quoted 8 lines

Review

Quoted 1 line
(quoted diff) +1 -0
+		status = "disabled";

I see that there is inconsistent usage of "disabled" in our SoC.dts

Our generic rule has been set them to disabled in board.dtsi McASP and DSS for existing SoC dts do not follow this.. which is a tad confusing.. (considering that not even all uarts come out on every board and every uart needs pinmux to function..)

"keep them disabled because several required properties are not present as they are board specific."

In board file the enabled mcasp must be updated with options that is required for operation. Without those option the McASP can not be initialized.

Quoted 7 lines
Quoted 3 lines

I think we have been revisiting the very same discussion every time we have a new SoC with McASP...

Yep.. This doe'snt really follow the rest of the SoC definition. [1] came to mind. The McASP discussion is a variation in the debate of the same.

Right, saying status = "okay" to a node which is missing required properties (which can only be added by boards when the McASP is connected up) does not sound a good solution.
How should the SW handle that? Fail the device probe and return with -EINVAL or eat up the error and just probe with broken configuration. Since the peripheral is not used, the broken configuration will not cause much runtime errors as there will be no runtime use of the peripheral.

status of fail or fail-sss is not a good one either, their definition is:
"Indicates that the device is not operational. A serious error was detected in the device, and it is unlikely to become operational without repair."

The peripheral is fine, we are just trying to enable it without providing the needed properties.

Quoted 2 lines

I'd argue Serdes, or for that matter any IP that has a link to outside-the-SoC world has the same discussion point.

Quoted 8 lines
Quoted 4 lines
Quoted 4 lines

status = "disabled" is still the closest thing for everything which have external dependencies. There is not much point to enable an i2c bus without making sure that the signals are actually routed to the pins where they supposed to go.

There is one reason to keep using the default status = "okay", for i2c Linux can properly idle the device on boot without dependencies to a certain boot loader version.

Right, but I would expect board files to disable not used peripherals, peripherals which is not connected up in the board. Including i2c buses.

Quoted 9 lines
Quoted 9 lines
Quoted 3 lines

Or from other pow: a board design is not based on what is _not_ connected to outside world, but you actually _connect_ or _enable_ certain peripherals to external components, connectors.

OK, I will buy the argument that the current status thingy is a bit overloaded and does'nt imply the correct state we need it to imply with "fail-sss" either - I remember an argument for "fail-incomplete", but that never happened anyways.

Quoted 7 lines
Quoted 2 lines

Lets add this argument to the commit message and repost after testing on 5.10-rc1 please?

We should use status = "disabled" when the hardware is not accessible to the SoC. That goes for things like secure world devices, and hardware that relies on a missing external clock for example. For other things we should just stick to the default which "okay" :)

Even for peripherals which needs board specific properties and those properties are mandatory for the IP to be operational and usable?

The McASP bindings demands several must be present properties (tdm-slots, slot direction for example) and they are coming from the board design.
Board files will disable all unused McASPs, they should. Imho the board dts file represents the board design and the board design is to _connect_ peripherals and not _disconnect_ them.
Why would a board file should be in charge to disable what is not connected/used?

iow: what is the difference of a peripheral disabled in dtsi over a peripheral disabled in board dts file?

Quoted 5 lines

Regards,

Tony

- Péter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki