linux-staging.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] staging: mt7621-dts: fix some pcie node properties
@ 2021-05-06 17:07 Sergio Paracuellos
  2021-05-06 17:07 ` [PATCH 1/2] staging: mt7621-dts: remove 'bug-range' property Sergio Paracuellos
  2021-05-06 17:07 ` [PATCH 2/2] staging: mt7621-dts: add missing device_type in pcie root ports Sergio Paracuellos
  0 siblings, 2 replies; 3+ messages in thread
From: Sergio Paracuellos @ 2021-05-06 17:07 UTC (permalink / raw)
  To: linux-staging; +Cc: gregkh, neil, ilya.lipnitskiy

Hi,

Some minor changes in pcie node to be compliant with 'pci-bus.yaml'
schema definition.

Best regards,
    Sergio Paracuellos

Sergio Paracuellos (2):
  staging: mt7621-dts: remove 'bug-range' property
  staging: mt7621-dts: add missing device_type in pcie root ports

 drivers/staging/mt7621-dts/mt7621.dtsi | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] staging: mt7621-dts: remove 'bug-range' property
  2021-05-06 17:07 [PATCH 0/2] staging: mt7621-dts: fix some pcie node properties Sergio Paracuellos
@ 2021-05-06 17:07 ` Sergio Paracuellos
  2021-05-06 17:07 ` [PATCH 2/2] staging: mt7621-dts: add missing device_type in pcie root ports Sergio Paracuellos
  1 sibling, 0 replies; 3+ messages in thread
From: Sergio Paracuellos @ 2021-05-06 17:07 UTC (permalink / raw)
  To: linux-staging; +Cc: gregkh, neil, ilya.lipnitskiy

Property 'bus-range' when values are the default are
not necessary to be defined. Hence, remove all of them.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/mt7621-dts/mt7621.dtsi | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/staging/mt7621-dts/mt7621.dtsi b/drivers/staging/mt7621-dts/mt7621.dtsi
index 001ff8f51033..a208fa4b8332 100644
--- a/drivers/staging/mt7621-dts/mt7621.dtsi
+++ b/drivers/staging/mt7621-dts/mt7621.dtsi
@@ -489,7 +489,6 @@ pcie: pcie@1e140000 {
 
 		device_type = "pci";
 
-		bus-range = <0 255>;
 		ranges = <0x02000000 0 0x00000000 0x60000000 0 0x10000000>, /* pci memory */
 			 <0x01000000 0 0x00000000 0x1e160000 0 0x00010000>; /* io space */
 
@@ -520,7 +519,6 @@ pcie@0,0 {
 			interrupt-map-mask = <0 0 0 0>;
 			interrupt-map = <0 0 0 0 &gic GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>;
 			ranges;
-			bus-range = <0x00 0xff>;
 		};
 
 		pcie@1,0 {
@@ -531,7 +529,6 @@ pcie@1,0 {
 			interrupt-map-mask = <0 0 0 0>;
 			interrupt-map = <0 0 0 0 &gic GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>;
 			ranges;
-			bus-range = <0x00 0xff>;
 		};
 
 		pcie@2,0 {
@@ -542,7 +539,6 @@ pcie@2,0 {
 			interrupt-map-mask = <0 0 0 0>;
 			interrupt-map = <0 0 0 0 &gic GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
 			ranges;
-			bus-range = <0x00 0xff>;
 		};
 	};
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] staging: mt7621-dts: add missing device_type in pcie root ports
  2021-05-06 17:07 [PATCH 0/2] staging: mt7621-dts: fix some pcie node properties Sergio Paracuellos
  2021-05-06 17:07 ` [PATCH 1/2] staging: mt7621-dts: remove 'bug-range' property Sergio Paracuellos
@ 2021-05-06 17:07 ` Sergio Paracuellos
  1 sibling, 0 replies; 3+ messages in thread
From: Sergio Paracuellos @ 2021-05-06 17:07 UTC (permalink / raw)
  To: linux-staging; +Cc: gregkh, neil, ilya.lipnitskiy

According to the YAML schema 'pci-bus.yaml' the 'device_type'
property is mandatory for all pcie root ports. Hence add it.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/mt7621-dts/mt7621.dtsi | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/staging/mt7621-dts/mt7621.dtsi b/drivers/staging/mt7621-dts/mt7621.dtsi
index a208fa4b8332..ea0a803ac66f 100644
--- a/drivers/staging/mt7621-dts/mt7621.dtsi
+++ b/drivers/staging/mt7621-dts/mt7621.dtsi
@@ -515,6 +515,7 @@ pcie@0,0 {
 			reg = <0x0000 0 0 0 0>;
 			#address-cells = <3>;
 			#size-cells = <2>;
+			device_type = "pci";
 			#interrupt-cells = <1>;
 			interrupt-map-mask = <0 0 0 0>;
 			interrupt-map = <0 0 0 0 &gic GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>;
@@ -525,6 +526,7 @@ pcie@1,0 {
 			reg = <0x0800 0 0 0 0>;
 			#address-cells = <3>;
 			#size-cells = <2>;
+			device_type = "pci";
 			#interrupt-cells = <1>;
 			interrupt-map-mask = <0 0 0 0>;
 			interrupt-map = <0 0 0 0 &gic GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>;
@@ -535,6 +537,7 @@ pcie@2,0 {
 			reg = <0x1000 0 0 0 0>;
 			#address-cells = <3>;
 			#size-cells = <2>;
+			device_type = "pci";
 			#interrupt-cells = <1>;
 			interrupt-map-mask = <0 0 0 0>;
 			interrupt-map = <0 0 0 0 &gic GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-06 17:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-06 17:07 [PATCH 0/2] staging: mt7621-dts: fix some pcie node properties Sergio Paracuellos
2021-05-06 17:07 ` [PATCH 1/2] staging: mt7621-dts: remove 'bug-range' property Sergio Paracuellos
2021-05-06 17:07 ` [PATCH 2/2] staging: mt7621-dts: add missing device_type in pcie root ports Sergio Paracuellos

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).