Skip to contentSkip to conversation

dt-bindings: tegra: Remove 0, prefix from unit-addresses

PATCH In review Thierry Reding 3 participants 7 messages Apr 11, 2016 – Apr 12, 2016 4 messages not in the archive

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

PATCH 1/2 dt-bindings: tegra: Remove 0, prefix from unit-addresses

From: Thierry Reding <[email protected]>

When Tegra124 support was first merged the unit-addresses of all devices were listed with a "0," prefix to encode the reg property's second cell. It turns out that this notation is not correct, and the "," separator is only used to separate fields in the unit address (such as the device and function number in PCI devices), not individual cells for addresses with more than one cell.

---
 Documentation/devicetree/bindings/clock/nvidia,tegra124-dfll.txt    | 2 +-
 Documentation/devicetree/bindings/gpu/nvidia,gk20a.txt              | 2 +-
 .../devicetree/bindings/memory-controllers/nvidia,tegra-mc.txt      | 6 +++---
 Documentation/devicetree/bindings/memory-controllers/tegra-emc.txt  | 4 ++--
 .../devicetree/bindings/pinctrl/nvidia,tegra124-xusb-padctl.txt     | 6 +++---
 Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.txt      | 2 +-
 Documentation/devicetree/bindings/thermal/tegra-soctherm.txt        | 2 +-
 7 files changed, 12 insertions(+), 12 deletions(-)
Documentation/devicetree/bindings/clock/nvidia,tegra124-dfll.txt +1 -1
index ee7e5fd4a50b..63f9d8277d48 100644
@@ -50,7 +50,7 @@ Required properties for I2C mode:
 
 Example:
 
-clock@0,70110000 {
+clock@70110000 {
         compatible = "nvidia,tegra124-dfll";
         reg = <0 0x70110000 0 0x100>, /* DFLL control */
               <0 0x70110000 0 0x100>, /* I2C output control */
Documentation/devicetree/bindings/gpu/nvidia,gk20a.txt +1 -1
index 23bfe8e1f7cc..9d47a2c25e2d 100644
@@ -26,7 +26,7 @@ Required properties:
 
 Example:
 
-	gpu@0,57000000 {
+	gpu@57000000 {
 		compatible = "nvidia,gk20a";
 		reg = <0x0 0x57000000 0x0 0x01000000>,
 		      <0x0 0x58000000 0x0 0x01000000>;
Documentation/devicetree/bindings/memory-controllers/nvidia,tegra-mc.txt +3 -3
index 3338a2834ad7..8dbe47013c2b 100644
@@ -61,7 +61,7 @@ specified, according to the board documentation:
 Example SoC include file:
 
 / {
-	mc: memory-controller@0,70019000 {
+	mc: memory-controller@70019000 {
 		compatible = "nvidia,tegra124-mc";
 		reg = <0x0 0x70019000 0x0 0x1000>;
 		clocks = <&tegra_car TEGRA124_CLK_MC>;
@@ -72,7 +72,7 @@ Example SoC include file:
 		#iommu-cells = <1>;
 	};
 
-	sdhci@0,700b0000 {
+	sdhci@700b0000 {
 		compatible = "nvidia,tegra124-sdhci";
 		...
 		iommus = <&mc TEGRA_SWGROUP_SDMMC1A>;
@@ -82,7 +82,7 @@ Example SoC include file:
 Example board file:
 
 / {
-	memory-controller@0,70019000 {
+	memory-controller@70019000 {
 		emc-timings-3 {
 			nvidia,ram-code = <3>;
 
Documentation/devicetree/bindings/memory-controllers/tegra-emc.txt +2 -2
index b59c625d6336..ba0bc3f12419 100644
@@ -190,7 +190,7 @@ be specified, according to the board documentation:
 Example SoC include file:
 
 / {
-	emc@0,7001b000 {
+	emc@7001b000 {
 		compatible = "nvidia,tegra124-emc";
 		reg = <0x0 0x7001b000 0x0 0x1000>;
 
@@ -201,7 +201,7 @@ Example SoC include file:
 Example board file:
 
 / {
-	emc@0,7001b000 {
+	emc@7001b000 {
 		emc-timings-3 {
 			nvidia,ram-code = <3>;
 
Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-xusb-padctl.txt +3 -3
index 30676ded85bb..9c8ddd547a99 100644
@@ -79,7 +79,7 @@ Example:
 SoC file extract:
 -----------------
 
-	padctl@0,7009f000 {
+	padctl@7009f000 {
 		compatible = "nvidia,tegra124-xusb-padctl";
 		reg = <0x0 0x7009f000 0x0 0x1000>;
 		resets = <&tegra_car 142>;
@@ -91,7 +91,7 @@ SoC file extract:
 Board file extract:
 -------------------
 
-	pcie-controller@0,01003000 {
+	pcie-controller@01003000 {
 		...
 
 		phys = <&padctl 0>;
@@ -102,7 +102,7 @@ Board file extract:
 
 	...
 
-	padctl: padctl@0,7009f000 {
+	padctl: padctl@7009f000 {
 		pinctrl-0 = <&padctl_default>;
 		pinctrl-names = "default";
 
Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.txt +1 -1
index 275c6ea356f6..44d27456e8a4 100644
@@ -15,7 +15,7 @@ Required properties:
 
 Example:
 
-hda@0,70030000 {
+hda@70030000 {
 	compatible = "nvidia,tegra124-hda", "nvidia,tegra30-hda";
 	reg = <0x0 0x70030000 0x0 0x10000>;
 	interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
Documentation/devicetree/bindings/thermal/tegra-soctherm.txt +1 -1
index 351a7376baa8..edebfa0a985e 100644
@@ -33,7 +33,7 @@ than it, the system will be shutdown or reset by hardware.
 
 Example :
 
-	soctherm@0,700e2000 {
+	soctherm@700e2000 {
 		compatible = "nvidia,tegra124-soctherm";
 		reg = <0x0 0x700e2000 0x0 0x1000>;
 		interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
Signature · 1 line
2.8.0

A message that is not in the archive (sent off-list or not yet received): 1460383086-26957-1-git-send-email-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#2 lore raw

PATCH 2/2 dt-bindings: tegra: Rename some bindings for consistency

From: Thierry Reding <[email protected]>

Device tree binding for NVIDIA Tegra have traditionally carried the "nvidia," vendor prefix in the filename. A couple of odd ones don't, so fix them up for consistency.

---
 .../devicetree/bindings/ata/nvidia,tegra-ahci.txt  |  32 ++
 .../devicetree/bindings/ata/tegra-sata.txt         |  32 --
 .../bindings/dma/nvidia,tegra20-apbdma.txt         |  44 +++
 .../devicetree/bindings/dma/tegra20-apbdma.txt     |  44 ---
 .../memory-controllers/nvidia,tegra-emc.txt        | 374 +++++++++++++++++++++
 .../bindings/memory-controllers/tegra-emc.txt      | 374 ---------------------
 .../bindings/thermal/nvidia,tegra-soctherm.txt     |  67 ++++
 .../devicetree/bindings/thermal/tegra-soctherm.txt |  67 ----
 8 files changed, 517 insertions(+), 517 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/ata/nvidia,tegra-ahci.txt
 delete mode 100644 Documentation/devicetree/bindings/ata/tegra-sata.txt
 create mode 100644 Documentation/devicetree/bindings/dma/nvidia,tegra20-apbdma.txt
 delete mode 100644 Documentation/devicetree/bindings/dma/tegra20-apbdma.txt
 create mode 100644 Documentation/devicetree/bindings/memory-controllers/nvidia,tegra-emc.txt
 delete mode 100644 Documentation/devicetree/bindings/memory-controllers/tegra-emc.txt
 create mode 100644 Documentation/devicetree/bindings/thermal/nvidia,tegra-soctherm.txt
 delete mode 100644 Documentation/devicetree/bindings/thermal/tegra-soctherm.txt
Documentation/devicetree/bindings/ata/nvidia,tegra-ahci.txt new file +32 -0
new file mode 100644
index 000000000000..66c83c3e8915
@@ -0,0 +1,32 @@
+Tegra124 SoC SATA AHCI controller
+
+Required properties :
+- compatible : For Tegra124, must contain "nvidia,tegra124-ahci".  Otherwise,
+  must contain '"nvidia,<chip>-ahci", "nvidia,tegra124-ahci"', where <chip>
+  is tegra132.
+- reg : Should contain 2 entries:
+  - AHCI register set (SATA BAR5)
+  - SATA register set
+- interrupts : Defines the interrupt used by SATA
+- clocks : Must contain an entry for each entry in clock-names.
+  See ../clocks/clock-bindings.txt for details.
+- clock-names : Must include the following entries:
+  - sata
+  - sata-oob
+  - cml1
+  - pll_e
+- resets : Must contain an entry for each entry in reset-names.
+  See ../reset/reset.txt for details.
+- reset-names : Must include the following entries:
+  - sata
+  - sata-oob
+  - sata-cold
+- phys : Must contain an entry for each entry in phy-names.
+  See ../phy/phy-bindings.txt for details.
+- phy-names : Must include the following entries:
+  - sata-phy : XUSB PADCTL SATA PHY
+- hvdd-supply : Defines the SATA HVDD regulator
+- vddio-supply : Defines the SATA VDDIO regulator
+- avdd-supply : Defines the SATA AVDD regulator
+- target-5v-supply : Defines the SATA 5V power regulator
+- target-12v-supply : Defines the SATA 12V power regulator
Documentation/devicetree/bindings/ata/tegra-sata.txt deleted +0 -32
deleted file mode 100644
index 66c83c3e8915..000000000000
@@ -1,32 +0,0 @@
-Tegra124 SoC SATA AHCI controller
-
-Required properties :
-- compatible : For Tegra124, must contain "nvidia,tegra124-ahci".  Otherwise,
-  must contain '"nvidia,<chip>-ahci", "nvidia,tegra124-ahci"', where <chip>
-  is tegra132.
-- reg : Should contain 2 entries:
-  - AHCI register set (SATA BAR5)
-  - SATA register set
-- interrupts : Defines the interrupt used by SATA
-- clocks : Must contain an entry for each entry in clock-names.
-  See ../clocks/clock-bindings.txt for details.
-- clock-names : Must include the following entries:
-  - sata
-  - sata-oob
-  - cml1
-  - pll_e
-- resets : Must contain an entry for each entry in reset-names.
-  See ../reset/reset.txt for details.
-- reset-names : Must include the following entries:
-  - sata
-  - sata-oob
-  - sata-cold
-- phys : Must contain an entry for each entry in phy-names.
-  See ../phy/phy-bindings.txt for details.
-- phy-names : Must include the following entries:
-  - sata-phy : XUSB PADCTL SATA PHY
-- hvdd-supply : Defines the SATA HVDD regulator
-- vddio-supply : Defines the SATA VDDIO regulator
-- avdd-supply : Defines the SATA AVDD regulator
-- target-5v-supply : Defines the SATA 5V power regulator
-- target-12v-supply : Defines the SATA 12V power regulator
Documentation/devicetree/bindings/dma/nvidia,tegra20-apbdma.txt new file +44 -0

44 lines not on this page · raw message

Documentation/devicetree/bindings/dma/tegra20-apbdma.txt deleted +0 -44

44 lines not on this page · raw message

Documentation/devicetree/bindings/memory-controllers/nvidia,tegra-emc.txt new file +374 -0

374 lines not on this page · raw message

Documentation/devicetree/bindings/memory-controllers/tegra-emc.txt deleted +0 -374

374 lines not on this page · raw message

Documentation/devicetree/bindings/thermal/nvidia,tegra-soctherm.txt new file +67 -0

67 lines not on this page · raw message

Documentation/devicetree/bindings/thermal/tegra-soctherm.txt deleted +0 -67

67 lines not on this page · raw message

Signature · 1 line
2.8.0

A message that is not in the archive (sent off-list or not yet received): 1460383086-26957-2-git-send-email-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#4 lore raw

Re: [PATCH 2/2] dt-bindings: tegra: Rename some bindings for consistency

Quoted 17 lines · Thierry Reding

From: Thierry Reding <[email protected]>

Device tree binding for NVIDIA Tegra have traditionally carried the "nvidia," vendor prefix in the filename. A couple of odd ones don't, so fix them up for consistency.

---
  .../devicetree/bindings/ata/nvidia,tegra-ahci.txt  |  32 ++
  .../devicetree/bindings/ata/tegra-sata.txt         |  32 --
  .../bindings/dma/nvidia,tegra20-apbdma.txt         |  44 +++
  .../devicetree/bindings/dma/tegra20-apbdma.txt     |  44 ---
  .../memory-controllers/nvidia,tegra-emc.txt        | 374 +++++++++++++++++++++
  .../bindings/memory-controllers/tegra-emc.txt      | 374 ---------------------
  .../bindings/thermal/nvidia,tegra-soctherm.txt     |  67 ++++
  .../devicetree/bindings/thermal/tegra-soctherm.txt |  67 ----
  8 files changed, 517 insertions(+), 517 deletions(-)
Quoted 1 line

create mode 100644 Documentation/devicetree/bindings/ata/nvidia,tegra-ahci.txt

The filenames should exactly match the (first) compatible value they document for consistency with other bindings. That should be nvidia,tegra124-ahci.txt.

Quoted 4 lines

delete mode 100644 Documentation/devicetree/bindings/ata/tegra-sata.txt create mode 100644 Documentation/devicetree/bindings/dma/nvidia,tegra20-apbdma.txt delete mode 100644 Documentation/devicetree/bindings/dma/tegra20-apbdma.txt create mode 100644 Documentation/devicetree/bindings/memory-controllers/nvidia,tegra-emc.txt

That should be nvidia,tegra124-emc.txt.

Quoted 3 lines

delete mode 100644 Documentation/devicetree/bindings/memory-controllers/tegra-emc.txt create mode 100644 Documentation/devicetree/bindings/thermal/nvidia,tegra-soctherm.txt delete mode 100644 Documentation/devicetree/bindings/thermal/tegra-soctherm.txt

That should be nvidia,tegra124-soctherm.txt.

I assume the delete/create content is identical, although I didn't both to check.

With the fixes above,

#5 lore raw

Re: [PATCH 2/2] dt-bindings: tegra: Rename some bindings for consistency

In reply to a message not in the archive
Quoted 17 lines · Thierry Reding

From: Thierry Reding <[email protected]>

Device tree binding for NVIDIA Tegra have traditionally carried the "nvidia," vendor prefix in the filename. A couple of odd ones don't, so fix them up for consistency.

---
  .../devicetree/bindings/ata/nvidia,tegra-ahci.txt  |  32 ++
  .../devicetree/bindings/ata/tegra-sata.txt         |  32 --
  .../bindings/dma/nvidia,tegra20-apbdma.txt         |  44 +++
  .../devicetree/bindings/dma/tegra20-apbdma.txt     |  44 ---
  .../memory-controllers/nvidia,tegra-emc.txt        | 374 +++++++++++++++++++++
  .../bindings/memory-controllers/tegra-emc.txt      | 374 ---------------------
  .../bindings/thermal/nvidia,tegra-soctherm.txt     |  67 ++++
  .../devicetree/bindings/thermal/tegra-soctherm.txt |  67 ----
  8 files changed, 517 insertions(+), 517 deletions(-)
Quoted 9 lines

create mode 100644 Documentation/devicetree/bindings/ata/nvidia,tegra-ahci.txt delete mode 100644 Documentation/devicetree/bindings/ata/tegra-sata.txt create mode 100644 Documentation/devicetree/bindings/dma/nvidia,tegra20-apbdma.txt delete mode 100644 Documentation/devicetree/bindings/dma/tegra20-apbdma.txt create mode 100644 Documentation/devicetree/bindings/memory-controllers/nvidia,tegra-emc.txt delete mode 100644 Documentation/devicetree/bindings/memory-controllers/tegra-emc.txt create mode 100644 Documentation/devicetree/bindings/thermal/nvidia,tegra-soctherm.txt delete mode 100644 Documentation/devicetree/bindings/thermal/tegra-soctherm.txt

Hi,

Could we use the "-M" and "-C" option to detect the difference if this is just rename or copy from the original file? That way we can still remain the connection of the history log that we can still check the file history by "git blame".

If we do this by deleting and recreating the same file content with renamed filename, we will lose the history log.

Something like this, I do the same on my machine.

Documentation/devicetree/bindings/ata/nvidia,tegra-ahci.txt renamed from Documentation/devicetree/bindings/ata/tegra-sata.txt +0 -0
similarity index 100%
rename from Documentation/devicetree/bindings/ata/tegra-sata.txt
rename to Documentation/devicetree/bindings/ata/nvidia,tegra-ahci.txt
Documentation/devicetree/bindings/dma/nvidia,tegra20-apbdma.txt renamed from Documentation/devicetree/bindings/dma/tegra20-apbdma.txt +0 -0
similarity index 100%
rename from Documentation/devicetree/bindings/dma/tegra20-apbdma.txt
rename to Documentation/devicetree/bindings/dma/nvidia,tegra20-apbdma.txt

Thanks,
Joseph
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#7 lore raw

Re: [PATCH 2/2] dt-bindings: tegra: Rename some bindings for consistency

Quoted 39 lines · Joseph Lo
Quoted 19 lines · Thierry Reding

From: Thierry Reding <[email protected]>

Device tree binding for NVIDIA Tegra have traditionally carried the "nvidia," vendor prefix in the filename. A couple of odd ones don't, so fix them up for consistency.

---
  .../devicetree/bindings/ata/nvidia,tegra-ahci.txt  |  32 ++
  .../devicetree/bindings/ata/tegra-sata.txt         |  32 --
  .../bindings/dma/nvidia,tegra20-apbdma.txt         |  44 +++
  .../devicetree/bindings/dma/tegra20-apbdma.txt     |  44 ---
  .../memory-controllers/nvidia,tegra-emc.txt        | 374
+++++++++++++++++++++
  .../bindings/memory-controllers/tegra-emc.txt      | 374
---------------------
  .../bindings/thermal/nvidia,tegra-soctherm.txt     |  67 ++++
  .../devicetree/bindings/thermal/tegra-soctherm.txt |  67 ----
  8 files changed, 517 insertions(+), 517 deletions(-)
Quoted 16 lines

create mode 100644
Documentation/devicetree/bindings/ata/nvidia,tegra-ahci.txt
delete mode 100644 Documentation/devicetree/bindings/ata/tegra-sata.txt create mode 100644
Documentation/devicetree/bindings/dma/nvidia,tegra20-apbdma.txt
delete mode 100644
Documentation/devicetree/bindings/dma/tegra20-apbdma.txt
create mode 100644
Documentation/devicetree/bindings/memory-controllers/nvidia,tegra-emc.txt
delete mode 100644
Documentation/devicetree/bindings/memory-controllers/tegra-emc.txt
create mode 100644
Documentation/devicetree/bindings/thermal/nvidia,tegra-soctherm.txt
delete mode 100644
Documentation/devicetree/bindings/thermal/tegra-soctherm.txt

Hi,

Quoted 7 lines

Could we use the "-M" and "-C" option to detect the difference if this is just rename or copy from the original file? That way we can still remain the connection of the history log that we can still check the file history by "git blame".

If we do this by deleting and recreating the same file content with renamed filename, we will lose the history log.

When this is applied, git will actually realize it's a move not a delete/add and maintain the history just fine. It only looks like a delete/rename in the "git format-patch" output when -M/-C isn't used.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#9 lore raw

Re: [PATCH 2/2] dt-bindings: tegra: Rename some bindings for consistency

Quoted 45 lines · Stephen Warren
Quoted 44 lines · Joseph Lo
Quoted 19 lines · Thierry Reding

From: Thierry Reding <[email protected]>

Device tree binding for NVIDIA Tegra have traditionally carried the "nvidia," vendor prefix in the filename. A couple of odd ones don't, so fix them up for consistency.

---
  .../devicetree/bindings/ata/nvidia,tegra-ahci.txt  |  32 ++
  .../devicetree/bindings/ata/tegra-sata.txt         |  32 --
  .../bindings/dma/nvidia,tegra20-apbdma.txt         |  44 +++
  .../devicetree/bindings/dma/tegra20-apbdma.txt     |  44 ---
  .../memory-controllers/nvidia,tegra-emc.txt        | 374
+++++++++++++++++++++
  .../bindings/memory-controllers/tegra-emc.txt      | 374
---------------------
  .../bindings/thermal/nvidia,tegra-soctherm.txt     |  67 ++++
  .../devicetree/bindings/thermal/tegra-soctherm.txt |  67 ----
  8 files changed, 517 insertions(+), 517 deletions(-)
Quoted 16 lines

create mode 100644
Documentation/devicetree/bindings/ata/nvidia,tegra-ahci.txt
delete mode 100644 Documentation/devicetree/bindings/ata/tegra-sata.txt create mode 100644
Documentation/devicetree/bindings/dma/nvidia,tegra20-apbdma.txt
delete mode 100644
Documentation/devicetree/bindings/dma/tegra20-apbdma.txt
create mode 100644
Documentation/devicetree/bindings/memory-controllers/nvidia,tegra-emc.txt
delete mode 100644
Documentation/devicetree/bindings/memory-controllers/tegra-emc.txt
create mode 100644
Documentation/devicetree/bindings/thermal/nvidia,tegra-soctherm.txt
delete mode 100644
Documentation/devicetree/bindings/thermal/tegra-soctherm.txt

Hi,

Could we use the "-M" and "-C" option to detect the difference if this is just rename or copy from the original file? That way we can still remain the connection of the history log that we can still check the file history by "git blame".

Quoted 6 lines
Quoted 2 lines

If we do this by deleting and recreating the same file content with renamed filename, we will lose the history log.

When this is applied, git will actually realize it's a move not a delete/add and maintain the history just fine. It only looks like a delete/rename in the "git format-patch" output when -M/-C isn't used.

I've resent v2 generated with -M to make it obvious that there aren't any changes to the binding text.

Thierry

#10 lore raw
In reply to a message not in the archive
Quoted 8 lines · Thierry Reding

From: Thierry Reding <[email protected]>

When Tegra124 support was first merged the unit-addresses of all devices were listed with a "0," prefix to encode the reg property's second cell. It turns out that this notation is not correct, and the "," separator is only used to separate fields in the unit address (such as the device and function number in PCI devices), not individual cells for addresses with more than one cell.

(Note that using the 0, prefix was correct at the time, but it appears the rules have changed.)