ARM: dts: disable PCIe for SD5v1 board
Subsystems (2)
PATCH 1/1 ARM: dts: disable PCIe for SD5v1 board
Disable PCIe for SD5v1 board, because there is no PCIe slot on SD5v1 board.
---
Tested on SD5v1 board.
arch/arm/boot/dts/exynos5440-sd5v1.dts | 7 +++++++ 1 file changed, 7 insertions(+)
arch/arm/boot/dts/exynos5440-sd5v1.dts +7 -0
@@ -36,4 +36,11 @@ status = "disabled"; }; + pcie@290000 { + status = "disabled"; + }; + + pcie@2a0000 { + status = "disabled"; + }; };
Signature · 1 line
1.7.10.4
Quoted 29 lines · Jingoo Han
Disable PCIe for SD5v1 board, because there is no PCIe slot on SD5v1 board.
Signed-off-by Jingoo Han <[email protected]>---
Tested on SD5v1 board.arch/arm/boot/dts/exynos5440-sd5v1.dts | 7 +++++++ 1 file changed, 7 insertions(+)arch/arm/boot/dts/exynos5440-sd5v1.dts +7
-1@@ -36,4 +36,11 @@ status = "disabled"; }; + pcie@290000 { + status = "disabled"; + }; + + pcie@2a0000 { + status = "disabled"; + }; }; --
Quoted 1 line
1.7.10.4
OK, applied.
Thanks,
Kukjin
Quoted 16 lines · Jingoo Han
Disable PCIe for SD5v1 board, because there is no PCIe slot on SD5v1 board.
Signed-off-by Jingoo Han <[email protected]>---
Tested on SD5v1 board.arch/arm/boot/dts/exynos5440-sd5v1.dts | 7 +++++++ 1 file changed, 7 insertions(+)arch/arm/boot/dts/exynos5440-sd5v1.dts +0
-0@@ -36,4 +36,11 @@ status = "disabled";
arch/arm/boot/dts/exynos5440-sd5v1.dts line 46
Quoted 10 lines
arch/arm/boot/dts/exynos5440-sd5v1.dts +7
-0}; + pcie@290000 { + status = "disabled"; + }; + + pcie@2a0000 { + status = "disabled"; + }; };
Usually IP blocks like these are always left disabled in the dtsi, and explicitly _enabled_ in the DTS on boards that make use of that part of the chip.
So the real solution here should be to move the disabling to the 5440 .dtsi instead.
-Olof
Quoted 19 lines · Olof Johansson
Quoted 18 lines · Jingoo Han
Disable PCIe for SD5v1 board, because there is no PCIe slot on SD5v1 board.
Signed-off-by Jingoo Han <[email protected]>---
Tested on SD5v1 board.arch/arm/boot/dts/exynos5440-sd5v1.dts | 7 +++++++ 1 file changed, 7 insertions(+)arch/arm/boot/dts/exynos5440-sd5v1.dts +0
-0@@ -36,4 +36,11 @@ status = "disabled"; };
Quoted 14 lines
arch/arm/boot/dts/exynos5440-sd5v1.dts line 46
Quoted 8 lines
arch/arm/boot/dts/exynos5440-sd5v1.dts +7
-0+ pcie@290000 { + status = "disabled"; + }; + + pcie@2a0000 { + status = "disabled"; + }; };Usually IP blocks like these are always left disabled in the dtsi, and explicitly _enabled_ in the DTS on boards that make use of that part of the chip.
So the real solution here should be to move the disabling to the 5440 .dtsi instead.
OK, right.
Thank you for your guidance.
Then, do you mean the following?
If it is right, I will send the v2 patch.
./arch/arm/boot/dts/exynos5440.dtsi
pcie@290000 {
.....
status = "disabled";
};
pcie@2a0000 {
.....
status = "disabled";
};./arch/arm/boot/dts/exynos5440-ssdk5440.dts
pcie@290000 {
.....
status = "okay";
};
pcie@2a0000 {
.....
status = "okay";
};Best regards,
Jingoo Han
Quoted 35 lines · Jingoo Han
Quoted 19 lines · Olof Johansson
Quoted 18 lines · Jingoo Han
Disable PCIe for SD5v1 board, because there is no PCIe slot on SD5v1 board.
Signed-off-by Jingoo Han <[email protected]>---
Tested on SD5v1 board.arch/arm/boot/dts/exynos5440-sd5v1.dts | 7 +++++++ 1 file changed, 7 insertions(+)arch/arm/boot/dts/exynos5440-sd5v1.dts +0
-0@@ -36,4 +36,11 @@ status = "disabled"; };Quoted 14 lines
arch/arm/boot/dts/exynos5440-sd5v1.dts line 46
Quoted 8 lines
arch/arm/boot/dts/exynos5440-sd5v1.dts +7
-0+ pcie@290000 { + status = "disabled"; + }; + + pcie@2a0000 { + status = "disabled"; + }; };Usually IP blocks like these are always left disabled in the dtsi, and explicitly _enabled_ in the DTS on boards that make use of that part of the chip.
So the real solution here should be to move the disabling to the 5440 .dtsi instead.
Quoted 5 lines
OK, right.
Thank you for your guidance.Then, do you mean the following?
If it is right, I will send the v2 patch.
Yes, exactly!
-Olof
Quoted 36 lines · Olof Johansson
Quoted 35 lines · Jingoo Han
Quoted 33 lines · Olof Johansson
Quoted 16 lines · Jingoo Han
Disable PCIe for SD5v1 board, because there is no PCIe slot on SD5v1 board.
Signed-off-by Jingoo Han<[email protected]>---
Tested on SD5v1 board.arch/arm/boot/dts/exynos5440-sd5v1.dts | 7 +++++++ 1 file changed, 7 insertions(+)arch/arm/boot/dts/exynos5440-sd5v1.dts +0
-0@@ -36,4 +36,11 @@ status = "disabled";arch/arm/boot/dts/exynos5440-sd5v1.dts line 46
Quoted 10 lines
arch/arm/boot/dts/exynos5440-sd5v1.dts +7
-0}; + pcie@290000 { + status = "disabled"; + }; + + pcie@2a0000 { + status = "disabled"; + }; };Usually IP blocks like these are always left disabled in the dtsi, and explicitly _enabled_ in the DTS on boards that make use of that part of the chip.
So the real solution here should be to move the disabling to the 5440 .dtsi instead.
Quoted 8 lines
Quoted 5 lines
OK, right.
Thank you for your guidance.Then, do you mean the following?
If it is right, I will send the v2 patch.Yes, exactly!
Hmm...I thought both ways (#1 disabling something in soc dt, enabling in board dt if required, #2 enabling in soc dt, disabling in board dt if required) are possible but I have no strong objection with your suggestion. In addition, just one way is more clear to us :)
OK, I will keep the way for Samsung stuff.
Thanks,
Kukjin
Quoted 54 lines · Kukjin Kim
Quoted 43 lines · Olof Johansson
Quoted 41 lines · Jingoo Han
Quoted 37 lines · Olof Johansson
Quoted 18 lines · Jingoo Han
Disable PCIe for SD5v1 board, because there is no PCIe slot on SD5v1 board.
Signed-off-by Jingoo Han<[email protected]>---
Tested on SD5v1 board.arch/arm/boot/dts/exynos5440-sd5v1.dts | 7 +++++++ 1 file changed, 7 insertions(+)arch/arm/boot/dts/exynos5440-sd5v1.dts +0
-0@@ -36,4 +36,11 @@ status = "disabled";arch/arm/boot/dts/exynos5440-sd5v1.dts line 46
Quoted 10 lines
arch/arm/boot/dts/exynos5440-sd5v1.dts +7
-0}; + pcie@290000 { + status = "disabled"; + }; + + pcie@2a0000 { + status = "disabled"; + }; };Usually IP blocks like these are always left disabled in the dtsi, and explicitly _enabled_ in the DTS on boards that make use of that part of the chip.
So the real solution here should be to move the disabling to the 5440 .dtsi instead.Quoted 9 lines
Quoted 5 lines
OK, right.
Thank you for your guidance.Then, do you mean the following?
If it is right, I will send the v2 patch.Yes, exactly!
Quoted 6 lines
Hmm...I thought both ways (#1 disabling something in soc dt, enabling in board dt if required, #2 enabling in soc dt, disabling in board dt if required) are possible but I have no strong objection with your suggestion. In addition, just one way is more clear to us :)
OK, I will keep the way for Samsung stuff.
It varies, in some cases it makes sense to make the default enabled and just disable where needed, for example for entirely on-chip IP blocks.
For things like PCI-e, where different board manufacturers might choose to use it or not, it seems that keeping disabled by default is sensible.
-Olof