ARM: tegra: use new dtc+cpp feature
Subsystems (2)
cover ARM: tegra: use new dtc+cpp feature
From: Stephen Warren <[email protected]>
This series converts the Tegra device tree files to use the new feature of running cpp over .dts files before compiling them with dtc. This allows GPIOs and other GPIO/IRQ specifier cells to be named for example.
As far as merging goes, I'd anticipate the first 3 patches being useful to any other ARM sub-arch that wants to convert; perhaps they could go through some arm-soc common branch. The next 2 patches are Tegra-specific cleanup that I'd anticipate applying to Tegra's for-3.10/cleanup. The rest of the patches depend on those 5 previous patches, so would need to go into a Tegra branch that merges in the previous patches; I'd anticipate calling it for-3.10/dtc-cpp say.
One issue this raises: The first 2 patches aren't ARM-specific. I put the files they create into arch/arm/boot/dts, but I wonder if they wouldn't be better in some arch-agnostic include directory, or even right with the binding documentation in Documentation/devicetree/bindings. Moving the files would require adjusting the cpp include path.
Stephen Warren (9):
ARM: dt: add header to define GPIO flags
ARM: dt: add header to define IRQ flags
ARM: dt: create a DT header for the GIC
ARM: tegra: device tree whitespace cleanup
ARM: tegra: fix sort order of USB PHY nodes
ARM: tegra: use pre-processor for all device trees
ARM: tegra: create a DT header defining GPIO IDs
ARM: tegra: convert device tree files to use GPIO defines
ARM: tegra: convert device tree files to use IRQ defines
arch/arm/boot/dts/arm-gic.h | 17 + arch/arm/boot/dts/gpio.h | 10 + arch/arm/boot/dts/irq.h | 14 + arch/arm/boot/dts/tegra-gpio.h | 45 ++ arch/arm/boot/dts/tegra114-dalmore.dts | 21 - arch/arm/boot/dts/tegra114-dalmore.dtsp | 21 + arch/arm/boot/dts/tegra114-pluto.dts | 21 - arch/arm/boot/dts/tegra114-pluto.dtsp | 21 + arch/arm/boot/dts/tegra114.dtsi | 153 ----- arch/arm/boot/dts/tegra114.dtsip | 161 ++++++ arch/arm/boot/dts/tegra20-colibri-512.dtsi | 491 ---------------- arch/arm/boot/dts/tegra20-colibri-512.dtsip | 495 ++++++++++++++++ arch/arm/boot/dts/tegra20-harmony.dts | 660 ---------------------- arch/arm/boot/dts/tegra20-harmony.dtsp | 666 ++++++++++++++++++++++ arch/arm/boot/dts/tegra20-iris-512.dts | 89 --- arch/arm/boot/dts/tegra20-iris-512.dtsp | 89 +++ arch/arm/boot/dts/tegra20-medcom-wide.dts | 58 -- arch/arm/boot/dts/tegra20-medcom-wide.dtsp | 58 ++ arch/arm/boot/dts/tegra20-paz00.dts | 505 ----------------- arch/arm/boot/dts/tegra20-paz00.dtsp | 509 +++++++++++++++++ arch/arm/boot/dts/tegra20-plutux.dts | 56 -- arch/arm/boot/dts/tegra20-plutux.dtsp | 56 ++ arch/arm/boot/dts/tegra20-seaboard.dts | 812 -------------------------- arch/arm/boot/dts/tegra20-seaboard.dtsp | 815 +++++++++++++++++++++++++++ arch/arm/boot/dts/tegra20-tamonten.dtsi | 489 ---------------- arch/arm/boot/dts/tegra20-tamonten.dtsip | 490 ++++++++++++++++ arch/arm/boot/dts/tegra20-tec.dts | 56 -- arch/arm/boot/dts/tegra20-tec.dtsp | 57 ++ arch/arm/boot/dts/tegra20-trimslice.dts | 367 ------------ arch/arm/boot/dts/tegra20-trimslice.dtsp | 370 ++++++++++++ arch/arm/boot/dts/tegra20-ventana.dts | 611 -------------------- arch/arm/boot/dts/tegra20-ventana.dtsp | 616 ++++++++++++++++++++ arch/arm/boot/dts/tegra20-whistler.dts | 563 ------------------ arch/arm/boot/dts/tegra20-whistler.dtsp | 564 ++++++++++++++++++ arch/arm/boot/dts/tegra20.dtsi | 556 ------------------ arch/arm/boot/dts/tegra20.dtsip | 559 ++++++++++++++++++ arch/arm/boot/dts/tegra30-beaver.dts | 373 ------------ arch/arm/boot/dts/tegra30-beaver.dtsp | 373 ++++++++++++ arch/arm/boot/dts/tegra30-cardhu-a02.dts | 93 --- arch/arm/boot/dts/tegra30-cardhu-a02.dtsp | 93 +++ arch/arm/boot/dts/tegra30-cardhu-a04.dts | 104 ---- arch/arm/boot/dts/tegra30-cardhu-a04.dtsp | 104 ++++ arch/arm/boot/dts/tegra30-cardhu.dtsi | 500 ---------------- arch/arm/boot/dts/tegra30-cardhu.dtsip | 501 ++++++++++++++++ arch/arm/boot/dts/tegra30.dtsi | 579 ------------------- arch/arm/boot/dts/tegra30.dtsip | 582 +++++++++++++++++++ 46 files changed, 7286 insertions(+), 7157 deletions(-) create mode 100644 arch/arm/boot/dts/arm-gic.h create mode 100644 arch/arm/boot/dts/gpio.h create mode 100644 arch/arm/boot/dts/irq.h create mode 100644 arch/arm/boot/dts/tegra-gpio.h delete mode 100644 arch/arm/boot/dts/tegra114-dalmore.dts create mode 100644 arch/arm/boot/dts/tegra114-dalmore.dtsp delete mode 100644 arch/arm/boot/dts/tegra114-pluto.dts create mode 100644 arch/arm/boot/dts/tegra114-pluto.dtsp delete mode 100644 arch/arm/boot/dts/tegra114.dtsi create mode 100644 arch/arm/boot/dts/tegra114.dtsip delete mode 100644 arch/arm/boot/dts/tegra20-colibri-512.dtsi create mode 100644 arch/arm/boot/dts/tegra20-colibri-512.dtsip delete mode 100644 arch/arm/boot/dts/tegra20-harmony.dts create mode 100644 arch/arm/boot/dts/tegra20-harmony.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-iris-512.dts create mode 100644 arch/arm/boot/dts/tegra20-iris-512.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-medcom-wide.dts create mode 100644 arch/arm/boot/dts/tegra20-medcom-wide.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-paz00.dts create mode 100644 arch/arm/boot/dts/tegra20-paz00.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-plutux.dts create mode 100644 arch/arm/boot/dts/tegra20-plutux.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-seaboard.dts create mode 100644 arch/arm/boot/dts/tegra20-seaboard.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-tamonten.dtsi create mode 100644 arch/arm/boot/dts/tegra20-tamonten.dtsip delete mode 100644 arch/arm/boot/dts/tegra20-tec.dts create mode 100644 arch/arm/boot/dts/tegra20-tec.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-trimslice.dts create mode 100644 arch/arm/boot/dts/tegra20-trimslice.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-ventana.dts create mode 100644 arch/arm/boot/dts/tegra20-ventana.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-whistler.dts create mode 100644 arch/arm/boot/dts/tegra20-whistler.dtsp delete mode 100644 arch/arm/boot/dts/tegra20.dtsi create mode 100644 arch/arm/boot/dts/tegra20.dtsip delete mode 100644 arch/arm/boot/dts/tegra30-beaver.dts create mode 100644 arch/arm/boot/dts/tegra30-beaver.dtsp delete mode 100644 arch/arm/boot/dts/tegra30-cardhu-a02.dts create mode 100644 arch/arm/boot/dts/tegra30-cardhu-a02.dtsp delete mode 100644 arch/arm/boot/dts/tegra30-cardhu-a04.dts create mode 100644 arch/arm/boot/dts/tegra30-cardhu-a04.dtsp delete mode 100644 arch/arm/boot/dts/tegra30-cardhu.dtsi create mode 100644 arch/arm/boot/dts/tegra30-cardhu.dtsip delete mode 100644 arch/arm/boot/dts/tegra30.dtsi create mode 100644 arch/arm/boot/dts/tegra30.dtsip
Signature · 1 line
1.7.10.4
PATCH 1/9 ARM: dt: add header to define GPIO flags
From: Stephen Warren <[email protected]>
Many GPIO device tree bindings use the same flags. Create a header to define those.
--- arch/arm/boot/dts/gpio.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 arch/arm/boot/dts/gpio.h
arch/arm/boot/dts/gpio.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* This header provides constants for most GPIO bindings. +* +* Most GPIO bindings include a flags cell as part of the GPIO specifier. +* In most cases, the format of the flags cell uses the standard values +* defined in this header. +*/ + +#define GPIO_ACTIVE_HIGH 0 +#define GPIO_ACTIVE_LOW 1
Signature · 1 line
1.7.10.4
PATCH 1/9 ARM: dt: add header to define GPIO flags
Stephen Warren <[email protected]> wrote @ Wed, 13 Feb 2013 22:33:10 +0100:
Quoted 17 lines
From: Stephen Warren <[email protected]>
Many GPIO device tree bindings use the same flags. Create a header to define those.
Signed-off-by Stephen Warren <[email protected]>--- arch/arm/boot/dts/gpio.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 arch/arm/boot/dts/gpio.harch/arm/boot/dts/gpio.h new file +0
-0
arch/arm/boot/dts/gpio.h line 7
Quoted 7 lines
arch/arm/boot/dts/gpio.h new file +7
-0@@ -0,0 +1,10 @@ +/* +* This header provides constants for most GPIO bindings. +* +* Most GPIO bindings include a flags cell as part of the GPIO specifier. +* In most cases, the format of the flags cell uses the standard values +* defined in this header. +*/
#ifdef _DTS_GPIO_H
#define _DTS_GPIO_H
arch/arm/boot/dts/gpio.h line 10
Quoted 3 lines
arch/arm/boot/dts/gpio.h new file +3
-0+ +#define GPIO_ACTIVE_HIGH 0 +#define GPIO_ACTIVE_LOW 1
#endif /* _DTS_GPIO_H */
To avoid multple inclusion problems, do we want the above ifdef/define/endif for other DT header files as well?
PATCH 1/9 ARM: dt: add header to define GPIO flags
Quoted 3 lines · Hiroshi Doyu
Stephen Warren <[email protected]> wrote @ Wed, 13 Feb 2013 22:33:10 +0100:
Quoted 2 lines
Many GPIO device tree bindings use the same flags. Create a header to define those.
... [discussion about adding include guards]
Quoted 2 lines
To avoid multple inclusion problems, do we want the above ifdef/define/endif for other DT header files as well?
Yes, we should probably add include guards to all the files. I'll update my patch series.
PATCH 1/9 ARM: dt: add header to define GPIO flags
In reply to Stephen Warrenarch/arm/boot/dts/gpio.h
Quoted 16 lines · Stephen Warren
From: Stephen Warren <[email protected]>
Many GPIO device tree bindings use the same flags. Create a header to define those.
Signed-off-by Stephen Warren <[email protected]>--- arch/arm/boot/dts/gpio.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 arch/arm/boot/dts/gpio.harch/arm/boot/dts/gpio.h new file +0
-0
Stephen, you know better than this. This is common code. Don't put it under arch/arm.
g.
Quoted 14 lines
arch/arm/boot/dts/gpio.h new file +10
-0@@ -0,0 +1,10 @@ +/* +* This header provides constants for most GPIO bindings. +* +* Most GPIO bindings include a flags cell as part of the GPIO specifier. +* In most cases, the format of the flags cell uses the standard values +* defined in this header. +*/ + +#define GPIO_ACTIVE_HIGH 0 +#define GPIO_ACTIVE_LOW 1Signature · 1 line
1.7.10.4
Signature · 2 lines
Grant Likely, B.Sc, P.Eng. Secret Lab Technologies, Ltd.
PATCH 1/9 ARM: dt: add header to define GPIO flags
Quoted 12 lines · Grant Likely
Quoted 11 lines · Stephen Warren
From: Stephen Warren <[email protected]>
Many GPIO device tree bindings use the same flags. Create a header to define those.
Signed-off-by Stephen Warren <[email protected]>--- arch/arm/boot/dts/gpio.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 arch/arm/boot/dts/gpio.h
Quoted 8 lines
arch/arm/boot/dts/gpio.h
Quoted 5 lines
arch/arm/boot/dts/gpio.h new file +0
-0Stephen, you know better than this. This is common code. Don't put it under
arch/arm.
In V2 of the patch which modifies the dtc+cpp include path:
https://lists.ozlabs.org/pipermail/devicetree-discuss/2013-February/028591.html
... I have moved the common headers to top-level include/dt-bindings, so it is shared across all arch. I didn't repost all the changes to the *.h and *.dts* files yet; I was waiting for any comments on the patch above.
PATCH 2/9 ARM: dt: add header to define IRQ flags
In reply to Stephen WarrenFrom: Stephen Warren <[email protected]>
Many IRQ device tree bindings use the same flags. Create a header to define those.
--- arch/arm/boot/dts/irq.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 arch/arm/boot/dts/irq.h
arch/arm/boot/dts/irq.h new file +14 -0
@@ -0,0 +1,14 @@ +/* +* This header provides constants for most IRQ bindings. +* +* Most IRQ bindings include a flags cell as part of the IRQ specifier. +* In most cases, the format of the flags cell uses the standard values +* defined in this header. +*/ + +#define IRQ_TYPE_NONE 0 +#define IRQ_TYPE_EDGE_RISING 1 +#define IRQ_TYPE_EDGE_FALLING 2 +#define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING) +#define IRQ_TYPE_LEVEL_HIGH 4 +#define IRQ_TYPE_LEVEL_LOW 8
Signature · 1 line
1.7.10.4
PATCH 3/9 ARM: dt: create a DT header for the GIC
In reply to Stephen WarrenFrom: Stephen Warren <[email protected]>
The ARM GIC binding defines a few custom cells and flags for its IRQ specifier. Provide names for those.
--- arch/arm/boot/dts/arm-gic.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 arch/arm/boot/dts/arm-gic.h
arch/arm/boot/dts/arm-gic.h new file +17 -0
@@ -0,0 +1,17 @@ +/* +* This header provides constants for the ARM GIC. +*/ + +#include "irq.h" + +/* interrupt specific cell 0 */ + +#define GIC_SPI 0 +#define GIC_PPI 1 + +/* +* Interrupt specifier cell 2. +* The flaggs in irq.h are valid, plus those below. +*/ +#define GIC_CPU_MASK_RAW (x) ((x) << 8) +#define GIC_CPU_MASK_SIMPLE (num) GIC_CPU_MASK_RAW((1 << (num)) - 1)
Signature · 1 line
1.7.10.4
PATCH 4/9 ARM: tegra: device tree whitespace cleanup
In reply to Stephen WarrenFrom: Stephen Warren <[email protected]>
Remove white-space from empty line; triggers checkpatch.
--- arch/arm/boot/dts/tegra20.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/tegra20.dtsi +1 -1
@@ -207,7 +207,7 @@ compatible = "nvidia,tegra20-das"; reg = <0x70000c00 0x80>; }; - + tegra_ac97: ac97 { compatible = "nvidia,tegra20-ac97"; reg = <0x70002000 0x200>;
Signature · 1 line
1.7.10.4
PATCH 5/9 ARM: tegra: fix sort order of USB PHY nodes
In reply to Stephen WarrenFrom: Stephen Warren <[email protected]>
The USB PHY nodes are all grouped together rather than being sorted based on reg address like all other nodes fix this.
I apologize for the churn; I should have noticed this during review of the patches that caused this.
--- arch/arm/boot/dts/tegra20.dtsi | 50 ++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 25 deletions(-)
arch/arm/boot/dts/tegra20.dtsi +25 -25
@@ -442,31 +442,6 @@ #size-cells = <0>; }; - phy1: usb-phy at c5000400 { - compatible = "nvidia,tegra20-usb-phy"; - reg = <0xc5000400 0x3c00>; - phy_type = "utmi"; - nvidia,has-legacy-mode; - clocks = <&tegra_car 22>, <&tegra_car 127>; - clock-names = "phy", "pll_u"; - }; - - phy2: usb-phy at c5004400 { - compatible = "nvidia,tegra20-usb-phy"; - reg = <0xc5004400 0x3c00>; - phy_type = "ulpi"; - clocks = <&tegra_car 94>, <&tegra_car 127>; - clock-names = "phy", "pll_u"; - }; - - phy3: usb-phy at c5008400 { - compatible = "nvidia,tegra20-usb-phy"; - reg = <0xc5008400 0x3C00>; - phy_type = "utmi"; - clocks = <&tegra_car 22>, <&tegra_car 127>; - clock-names = "phy", "pll_u"; - }; - usb at c5000000 { compatible = "nvidia,tegra20-ehci", "usb-ehci"; reg = <0xc5000000 0x4000>;
@@ -479,6 +454,15 @@ status = "disabled"; }; + phy1: usb-phy at c5000400 { + compatible = "nvidia,tegra20-usb-phy"; + reg = <0xc5000400 0x3c00>; + phy_type = "utmi"; + nvidia,has-legacy-mode; + clocks = <&tegra_car 22>, <&tegra_car 127>; + clock-names = "phy", "pll_u"; + }; + usb at c5004000 { compatible = "nvidia,tegra20-ehci", "usb-ehci"; reg = <0xc5004000 0x4000>;
@@ -489,6 +473,14 @@ status = "disabled"; }; + phy2: usb-phy at c5004400 { + compatible = "nvidia,tegra20-usb-phy"; + reg = <0xc5004400 0x3c00>; + phy_type = "ulpi"; + clocks = <&tegra_car 94>, <&tegra_car 127>; + clock-names = "phy", "pll_u"; + }; + usb at c5008000 { compatible = "nvidia,tegra20-ehci", "usb-ehci"; reg = <0xc5008000 0x4000>;
@@ -499,6 +491,14 @@ status = "disabled"; }; + phy3: usb-phy at c5008400 { + compatible = "nvidia,tegra20-usb-phy"; + reg = <0xc5008400 0x3c00>; + phy_type = "utmi"; + clocks = <&tegra_car 22>, <&tegra_car 127>; + clock-names = "phy", "pll_u"; + }; + sdhci at c8000000 { compatible = "nvidia,tegra20-sdhci"; reg = <0xc8000000 0x200>;
Signature · 1 line
1.7.10.4
A message that is not in the archive (sent off-list or not yet received): 1360791198-29462-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org
PATCH 6/9 ARM: tegra: use pre-processor for all device trees
From: Stephen Warren <[email protected]>
This enables a C pre-processor pass on all Tegra device trees. This allows future use of #defines and header files in order to define names for various constants, such as the IDs and flags in GPIO specifiers. Use of those features will increase the readability of the device tree files.
--- arch/arm/boot/dts/tegra114-dalmore.dts | 21 - arch/arm/boot/dts/tegra114-dalmore.dtsp | 21 + arch/arm/boot/dts/tegra114-pluto.dts | 21 - arch/arm/boot/dts/tegra114-pluto.dtsp | 21 + arch/arm/boot/dts/tegra114.dtsi | 153 ----- arch/arm/boot/dts/tegra114.dtsip | 153 +++++ arch/arm/boot/dts/tegra20-colibri-512.dtsi | 491 ---------------- arch/arm/boot/dts/tegra20-colibri-512.dtsip | 491 ++++++++++++++++ arch/arm/boot/dts/tegra20-harmony.dts | 660 ---------------------- arch/arm/boot/dts/tegra20-harmony.dtsp | 660 ++++++++++++++++++++++ arch/arm/boot/dts/tegra20-iris-512.dts | 89 --- arch/arm/boot/dts/tegra20-iris-512.dtsp | 89 +++ arch/arm/boot/dts/tegra20-medcom-wide.dts | 58 -- arch/arm/boot/dts/tegra20-medcom-wide.dtsp | 58 ++ arch/arm/boot/dts/tegra20-paz00.dts | 505 ----------------- arch/arm/boot/dts/tegra20-paz00.dtsp | 505 +++++++++++++++++ arch/arm/boot/dts/tegra20-plutux.dts | 56 -- arch/arm/boot/dts/tegra20-plutux.dtsp | 56 ++ arch/arm/boot/dts/tegra20-seaboard.dts | 812 --------------------------- arch/arm/boot/dts/tegra20-seaboard.dtsp | 812 +++++++++++++++++++++++++++ arch/arm/boot/dts/tegra20-tamonten.dtsi | 489 ---------------- arch/arm/boot/dts/tegra20-tamonten.dtsip | 489 ++++++++++++++++ arch/arm/boot/dts/tegra20-tec.dts | 56 -- arch/arm/boot/dts/tegra20-tec.dtsp | 56 ++ arch/arm/boot/dts/tegra20-trimslice.dts | 367 ------------ arch/arm/boot/dts/tegra20-trimslice.dtsp | 367 ++++++++++++ arch/arm/boot/dts/tegra20-ventana.dts | 611 -------------------- arch/arm/boot/dts/tegra20-ventana.dtsp | 611 ++++++++++++++++++++ arch/arm/boot/dts/tegra20-whistler.dts | 563 ------------------- arch/arm/boot/dts/tegra20-whistler.dtsp | 563 +++++++++++++++++++ arch/arm/boot/dts/tegra20.dtsi | 556 ------------------ arch/arm/boot/dts/tegra20.dtsip | 556 ++++++++++++++++++ arch/arm/boot/dts/tegra30-beaver.dts | 373 ------------ arch/arm/boot/dts/tegra30-beaver.dtsp | 373 ++++++++++++ arch/arm/boot/dts/tegra30-cardhu-a02.dts | 93 --- arch/arm/boot/dts/tegra30-cardhu-a02.dtsp | 93 +++ arch/arm/boot/dts/tegra30-cardhu-a04.dts | 104 ---- arch/arm/boot/dts/tegra30-cardhu-a04.dtsp | 104 ++++ arch/arm/boot/dts/tegra30-cardhu.dtsi | 500 ----------------- arch/arm/boot/dts/tegra30-cardhu.dtsip | 500 +++++++++++++++++ arch/arm/boot/dts/tegra30.dtsi | 579 ------------------- arch/arm/boot/dts/tegra30.dtsip | 579 +++++++++++++++++++ 42 files changed, 7157 insertions(+), 7157 deletions(-) delete mode 100644 arch/arm/boot/dts/tegra114-dalmore.dts create mode 100644 arch/arm/boot/dts/tegra114-dalmore.dtsp delete mode 100644 arch/arm/boot/dts/tegra114-pluto.dts create mode 100644 arch/arm/boot/dts/tegra114-pluto.dtsp delete mode 100644 arch/arm/boot/dts/tegra114.dtsi create mode 100644 arch/arm/boot/dts/tegra114.dtsip delete mode 100644 arch/arm/boot/dts/tegra20-colibri-512.dtsi create mode 100644 arch/arm/boot/dts/tegra20-colibri-512.dtsip delete mode 100644 arch/arm/boot/dts/tegra20-harmony.dts create mode 100644 arch/arm/boot/dts/tegra20-harmony.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-iris-512.dts create mode 100644 arch/arm/boot/dts/tegra20-iris-512.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-medcom-wide.dts create mode 100644 arch/arm/boot/dts/tegra20-medcom-wide.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-paz00.dts create mode 100644 arch/arm/boot/dts/tegra20-paz00.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-plutux.dts create mode 100644 arch/arm/boot/dts/tegra20-plutux.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-seaboard.dts create mode 100644 arch/arm/boot/dts/tegra20-seaboard.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-tamonten.dtsi create mode 100644 arch/arm/boot/dts/tegra20-tamonten.dtsip delete mode 100644 arch/arm/boot/dts/tegra20-tec.dts create mode 100644 arch/arm/boot/dts/tegra20-tec.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-trimslice.dts create mode 100644 arch/arm/boot/dts/tegra20-trimslice.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-ventana.dts create mode 100644 arch/arm/boot/dts/tegra20-ventana.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-whistler.dts create mode 100644 arch/arm/boot/dts/tegra20-whistler.dtsp delete mode 100644 arch/arm/boot/dts/tegra20.dtsi create mode 100644 arch/arm/boot/dts/tegra20.dtsip delete mode 100644 arch/arm/boot/dts/tegra30-beaver.dts create mode 100644 arch/arm/boot/dts/tegra30-beaver.dtsp delete mode 100644 arch/arm/boot/dts/tegra30-cardhu-a02.dts create mode 100644 arch/arm/boot/dts/tegra30-cardhu-a02.dtsp delete mode 100644 arch/arm/boot/dts/tegra30-cardhu-a04.dts create mode 100644 arch/arm/boot/dts/tegra30-cardhu-a04.dtsp delete mode 100644 arch/arm/boot/dts/tegra30-cardhu.dtsi create mode 100644 arch/arm/boot/dts/tegra30-cardhu.dtsip delete mode 100644 arch/arm/boot/dts/tegra30.dtsi create mode 100644 arch/arm/boot/dts/tegra30.dtsip
arch/arm/boot/dts/tegra114-dalmore.dts deleted +0 -21
@@ -1,21 +0,0 @@ -/dts-v1/; - -/include/ "tegra114.dtsi" - -/ { - model = "NVIDIA Tegra114 Dalmore evaluation board"; - compatible = "nvidia,dalmore", "nvidia,tegra114"; - - memory { - reg = <0x80000000 0x40000000>; - }; - - serial@70006300 { - status = "okay"; - clock-frequency = <408000000>; - }; - - pmc { - nvidia,invert-interrupt; - }; -};
arch/arm/boot/dts/tegra114-dalmore.dtsp new file +21 -0
@@ -0,0 +1,21 @@ +/dts-v1/; + +#include "tegra114.dtsip" + +/ { + model = "NVIDIA Tegra114 Dalmore evaluation board"; + compatible = "nvidia,dalmore", "nvidia,tegra114"; + + memory { + reg = <0x80000000 0x40000000>; + }; + + serial@70006300 { + status = "okay"; + clock-frequency = <408000000>; + }; + + pmc { + nvidia,invert-interrupt; + }; +};
arch/arm/boot/dts/tegra114-pluto.dts deleted +0 -21
@@ -1,21 +0,0 @@ -/dts-v1/; - -/include/ "tegra114.dtsi" - -/ { - model = "NVIDIA Tegra114 Pluto evaluation board"; - compatible = "nvidia,pluto", "nvidia,tegra114"; - - memory { - reg = <0x80000000 0x40000000>; - }; - - serial@70006300 { - status = "okay"; - clock-frequency = <408000000>; - }; - - pmc { - nvidia,invert-interrupt; - }; -};
arch/arm/boot/dts/tegra114-pluto.dtsp new file +21 -0
@@ -0,0 +1,21 @@ +/dts-v1/; + +#include "tegra114.dtsip" + +/ { + model = "NVIDIA Tegra114 Pluto evaluation board"; + compatible = "nvidia,pluto", "nvidia,tegra114"; + + memory { + reg = <0x80000000 0x40000000>; + }; + + serial@70006300 { + status = "okay"; + clock-frequency = <408000000>; + }; + + pmc { + nvidia,invert-interrupt; + }; +};
arch/arm/boot/dts/tegra114.dtsi deleted +0 -153
153 lines not on this page · raw message
arch/arm/boot/dts/tegra114.dtsip new file +153 -0
153 lines not on this page · raw message
arch/arm/boot/dts/tegra20-colibri-512.dtsi deleted +0 -491
491 lines not on this page · raw message
arch/arm/boot/dts/tegra20-colibri-512.dtsip new file +491 -0
491 lines not on this page · raw message
arch/arm/boot/dts/tegra20-harmony.dts deleted +0 -660
660 lines not on this page · raw message
arch/arm/boot/dts/tegra20-harmony.dtsp new file +660 -0
660 lines not on this page · raw message
arch/arm/boot/dts/tegra20-iris-512.dts deleted +0 -89
89 lines not on this page · raw message
arch/arm/boot/dts/tegra20-iris-512.dtsp new file +89 -0
89 lines not on this page · raw message
arch/arm/boot/dts/tegra20-medcom-wide.dts deleted +0 -58
58 lines not on this page · raw message
arch/arm/boot/dts/tegra20-medcom-wide.dtsp new file +58 -0
58 lines not on this page · raw message
arch/arm/boot/dts/tegra20-paz00.dts deleted +0 -505
14 lines not on this page · raw message
arch/arm/boot/dts/tegra20-paz00.dtsp new file +505 -0
505 lines not on this page · raw message
arch/arm/boot/dts/tegra20-plutux.dts deleted +0 -56
56 lines not on this page · raw message
arch/arm/boot/dts/tegra20-plutux.dtsp new file +56 -0
56 lines not on this page · raw message
arch/arm/boot/dts/tegra20-seaboard.dts deleted +0 -812
812 lines not on this page · raw message
arch/arm/boot/dts/tegra20-seaboard.dtsp new file +812 -0
812 lines not on this page · raw message
arch/arm/boot/dts/tegra20-tamonten.dtsi deleted +0 -489
489 lines not on this page · raw message
arch/arm/boot/dts/tegra20-tamonten.dtsip new file +489 -0
489 lines not on this page · raw message
arch/arm/boot/dts/tegra20-tec.dts deleted +0 -56
56 lines not on this page · raw message
arch/arm/boot/dts/tegra20-tec.dtsp new file +56 -0
56 lines not on this page · raw message
arch/arm/boot/dts/tegra20-trimslice.dts deleted +0 -367
367 lines not on this page · raw message
arch/arm/boot/dts/tegra20-trimslice.dtsp new file +367 -0
367 lines not on this page · raw message
arch/arm/boot/dts/tegra20-ventana.dts deleted +0 -611
611 lines not on this page · raw message
arch/arm/boot/dts/tegra20-ventana.dtsp new file +611 -0
611 lines not on this page · raw message
arch/arm/boot/dts/tegra20-whistler.dts deleted +0 -563
563 lines not on this page · raw message
arch/arm/boot/dts/tegra20-whistler.dtsp new file +563 -0
563 lines not on this page · raw message
arch/arm/boot/dts/tegra20.dtsi deleted +0 -556
556 lines not on this page · raw message
arch/arm/boot/dts/tegra20.dtsip new file +556 -0
556 lines not on this page · raw message
arch/arm/boot/dts/tegra30-beaver.dts deleted +0 -373
373 lines not on this page · raw message
arch/arm/boot/dts/tegra30-beaver.dtsp new file +373 -0
373 lines not on this page · raw message
arch/arm/boot/dts/tegra30-cardhu-a02.dts deleted +0 -93
93 lines not on this page · raw message
arch/arm/boot/dts/tegra30-cardhu-a02.dtsp new file +93 -0
93 lines not on this page · raw message
arch/arm/boot/dts/tegra30-cardhu-a04.dts deleted +0 -104
104 lines not on this page · raw message
arch/arm/boot/dts/tegra30-cardhu-a04.dtsp new file +104 -0
104 lines not on this page · raw message
arch/arm/boot/dts/tegra30-cardhu.dtsi deleted +0 -500
500 lines not on this page · raw message
arch/arm/boot/dts/tegra30-cardhu.dtsip new file +500 -0
500 lines not on this page · raw message
arch/arm/boot/dts/tegra30.dtsi deleted +0 -579
579 lines not on this page · raw message
arch/arm/boot/dts/tegra30.dtsip new file +579 -0
579 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.10.4
Part of the diff is not shown here. View the raw message.
A message that is not in the archive (sent off-list or not yet received): 1360791198-29462-7-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org
Re: [PATCH 6/9] ARM: tegra: use pre-processor for all device trees
Quoted 87 lines · Stephen Warren
From: Stephen Warren <[email protected]>
This enables a C pre-processor pass on all Tegra device trees. This allows future use of #defines and header files in order to define names for various constants, such as the IDs and flags in GPIO specifiers. Use of those features will increase the readability of the device tree files.
Signed-off-by Stephen Warren <[email protected]>--- arch/arm/boot/dts/tegra114-dalmore.dts | 21 - arch/arm/boot/dts/tegra114-dalmore.dtsp | 21 + arch/arm/boot/dts/tegra114-pluto.dts | 21 - arch/arm/boot/dts/tegra114-pluto.dtsp | 21 + arch/arm/boot/dts/tegra114.dtsi | 153 ----- arch/arm/boot/dts/tegra114.dtsip | 153 +++++ arch/arm/boot/dts/tegra20-colibri-512.dtsi | 491 ---------------- arch/arm/boot/dts/tegra20-colibri-512.dtsip | 491 ++++++++++++++++ arch/arm/boot/dts/tegra20-harmony.dts | 660 ---------------------- arch/arm/boot/dts/tegra20-harmony.dtsp | 660 ++++++++++++++++++++++ arch/arm/boot/dts/tegra20-iris-512.dts | 89 --- arch/arm/boot/dts/tegra20-iris-512.dtsp | 89 +++ arch/arm/boot/dts/tegra20-medcom-wide.dts | 58 -- arch/arm/boot/dts/tegra20-medcom-wide.dtsp | 58 ++ arch/arm/boot/dts/tegra20-paz00.dts | 505 ----------------- arch/arm/boot/dts/tegra20-paz00.dtsp | 505 +++++++++++++++++ arch/arm/boot/dts/tegra20-plutux.dts | 56 -- arch/arm/boot/dts/tegra20-plutux.dtsp | 56 ++ arch/arm/boot/dts/tegra20-seaboard.dts | 812 --------------------------- arch/arm/boot/dts/tegra20-seaboard.dtsp | 812 +++++++++++++++++++++++++++ arch/arm/boot/dts/tegra20-tamonten.dtsi | 489 ---------------- arch/arm/boot/dts/tegra20-tamonten.dtsip | 489 ++++++++++++++++ arch/arm/boot/dts/tegra20-tec.dts | 56 -- arch/arm/boot/dts/tegra20-tec.dtsp | 56 ++ arch/arm/boot/dts/tegra20-trimslice.dts | 367 ------------ arch/arm/boot/dts/tegra20-trimslice.dtsp | 367 ++++++++++++ arch/arm/boot/dts/tegra20-ventana.dts | 611 -------------------- arch/arm/boot/dts/tegra20-ventana.dtsp | 611 ++++++++++++++++++++ arch/arm/boot/dts/tegra20-whistler.dts | 563 ------------------- arch/arm/boot/dts/tegra20-whistler.dtsp | 563 +++++++++++++++++++ arch/arm/boot/dts/tegra20.dtsi | 556 ------------------ arch/arm/boot/dts/tegra20.dtsip | 556 ++++++++++++++++++ arch/arm/boot/dts/tegra30-beaver.dts | 373 ------------ arch/arm/boot/dts/tegra30-beaver.dtsp | 373 ++++++++++++ arch/arm/boot/dts/tegra30-cardhu-a02.dts | 93 --- arch/arm/boot/dts/tegra30-cardhu-a02.dtsp | 93 +++ arch/arm/boot/dts/tegra30-cardhu-a04.dts | 104 ---- arch/arm/boot/dts/tegra30-cardhu-a04.dtsp | 104 ++++ arch/arm/boot/dts/tegra30-cardhu.dtsi | 500 ----------------- arch/arm/boot/dts/tegra30-cardhu.dtsip | 500 +++++++++++++++++ arch/arm/boot/dts/tegra30.dtsi | 579 ------------------- arch/arm/boot/dts/tegra30.dtsip | 579 +++++++++++++++++++ 42 files changed, 7157 insertions(+), 7157 deletions(-) delete mode 100644 arch/arm/boot/dts/tegra114-dalmore.dts create mode 100644 arch/arm/boot/dts/tegra114-dalmore.dtsp delete mode 100644 arch/arm/boot/dts/tegra114-pluto.dts create mode 100644 arch/arm/boot/dts/tegra114-pluto.dtsp delete mode 100644 arch/arm/boot/dts/tegra114.dtsi create mode 100644 arch/arm/boot/dts/tegra114.dtsip delete mode 100644 arch/arm/boot/dts/tegra20-colibri-512.dtsi create mode 100644 arch/arm/boot/dts/tegra20-colibri-512.dtsip delete mode 100644 arch/arm/boot/dts/tegra20-harmony.dts create mode 100644 arch/arm/boot/dts/tegra20-harmony.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-iris-512.dts create mode 100644 arch/arm/boot/dts/tegra20-iris-512.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-medcom-wide.dts create mode 100644 arch/arm/boot/dts/tegra20-medcom-wide.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-paz00.dts create mode 100644 arch/arm/boot/dts/tegra20-paz00.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-plutux.dts create mode 100644 arch/arm/boot/dts/tegra20-plutux.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-seaboard.dts create mode 100644 arch/arm/boot/dts/tegra20-seaboard.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-tamonten.dtsi create mode 100644 arch/arm/boot/dts/tegra20-tamonten.dtsip delete mode 100644 arch/arm/boot/dts/tegra20-tec.dts create mode 100644 arch/arm/boot/dts/tegra20-tec.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-trimslice.dts create mode 100644 arch/arm/boot/dts/tegra20-trimslice.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-ventana.dts create mode 100644 arch/arm/boot/dts/tegra20-ventana.dtsp delete mode 100644 arch/arm/boot/dts/tegra20-whistler.dts create mode 100644 arch/arm/boot/dts/tegra20-whistler.dtsp delete mode 100644 arch/arm/boot/dts/tegra20.dtsi create mode 100644 arch/arm/boot/dts/tegra20.dtsip delete mode 100644 arch/arm/boot/dts/tegra30-beaver.dts create mode 100644 arch/arm/boot/dts/tegra30-beaver.dtsp
Quoted 8 lines
delete mode 100644 arch/arm/boot/dts/tegra30-cardhu-a02.dts create mode 100644 arch/arm/boot/dts/tegra30-cardhu-a02.dtsp delete mode 100644 arch/arm/boot/dts/tegra30-cardhu-a04.dts create mode 100644 arch/arm/boot/dts/tegra30-cardhu-a04.dtsp delete mode 100644 arch/arm/boot/dts/tegra30-cardhu.dtsi create mode 100644 arch/arm/boot/dts/tegra30-cardhu.dtsip delete mode 100644 arch/arm/boot/dts/tegra30.dtsi create mode 100644 arch/arm/boot/dts/tegra30.dtsip
Just a reminder to use -M for git format-patch. Why -M for format-patch is not the default I wonder.
Rob
Quoted 14,568 lines
arch/arm/boot/dts/tegra114-dalmore.dts deleted +0
-21@@ -1,21 +0,0 @@ -/dts-v1/; - -/include/ "tegra114.dtsi" - -/ { - model = "NVIDIA Tegra114 Dalmore evaluation board"; - compatible = "nvidia,dalmore", "nvidia,tegra114"; - - memory { - reg = <0x80000000 0x40000000>; - }; - - serial@70006300 { - status = "okay"; - clock-frequency = <408000000>; - }; - - pmc { - nvidia,invert-interrupt; - }; -};arch/arm/boot/dts/tegra114-dalmore.dtsp new file +21
-0@@ -0,0 +1,21 @@ +/dts-v1/; + +#include "tegra114.dtsip" + +/ { + model = "NVIDIA Tegra114 Dalmore evaluation board"; + compatible = "nvidia,dalmore", "nvidia,tegra114"; + + memory { + reg = <0x80000000 0x40000000>; + }; + + serial@70006300 { + status = "okay"; + clock-frequency = <408000000>; + }; + + pmc { + nvidia,invert-interrupt; + }; +};arch/arm/boot/dts/tegra114-pluto.dts deleted +0
-21@@ -1,21 +0,0 @@ -/dts-v1/; - -/include/ "tegra114.dtsi" - -/ { - model = "NVIDIA Tegra114 Pluto evaluation board"; - compatible = "nvidia,pluto", "nvidia,tegra114"; - - memory { - reg = <0x80000000 0x40000000>; - }; - - serial@70006300 { - status = "okay"; - clock-frequency = <408000000>; - }; - - pmc { - nvidia,invert-interrupt; - }; -};arch/arm/boot/dts/tegra114-pluto.dtsp new file +21
-0@@ -0,0 +1,21 @@ +/dts-v1/; + +#include "tegra114.dtsip" + +/ { + model = "NVIDIA Tegra114 Pluto evaluation board"; + compatible = "nvidia,pluto", "nvidia,tegra114"; + + memory { + reg = <0x80000000 0x40000000>; + }; + + serial@70006300 { + status = "okay"; + clock-frequency = <408000000>; + }; + + pmc { + nvidia,invert-interrupt; + }; +};arch/arm/boot/dts/tegra114.dtsi deleted +0
-153@@ -1,153 +0,0 @@ -/include/ "skeleton.dtsi" - -/ { - compatible = "nvidia,tegra114"; - interrupt-parent = <&gic>; - - gic: interrupt-controller { - compatible = "arm,cortex-a15-gic"; - #interrupt-cells = <3>; - interrupt-controller; - reg = <0x50041000 0x1000>, - <0x50042000 0x1000>, - <0x50044000 0x2000>, - <0x50046000 0x2000>; - interrupts = <1 9 0xf04>; - }; - - timer@60005000 { - compatible = "nvidia,tegra114-timer", "nvidia,tegra20-timer"; - reg = <0x60005000 0x400>; - interrupts = <0 0 0x04 - 0 1 0x04 - 0 41 0x04 - 0 42 0x04 - 0 121 0x04 - 0 122 0x04>; - }; - - tegra_car: clock { - compatible = "nvidia,tegra114-car, nvidia,tegra30-car"; - reg = <0x60006000 0x1000>; - #clock-cells = <1>; - }; - - ahb: ahb { - compatible = "nvidia,tegra114-ahb", "nvidia,tegra30-ahb"; - reg = <0x6000c004 0x14c>; - }; - - gpio: gpio { - compatible = "nvidia,tegra114-gpio", "nvidia,tegra30-gpio"; - reg = <0x6000d000 0x1000>; - interrupts = <0 32 0x04 - 0 33 0x04 - 0 34 0x04 - 0 35 0x04 - 0 55 0x04 - 0 87 0x04 - 0 89 0x04 - 0 125 0x04>; - #gpio-cells = <2>; - gpio-controller; - #interrupt-cells = <2>; - interrupt-controller; - }; - - pinmux: pinmux { - compatible = "nvidia,tegra114-pinmux"; - reg = <0x70000868 0x148 /* Pad control registers */ - 0x70003000 0x40c>; /* Mux registers */ - }; - - serial@70006000 { - compatible = "nvidia,tegra114-uart", "nvidia,tegra20-uart"; - reg = <0x70006000 0x40>; - reg-shift = <2>; - interrupts = <0 36 0x04>; - status = "disabled"; - }; - - serial@70006040 { - compatible = "nvidia,tegra114-uart", "nvidia,tegra20-uart"; - reg = <0x70006040 0x40>; - reg-shift = <2>; - interrupts = <0 37 0x04>; - status = "disabled"; - }; - - serial@70006200 { - compatible = "nvidia,tegra114-uart", "nvidia,tegra20-uart"; - reg = <0x70006200 0x100>; - reg-shift = <2>; - interrupts = <0 46 0x04>; - status = "disabled"; - }; - - serial@70006300 { - compatible = "nvidia,tegra114-uart", "nvidia,tegra20-uart"; - reg = <0x70006300 0x100>; - reg-shift = <2>; - interrupts = <0 90 0x04>; - status = "disabled"; - }; - - rtc { - compatible = "nvidia,tegra114-rtc", "nvidia,tegra20-rtc"; - reg = <0x7000e000 0x100>; - interrupts = <0 2 0x04>; - }; - - pmc { - compatible = "nvidia,tegra114-pmc", "nvidia,tegra30-pmc"; - reg = <0x7000e400 0x400>; - }; - - iommu { - compatible = "nvidia,tegra114-smmu", "nvidia,tegra30-smmu"; - reg = <0x7000f010 0x02c - 0x7000f1f0 0x010 - 0x7000f228 0x074>; - nvidia,#asids = <4>; - dma-window = <0 0x40000000>; - nvidia,swgroups = <0x18659fe>; - nvidia,ahb = <&ahb>; - }; - - cpus { - #address-cells = <1>; - #size-cells = <0>; - - cpu@0 { - device_type = "cpu"; - compatible = "arm,cortex-a15"; - reg = <0>; - }; - - cpu@1 { - device_type = "cpu"; - compatible = "arm,cortex-a15"; - reg = <1>; - }; - - cpu@2 { - device_type = "cpu"; - compatible = "arm,cortex-a15"; - reg = <2>; - }; - - cpu@3 { - device_type = "cpu"; - compatible = "arm,cortex-a15"; - reg = <3>; - }; - }; - - timer { - compatible = "arm,armv7-timer"; - interrupts = <1 13 0xf08>, - <1 14 0xf08>, - <1 11 0xf08>, - <1 10 0xf08>; - }; -};arch/arm/boot/dts/tegra114.dtsip new file +153
-0@@ -0,0 +1,153 @@ +#include "skeleton.dtsi" + +/ { + compatible = "nvidia,tegra114"; + interrupt-parent = <&gic>; + + gic: interrupt-controller { + compatible = "arm,cortex-a15-gic"; + #interrupt-cells = <3>; + interrupt-controller; + reg = <0x50041000 0x1000>, + <0x50042000 0x1000>, + <0x50044000 0x2000>, + <0x50046000 0x2000>; + interrupts = <1 9 0xf04>; + }; + + timer@60005000 { + compatible = "nvidia,tegra114-timer", "nvidia,tegra20-timer"; + reg = <0x60005000 0x400>; + interrupts = <0 0 0x04 + 0 1 0x04 + 0 41 0x04 + 0 42 0x04 + 0 121 0x04 + 0 122 0x04>; + }; + + tegra_car: clock { + compatible = "nvidia,tegra114-car, nvidia,tegra30-car"; + reg = <0x60006000 0x1000>; + #clock-cells = <1>; + }; + + ahb: ahb { + compatible = "nvidia,tegra114-ahb", "nvidia,tegra30-ahb"; + reg = <0x6000c004 0x14c>; + }; + + gpio: gpio { + compatible = "nvidia,tegra114-gpio", "nvidia,tegra30-gpio"; + reg = <0x6000d000 0x1000>; + interrupts = <0 32 0x04 + 0 33 0x04 + 0 34 0x04 + 0 35 0x04 + 0 55 0x04 + 0 87 0x04 + 0 89 0x04 + 0 125 0x04>; + #gpio-cells = <2>; + gpio-controller; + #interrupt-cells = <2>; + interrupt-controller; + }; + + pinmux: pinmux { + compatible = "nvidia,tegra114-pinmux"; + reg = <0x70000868 0x148 /* Pad control registers */ + 0x70003000 0x40c>; /* Mux registers */ + }; + + serial@70006000 { + compatible = "nvidia,tegra114-uart", "nvidia,tegra20-uart"; + reg = <0x70006000 0x40>; + reg-shift = <2>; + interrupts = <0 36 0x04>; + status = "disabled"; + }; + + serial@70006040 { + compatible = "nvidia,tegra114-uart", "nvidia,tegra20-uart"; + reg = <0x70006040 0x40>; + reg-shift = <2>; + interrupts = <0 37 0x04>; + status = "disabled"; + }; + + serial@70006200 { + compatible = "nvidia,tegra114-uart", "nvidia,tegra20-uart"; + reg = <0x70006200 0x100>; + reg-shift = <2>; + interrupts = <0 46 0x04>; + status = "disabled"; + }; + + serial@70006300 { + compatible = "nvidia,tegra114-uart", "nvidia,tegra20-uart"; + reg = <0x70006300 0x100>; + reg-shift = <2>; + interrupts = <0 90 0x04>; + status = "disabled"; + }; + + rtc { + compatible = "nvidia,tegra114-rtc", "nvidia,tegra20-rtc"; + reg = <0x7000e000 0x100>; + interrupts = <0 2 0x04>; + }; + + pmc { + compatible = "nvidia,tegra114-pmc", "nvidia,tegra30-pmc"; + reg = <0x7000e400 0x400>; + }; + + iommu { + compatible = "nvidia,tegra114-smmu", "nvidia,tegra30-smmu"; + reg = <0x7000f010 0x02c + 0x7000f1f0 0x010 + 0x7000f228 0x074>; + nvidia,#asids = <4>; + dma-window = <0 0x40000000>; + nvidia,swgroups = <0x18659fe>; + nvidia,ahb = <&ahb>; + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a15"; + reg = <0>; + }; + + cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a15"; + reg = <1>; + }; + + cpu@2 { + device_type = "cpu"; + compatible = "arm,cortex-a15"; + reg = <2>; + }; + + cpu@3 { + device_type = "cpu"; + compatible = "arm,cortex-a15"; + reg = <3>; + }; + }; + + timer { + compatible = "arm,armv7-timer"; + interrupts = <1 13 0xf08>, + <1 14 0xf08>, + <1 11 0xf08>, + <1 10 0xf08>; + }; +};arch/arm/boot/dts/tegra20-colibri-512.dtsi deleted +0
-491@@ -1,491 +0,0 @@ -/include/ "tegra20.dtsi" - -/ { - model = "Toradex Colibri T20 512MB"; - compatible = "toradex,colibri_t20-512", "nvidia,tegra20"; - - memory { - reg = <0x00000000 0x20000000>; - }; - - host1x { - hdmi { - vdd-supply = <&hdmi_vdd_reg>; - pll-supply = <&hdmi_pll_reg>; - - nvidia,ddc-i2c-bus = <&i2c_ddc>; - nvidia,hpd-gpio = <&gpio 111 0>; /* PN7 */ - }; - }; - - pinmux { - pinctrl-names = "default"; - pinctrl-0 = <&state_default>; - - state_default: pinmux { - audio_refclk { - nvidia,pins = "cdev1"; - nvidia,function = "plla_out"; - nvidia,pull = <0>; - nvidia,tristate = <0>; - }; - crt { - nvidia,pins = "crtp"; - nvidia,function = "crt"; - nvidia,pull = <0>; - nvidia,tristate = <1>; - }; - dap3 { - nvidia,pins = "dap3"; - nvidia,function = "dap3"; - nvidia,pull = <0>; - nvidia,tristate = <0>; - }; - displaya { - nvidia,pins = "ld0", "ld1", "ld2", "ld3", - "ld4", "ld5", "ld6", "ld7", "ld8", - "ld9", "ld10", "ld11", "ld12", "ld13", - "ld14", "ld15", "ld16", "ld17", - "lhs", "lpw0", "lpw2", "lsc0", - "lsc1", "lsck", "lsda", "lspi", "lvs"; - nvidia,function = "displaya"; - nvidia,tristate = <1>; - }; - gpio_dte { - nvidia,pins = "dte"; - nvidia,function = "rsvd1"; - nvidia,pull = <0>; - nvidia,tristate = <0>; - }; - gpio_gmi { - nvidia,pins = "ata", "atc", "atd", "ate", - "dap1", "dap2", "dap4", "gpu", "irrx", - "irtx", "spia", "spib", "spic"; - nvidia,function = "gmi"; - nvidia,pull = <0>; - nvidia,tristate = <0>; - }; - gpio_pta { - nvidia,pins = "pta"; - nvidia,function = "rsvd4"; - nvidia,pull = <0>; - nvidia,tristate = <0>; - }; - gpio_uac { - nvidia,pins = "uac"; - nvidia,function = "rsvd2"; - nvidia,pull = <0>; - nvidia,tristate = <0>; - }; - hdint { - nvidia,pins = "hdint"; - nvidia,function = "hdmi"; - nvidia,tristate = <1>; - }; - i2c1 { - nvidia,pins = "rm"; - nvidia,function = "i2c1"; - nvidia,pull = <0>; - nvidia,tristate = <1>; - }; - i2c3 { - nvidia,pins = "dtf"; - nvidia,function = "i2c3"; - nvidia,pull = <0>; - nvidia,tristate = <1>; - }; - i2cddc { - nvidia,pins = "ddc"; - nvidia,function = "i2c2"; - nvidia,pull = <2>; - nvidia,tristate = <1>; - }; - i2cp { - nvidia,pins = "i2cp"; - nvidia,function = "i2cp"; - nvidia,pull = <0>; - nvidia,tristate = <0>; - }; - irda { - nvidia,pins = "uad"; - nvidia,function = "irda"; - nvidia,pull = <0>; - nvidia,tristate = <1>; - }; - nand { - nvidia,pins = "kbca", "kbcc", "kbcd", - "kbce", "kbcf"; - nvidia,function = "nand"; - nvidia,pull = <0>; - nvidia,tristate = <0>; - }; - owc { - nvidia,pins = "owc"; - nvidia,function = "owr"; - nvidia,pull = <0>; - nvidia,tristate = <1>; - }; - pmc { - nvidia,pins = "pmc"; - nvidia,function = "pwr_on"; - nvidia,tristate = <0>; - }; - pwm { - nvidia,pins = "sdb", "sdc", "sdd"; - nvidia,function = "pwm"; - nvidia,tristate = <1>; - }; - sdio4 { - nvidia,pins = "atb", "gma", "gme"; - nvidia,function = "sdio4"; - nvidia,pull = <0>; - nvidia,tristate = <1>; - }; - spi1 { - nvidia,pins = "spid", "spie", "spif"; - nvidia,function = "spi1"; - nvidia,pull = <0>; - nvidia,tristate = <1>; - }; - spi4 { - nvidia,pins = "slxa", "slxc", "slxd", "slxk"; - nvidia,function = "spi4"; - nvidia,pull = <0>; - nvidia,tristate = <1>; - }; - uarta { - nvidia,pins = "sdio1"; - nvidia,function = "uarta"; - nvidia,pull = <0>; - nvidia,tristate = <1>; - }; - uartd { - nvidia,pins = "gmc"; - nvidia,function = "uartd"; - nvidia,pull = <0>; - nvidia,tristate = <1>; - }; - ulpi { - nvidia,pins = "uaa", "uab", "uda"; - nvidia,function = "ulpi"; - nvidia,pull = <0>; - nvidia,tristate = <0>; - }; - ulpi_refclk { - nvidia,pins = "cdev2"; - nvidia,function = "pllp_out4"; - nvidia,pull = <0>; - nvidia,tristate = <0>; - }; - usb_gpio { - nvidia,pins = "spig", "spih"; - nvidia,function = "spi2_alt"; - nvidia,pull = <0>; - nvidia,tristate = <0>; - }; - vi { - nvidia,pins = "dta", "dtb", "dtc", "dtd"; - nvidia,function = "vi"; - nvidia,pull = <0>; - nvidia,tristate = <1>; - }; - vi_sc { - nvidia,pins = "csus"; - nvidia,function = "vi_sensor_clk"; - nvidia,pull = <0>; - nvidia,tristate = <1>; - }; - }; - }; - - i2c@7000c000 { - clock-frequency = <400000>; - }; - - i2c_ddc: i2c@7000c400 { - clock-frequency = <100000>; - }; - - i2c@7000c500 { - clock-frequency = <400000>; - }; - - i2c@7000d000 { - status = "okay"; - clock-frequency = <400000>; - - pmic: tps6586x@34 { - compatible = "ti,tps6586x"; - reg = <0x34>; - interrupts = <0 86 0x4>; - - ti,system-power-controller; - - #gpio-cells = <2>; - gpio-controller; - - sys-supply = <&vdd_5v0_reg>; - vin-sm0-supply = <&sys_reg>; - vin-sm1-supply = <&sys_reg>; - vin-sm2-supply = <&sys_reg>; - vinldo01-supply = <&sm2_reg>; - vinldo23-supply = <&sm2_reg>; - vinldo4-supply = <&sm2_reg>; - vinldo678-supply = <&sm2_reg>; - vinldo9-supply = <&sm2_reg>; - - regulators { - #address-cells = <1>; - #size-cells = <0>; - - sys_reg: regulator@0 { - reg = <0>; - regulator-compatible = "sys"; - regulator-name = "vdd_sys"; - regulator-always-on; - }; - - regulator@1 { - reg = <1>; - regulator-compatible = "sm0"; - regulator-name = "vdd_sm0,vdd_core"; - regulator-min-microvolt = <1275000>; - regulator-max-microvolt = <1275000>; - regulator-always-on; - }; - - regulator@2 { - reg = <2>; - regulator-compatible = "sm1"; - regulator-name = "vdd_sm1,vdd_cpu"; - regulator-min-microvolt = <1100000>; - regulator-max-microvolt = <1100000>; - regulator-always-on; - }; - - sm2_reg: regulator@3 { - reg = <3>; - regulator-compatible = "sm2"; - regulator-name = "vdd_sm2,vin_ldo*"; - regulator-min-microvolt = <3700000>; - regulator-max-microvolt = <3700000>; - regulator-always-on; - }; - - /* LDO0 is not connected to anything */ - - regulator@5 { - reg = <5>; - regulator-compatible = "ldo1"; - regulator-name = "vdd_ldo1,avdd_pll*"; - regulator-min-microvolt = <1100000>; - regulator-max-microvolt = <1100000>; - regulator-always-on; - }; - - regulator@6 { - reg = <6>; - regulator-compatible = "ldo2"; - regulator-name = "vdd_ldo2,vdd_rtc"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - }; - - /* LDO3 is not connected to anything */ - - regulator@8 { - reg = <8>; - regulator-compatible = "ldo4"; - regulator-name = "vdd_ldo4,avdd_osc,vddio_sys"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - }; - - ldo5_reg: regulator@9 { - reg = <9>; - regulator-compatible = "ldo5"; - regulator-name = "vdd_ldo5,vdd_fuse"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - }; - - regulator@10 { - reg = <10>; - regulator-compatible = "ldo6"; - regulator-name = "vdd_ldo6,avdd_vdac,vddio_vi,vddio_cam"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - }; - - hdmi_vdd_reg: regulator@11 { - reg = <11>; - regulator-compatible = "ldo7"; - regulator-name = "vdd_ldo7,avdd_hdmi"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - }; - - hdmi_pll_reg: regulator@12 { - reg = <12>; - regulator-compatible = "ldo8"; - regulator-name = "vdd_ldo8,avdd_hdmi_pll"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - }; - - regulator@13 { - reg = <13>; - regulator-compatible = "ldo9"; - regulator-name = "vdd_ldo9,avdd_2v85,vdd_ddr_rx"; - regulator-min-microvolt = <2850000>; - regulator-max-microvolt = <2850000>; - regulator-always-on; - }; - - regulator@14 { - reg = <14>; - regulator-compatible = "ldo_rtc"; - regulator-name = "vdd_rtc_out,vdd_cell"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - }; - }; - }; - - temperature-sensor@4c { - compatible = "national,lm95245"; - reg = <0x4c>; - }; - }; - - memory-controller@7000f400 { - emc-table@83250 { - reg = <83250>; - compatible = "nvidia,tegra20-emc-table"; - clock-frequency = <83250>; - nvidia,emc-registers = <0x00000005 0x00000011 - 0x00000004 0x00000002 0x00000004 0x00000004 - 0x00000001 0x0000000a 0x00000002 0x00000002 - 0x00000001 0x00000001 0x00000003 0x00000004 - 0x00000003 0x00000009 0x0000000c 0x0000025f - 0x00000000 0x00000003 0x00000003 0x00000002 - 0x00000002 0x00000001 0x00000008 0x000000c8 - 0x00000003 0x00000005 0x00000003 0x0000000c - 0x00000002 0x00000000 0x00000000 0x00000002 - 0x00000000 0x00000000 0x00000083 0x00520006 - 0x00000010 0x00000008 0x00000000 0x00000000 - 0x00000000 0x00000000 0x00000000 0x00000000>; - }; - emc-table@133200 { - reg = <133200>; - compatible = "nvidia,tegra20-emc-table"; - clock-frequency = <133200>; - nvidia,emc-registers = <0x00000008 0x00000019 - 0x00000006 0x00000002 0x00000004 0x00000004 - 0x00000001 0x0000000a 0x00000002 0x00000002 - 0x00000002 0x00000001 0x00000003 0x00000004 - 0x00000003 0x00000009 0x0000000c 0x0000039f - 0x00000000 0x00000003 0x00000003 0x00000002 - 0x00000002 0x00000001 0x00000008 0x000000c8 - 0x00000003 0x00000007 0x00000003 0x0000000c - 0x00000002 0x00000000 0x00000000 0x00000002 - 0x00000000 0x00000000 0x00000083 0x00510006 - 0x00000010 0x00000008 0x00000000 0x00000000 - 0x00000000 0x00000000 0x00000000 0x00000000>; - }; - emc-table@166500 { - reg = <166500>; - compatible = "nvidia,tegra20-emc-table"; - clock-frequency = <166500>; - nvidia,emc-registers = <0x0000000a 0x00000021 - 0x00000008 0x00000003 0x00000004 0x00000004 - 0x00000002 0x0000000a 0x00000003 0x00000003 - 0x00000002 0x00000001 0x00000003 0x00000004 - 0x00000003 0x00000009 0x0000000c 0x000004df - 0x00000000 0x00000003 0x00000003 0x00000003 - 0x00000003 0x00000001 0x00000009 0x000000c8 - 0x00000003 0x00000009 0x00000004 0x0000000c - 0x00000002 0x00000000 0x00000000 0x00000002 - 0x00000000 0x00000000 0x00000083 0x004f0006 - 0x00000010 0x00000008 0x00000000 0x00000000 - 0x00000000 0x00000000 0x00000000 0x00000000>; - }; - emc-table@333000 { - reg = <333000>; - compatible = "nvidia,tegra20-emc-table"; - clock-frequency = <333000>; - nvidia,emc-registers = <0x00000014 0x00000041 - 0x0000000f 0x00000005 0x00000004 0x00000005 - 0x00000003 0x0000000a 0x00000005 0x00000005 - 0x00000004 0x00000001 0x00000003 0x00000004 - 0x00000003 0x00000009 0x0000000c 0x000009ff - 0x00000000 0x00000003 0x00000003 0x00000005 - 0x00000005 0x00000001 0x0000000e 0x000000c8 - 0x00000003 0x00000011 0x00000006 0x0000000c - 0x00000002 0x00000000 0x00000000 0x00000002 - 0x00000000 0x00000000 0x00000083 0x00380006 - 0x00000010 0x00000008 0x00000000 0x00000000 - 0x00000000 0x00000000 0x00000000 0x00000000>; - }; - }; - - ac97: ac97 { - status = "okay"; - nvidia,codec-reset-gpio = <&gpio 168 0>; /* gpio PV0 */ - nvidia,codec-sync-gpio = <&gpio 120 0>; /* gpio PP0 */ - }; - - usb@c5004000 { - status = "okay"; - nvidia,phy-reset-gpio = <&gpio 169 0>; /* gpio PV1 */ - }; - - sdhci@c8000600 { - cd-gpios = <&gpio 23 0>; /* gpio PC7 */ - }; - - sound { - compatible = "nvidia,tegra-audio-wm9712-colibri_t20", - "nvidia,tegra-audio-wm9712"; - nvidia,model = "Colibri T20 AC97 Audio"; - - nvidia,audio-routing = - "Headphone", "HPOUTL", - "Headphone", "HPOUTR", - "LineIn", "LINEINL", - "LineIn", "LINEINR", - "Mic", "MIC1"; - - nvidia,ac97-controller = <&ac97>; - }; - - regulators { - compatible = "simple-bus"; - #address-cells = <1>; - #size-cells = <0>; - - vdd_5v0_reg: regulator@100 { - compatible = "regulator-fixed"; - reg = <100>; - regulator-name = "vdd_5v0"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - regulator-always-on; - }; - - regulator@101 { - compatible = "regulator-fixed"; - reg = <101>; - regulator-name = "internal_usb"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - enable-active-high; - regulator-boot-on; - regulator-always-on; - gpio = <&gpio 217 0>; - }; - }; -};arch/arm/boot/dts/tegra20-colibri-512.dtsip new file +491
-0@@ -0,0 +1,491 @@ +#include "tegra20.dtsip" + +/ { + model = "Toradex Colibri T20 512MB"; + compatible = "toradex,colibri_t20-512", "nvidia,tegra20"; + + memory { + reg = <0x00000000 0x20000000>; + }; + + host1x { + hdmi { + vdd-supply = <&hdmi_vdd_reg>; + pll-supply = <&hdmi_pll_reg>; + + nvidia,ddc-i2c-bus = <&i2c_ddc>; + nvidia,hpd-gpio = <&gpio 111 0>; /* PN7 */ + }; + }; + + pinmux { + pinctrl-names = "default"; + pinctrl-0 = <&state_default>; + + state_default: pinmux { + audio_refclk { + nvidia,pins = "cdev1"; + nvidia,function = "plla_out"; + nvidia,pull = <0>; + nvidia,tristate = <0>; + }; + crt { + nvidia,pins = "crtp"; + nvidia,function = "crt"; + nvidia,pull = <0>; + nvidia,tristate = <1>; + }; + dap3 { + nvidia,pins = "dap3"; + nvidia,function = "dap3"; + nvidia,pull = <0>; + nvidia,tristate = <0>; + }; + displaya { + nvidia,pins = "ld0", "ld1", "ld2", "ld3", + "ld4", "ld5", "ld6", "ld7", "ld8", + "ld9", "ld10", "ld11", "ld12", "ld13", + "ld14", "ld15", "ld16", "ld17", + "lhs", "lpw0", "lpw2", "lsc0", + "lsc1", "lsck", "lsda", "lspi", "lvs"; + nvidia,function = "displaya"; + nvidia,tristate = <1>; + }; + gpio_dte { + nvidia,pins = "dte"; + nvidia,function = "rsvd1"; + nvidia,pull = <0>; + nvidia,tristate = <0>; + }; + gpio_gmi { + nvidia,pins = "ata", "atc", "atd", "ate", + "dap1", "dap2", "dap4", "gpu", "irrx", + "irtx", "spia", "spib", "spic"; + nvidia,function = "gmi"; + nvidia,pull = <0>; + nvidia,tristate = <0>; + }; + gpio_pta { + nvidia,pins = "pta"; + nvidia,function = "rsvd4"; + nvidia,pull = <0>; + nvidia,tristate = <0>; + }; + gpio_uac { + nvidia,pins = "uac"; + nvidia,function = "rsvd2"; + nvidia,pull = <0>; + nvidia,tristate = <0>; + }; + hdint { + nvidia,pins = "hdint"; + nvidia,function = "hdmi"; + nvidia,tristate = <1>; + }; + i2c1 { + nvidia,pins = "rm"; + nvidia,function = "i2c1"; + nvidia,pull = <0>; + nvidia,tristate = <1>; + }; + i2c3 { + nvidia,pins = "dtf"; + nvidia,function = "i2c3"; + nvidia,pull = <0>; + nvidia,tristate = <1>; + }; + i2cddc { + nvidia,pins = "ddc"; + nvidia,function = "i2c2"; + nvidia,pull = <2>; + nvidia,tristate = <1>; + }; + i2cp { + nvidia,pins = "i2cp"; + nvidia,function = "i2cp"; + nvidia,pull = <0>; + nvidia,tristate = <0>; + }; + irda { + nvidia,pins = "uad"; + nvidia,function = "irda"; + nvidia,pull = <0>; + nvidia,tristate = <1>; + }; + nand { + nvidia,pins = "kbca", "kbcc", "kbcd", + "kbce", "kbcf"; + nvidia,function = "nand"; + nvidia,pull = <0>; + nvidia,tristate = <0>; + }; + owc { + nvidia,pins = "owc"; + nvidia,function = "owr"; + nvidia,pull = <0>; + nvidia,tristate = <1>; + }; + pmc { + nvidia,pins = "pmc"; + nvidia,function = "pwr_on"; + nvidia,tristate = <0>; + }; + pwm { + nvidia,pins = "sdb", "sdc", "sdd"; + nvidia,function = "pwm"; + nvidia,tristate = <1>; + }; + sdio4 { + nvidia,pins = "atb", "gma", "gme"; + nvidia,function = "sdio4"; + nvidia,pull = <0>; + nvidia,tristate = <1>; + }; + spi1 { + nvidia,pins = "spid", "spie", "spif"; + nvidia,function = "spi1"; + nvidia,pull = <0>; + nvidia,tristate = <1>; + }; + spi4 { + nvidia,pins = "slxa", "slxc", "slxd", "slxk"; + nvidia,function = "spi4"; + nvidia,pull = <0>; + nvidia,tristate = <1>; + }; + uarta { + nvidia,pins = "sdio1"; + nvidia,function = "uarta"; + nvidia,pull = <0>; + nvidia,tristate = <1>; + }; + uartd { + nvidia,pins = "gmc"; + nvidia,function = "uartd"; + nvidia,pull = <0>; + nvidia,tristate = <1>; + }; + ulpi { + nvidia,pins = "uaa", "uab", "uda"; + nvidia,function = "ulpi"; + nvidia,pull = <0>; + nvidia,tristate = <0>; + }; + ulpi_refclk { + nvidia,pins = "cdev2"; + nvidia,function = "pllp_out4"; + nvidia,pull = <0>; + nvidia,tristate = <0>; + }; + usb_gpio { + nvidia,pins = "spig", "spih"; + nvidia,function = "spi2_alt"; + nvidia,pull = <0>; + nvidia,tristate = <0>; + }; + vi { + nvidia,pins = "dta", "dtb", "dtc", "dtd"; + nvidia,function = "vi"; + nvidia,pull = <0>; + nvidia,tristate = <1>; + }; + vi_sc { + nvidia,pins = "csus"; + nvidia,function = "vi_sensor_clk"; + nvidia,pull = <0>; + nvidia,tristate = <1>; + }; + }; + }; + + i2c@7000c000 { + clock-frequency = <400000>; + }; + + i2c_ddc: i2c@7000c400 { + clock-frequency = <100000>; + }; + + i2c@7000c500 { + clock-frequency = <400000>; + }; + + i2c@7000d000 { + status = "okay"; + clock-frequency = <400000>; + + pmic: tps6586x@34 { + compatible = "ti,tps6586x"; + reg = <0x34>; + interrupts = <0 86 0x4>; + + ti,system-power-controller; + + #gpio-cells = <2>; + gpio-controller; + + sys-supply = <&vdd_5v0_reg>; + vin-sm0-supply = <&sys_reg>; + vin-sm1-supply = <&sys_reg>; + vin-sm2-supply = <&sys_reg>; + vinldo01-supply = <&sm2_reg>; + vinldo23-supply = <&sm2_reg>; + vinldo4-supply = <&sm2_reg>; + vinldo678-supply = <&sm2_reg>; + vinldo9-supply = <&sm2_reg>; + + regulators { + #address-cells = <1>; + #size-cells = <0>; + + sys_reg: regulator@0 { + reg = <0>; + regulator-compatible = "sys"; + regulator-name = "vdd_sys"; + regulator-always-on; + }; + + regulator@1 { + reg = <1>; + regulator-compatible = "sm0"; + regulator-name = "vdd_sm0,vdd_core"; + regulator-min-microvolt = <1275000>; + regulator-max-microvolt = <1275000>; + regulator-always-on; + }; + + regulator@2 { + reg = <2>; + regulator-compatible = "sm1"; + regulator-name = "vdd_sm1,vdd_cpu"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-always-on; + }; + + sm2_reg: regulator@3 { + reg = <3>; + regulator-compatible = "sm2"; + regulator-name = "vdd_sm2,vin_ldo*"; + regulator-min-microvolt = <3700000>; + regulator-max-microvolt = <3700000>; + regulator-always-on; + }; + + /* LDO0 is not connected to anything */ + + regulator@5 { + reg = <5>; + regulator-compatible = "ldo1"; + regulator-name = "vdd_ldo1,avdd_pll*"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-always-on; + }; + + regulator@6 { + reg = <6>; + regulator-compatible = "ldo2"; + regulator-name = "vdd_ldo2,vdd_rtc"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + /* LDO3 is not connected to anything */ + + regulator@8 { + reg = <8>; + regulator-compatible = "ldo4"; + regulator-name = "vdd_ldo4,avdd_osc,vddio_sys"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + ldo5_reg: regulator@9 { + reg = <9>; + regulator-compatible = "ldo5"; + regulator-name = "vdd_ldo5,vdd_fuse"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + regulator@10 { + reg = <10>; + regulator-compatible = "ldo6"; + regulator-name = "vdd_ldo6,avdd_vdac,vddio_vi,vddio_cam"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + hdmi_vdd_reg: regulator@11 { + reg = <11>; + regulator-compatible = "ldo7"; + regulator-name = "vdd_ldo7,avdd_hdmi"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + hdmi_pll_reg: regulator@12 { + reg = <12>; + regulator-compatible = "ldo8"; + regulator-name = "vdd_ldo8,avdd_hdmi_pll"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + regulator@13 { + reg = <13>; + regulator-compatible = "ldo9"; + regulator-name = "vdd_ldo9,avdd_2v85,vdd_ddr_rx"; + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + regulator-always-on; + }; + + regulator@14 { + reg = <14>; + regulator-compatible = "ldo_rtc"; + regulator-name = "vdd_rtc_out,vdd_cell"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + }; + }; + + temperature-sensor@4c { + compatible = "national,lm95245"; + reg = <0x4c>; + }; + }; + + memory-controller@7000f400 { + emc-table@83250 { + reg = <83250>; + compatible = "nvidia,tegra20-emc-table"; + clock-frequency = <83250>; + nvidia,emc-registers = <0x00000005 0x00000011 + 0x00000004 0x00000002 0x00000004 0x00000004 + 0x00000001 0x0000000a 0x00000002 0x00000002 + 0x00000001 0x00000001 0x00000003 0x00000004 + 0x00000003 0x00000009 0x0000000c 0x0000025f + 0x00000000 0x00000003 0x00000003 0x00000002 + 0x00000002 0x00000001 0x00000008 0x000000c8 + 0x00000003 0x00000005 0x00000003 0x0000000c + 0x00000002 0x00000000 0x00000000 0x00000002 + 0x00000000 0x00000000 0x00000083 0x00520006 + 0x00000010 0x00000008 0x00000000 0x00000000 + 0x00000000 0x00000000 0x00000000 0x00000000>; + }; + emc-table@133200 { + reg = <133200>; + compatible = "nvidia,tegra20-emc-table"; + clock-frequency = <133200>; + nvidia,emc-registers = <0x00000008 0x00000019 + 0x00000006 0x00000002 0x00000004 0x00000004 + 0x00000001 0x0000000a 0x00000002 0x00000002 + 0x00000002 0x00000001 0x00000003 0x00000004 + 0x00000003 0x00000009 0x0000000c 0x0000039f + 0x00000000 0x00000003 0x00000003 0x00000002 + 0x00000002 0x00000001 0x00000008 0x000000c8 + 0x00000003 0x00000007 0x00000003 0x0000000c + 0x00000002 0x00000000 0x00000000 0x00000002 + 0x00000000 0x00000000 0x00000083 0x00510006 + 0x00000010 0x00000008 0x00000000 0x00000000 + 0x00000000 0x00000000 0x00000000 0x00000000>; + }; + emc-table@166500 { + reg = <166500>; + compatible = "nvidia,tegra20-emc-table"; + clock-frequency = <166500>; + nvidia,emc-registers = <0x0000000a 0x00000021 + 0x00000008 0x00000003 0x00000004 0x00000004 + 0x00000002 0x0000000a 0x00000003 0x00000003 + 0x00000002 0x00000001 0x00000003 0x00000004 + 0x00000003 0x00000009 0x0000000c 0x000004df + 0x00000000 0x00000003 0x00000003 0x00000003 + 0x00000003 0x00000001 0x00000009 0x000000c8 + 0x00000003 0x00000009 0x00000004 0x0000000c + 0x00000002 0x00000000 0x00000000 0x00000002 + 0x00000000 0x00000000 0x00000083 0x004f0006 + 0x00000010 0x00000008 0x00000000 0x00000000 + 0x00000000 0x00000000 0x00000000 0x00000000>; + }; + emc-table@333000 { + reg = <333000>; + compatible = "nvidia,tegra20-emc-table"; + clock-frequency = <333000>; + nvidia,emc-registers = <0x00000014 0x00000041 + 0x0000000f 0x00000005 0x00000004 0x00000005 + 0x00000003 0x0000000a 0x00000005 0x00000005 + 0x00000004 0x00000001 0x00000003 0x00000004 + 0x00000003 0x00000009 0x0000000c 0x000009ff + 0x00000000 0x00000003 0x00000003 0x00000005 + 0x00000005 0x00000001 0x0000000e 0x000000c8 + 0x00000003 0x00000011 0x00000006 0x0000000c + 0x00000002 0x00000000 0x00000000 0x00000002 + 0x00000000 0x00000000 0x00000083 0x00380006 + 0x00000010 0x00000008 0x00000000 0x00000000 + 0x00000000 0x00000000 0x00000000 0x00000000>; + }; + }; + + ac97: ac97 { + status = "okay"; + nvidia,codec-reset-gpio = <&gpio 168 0>; /* gpio PV0 */ + nvidia,codec-sync-gpio = <&gpio 120 0>; /* gpio PP0 */ + }; + + usb@c5004000 { + status = "okay"; + nvidia,phy-reset-gpio = <&gpio 169 0>; /* gpio PV1 */ + }; + + sdhci@c8000600 { + cd-gpios = <&gpio 23 0>; /* gpio PC7 */ + }; + + sound { + compatible = "nvidia,tegra-audio-wm9712-colibri_t20", + "nvidia,tegra-audio-wm9712"; + nvidia,model = "Colibri T20 AC97 Audio"; + + nvidia,audio-routing = + "Headphone", "HPOUTL", + "Headphone", "HPOUTR", + "LineIn", "LINEINL", + "LineIn", "LINEINR", + "Mic", "MIC1"; + + nvidia,ac97-controller = <&ac97>; + }; + + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + vdd_5v0_reg: regulator@100 { + compatible = "regulator-fixed"; + reg = <100>; + regulator-name = "vdd_5v0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + + regulator@101 { + compatible = "regulator-fixed"; + reg = <101>; + regulator-name = "internal_usb"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + regulator-boot-on; + regulator-always-on; + gpio = <&gpio 217 0>; + }; + }; +};arch/arm/boot/dts/tegra20-harmony.dts deleted +0
-660@@ -1,660 +0,0 @@ -/dts-v1/; - -/include/ "tegra20.dtsi" - -/ { - model = "NVIDIA Tegra20 Harmony evaluation board"; - compatible = "nvidia,harmony", "nvidia,tegra20"; - - memory { - reg = <0x00000000 0x40000000>; - }; - - host1x { - hdmi { - status = "okay"; - - vdd-supply = <&hdmi_vdd_reg>; - pll-supply = <&hdmi_pll_reg>; - - nvidia,ddc-i2c-bus = <&hdmi_ddc>; - nvidia,hpd-gpio = <&gpio 111 0>; /* PN7 */ - }; - }; - - pinmux { - pinctrl-names = "default"; - pinctrl-0 = <&state_default>; - - state_default: pinmux { - ata { - nvidia,pins = "ata"; - nvidia,function = "ide"; - }; - atb { - nvidia,pins = "atb", "gma", "gme"; - nvidia,function = "sdio4"; - }; - atc { - nvidia,pins = "atc"; - nvidia,function = "nand"; - }; - atd { - nvidia,pins = "atd", "ate", "gmb", "gmd", "gpu", - "spia", "spib", "spic"; - nvidia,function = "gmi"; - }; - cdev1 { - nvidia,pins = "cdev1"; - nvidia,function = "plla_out"; - }; - cdev2 { - nvidia,pins = "cdev2"; - nvidia,function = "pllp_out4"; - }; - crtp { - nvidia,pins = "crtp"; - nvidia,function = "crt"; - }; - csus { - nvidia,pins = "csus"; - nvidia,function = "vi_sensor_clk"; - }; - dap1 { - nvidia,pins = "dap1"; - nvidia,function = "dap1"; - }; - dap2 { - nvidia,pins = "dap2"; - nvidia,function = "dap2"; - }; - dap3 { - nvidia,pins = "dap3"; - nvidia,function = "dap3"; - }; - dap4 { - nvidia,pins = "dap4"; - nvidia,function = "dap4"; - }; - ddc { - nvidia,pins = "ddc"; - nvidia,function = "i2c2"; - }; - dta { - nvidia,pins = "dta", "dtd"; - nvidia,function = "sdio2"; - }; - dtb { - nvidia,pins = "dtb", "dtc", "dte"; - nvidia,function = "rsvd1"; - }; - dtf { - nvidia,pins = "dtf"; - nvidia,function = "i2c3"; - }; - gmc { - nvidia,pins = "gmc"; - nvidia,function = "uartd"; - }; - gpu7 { - nvidia,pins = "gpu7"; - nvidia,function = "rtck"; - }; - gpv { - nvidia,pins = "gpv", "slxa", "slxk"; - nvidia,function = "pcie"; - }; - hdint { - nvidia,pins = "hdint", "pta"; - nvidia,function = "hdmi"; - }; - i2cp { - nvidia,pins = "i2cp"; - nvidia,function = "i2cp"; - }; - irrx { - nvidia,pins = "irrx", "irtx"; - nvidia,function = "uarta"; - }; - kbca { - nvidia,pins = "kbca", "kbcb", "kbcc", "kbcd", - "kbce", "kbcf"; - nvidia,function = "kbc"; - }; - lcsn { - nvidia,pins = "lcsn", "ld0", "ld1", "ld2", - "ld3", "ld4", "ld5", "ld6", "ld7", - "ld8", "ld9", "ld10", "ld11", "ld12", - "ld13", "ld14", "ld15", "ld16", "ld17", - "ldc", "ldi", "lhp0", "lhp1", "lhp2", - "lhs", "lm0", "lm1", "lpp", "lpw0", - "lpw1", "lpw2", "lsc0", "lsc1", "lsck", - "lsda", "lsdi", "lspi", "lvp0", "lvp1", - "lvs"; - nvidia,function = "displaya"; - }; - owc { - nvidia,pins = "owc", "spdi", "spdo", "uac"; - nvidia,function = "rsvd2"; - }; - pmc { - nvidia,pins = "pmc"; - nvidia,function = "pwr_on"; - }; - rm { - nvidia,pins = "rm"; - nvidia,function = "i2c1"; - }; - sdb { - nvidia,pins = "sdb", "sdc", "sdd"; - nvidia,function = "pwm"; - }; - sdio1 { - nvidia,pins = "sdio1"; - nvidia,function = "sdio1"; - }; - slxc { - nvidia,pins = "slxc", "slxd"; - nvidia,function = "spdif"; - }; - spid { - nvidia,pins = "spid", "spie", "spif"; - nvidia,function = "spi1"; - }; - spig { - nvidia,pins = "spig", "spih"; - nvidia,function = "spi2_alt"; - }; - uaa { - nvidia,pins = "uaa", "uab", "uda"; - nvidia,function = "ulpi"; - }; - uad { - nvidia,pins = "uad"; - nvidia,function = "irda"; - }; - uca { - nvidia,pins = "uca", "ucb"; - nvidia,function = "uartc"; - }; - conf_ata { - nvidia,pins = "ata", "atb", "atc", "atd", "ate", - "cdev1", "cdev2", "dap1", "dtb", "gma", - "gmb", "gmc", "gmd", "gme", "gpu7", - "gpv", "i2cp", "pta", "rm", "slxa", - "slxk", "spia", "spib", "uac"; - nvidia,pull = <0>; - nvidia,tristate = <0>; - }; - conf_ck32 { - nvidia,pins = "ck32", "ddrc", "pmca", "pmcb", - "pmcc", "pmcd", "pmce", "xm2c", "xm2d"; - nvidia,pull = <0>; - }; - conf_csus { - nvidia,pins = "csus", "spid", "spif"; - nvidia,pull = <1>; - nvidia,tristate = <1>; - }; - conf_crtp { - nvidia,pins = "crtp", "dap2", "dap3", "dap4", - "dtc", "dte", "dtf", "gpu", "sdio1", - "slxc", "slxd", "spdi", "spdo", "spig", - "uda"; - nvidia,pull = <0>; - nvidia,tristate = <1>; - }; - conf_ddc { - nvidia,pins = "ddc", "dta", "dtd", "kbca", - "kbcb", "kbcc", "kbcd", "kbce", "kbcf", - "sdc"; - nvidia,pull = <2>; - nvidia,tristate = <0>; - }; - conf_hdint { - nvidia,pins = "hdint", "lcsn", "ldc", "lm1", - "lpw1", "lsc1", "lsck", "lsda", "lsdi", - "lvp0", "owc", "sdb"; - nvidia,tristate = <1>; - }; - conf_irrx { - nvidia,pins = "irrx", "irtx", "sdd", "spic", - "spie", "spih", "uaa", "uab", "uad", - "uca", "ucb"; - nvidia,pull = <2>; - nvidia,tristate = <1>; - }; - conf_lc { - nvidia,pins = "lc", "ls"; - nvidia,pull = <2>; - }; - conf_ld0 { - nvidia,pins = "ld0", "ld1", "ld2", "ld3", "ld4", - "ld5", "ld6", "ld7", "ld8", "ld9", - "ld10", "ld11", "ld12", "ld13", "ld14", - "ld15", "ld16", "ld17", "ldi", "lhp0", - "lhp1", "lhp2", "lhs", "lm0", "lpp", - "lpw0", "lpw2", "lsc0", "lspi", "lvp1", - "lvs", "pmc"; - nvidia,tristate = <0>; - }; - conf_ld17_0 { - nvidia,pins = "ld17_0", "ld19_18", "ld21_20", - "ld23_22"; - nvidia,pull = <1>; - }; - }; - }; - - i2s@70002800 { - status = "okay"; - }; - - serial@70006300 { - status = "okay"; - }; - - i2c@7000c000 { - status = "okay"; - clock-frequency = <400000>; - - wm8903: wm8903@1a { - compatible = "wlf,wm8903"; - reg = <0x1a>; - interrupt-parent = <&gpio>; - interrupts = <187 0x04>; - - gpio-controller; - #gpio-cells = <2>; - - micdet-cfg = <0>; - micdet-delay = <100>; - gpio-cfg = <0xffffffff 0xffffffff 0 0xffffffff 0xffffffff>; - }; - }; - - hdmi_ddc: i2c@7000c400 { - status = "okay"; - clock-frequency = <100000>; - }; - - i2c@7000c500 { - status = "okay"; - clock-frequency = <400000>; - }; - - i2c@7000d000 { - status = "okay"; - clock-frequency = <400000>; - - pmic: tps6586x@34 { - compatible = "ti,tps6586x"; - reg = <0x34>; - interrupts = <0 86 0x4>; - - ti,system-power-controller; - - #gpio-cells = <2>; - gpio-controller; - - sys-supply = <&vdd_5v0_reg>; - vin-sm0-supply = <&sys_reg>; - vin-sm1-supply = <&sys_reg>; - vin-sm2-supply = <&sys_reg>; - vinldo01-supply = <&sm2_reg>; - vinldo23-supply = <&sm2_reg>; - vinldo4-supply = <&sm2_reg>; - vinldo678-supply = <&sm2_reg>; - vinldo9-supply = <&sm2_reg>; - - regulators { - sys_reg: sys { - regulator-name = "vdd_sys"; - regulator-always-on; - }; - - sm0 { - regulator-name = "vdd_sm0,vdd_core"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - regulator-always-on; - }; - - sm1 { - regulator-name = "vdd_sm1,vdd_cpu"; - regulator-min-microvolt = <1000000>; - regulator-max-microvolt = <1000000>; - regulator-always-on; - }; - - sm2_reg: sm2 { - regulator-name = "vdd_sm2,vin_ldo*"; - regulator-min-microvolt = <3700000>; - regulator-max-microvolt = <3700000>; - regulator-always-on; - }; - - ldo0 { - regulator-name = "vdd_ldo0,vddio_pex_clk"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - }; - - ldo1 { - regulator-name = "vdd_ldo1,avdd_pll*"; - regulator-min-microvolt = <1100000>; - regulator-max-microvolt = <1100000>; - regulator-always-on; - }; - - ldo2 { - regulator-name = "vdd_ldo2,vdd_rtc"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - }; - - ldo3 { - regulator-name = "vdd_ldo3,avdd_usb*"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - }; - - ldo4 { - regulator-name = "vdd_ldo4,avdd_osc,vddio_sys"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - }; - - ldo5 { - regulator-name = "vdd_ldo5,vcore_mmc"; - regulator-min-microvolt = <2850000>; - regulator-max-microvolt = <2850000>; - regulator-always-on; - }; - - ldo6 { - regulator-name = "vdd_ldo6,avdd_vdac"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - }; - - hdmi_vdd_reg: ldo7 { - regulator-name = "vdd_ldo7,avdd_hdmi"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - }; - - hdmi_pll_reg: ldo8 { - regulator-name = "vdd_ldo8,avdd_hdmi_pll"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - }; - - ldo9 { - regulator-name = "vdd_ldo9,avdd_2v85,vdd_ddr_rx"; - regulator-min-microvolt = <2850000>; - regulator-max-microvolt = <2850000>; - regulator-always-on; - }; - - ldo_rtc { - regulator-name = "vdd_rtc_out,vdd_cell"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - }; - }; - }; - - temperature-sensor@4c { - compatible = "adi,adt7461"; - reg = <0x4c>; - }; - }; - - pmc { - nvidia,invert-interrupt; - }; - - usb@c5000000 { - status = "okay"; - }; - - usb@c5004000 { - status = "okay"; - nvidia,phy-reset-gpio = <&gpio 169 0>; /* gpio PV1 */ - }; - - usb@c5008000 { - status = "okay"; - }; - - usb-phy@c5004400 { - nvidia,phy-reset-gpio = <&gpio 169 0>; /* gpio PV1 */ - }; - - sdhci@c8000200 { - status = "okay"; - cd-gpios = <&gpio 69 0>; /* gpio PI5 */ - wp-gpios = <&gpio 57 0>; /* gpio PH1 */ - power-gpios = <&gpio 155 0>; /* gpio PT3 */ - bus-width = <4>; - }; - - sdhci@c8000600 { - status = "okay"; - cd-gpios = <&gpio 58 0>; /* gpio PH2 */ - wp-gpios = <&gpio 59 0>; /* gpio PH3 */ - power-gpios = <&gpio 70 0>; /* gpio PI6 */ - bus-width = <8>; - }; - - kbc { - status = "okay"; - nvidia,debounce-delay-ms = <2>; - nvidia,repeat-delay-ms = <160>; - nvidia,kbc-row-pins = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15>; - nvidia,kbc-col-pins = <16 17 18 19 20 21 22 23>; - linux,keymap = <0x00020011 /* KEY_W */ - 0x0003001F /* KEY_S */ - 0x0004001E /* KEY_A */ - 0x0005002C /* KEY_Z */ - 0x000701D0 /* KEY_FN */ - 0x0107008B /* KEY_MENU */ - 0x02060038 /* KEY_LEFTALT */ - 0x02070064 /* KEY_RIGHTALT */ - 0x03000006 /* KEY_5 */ - 0x03010005 /* KEY_4 */ - 0x03020013 /* KEY_R */ - 0x03030012 /* KEY_E */ - 0x03040021 /* KEY_F */ - 0x03050020 /* KEY_D */ - 0x0306002D /* KEY_X */ - 0x04000008 /* KEY_7 */ - 0x04010007 /* KEY_6 */ - 0x04020014 /* KEY_T */ - 0x04030023 /* KEY_H */ - 0x04040022 /* KEY_G */ - 0x0405002F /* KEY_V */ - 0x0406002E /* KEY_C */ - 0x04070039 /* KEY_SPACE */ - 0x0500000A /* KEY_9 */ - 0x05010009 /* KEY_8 */ - 0x05020016 /* KEY_U */ - 0x05030015 /* KEY_Y */ - 0x05040024 /* KEY_J */ - 0x05050031 /* KEY_N */ - 0x05060030 /* KEY_B */ - 0x0507002B /* KEY_BACKSLASH */ - 0x0600000C /* KEY_MINUS */ - 0x0601000B /* KEY_0 */ - 0x06020018 /* KEY_O */ - 0x06030017 /* KEY_I */ - 0x06040026 /* KEY_L */ - 0x06050025 /* KEY_K */ - 0x06060033 /* KEY_COMMA */ - 0x06070032 /* KEY_M */ - 0x0701000D /* KEY_EQUAL */ - 0x0702001B /* KEY_RIGHTBRACE */ - 0x0703001C /* KEY_ENTER */ - 0x0707008B /* KEY_MENU */ - 0x0804002A /* KEY_LEFTSHIFT */ - 0x08050036 /* KEY_RIGHTSHIFT */ - 0x0905001D /* KEY_LEFTCTRL */ - 0x09070061 /* KEY_RIGHTCTRL */ - 0x0B00001A /* KEY_LEFTBRACE */ - 0x0B010019 /* KEY_P */ - 0x0B020028 /* KEY_APOSTROPHE */ - 0x0B030027 /* KEY_SEMICOLON */ - 0x0B040035 /* KEY_SLASH */ - 0x0B050034 /* KEY_DOT */ - 0x0C000044 /* KEY_F10 */ - 0x0C010043 /* KEY_F9 */ - 0x0C02000E /* KEY_BACKSPACE */ - 0x0C030004 /* KEY_3 */ - 0x0C040003 /* KEY_2 */ - 0x0C050067 /* KEY_UP */ - 0x0C0600D2 /* KEY_PRINT */ - 0x0C070077 /* KEY_PAUSE */ - 0x0D00006E /* KEY_INSERT */ - 0x0D01006F /* KEY_DELETE */ - 0x0D030068 /* KEY_PAGEUP */ - 0x0D04006D /* KEY_PAGEDOWN */ - 0x0D05006A /* KEY_RIGHT */ - 0x0D06006C /* KEY_DOWN */ - 0x0D070069 /* KEY_LEFT */ - 0x0E000057 /* KEY_F11 */ - 0x0E010058 /* KEY_F12 */ - 0x0E020042 /* KEY_F8 */ - 0x0E030010 /* KEY_Q */ - 0x0E04003E /* KEY_F4 */ - 0x0E05003D /* KEY_F3 */ - 0x0E060002 /* KEY_1 */ - 0x0E070041 /* KEY_F7 */ - 0x0F000001 /* KEY_ESC */ - 0x0F010029 /* KEY_GRAVE */ - 0x0F02003F /* KEY_F5 */ - 0x0F03000F /* KEY_TAB */ - 0x0F04003B /* KEY_F1 */ - 0x0F05003C /* KEY_F2 */ - 0x0F06003A /* KEY_CAPSLOCK */ - 0x0F070040 /* KEY_F6 */ - 0x14000047 /* KEY_KP7 */ - 0x15000049 /* KEY_KP9 */ - 0x15010048 /* KEY_KP8 */ - 0x1502004B /* KEY_KP4 */ - 0x1504004F /* KEY_KP1 */ - 0x1601004E /* KEY_KPSLASH */ - 0x1602004D /* KEY_KP6 */ - 0x1603004C /* KEY_KP5 */ - 0x16040051 /* KEY_KP3 */ - 0x16050050 /* KEY_KP2 */ - 0x16070052 /* KEY_KP0 */ - 0x1B010037 /* KEY_KPASTERISK */ - 0x1B03004A /* KEY_KPMINUS */ - 0x1B04004E /* KEY_KPPLUS */ - 0x1B050053 /* KEY_KPDOT */ - 0x1C050073 /* KEY_VOLUMEUP */ - 0x1D030066 /* KEY_HOME */ - 0x1D04006B /* KEY_END */ - 0x1D0500E1 /* KEY_BRIGHTNESSUP */ - 0x1D060072 /* KEY_VOLUMEDOWN */ - 0x1D0700E0 /* KEY_BRIGHTNESSDOWN */ - 0x1E000045 /* KEY_NUMLOCK */ - 0x1E010046 /* KEY_SCROLLLOCK */ - 0x1E020071 /* KEY_MUTE */ - 0x1F0400D6>; /* KEY_QUESTION */ - }; - - regulators { - compatible = "simple-bus"; - #address-cells = <1>; - #size-cells = <0>; - - vdd_5v0_reg: regulator@0 { - compatible = "regulator-fixed"; - reg = <0>; - regulator-name = "vdd_5v0"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - regulator-always-on; - }; - - regulator@1 { - compatible = "regulator-fixed"; - reg = <1>; - regulator-name = "vdd_1v5"; - regulator-min-microvolt = <1500000>; - regulator-max-microvolt = <1500000>; - gpio = <&pmic 0 0>; - }; - - regulator@2 { - compatible = "regulator-fixed"; - reg = <2>; - regulator-name = "vdd_1v2"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - gpio = <&pmic 1 0>; - enable-active-high; - }; - - regulator@3 { - compatible = "regulator-fixed"; - reg = <3>; - regulator-name = "vdd_1v05"; - regulator-min-microvolt = <1050000>; - regulator-max-microvolt = <1050000>; - gpio = <&pmic 2 0>; - enable-active-high; - /* Hack until board-harmony-pcie.c is removed */ - status = "disabled"; - }; - - regulator@4 { - compatible = "regulator-fixed"; - reg = <4>; - regulator-name = "vdd_pnl"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - gpio = <&gpio 22 0>; /* gpio PC6 */ - enable-active-high; - }; - - regulator@5 { - compatible = "regulator-fixed"; - reg = <5>; - regulator-name = "vdd_bl"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - gpio = <&gpio 176 0>; /* gpio PW0 */ - enable-active-high; - }; - }; - - sound { - compatible = "nvidia,tegra-audio-wm8903-harmony", - "nvidia,tegra-audio-wm8903"; - nvidia,model = "NVIDIA Tegra Harmony"; - - nvidia,audio-routing = - "Headphone Jack", "HPOUTR", - "Headphone Jack", "HPOUTL", - "Int Spk", "ROP", - "Int Spk", "RON", - "Int Spk", "LOP", - "Int Spk", "LON", - "Mic Jack", "MICBIAS", - "IN1L", "Mic Jack"; - - nvidia,i2s-controller = <&tegra_i2s1>; - nvidia,audio-codec = <&wm8903>; - - nvidia,spkr-en-gpios = <&wm8903 2 0>; - nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */ - nvidia,int-mic-en-gpios = <&gpio 184 0>; /*gpio PX0 */ - nvidia,ext-mic-en-gpios = <&gpio 185 0>; /* gpio PX1 */ - }; -};arch/arm/boot/dts/tegra20-harmony.dtsp new file +660
-0@@ -0,0 +1,660 @@ +/dts-v1/; + +#include "tegra20.dtsip" + +/ { + model = "NVIDIA Tegra20 Harmony evaluation board"; + compatible = "nvidia,harmony", "nvidia,tegra20"; + + memory { + reg = <0x00000000 0x40000000>; + }; + + host1x { + hdmi { + status = "okay"; + + vdd-supply = <&hdmi_vdd_reg>; + pll-supply = <&hdmi_pll_reg>; + + nvidia,ddc-i2c-bus = <&hdmi_ddc>; + nvidia,hpd-gpio = <&gpio 111 0>; /* PN7 */ + }; + }; + + pinmux { + pinctrl-names = "default"; + pinctrl-0 = <&state_default>; + + state_default: pinmux { + ata { + nvidia,pins = "ata"; + nvidia,function = "ide"; + }; + atb { + nvidia,pins = "atb", "gma", "gme"; + nvidia,function = "sdio4"; + }; + atc { + nvidia,pins = "atc"; + nvidia,function = "nand"; + }; + atd { + nvidia,pins = "atd", "ate", "gmb", "gmd", "gpu", + "spia", "spib", "spic"; + nvidia,function = "gmi"; + }; + cdev1 { + nvidia,pins = "cdev1"; + nvidia,function = "plla_out"; + }; + cdev2 { + nvidia,pins = "cdev2"; + nvidia,function = "pllp_out4"; + }; + crtp { + nvidia,pins = "crtp"; + nvidia,function = "crt"; + }; + csus { + nvidia,pins = "csus"; + nvidia,function = "vi_sensor_clk"; + }; + dap1 { + nvidia,pins = "dap1"; + nvidia,function = "dap1"; + }; + dap2 { + nvidia,pins = "dap2"; + nvidia,function = "dap2"; + }; + dap3 { + nvidia,pins = "dap3"; + nvidia,function = "dap3"; + }; + dap4 { + nvidia,pins = "dap4"; + nvidia,function = "dap4"; + }; + ddc { + nvidia,pins = "ddc"; + nvidia,function = "i2c2"; + }; + dta { + nvidia,pins = "dta", "dtd"; + nvidia,function = "sdio2"; + }; + dtb { + nvidia,pins = "dtb", "dtc", "dte"; + nvidia,function = "rsvd1"; + }; + dtf { + nvidia,pins = "dtf"; + nvidia,function = "i2c3"; + }; + gmc { + nvidia,pins = "gmc"; + nvidia,function = "uartd"; + }; + gpu7 { + nvidia,pins = "gpu7"; + nvidia,function = "rtck"; + }; + gpv { + nvidia,pins = "gpv", "slxa", "slxk"; + nvidia,function = "pcie"; + }; + hdint { + nvidia,pins = "hdint", "pta"; + nvidia,function = "hdmi"; + }; + i2cp { + nvidia,pins = "i2cp"; + nvidia,function = "i2cp"; + }; + irrx { + nvidia,pins = "irrx", "irtx"; + nvidia,function = "uarta"; + }; + kbca { + nvidia,pins = "kbca", "kbcb", "kbcc", "kbcd", + "kbce", "kbcf"; + nvidia,function = "kbc"; + }; + lcsn { + nvidia,pins = "lcsn", "ld0", "ld1", "ld2", + "ld3", "ld4", "ld5", "ld6", "ld7", + "ld8", "ld9", "ld10", "ld11", "ld12", + "ld13", "ld14", "ld15", "ld16", "ld17", + "ldc", "ldi", "lhp0", "lhp1", "lhp2", + "lhs", "lm0", "lm1", "lpp", "lpw0", + "lpw1", "lpw2", "lsc0", "lsc1", "lsck", + "lsda", "lsdi", "lspi", "lvp0", "lvp1", + "lvs"; + nvidia,function = "displaya"; + }; + owc { + nvidia,pins = "owc", "spdi", "spdo", "uac"; + nvidia,function = "rsvd2"; + }; + pmc { + nvidia,pins = "pmc"; + nvidia,function = "pwr_on"; + }; + rm { + nvidia,pins = "rm"; + nvidia,function = "i2c1"; + }; + sdb { + nvidia,pins = "sdb", "sdc", "sdd"; + nvidia,function = "pwm"; + }; + sdio1 { + nvidia,pins = "sdio1"; + nvidia,function = "sdio1"; + }; + slxc { + nvidia,pins = "slxc", "slxd"; + nvidia,function = "spdif"; + }; + spid { + nvidia,pins = "spid", "spie", "spif"; + nvidia,function = "spi1"; + }; + spig { + nvidia,pins = "spig", "spih"; + nvidia,function = "spi2_alt"; + }; + uaa { + nvidia,pins = "uaa", "uab", "uda"; + nvidia,function = "ulpi"; + }; + uad { + nvidia,pins = "uad"; + nvidia,function = "irda"; + }; + uca { + nvidia,pins = "uca", "ucb"; + nvidia,function = "uartc"; + }; + conf_ata { + nvidia,pins = "ata", "atb", "atc", "atd", "ate", + "cdev1", "cdev2", "dap1", "dtb", "gma", + "gmb", "gmc", "gmd", "gme", "gpu7", + "gpv", "i2cp", "pta", "rm", "slxa", + "slxk", "spia", "spib", "uac"; + nvidia,pull = <0>; + nvidia,tristate = <0>; + }; + conf_ck32 { + nvidia,pins = "ck32", "ddrc", "pmca", "pmcb", + "pmcc", "pmcd", "pmce", "xm2c", "xm2d"; + nvidia,pull = <0>; + }; + conf_csus { + nvidia,pins = "csus", "spid", "spif"; + nvidia,pull = <1>; + nvidia,tristate = <1>; + }; + conf_crtp { + nvidia,pins = "crtp", "dap2", "dap3", "dap4", + "dtc", "dte", "dtf", "gpu", "sdio1", + "slxc", "slxd", "spdi", "spdo", "spig", + "uda"; + nvidia,pull = <0>; + nvidia,tristate = <1>; + }; + conf_ddc { + nvidia,pins = "ddc", "dta", "dtd", "kbca", + "kbcb", "kbcc", "kbcd", "kbce", "kbcf", + "sdc"; + nvidia,pull = <2>; + nvidia,tristate = <0>; + }; + conf_hdint { + nvidia,pins = "hdint", "lcsn", "ldc", "lm1", + "lpw1", "lsc1", "lsck", "lsda", "lsdi", + "lvp0", "owc", "sdb"; + nvidia,tristate = <1>; + }; + conf_irrx { + nvidia,pins = "irrx", "irtx", "sdd", "spic", + "spie", "spih", "uaa", "uab", "uad", + "uca", "ucb"; + nvidia,pull = <2>; + nvidia,tristate = <1>; + }; + conf_lc { + nvidia,pins = "lc", "ls"; + nvidia,pull = <2>; + }; + conf_ld0 { + nvidia,pins = "ld0", "ld1", "ld2", "ld3", "ld4", + "ld5", "ld6", "ld7", "ld8", "ld9", + "ld10", "ld11", "ld12", "ld13", "ld14", + "ld15", "ld16", "ld17", "ldi", "lhp0", + "lhp1", "lhp2", "lhs", "lm0", "lpp", + "lpw0", "lpw2", "lsc0", "lspi", "lvp1", + "lvs", "pmc"; + nvidia,tristate = <0>; + }; + conf_ld17_0 { + nvidia,pins = "ld17_0", "ld19_18", "ld21_20", + "ld23_22"; + nvidia,pull = <1>; + }; + }; + }; + + i2s@70002800 { + status = "okay"; + }; + + serial@70006300 { + status = "okay"; + }; + + i2c@7000c000 { + status = "okay"; + clock-frequency = <400000>; + + wm8903: wm8903@1a { + compatible = "wlf,wm8903"; + reg = <0x1a>; + interrupt-parent = <&gpio>; + interrupts = <187 0x04>; + + gpio-controller; + #gpio-cells = <2>; + + micdet-cfg = <0>; + micdet-delay = <100>; + gpio-cfg = <0xffffffff 0xffffffff 0 0xffffffff 0xffffffff>; + }; + }; + + hdmi_ddc: i2c@7000c400 { + status = "okay"; + clock-frequency = <100000>; + }; + + i2c@7000c500 { + status = "okay"; + clock-frequency = <400000>; + }; + + i2c@7000d000 { + status = "okay"; + clock-frequency = <400000>; + + pmic: tps6586x@34 { + compatible = "ti,tps6586x"; + reg = <0x34>; + interrupts = <0 86 0x4>; + + ti,system-power-controller; + + #gpio-cells = <2>; + gpio-controller; + + sys-supply = <&vdd_5v0_reg>; + vin-sm0-supply = <&sys_reg>; + vin-sm1-supply = <&sys_reg>; + vin-sm2-supply = <&sys_reg>; + vinldo01-supply = <&sm2_reg>; + vinldo23-supply = <&sm2_reg>; + vinldo4-supply = <&sm2_reg>; + vinldo678-supply = <&sm2_reg>; + vinldo9-supply = <&sm2_reg>; + + regulators { + sys_reg: sys { + regulator-name = "vdd_sys"; + regulator-always-on; + }; + + sm0 { + regulator-name = "vdd_sm0,vdd_core"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + }; + + sm1 { + regulator-name = "vdd_sm1,vdd_cpu"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-always-on; + }; + + sm2_reg: sm2 { + regulator-name = "vdd_sm2,vin_ldo*"; + regulator-min-microvolt = <3700000>; + regulator-max-microvolt = <3700000>; + regulator-always-on; + }; + + ldo0 { + regulator-name = "vdd_ldo0,vddio_pex_clk"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + ldo1 { + regulator-name = "vdd_ldo1,avdd_pll*"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-always-on; + }; + + ldo2 { + regulator-name = "vdd_ldo2,vdd_rtc"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + ldo3 { + regulator-name = "vdd_ldo3,avdd_usb*"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + ldo4 { + regulator-name = "vdd_ldo4,avdd_osc,vddio_sys"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + ldo5 { + regulator-name = "vdd_ldo5,vcore_mmc"; + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + regulator-always-on; + }; + + ldo6 { + regulator-name = "vdd_ldo6,avdd_vdac"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + hdmi_vdd_reg: ldo7 { + regulator-name = "vdd_ldo7,avdd_hdmi"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + hdmi_pll_reg: ldo8 { + regulator-name = "vdd_ldo8,avdd_hdmi_pll"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + ldo9 { + regulator-name = "vdd_ldo9,avdd_2v85,vdd_ddr_rx"; + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + regulator-always-on; + }; + + ldo_rtc { + regulator-name = "vdd_rtc_out,vdd_cell"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + }; + }; + + temperature-sensor@4c { + compatible = "adi,adt7461"; + reg = <0x4c>; + }; + }; + + pmc { + nvidia,invert-interrupt; + }; + + usb@c5000000 { + status = "okay"; + }; + + usb@c5004000 { + status = "okay"; + nvidia,phy-reset-gpio = <&gpio 169 0>; /* gpio PV1 */ + }; + + usb@c5008000 { + status = "okay"; + }; + + usb-phy@c5004400 { + nvidia,phy-reset-gpio = <&gpio 169 0>; /* gpio PV1 */ + }; + + sdhci@c8000200 { + status = "okay"; + cd-gpios = <&gpio 69 0>; /* gpio PI5 */ + wp-gpios = <&gpio 57 0>; /* gpio PH1 */ + power-gpios = <&gpio 155 0>; /* gpio PT3 */ + bus-width = <4>; + }; + + sdhci@c8000600 { + status = "okay"; + cd-gpios = <&gpio 58 0>; /* gpio PH2 */ + wp-gpios = <&gpio 59 0>; /* gpio PH3 */ + power-gpios = <&gpio 70 0>; /* gpio PI6 */ + bus-width = <8>; + }; + + kbc { + status = "okay"; + nvidia,debounce-delay-ms = <2>; + nvidia,repeat-delay-ms = <160>; + nvidia,kbc-row-pins = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15>; + nvidia,kbc-col-pins = <16 17 18 19 20 21 22 23>; + linux,keymap = <0x00020011 /* KEY_W */ + 0x0003001F /* KEY_S */ + 0x0004001E /* KEY_A */ + 0x0005002C /* KEY_Z */ + 0x000701D0 /* KEY_FN */ + 0x0107008B /* KEY_MENU */ + 0x02060038 /* KEY_LEFTALT */ + 0x02070064 /* KEY_RIGHTALT */ + 0x03000006 /* KEY_5 */ + 0x03010005 /* KEY_4 */ + 0x03020013 /* KEY_R */ + 0x03030012 /* KEY_E */ + 0x03040021 /* KEY_F */ + 0x03050020 /* KEY_D */ + 0x0306002D /* KEY_X */ + 0x04000008 /* KEY_7 */ + 0x04010007 /* KEY_6 */ + 0x04020014 /* KEY_T */ + 0x04030023 /* KEY_H */ + 0x04040022 /* KEY_G */ + 0x0405002F /* KEY_V */ + 0x0406002E /* KEY_C */ + 0x04070039 /* KEY_SPACE */ + 0x0500000A /* KEY_9 */ + 0x05010009 /* KEY_8 */ + 0x05020016 /* KEY_U */ + 0x05030015 /* KEY_Y */ + 0x05040024 /* KEY_J */ + 0x05050031 /* KEY_N */ + 0x05060030 /* KEY_B */ + 0x0507002B /* KEY_BACKSLASH */ + 0x0600000C /* KEY_MINUS */ + 0x0601000B /* KEY_0 */ + 0x06020018 /* KEY_O */ + 0x06030017 /* KEY_I */ + 0x06040026 /* KEY_L */ + 0x06050025 /* KEY_K */ + 0x06060033 /* KEY_COMMA */ + 0x06070032 /* KEY_M */ + 0x0701000D /* KEY_EQUAL */ + 0x0702001B /* KEY_RIGHTBRACE */ + 0x0703001C /* KEY_ENTER */ + 0x0707008B /* KEY_MENU */ + 0x0804002A /* KEY_LEFTSHIFT */ + 0x08050036 /* KEY_RIGHTSHIFT */ + 0x0905001D /* KEY_LEFTCTRL */ + 0x09070061 /* KEY_RIGHTCTRL */ + 0x0B00001A /* KEY_LEFTBRACE */ + 0x0B010019 /* KEY_P */ + 0x0B020028 /* KEY_APOSTROPHE */ + 0x0B030027 /* KEY_SEMICOLON */ + 0x0B040035 /* KEY_SLASH */ + 0x0B050034 /* KEY_DOT */ + 0x0C000044 /* KEY_F10 */ + 0x0C010043 /* KEY_F9 */ + 0x0C02000E /* KEY_BACKSPACE */ + 0x0C030004 /* KEY_3 */ + 0x0C040003 /* KEY_2 */ + 0x0C050067 /* KEY_UP */ + 0x0C0600D2 /* KEY_PRINT */ + 0x0C070077 /* KEY_PAUSE */ + 0x0D00006E /* KEY_INSERT */ + 0x0D01006F /* KEY_DELETE */ + 0x0D030068 /* KEY_PAGEUP */ + 0x0D04006D /* KEY_PAGEDOWN */ + 0x0D05006A /* KEY_RIGHT */ + 0x0D06006C /* KEY_DOWN */ + 0x0D070069 /* KEY_LEFT */ + 0x0E000057 /* KEY_F11 */ + 0x0E010058 /* KEY_F12 */ + 0x0E020042 /* KEY_F8 */ + 0x0E030010 /* KEY_Q */ + 0x0E04003E /* KEY_F4 */ + 0x0E05003D /* KEY_F3 */ + 0x0E060002 /* KEY_1 */ + 0x0E070041 /* KEY_F7 */ + 0x0F000001 /* KEY_ESC */ + 0x0F010029 /* KEY_GRAVE */ + 0x0F02003F /* KEY_F5 */ + 0x0F03000F /* KEY_TAB */ + 0x0F04003B /* KEY_F1 */ + 0x0F05003C /* KEY_F2 */ + 0x0F06003A /* KEY_CAPSLOCK */ + 0x0F070040 /* KEY_F6 */ + 0x14000047 /* KEY_KP7 */ + 0x15000049 /* KEY_KP9 */ + 0x15010048 /* KEY_KP8 */ + 0x1502004B /* KEY_KP4 */ + 0x1504004F /* KEY_KP1 */ + 0x1601004E /* KEY_KPSLASH */ + 0x1602004D /* KEY_KP6 */ + 0x1603004C /* KEY_KP5 */ + 0x16040051 /* KEY_KP3 */ + 0x16050050 /* KEY_KP2 */ + 0x16070052 /* KEY_KP0 */ + 0x1B010037 /* KEY_KPASTERISK */ + 0x1B03004A /* KEY_KPMINUS */ + 0x1B04004E /* KEY_KPPLUS */ + 0x1B050053 /* KEY_KPDOT */ + 0x1C050073 /* KEY_VOLUMEUP */ + 0x1D030066 /* KEY_HOME */ + 0x1D04006B /* KEY_END */ + 0x1D0500E1 /* KEY_BRIGHTNESSUP */ + 0x1D060072 /* KEY_VOLUMEDOWN */ + 0x1D0700E0 /* KEY_BRIGHTNESSDOWN */ + 0x1E000045 /* KEY_NUMLOCK */ + 0x1E010046 /* KEY_SCROLLLOCK */ + 0x1E020071 /* KEY_MUTE */ + 0x1F0400D6>; /* KEY_QUESTION */ + }; + + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + vdd_5v0_reg: regulator@0 { + compatible = "regulator-fixed"; + reg = <0>; + regulator-name = "vdd_5v0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + + regulator@1 { + compatible = "regulator-fixed"; + reg = <1>; + regulator-name = "vdd_1v5"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1500000>; + gpio = <&pmic 0 0>; + }; + + regulator@2 { + compatible = "regulator-fixed"; + reg = <2>; + regulator-name = "vdd_1v2"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + gpio = <&pmic 1 0>; + enable-active-high; + }; + + regulator@3 { + compatible = "regulator-fixed"; + reg = <3>; + regulator-name = "vdd_1v05"; + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + gpio = <&pmic 2 0>; + enable-active-high; + /* Hack until board-harmony-pcie.c is removed */ + status = "disabled"; + }; + + regulator@4 { + compatible = "regulator-fixed"; + reg = <4>; + regulator-name = "vdd_pnl"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + gpio = <&gpio 22 0>; /* gpio PC6 */ + enable-active-high; + }; + + regulator@5 { + compatible = "regulator-fixed"; + reg = <5>; + regulator-name = "vdd_bl"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + gpio = <&gpio 176 0>; /* gpio PW0 */ + enable-active-high; + }; + }; + + sound { + compatible = "nvidia,tegra-audio-wm8903-harmony", + "nvidia,tegra-audio-wm8903"; + nvidia,model = "NVIDIA Tegra Harmony"; + + nvidia,audio-routing = + "Headphone Jack", "HPOUTR", + "Headphone Jack", "HPOUTL", + "Int Spk", "ROP", + "Int Spk", "RON", + "Int Spk", "LOP", + "Int Spk", "LON", + "Mic Jack", "MICBIAS", + "IN1L", "Mic Jack"; + + nvidia,i2s-controller = <&tegra_i2s1>; + nvidia,audio-codec = <&wm8903>; + + nvidia,spkr-en-gpios = <&wm8903 2 0>; + nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */ + nvidia,int-mic-en-gpios = <&gpio 184 0>; /*gpio PX0 */ + nvidia,ext-mic-en-gpios = <&gpio 185 0>; /* gpio PX1 */ + }; +};arch/arm/boot/dts/tegra20-iris-512.dts deleted +0
-89@@ -1,89 +0,0 @@ -/dts-v1/; - -/include/ "tegra20-colibri-512.dtsi" - -/ { - model = "Toradex Colibri T20 512MB on Iris"; - compatible = "toradex,iris", "toradex,colibri_t20-512", "nvidia,tegra20"; - - host1x { - hdmi { - status = "okay"; - }; - }; - - pinmux { - state_default: pinmux { - hdint { - nvidia,tristate = <0>; - }; - - i2cddc { - nvidia,tristate = <0>; - }; - - sdio4 { - nvidia,tristate = <0>; - }; - - uarta { - nvidia,tristate = <0>; - }; - - uartd { - nvidia,tristate = <0>; - }; - }; - }; - - usb@c5000000 { - status = "okay"; - dr_mode = "otg"; - }; - - usb@c5008000 { - status = "okay"; - }; - - serial@70006000 { - status = "okay"; - }; - - serial@70006300 { - status = "okay"; - }; - - i2c_ddc: i2c@7000c400 { - status = "okay"; - }; - - sdhci@c8000600 { - status = "okay"; - bus-width = <4>; - vmmc-supply = <&vcc_sd_reg>; - vqmmc-supply = <&vcc_sd_reg>; - }; - - regulators { - regulator@0 { - compatible = "regulator-fixed"; - reg = <0>; - regulator-name = "usb_host_vbus"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - regulator-boot-on; - regulator-always-on; - gpio = <&gpio 178 0>; - }; - - vcc_sd_reg: regulator@1 { - compatible = "regulator-fixed"; - reg = <1>; - regulator-name = "vcc_sd"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-boot-on; - regulator-always-on; - }; - }; -};arch/arm/boot/dts/tegra20-iris-512.dtsp new file +89
-0@@ -0,0 +1,89 @@ +/dts-v1/; + +#include "tegra20-colibri-512.dtsip" + +/ { + model = "Toradex Colibri T20 512MB on Iris"; + compatible = "toradex,iris", "toradex,colibri_t20-512", "nvidia,tegra20"; + + host1x { + hdmi { + status = "okay"; + }; + }; + + pinmux { + state_default: pinmux { + hdint { + nvidia,tristate = <0>; + }; + + i2cddc { + nvidia,tristate = <0>; + }; + + sdio4 { + nvidia,tristate = <0>; + }; + + uarta { + nvidia,tristate = <0>; + }; + + uartd { + nvidia,tristate = <0>; + }; + }; + }; + + usb@c5000000 { + status = "okay"; + dr_mode = "otg"; + }; + + usb@c5008000 { + status = "okay"; + }; + + serial@70006000 { + status = "okay"; + }; + + serial@70006300 { + status = "okay"; + }; + + i2c_ddc: i2c@7000c400 { + status = "okay"; + }; + + sdhci@c8000600 { + status = "okay"; + bus-width = <4>; + vmmc-supply = <&vcc_sd_reg>; + vqmmc-supply = <&vcc_sd_reg>; + }; + + regulators { + regulator@0 { + compatible = "regulator-fixed"; + reg = <0>; + regulator-name = "usb_host_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-boot-on; + regulator-always-on; + gpio = <&gpio 178 0>; + }; + + vcc_sd_reg: regulator@1 { + compatible = "regulator-fixed"; + reg = <1>; + regulator-name = "vcc_sd"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + }; +};arch/arm/boot/dts/tegra20-medcom-wide.dts deleted +0
-58@@ -1,58 +0,0 @@ -/dts-v1/; - -/include/ "tegra20-tamonten.dtsi" - -/ { - model = "Avionic Design Medcom-Wide board"; - compatible = "ad,medcom-wide", "ad,tamonten", "nvidia,tegra20"; - - i2c@7000c000 { - wm8903: wm8903@1a { - compatible = "wlf,wm8903"; - reg = <0x1a>; - interrupt-parent = <&gpio>; - interrupts = <187 0x04>; - - gpio-controller; - #gpio-cells = <2>; - - micdet-cfg = <0>; - micdet-delay = <100>; - gpio-cfg = <0xffffffff - 0xffffffff - 0 - 0xffffffff - 0xffffffff>; - }; - }; - - backlight { - compatible = "pwm-backlight"; - pwms = <&pwm 0 5000000>; - - brightness-levels = <0 4 8 16 32 64 128 255>; - default-brightness-level = <6>; - }; - - sound { - compatible = "ad,tegra-audio-wm8903-medcom-wide", - "nvidia,tegra-audio-wm8903"; - nvidia,model = "Avionic Design Medcom-Wide"; - - nvidia,audio-routing = - "Headphone Jack", "HPOUTR", - "Headphone Jack", "HPOUTL", - "Int Spk", "ROP", - "Int Spk", "RON", - "Int Spk", "LOP", - "Int Spk", "LON", - "Mic Jack", "MICBIAS", - "IN1L", "Mic Jack"; - - nvidia,i2s-controller = <&tegra_i2s1>; - nvidia,audio-codec = <&wm8903>; - - nvidia,spkr-en-gpios = <&wm8903 2 0>; - nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */ - }; -};arch/arm/boot/dts/tegra20-medcom-wide.dtsp new file +58
-0@@ -0,0 +1,58 @@ +/dts-v1/; + +#include "tegra20-tamonten.dtsip" + +/ { + model = "Avionic Design Medcom-Wide board"; + compatible = "ad,medcom-wide", "ad,tamonten", "nvidia,tegra20"; + + i2c@7000c000 { + wm8903: wm8903@1a { + compatible = "wlf,wm8903"; + reg = <0x1a>; + interrupt-parent = <&gpio>; + interrupts = <187 0x04>; + + gpio-controller; + #gpio-cells = <2>; + + micdet-cfg = <0>; + micdet-delay = <100>; + gpio-cfg = <0xffffffff + 0xffffffff + 0 + 0xffffffff + 0xffffffff>; + }; + }; + + backlight { + compatible = "pwm-backlight"; + pwms = <&pwm 0 5000000>; + + brightness-levels = <0 4 8 16 32 64 128 255>; + default-brightness-level = <6>; + }; + + sound { + compatible = "ad,tegra-audio-wm8903-medcom-wide", + "nvidia,tegra-audio-wm8903"; + nvidia,model = "Avionic Design Medcom-Wide"; + + nvidia,audio-routing = + "Headphone Jack", "HPOUTR", + "Headphone Jack", "HPOUTL", + "Int Spk", "ROP", + "Int Spk", "RON", + "Int Spk", "LOP", + "Int Spk", "LON", + "Mic Jack", "MICBIAS", + "IN1L", "Mic Jack"; + + nvidia,i2s-controller = <&tegra_i2s1>; + nvidia,audio-codec = <&wm8903>; + + nvidia,spkr-en-gpios = <&wm8903 2 0>; + nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */ + }; +};arch/arm/boot/dts/tegra20-paz00.dts deleted +0
-505@@ -1,505 +0,0 @@ -/dts-v1/; - -/include/ "tegra20.dtsi" - -/ { - model = "Toshiba AC100 / Dynabook AZ"; - compatible = "compal,paz00", "nvidia,tegra20"; - - memory { - reg = <0x00000000 0x20000000>; - }; - - host1x { - hdmi {Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra20-paz00.dtsp new file +505
-0Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra20-plutux.dts deleted +0
-56Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra20-plutux.dtsp new file +56
-0Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra20-seaboard.dts deleted +0
-812Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra20-seaboard.dtsp new file +812
-0Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra20-tamonten.dtsi deleted +0
-489Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra20-tamonten.dtsip new file +489
-0Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra20-tec.dts deleted +0
-56Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra20-tec.dtsp new file +56
-0Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra20-trimslice.dts deleted +0
-367Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra20-trimslice.dtsp new file +367
-0Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra20-ventana.dts deleted +0
-611Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra20-ventana.dtsp new file +611
-0Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra20-whistler.dts deleted +0
-563Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra20-whistler.dtsp new file +563
-0Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra20.dtsi deleted +0
-556Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra20.dtsip new file +556
-0Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra30-beaver.dts deleted +0
-373Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra30-beaver.dtsp new file +373
-0Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra30-cardhu-a02.dts deleted +0
-93Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra30-cardhu-a02.dtsp new file +93
-0Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra30-cardhu-a04.dts deleted +0
-104Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra30-cardhu-a04.dtsp new file +104
-0Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra30-cardhu.dtsi deleted +0
-500Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra30-cardhu.dtsip new file +500
-0Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra30.dtsi deleted +0
-579Lines of this file are not shown. View the raw message.
arch/arm/boot/dts/tegra30.dtsip new file +579
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
PATCH 6/9 ARM: tegra: use pre-processor for all device trees
Quoted 2 lines · Rob Herring
Just a reminder to use -M for git format-patch. Why -M for format-patch is not the default I wonder.
Also, don't quote a huge patch just to make a 2-line comment. :-)
-M is likely not the default because classic patch does not understand it.
-Olof
PATCH 6/9 ARM: tegra: use pre-processor for all device trees
In reply to Stephen WarrenQuoted 8 lines · Stephen Warren
From: Stephen Warren <[email protected]>
This enables a C pre-processor pass on all Tegra device trees. This allows future use of #defines and header files in order to define names for various constants, such as the IDs and flags in GPIO specifiers. Use of those features will increase the readability of the device tree files.
Quoted 4 lines
Signed-off-by Stephen Warren <[email protected]>--- arch/arm/boot/dts/tegra114-dalmore.dts | 21 - arch/arm/boot/dts/tegra114-dalmore.dtsp | 21 +
Two comments;
1) Use '-M' when posting patches that rename files, it makes for a much smaller diff. :-)
2) Now that I see this patch, it's rather striking that .dtsp and .dtsip are horible extensions (so are .dts and .dtsi for that matter, but this just kicks it up a notch). Can we not do something better?
Can we do something else here; First, does the old style /include/ directives cause any problems existing .dts files? I know it won't work if a /include/'ed file uses a #include statement, but the other way around should be fine. Can we instead move the entire tree over to building with the CPP enabled? Overall it will be less horribleness for the end user.
g.
Quoted 41 lines
arch/arm/boot/dts/tegra114-pluto.dts | 21 - arch/arm/boot/dts/tegra114-pluto.dtsp | 21 + arch/arm/boot/dts/tegra114.dtsi | 153 ----- arch/arm/boot/dts/tegra114.dtsip | 153 +++++ arch/arm/boot/dts/tegra20-colibri-512.dtsi | 491 ---------------- arch/arm/boot/dts/tegra20-colibri-512.dtsip | 491 ++++++++++++++++ arch/arm/boot/dts/tegra20-harmony.dts | 660 ---------------------- arch/arm/boot/dts/tegra20-harmony.dtsp | 660 ++++++++++++++++++++++ arch/arm/boot/dts/tegra20-iris-512.dts | 89 --- arch/arm/boot/dts/tegra20-iris-512.dtsp | 89 +++ arch/arm/boot/dts/tegra20-medcom-wide.dts | 58 -- arch/arm/boot/dts/tegra20-medcom-wide.dtsp | 58 ++ arch/arm/boot/dts/tegra20-paz00.dts | 505 ----------------- arch/arm/boot/dts/tegra20-paz00.dtsp | 505 +++++++++++++++++ arch/arm/boot/dts/tegra20-plutux.dts | 56 -- arch/arm/boot/dts/tegra20-plutux.dtsp | 56 ++ arch/arm/boot/dts/tegra20-seaboard.dts | 812 --------------------------- arch/arm/boot/dts/tegra20-seaboard.dtsp | 812 +++++++++++++++++++++++++++ arch/arm/boot/dts/tegra20-tamonten.dtsi | 489 ---------------- arch/arm/boot/dts/tegra20-tamonten.dtsip | 489 ++++++++++++++++ arch/arm/boot/dts/tegra20-tec.dts | 56 -- arch/arm/boot/dts/tegra20-tec.dtsp | 56 ++ arch/arm/boot/dts/tegra20-trimslice.dts | 367 ------------ arch/arm/boot/dts/tegra20-trimslice.dtsp | 367 ++++++++++++ arch/arm/boot/dts/tegra20-ventana.dts | 611 -------------------- arch/arm/boot/dts/tegra20-ventana.dtsp | 611 ++++++++++++++++++++ arch/arm/boot/dts/tegra20-whistler.dts | 563 ------------------- arch/arm/boot/dts/tegra20-whistler.dtsp | 563 +++++++++++++++++++ arch/arm/boot/dts/tegra20.dtsi | 556 ------------------ arch/arm/boot/dts/tegra20.dtsip | 556 ++++++++++++++++++ arch/arm/boot/dts/tegra30-beaver.dts | 373 ------------ arch/arm/boot/dts/tegra30-beaver.dtsp | 373 ++++++++++++ arch/arm/boot/dts/tegra30-cardhu-a02.dts | 93 --- arch/arm/boot/dts/tegra30-cardhu-a02.dtsp | 93 +++ arch/arm/boot/dts/tegra30-cardhu-a04.dts | 104 ---- arch/arm/boot/dts/tegra30-cardhu-a04.dtsp | 104 ++++ arch/arm/boot/dts/tegra30-cardhu.dtsi | 500 ----------------- arch/arm/boot/dts/tegra30-cardhu.dtsip | 500 +++++++++++++++++ arch/arm/boot/dts/tegra30.dtsi | 579 ------------------- arch/arm/boot/dts/tegra30.dtsip | 579 +++++++++++++++++++ 42 files changed, 7157 insertions(+), 7157 deletions(-)
PATCH 6/9 ARM: tegra: use pre-processor for all device trees
Quoted 9 lines · Grant Likely
Quoted 8 lines · Stephen Warren
From: Stephen Warren <[email protected]>
This enables a C pre-processor pass on all Tegra device trees. This allows future use of #defines and header files in order to define names for various constants, such as the IDs and flags in GPIO specifiers. Use of those features will increase the readability of the device tree files.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Stephen Warren <[email protected]>--- arch/arm/boot/dts/tegra114-dalmore.dts | 21 - arch/arm/boot/dts/tegra114-dalmore.dtsp | 21 +Two comments;
1) Use '-M' when posting patches that rename files, it makes for a much smaller diff. :-)
Yes, I forgot this:-( I reposted just this patch with -M IIRC (but maybe I don't!)
Quoted 10 lines
2) Now that I see this patch, it's rather striking that .dtsp and .dtsip are horible extensions (so are .dts and .dtsi for that matter, but this just kicks it up a notch). Can we not do something better?
Can we do something else here; First, does the old style /include/ directives cause any problems existing .dts files? I know it won't work if a /include/'ed file uses a #include statement, but the other way around should be fine. Can we instead move the entire tree over to building with the CPP enabled? Overall it will be less horribleness for the end user.
I think syntactically, now that the *.dtsp->*.dtb rule uses gcc -x assembler-with-cpp, the only issue would be *.dts that have a # in the very first column. That's probably rare enough that we can ignore the issue. A quick grep certainly shows this isn't an issue with any file in arch/*/boot/dts in the kernel tree right now.
The main reason I didn't go down this route is that dependencies don't work, at least with the kbuild rules as currently implemented. The reason is that with /include/, dependencies are emitted by dtc, and with #include, dependencies are emitted by cpp. Currently, the *.dts->*.dtb rules only look at the dtc-emitted dependencies, and the *.dtsp->*.dtb rules only look at the cpp-emitted dependencies.
The solution here would be to augment the dtc+cpp rule to merge together the two sets of dependencies in a post-processing step. This might be easy; I'd have to look at the existing dependency post-processing script to see if it already handles a case like this.
PATCH 6/9 ARM: tegra: use pre-processor for all device trees
In reply to Stephen WarrenFrom: Stephen Warren <[email protected]>
This enables a C pre-processor pass on all Tegra device trees. This allows future use of #defines and header files in order to define names for various constants, such as the IDs and flags in GPIO specifiers. Use of those features will increase the readability of the device tree files.
---
arch/arm/boot/dts/{tegra114-dalmore.dts => tegra114-dalmore.dtsp} | 2 +-
arch/arm/boot/dts/{tegra114-pluto.dts => tegra114-pluto.dtsp} | 2 +-
arch/arm/boot/dts/{tegra114.dtsi => tegra114.dtsip} | 2 +-
.../boot/dts/{tegra20-colibri-512.dtsi => tegra20-colibri-512.dtsip} | 2 +-
arch/arm/boot/dts/{tegra20-harmony.dts => tegra20-harmony.dtsp} | 2 +-
arch/arm/boot/dts/{tegra20-iris-512.dts => tegra20-iris-512.dtsp} | 2 +-
.../boot/dts/{tegra20-medcom-wide.dts => tegra20-medcom-wide.dtsp} | 2 +-
arch/arm/boot/dts/{tegra20-paz00.dts => tegra20-paz00.dtsp} | 2 +-
arch/arm/boot/dts/{tegra20-plutux.dts => tegra20-plutux.dtsp} | 2 +-
arch/arm/boot/dts/{tegra20-seaboard.dts => tegra20-seaboard.dtsp} | 2 +-
arch/arm/boot/dts/{tegra20-tamonten.dtsi => tegra20-tamonten.dtsip} | 2 +-
arch/arm/boot/dts/{tegra20-tec.dts => tegra20-tec.dtsp} | 2 +-
arch/arm/boot/dts/{tegra20-trimslice.dts => tegra20-trimslice.dtsp} | 2 +-
arch/arm/boot/dts/{tegra20-ventana.dts => tegra20-ventana.dtsp} | 2 +-
arch/arm/boot/dts/{tegra20-whistler.dts => tegra20-whistler.dtsp} | 2 +-
arch/arm/boot/dts/{tegra20.dtsi => tegra20.dtsip} | 2 +-
arch/arm/boot/dts/{tegra30-beaver.dts => tegra30-beaver.dtsp} | 2 +-
.../arm/boot/dts/{tegra30-cardhu-a02.dts => tegra30-cardhu-a02.dtsp} | 2 +-
.../arm/boot/dts/{tegra30-cardhu-a04.dts => tegra30-cardhu-a04.dtsp} | 2 +-
arch/arm/boot/dts/{tegra30-cardhu.dtsi => tegra30-cardhu.dtsip} | 2 +-
arch/arm/boot/dts/{tegra30.dtsi => tegra30.dtsip} | 2 +-
21 files changed, 21 insertions(+), 21 deletions(-)
rename arch/arm/boot/dts/{tegra114-dalmore.dts => tegra114-dalmore.dtsp} (91%)
rename arch/arm/boot/dts/{tegra114-pluto.dts => tegra114-pluto.dtsp} (91%)
rename arch/arm/boot/dts/{tegra114.dtsi => tegra114.dtsip} (99%)
rename arch/arm/boot/dts/{tegra20-colibri-512.dtsi => tegra20-colibri-512.dtsip} (99%)
rename arch/arm/boot/dts/{tegra20-harmony.dts => tegra20-harmony.dtsp} (99%)
rename arch/arm/boot/dts/{tegra20-iris-512.dts => tegra20-iris-512.dtsp} (97%)
rename arch/arm/boot/dts/{tegra20-medcom-wide.dts => tegra20-medcom-wide.dtsp} (97%)
rename arch/arm/boot/dts/{tegra20-paz00.dts => tegra20-paz00.dtsp} (99%)
rename arch/arm/boot/dts/{tegra20-plutux.dts => tegra20-plutux.dtsp} (96%)
rename arch/arm/boot/dts/{tegra20-seaboard.dts => tegra20-seaboard.dtsp} (99%)
rename arch/arm/boot/dts/{tegra20-tamonten.dtsi => tegra20-tamonten.dtsip} (99%)
rename arch/arm/boot/dts/{tegra20-tec.dts => tegra20-tec.dtsp} (96%)
rename arch/arm/boot/dts/{tegra20-trimslice.dts => tegra20-trimslice.dtsp} (99%)
rename arch/arm/boot/dts/{tegra20-ventana.dts => tegra20-ventana.dtsp} (99%)
rename arch/arm/boot/dts/{tegra20-whistler.dts => tegra20-whistler.dtsp} (99%)
rename arch/arm/boot/dts/{tegra20.dtsi => tegra20.dtsip} (99%)
rename arch/arm/boot/dts/{tegra30-beaver.dts => tegra30-beaver.dtsp} (99%)
rename arch/arm/boot/dts/{tegra30-cardhu-a02.dts => tegra30-cardhu-a02.dtsp} (98%)
rename arch/arm/boot/dts/{tegra30-cardhu-a04.dts => tegra30-cardhu-a04.dtsp} (98%)
rename arch/arm/boot/dts/{tegra30-cardhu.dtsi => tegra30-cardhu.dtsip} (99%)
rename arch/arm/boot/dts/{tegra30.dtsi => tegra30.dtsip} (99%)arch/arm/boot/dts/tegra114-dalmore.dtsp renamed from arch/arm/boot/dts/tegra114-dalmore.dts +1 -1
@@ -1,6 +1,6 @@ /dts-v1/; -/include/ "tegra114.dtsi" +#include "tegra114.dtsip" / { model = "NVIDIA Tegra114 Dalmore evaluation board";
arch/arm/boot/dts/tegra114-pluto.dtsp renamed from arch/arm/boot/dts/tegra114-pluto.dts +1 -1
@@ -1,6 +1,6 @@ /dts-v1/; -/include/ "tegra114.dtsi" +#include "tegra114.dtsip" / { model = "NVIDIA Tegra114 Pluto evaluation board";
arch/arm/boot/dts/tegra114.dtsip renamed from arch/arm/boot/dts/tegra114.dtsi +1 -1
@@ -1,4 +1,4 @@ -/include/ "skeleton.dtsi" +#include "skeleton.dtsi" / { compatible = "nvidia,tegra114";
arch/arm/boot/dts/tegra20-colibri-512.dtsip renamed from arch/arm/boot/dts/tegra20-colibri-512.dtsi +1 -1
@@ -1,4 +1,4 @@ -/include/ "tegra20.dtsi" +#include "tegra20.dtsip" / { model = "Toradex Colibri T20 512MB";
arch/arm/boot/dts/tegra20-harmony.dtsp renamed from arch/arm/boot/dts/tegra20-harmony.dts +1 -1
@@ -1,6 +1,6 @@ /dts-v1/; -/include/ "tegra20.dtsi" +#include "tegra20.dtsip" / { model = "NVIDIA Tegra20 Harmony evaluation board";
arch/arm/boot/dts/tegra20-iris-512.dtsp renamed from arch/arm/boot/dts/tegra20-iris-512.dts +1 -1
@@ -1,6 +1,6 @@ /dts-v1/; -/include/ "tegra20-colibri-512.dtsi" +#include "tegra20-colibri-512.dtsip" / { model = "Toradex Colibri T20 512MB on Iris";
arch/arm/boot/dts/tegra20-medcom-wide.dtsp renamed from arch/arm/boot/dts/tegra20-medcom-wide.dts +1 -1
@@ -1,6 +1,6 @@ /dts-v1/; -/include/ "tegra20-tamonten.dtsi" +#include "tegra20-tamonten.dtsip" / { model = "Avionic Design Medcom-Wide board";
arch/arm/boot/dts/tegra20-paz00.dtsp renamed from arch/arm/boot/dts/tegra20-paz00.dts +1 -1
@@ -1,6 +1,6 @@ /dts-v1/; -/include/ "tegra20.dtsi" +#include "tegra20.dtsip" / { model = "Toshiba AC100 / Dynabook AZ";
arch/arm/boot/dts/tegra20-plutux.dtsp renamed from arch/arm/boot/dts/tegra20-plutux.dts +1 -1
@@ -1,6 +1,6 @@ /dts-v1/; -/include/ "tegra20-tamonten.dtsi" +#include "tegra20-tamonten.dtsip" / { model = "Avionic Design Plutux board";
arch/arm/boot/dts/tegra20-seaboard.dtsp renamed from arch/arm/boot/dts/tegra20-seaboard.dts +1 -1
@@ -1,6 +1,6 @@ /dts-v1/; -/include/ "tegra20.dtsi" +#include "tegra20.dtsip" / { model = "NVIDIA Seaboard";
arch/arm/boot/dts/tegra20-tamonten.dtsip renamed from arch/arm/boot/dts/tegra20-tamonten.dtsi +1 -1
@@ -1,4 +1,4 @@ -/include/ "tegra20.dtsi" +#include "tegra20.dtsip" / { model = "Avionic Design Tamonten SOM";
arch/arm/boot/dts/tegra20-tec.dtsp renamed from arch/arm/boot/dts/tegra20-tec.dts +1 -1
@@ -1,6 +1,6 @@ /dts-v1/; -/include/ "tegra20-tamonten.dtsi" +#include "tegra20-tamonten.dtsip" / { model = "Avionic Design Tamonten Evaluation Carrier";
arch/arm/boot/dts/tegra20-trimslice.dtsp renamed from arch/arm/boot/dts/tegra20-trimslice.dts +1 -1
@@ -1,6 +1,6 @@ /dts-v1/; -/include/ "tegra20.dtsi" +#include "tegra20.dtsip" / { model = "Compulab TrimSlice board";
arch/arm/boot/dts/tegra20-ventana.dtsp renamed from arch/arm/boot/dts/tegra20-ventana.dts +1 -1
@@ -1,6 +1,6 @@ /dts-v1/; -/include/ "tegra20.dtsi" +#include "tegra20.dtsip" / { model = "NVIDIA Tegra20 Ventana evaluation board";
arch/arm/boot/dts/tegra20-whistler.dtsp renamed from arch/arm/boot/dts/tegra20-whistler.dts +1 -1
@@ -1,6 +1,6 @@ /dts-v1/; -/include/ "tegra20.dtsi" +#include "tegra20.dtsip" / { model = "NVIDIA Tegra20 Whistler evaluation board";
arch/arm/boot/dts/tegra20.dtsip renamed from arch/arm/boot/dts/tegra20.dtsi +1 -1
@@ -1,4 +1,4 @@ -/include/ "skeleton.dtsi" +#include "skeleton.dtsi" / { compatible = "nvidia,tegra20";
arch/arm/boot/dts/tegra30-beaver.dtsp renamed from arch/arm/boot/dts/tegra30-beaver.dts +1 -1
@@ -1,6 +1,6 @@ /dts-v1/; -/include/ "tegra30.dtsi" +#include "tegra30.dtsip" / { model = "NVIDIA Tegra30 Beaver evaluation board";
arch/arm/boot/dts/tegra30-cardhu-a02.dtsp renamed from arch/arm/boot/dts/tegra30-cardhu-a02.dts +1 -1
@@ -1,6 +1,6 @@ /dts-v1/; -/include/ "tegra30-cardhu.dtsi" +#include "tegra30-cardhu.dtsip" /* This dts file support the cardhu A02 version of board */
arch/arm/boot/dts/tegra30-cardhu-a04.dtsp renamed from arch/arm/boot/dts/tegra30-cardhu-a04.dts +1 -1
@@ -1,6 +1,6 @@ /dts-v1/; -/include/ "tegra30-cardhu.dtsi" +#include "tegra30-cardhu.dtsip" /* This dts file support the cardhu A04 and later versions of board */
arch/arm/boot/dts/tegra30-cardhu.dtsip renamed from arch/arm/boot/dts/tegra30-cardhu.dtsi +1 -1
@@ -1,4 +1,4 @@ -/include/ "tegra30.dtsi" +#include "tegra30.dtsip" /** * This file contains common DT entry for all fab version of Cardhu.
arch/arm/boot/dts/tegra30.dtsip renamed from arch/arm/boot/dts/tegra30.dtsi +1 -1
@@ -1,4 +1,4 @@ -/include/ "skeleton.dtsi" +#include "skeleton.dtsi" / { compatible = "nvidia,tegra30";
Signature · 1 line
1.7.10.4
PATCH 7/9 ARM: tegra: create a DT header defining GPIO IDs
In reply to Stephen WarrenFrom: Stephen Warren <[email protected]>
All Tegra GPIOs are named after the GPIO bank and GPIO number within the bank. Define a macro to calculate the GPIO ID based on those parameters. Make the macro available via all Tegra .dtsip files.
--- arch/arm/boot/dts/tegra-gpio.h | 45 ++++++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/tegra114.dtsip | 1 + arch/arm/boot/dts/tegra20.dtsip | 1 + arch/arm/boot/dts/tegra30.dtsip | 1 + 4 files changed, 48 insertions(+) create mode 100644 arch/arm/boot/dts/tegra-gpio.h
arch/arm/boot/dts/tegra-gpio.h new file +45 -0
@@ -0,0 +1,45 @@ +/* +* This header provides constants for binding nvidia,tegra*-gpio. +* +* The first cell in Tegra's GPIO specifier is the GPIO ID. The macros below +* provide names for this. +* +* The second cell contains standard flag values specified in gpio.h. +*/ + +#include "gpio.h" + +#define TEGRA_GPIO_BANK_ID_A 0 +#define TEGRA_GPIO_BANK_ID_B 1 +#define TEGRA_GPIO_BANK_ID_C 2 +#define TEGRA_GPIO_BANK_ID_D 3 +#define TEGRA_GPIO_BANK_ID_E 4 +#define TEGRA_GPIO_BANK_ID_F 5 +#define TEGRA_GPIO_BANK_ID_G 6 +#define TEGRA_GPIO_BANK_ID_H 7 +#define TEGRA_GPIO_BANK_ID_I 8 +#define TEGRA_GPIO_BANK_ID_J 9 +#define TEGRA_GPIO_BANK_ID_K 10 +#define TEGRA_GPIO_BANK_ID_L 11 +#define TEGRA_GPIO_BANK_ID_M 12 +#define TEGRA_GPIO_BANK_ID_N 13 +#define TEGRA_GPIO_BANK_ID_O 14 +#define TEGRA_GPIO_BANK_ID_P 15 +#define TEGRA_GPIO_BANK_ID_Q 16 +#define TEGRA_GPIO_BANK_ID_R 17 +#define TEGRA_GPIO_BANK_ID_S 18 +#define TEGRA_GPIO_BANK_ID_T 19 +#define TEGRA_GPIO_BANK_ID_U 20 +#define TEGRA_GPIO_BANK_ID_V 21 +#define TEGRA_GPIO_BANK_ID_W 22 +#define TEGRA_GPIO_BANK_ID_X 23 +#define TEGRA_GPIO_BANK_ID_Y 24 +#define TEGRA_GPIO_BANK_ID_Z 25 +#define TEGRA_GPIO_BANK_ID_AA 26 +#define TEGRA_GPIO_BANK_ID_BB 27 +#define TEGRA_GPIO_BANK_ID_CC 28 +#define TEGRA_GPIO_BANK_ID_DD 29 +#define TEGRA_GPIO_BANK_ID_EE 30 + +#define TEGRA_GPIO (bank, offset) \ + ((TEGRA_GPIO_BANK_ID_##bank * 8) + offset)
arch/arm/boot/dts/tegra114.dtsip +1 -0
@@ -1,4 +1,5 @@ #include "skeleton.dtsi" +#include "tegra-gpio.h" / { compatible = "nvidia,tegra114";
arch/arm/boot/dts/tegra20.dtsip +1 -0
@@ -1,4 +1,5 @@ #include "skeleton.dtsi" +#include "tegra-gpio.h" / { compatible = "nvidia,tegra20";
arch/arm/boot/dts/tegra30.dtsip +1 -0
@@ -1,4 +1,5 @@ #include "skeleton.dtsi" +#include "tegra-gpio.h" / { compatible = "nvidia,tegra30";
Signature · 1 line
1.7.10.4
PATCH 8/9 ARM: tegra: convert device tree files to use GPIO defines
In reply to Stephen WarrenFrom: Stephen Warren <[email protected]>
Use TEGRA_GPIO() macro to name all GPIOs referenced by GPIO properties, and some interrupts properties. Use standard GPIO flag defines too.
--- arch/arm/boot/dts/tegra20-colibri-512.dtsip | 16 +++++++----- arch/arm/boot/dts/tegra20-harmony.dtsp | 36 ++++++++++++++++----------- arch/arm/boot/dts/tegra20-iris-512.dtsp | 2 +- arch/arm/boot/dts/tegra20-medcom-wide.dtsp | 4 +-- arch/arm/boot/dts/tegra20-paz00.dtsp | 24 ++++++++++-------- arch/arm/boot/dts/tegra20-plutux.dtsp | 4 +-- arch/arm/boot/dts/tegra20-seaboard.dtsp | 33 +++++++++++++----------- arch/arm/boot/dts/tegra20-tamonten.dtsip | 7 +++--- arch/arm/boot/dts/tegra20-tec.dtsp | 5 ++-- arch/arm/boot/dts/tegra20-trimslice.dtsp | 17 +++++++------ arch/arm/boot/dts/tegra20-ventana.dtsp | 33 +++++++++++++----------- arch/arm/boot/dts/tegra20-whistler.dtsp | 5 ++-- arch/arm/boot/dts/tegra30-beaver.dtsp | 14 +++++------ arch/arm/boot/dts/tegra30-cardhu-a02.dtsp | 8 +++--- arch/arm/boot/dts/tegra30-cardhu-a04.dtsp | 10 ++++---- arch/arm/boot/dts/tegra30-cardhu.dtsip | 35 +++++++++++++------------- 16 files changed, 141 insertions(+), 112 deletions(-)
arch/arm/boot/dts/tegra20-colibri-512.dtsip +10 -6
@@ -14,7 +14,8 @@ pll-supply = <&hdmi_pll_reg>; nvidia,ddc-i2c-bus = <&i2c_ddc>; - nvidia,hpd-gpio = <&gpio 111 0>; /* PN7 */ + nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7) + GPIO_ACTIVE_HIGH>; }; };
@@ -434,17 +435,20 @@ ac97: ac97 { status = "okay"; - nvidia,codec-reset-gpio = <&gpio 168 0>; /* gpio PV0 */ - nvidia,codec-sync-gpio = <&gpio 120 0>; /* gpio PP0 */ + nvidia,codec-reset-gpio = <&gpio TEGRA_GPIO(V, 0) + GPIO_ACTIVE_HIGH>; + nvidia,codec-sync-gpio = <&gpio TEGRA_GPIO(P, 0) + GPIO_ACTIVE_HIGH>; }; usb at c5004000 { status = "okay"; - nvidia,phy-reset-gpio = <&gpio 169 0>; /* gpio PV1 */ + nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 1) + GPIO_ACTIVE_HIGH>; }; sdhci at c8000600 { - cd-gpios = <&gpio 23 0>; /* gpio PC7 */ + cd-gpios = <&gpio TEGRA_GPIO(C, 7) GPIO_ACTIVE_HIGH>; }; sound {
@@ -485,7 +489,7 @@ enable-active-high; regulator-boot-on; regulator-always-on; - gpio = <&gpio 217 0>; + gpio = <&gpio TEGRA_GPIO(BB, 1) GPIO_ACTIVE_HIGH>; }; }; };
arch/arm/boot/dts/tegra20-harmony.dtsp +21 -15
@@ -18,7 +18,8 @@ pll-supply = <&hdmi_pll_reg>; nvidia,ddc-i2c-bus = <&hdmi_ddc>; - nvidia,hpd-gpio = <&gpio 111 0>; /* PN7 */ + nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7) + GPIO_ACTIVE_HIGH>; }; };
@@ -262,7 +263,7 @@ compatible = "wlf,wm8903"; reg = <0x1a>; interrupt-parent = <&gpio>; - interrupts = <187 0x04>; + interrupts = <TEGRA_GPIO(X, 3) 0x04>; gpio-controller; #gpio-cells = <2>;
@@ -424,7 +425,8 @@ usb at c5004000 { status = "okay"; - nvidia,phy-reset-gpio = <&gpio 169 0>; /* gpio PV1 */ + nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 1) + GPIO_ACTIVE_HIGH>; }; usb at c5008000 {
@@ -432,22 +434,23 @@ }; usb-phy at c5004400 { - nvidia,phy-reset-gpio = <&gpio 169 0>; /* gpio PV1 */ + nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 1) + GPIO_ACTIVE_HIGH>; }; sdhci at c8000200 { status = "okay"; - cd-gpios = <&gpio 69 0>; /* gpio PI5 */ - wp-gpios = <&gpio 57 0>; /* gpio PH1 */ - power-gpios = <&gpio 155 0>; /* gpio PT3 */ + cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_HIGH>; + wp-gpios = <&gpio TEGRA_GPIO(H, 1) GPIO_ACTIVE_HIGH>; + power-gpios = <&gpio TEGRA_GPIO(T, 3) GPIO_ACTIVE_HIGH>; bus-width = <4>; }; sdhci at c8000600 { status = "okay"; - cd-gpios = <&gpio 58 0>; /* gpio PH2 */ - wp-gpios = <&gpio 59 0>; /* gpio PH3 */ - power-gpios = <&gpio 70 0>; /* gpio PI6 */ + cd-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>; + wp-gpios = <&gpio TEGRA_GPIO(H, 3) GPIO_ACTIVE_HIGH>; + power-gpios = <&gpio TEGRA_GPIO(I, 6) GPIO_ACTIVE_HIGH>; bus-width = <8>; };
@@ -619,7 +622,7 @@ regulator-name = "vdd_pnl"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; - gpio = <&gpio 22 0>; /* gpio PC6 */ + gpio = <&gpio TEGRA_GPIO(C, 6) GPIO_ACTIVE_HIGH>; enable-active-high; };
@@ -629,7 +632,7 @@ regulator-name = "vdd_bl"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; - gpio = <&gpio 176 0>; /* gpio PW0 */ + gpio = <&gpio TEGRA_GPIO(W, 0) GPIO_ACTIVE_HIGH>; enable-active-high; }; };
@@ -653,8 +656,11 @@ nvidia,audio-codec = <&wm8903>; nvidia,spkr-en-gpios = <&wm8903 2 0>; - nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */ - nvidia,int-mic-en-gpios = <&gpio 184 0>; /*gpio PX0 */ - nvidia,ext-mic-en-gpios = <&gpio 185 0>; /* gpio PX1 */ + nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) + GPIO_ACTIVE_HIGH>; + nvidia,int-mic-en-gpios = <&gpio TEGRA_GPIO(X, 0) + GPIO_ACTIVE_HIGH>; + nvidia,ext-mic-en-gpios = <&gpio TEGRA_GPIO(X, 1) + GPIO_ACTIVE_HIGH>; }; };
arch/arm/boot/dts/tegra20-iris-512.dtsp +1 -1
@@ -73,7 +73,7 @@ regulator-max-microvolt = <5000000>; regulator-boot-on; regulator-always-on; - gpio = <&gpio 178 0>; + gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>; }; vcc_sd_reg: regulator at 1 {
arch/arm/boot/dts/tegra20-medcom-wide.dtsp +2 -2
@@ -11,7 +11,7 @@ compatible = "wlf,wm8903"; reg = <0x1a>; interrupt-parent = <&gpio>; - interrupts = <187 0x04>; + interrupts = <TEGRA_GPIO(X, 3) 0x04>; gpio-controller; #gpio-cells = <2>;
@@ -53,6 +53,6 @@ nvidia,audio-codec = <&wm8903>; nvidia,spkr-en-gpios = <&wm8903 2 0>; - nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */ + nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>; }; };
arch/arm/boot/dts/tegra20-paz00.dtsp +14 -10
@@ -18,7 +18,8 @@ pll-supply = <&hdmi_pll_reg>; nvidia,ddc-i2c-bus = <&hdmi_ddc>; - nvidia,hpd-gpio = <&gpio 111 0>; /* PN7 */ + nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7) + GPIO_ACTIVE_HIGH>; }; };
@@ -274,7 +275,7 @@ #address-cells = <1>; #size-cells = <0>; clock-frequency = <80000>; - request-gpios = <&gpio 170 0>; /* gpio PV2 */ + request-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>; slave-addr = <138>; clocks = <&tegra_car 67>, <&tegra_car 124>; clock-names = "div-clk", "fast-clk";
@@ -423,7 +424,8 @@ usb at c5004000 { status = "okay"; - nvidia,phy-reset-gpio = <&gpio 168 0>; /* gpio PV0 */ + nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 0) + GPIO_ACTIVE_HIGH>; }; usb at c5008000 {
@@ -431,14 +433,15 @@ }; usb-phy at c5004400 { - nvidia,phy-reset-gpio = <&gpio 168 0>; /* gpio PV0 */ + nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 0) + GPIO_ACTIVE_HIGH>; }; sdhci at c8000000 { status = "okay"; - cd-gpios = <&gpio 173 0>; /* gpio PV5 */ - wp-gpios = <&gpio 57 0>; /* gpio PH1 */ - power-gpios = <&gpio 169 0>; /* gpio PV1 */ + cd-gpios = <&gpio TEGRA_GPIO(V, 5) GPIO_ACTIVE_HIGH>; + wp-gpios = <&gpio TEGRA_GPIO(H, 1) GPIO_ACTIVE_HIGH>; + power-gpios = <&gpio TEGRA_GPIO(V, 1) GPIO_ACTIVE_HIGH>; bus-width = <4>; };
@@ -452,7 +455,7 @@ power { label = "Power"; - gpios = <&gpio 79 1>; /* gpio PJ7, active low */ + gpios = <&gpio TEGRA_GPIO(J, 7) GPIO_ACTIVE_LOW>; linux,code = <116>; /* KEY_POWER */ gpio-key,wakeup; };
@@ -463,7 +466,7 @@ wifi { label = "wifi-led"; - gpios = <&gpio 24 0>; /* gpio PD0 */ + gpios = <&gpio TEGRA_GPIO(D, 0) GPIO_ACTIVE_HIGH>; linux,default-trigger = "rfkill0"; }; };
@@ -500,6 +503,7 @@ nvidia,audio-codec = <&alc5632>; nvidia,i2s-controller = <&tegra_i2s1>; - nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */ + nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) + GPIO_ACTIVE_HIGH>; }; };
arch/arm/boot/dts/tegra20-plutux.dtsp +2 -2
@@ -17,7 +17,7 @@ compatible = "wlf,wm8903"; reg = <0x1a>; interrupt-parent = <&gpio>; - interrupts = <187 0x04>; + interrupts = <TEGRA_GPIO(X, 3) 0x04>; gpio-controller; #gpio-cells = <2>;
@@ -51,6 +51,6 @@ nvidia,audio-codec = <&wm8903>; nvidia,spkr-en-gpios = <&wm8903 2 0>; - nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */ + nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>; }; };
arch/arm/boot/dts/tegra20-seaboard.dtsp +18 -15
@@ -18,7 +18,8 @@ pll-supply = <&hdmi_pll_reg>; nvidia,ddc-i2c-bus = <&hdmi_ddc>; - nvidia,hpd-gpio = <&gpio 111 0>; /* PN7 */ + nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7) + GPIO_ACTIVE_HIGH>; }; };
@@ -313,7 +314,7 @@ compatible = "wlf,wm8903"; reg = <0x1a>; interrupt-parent = <&gpio>; - interrupts = <187 0x04>; + interrupts = <TEGRA_GPIO(X, 3) 0x04>; gpio-controller; #gpio-cells = <2>;
@@ -328,14 +329,14 @@ compatible = "isil,isl29018"; reg = <0x44>; interrupt-parent = <&gpio>; - interrupts = <202 0x04>; /* GPIO PZ2 */ + interrupts = <TEGRA_GPIO(Z, 2) 0x04>; }; gyrometer at 68 { compatible = "invn,mpu3050"; reg = <0x68>; interrupt-parent = <&gpio>; - interrupts = <204 0x04>; /* gpio PZ4 */ + interrupts = <TEGRA_GPIO(Z, 4) 0x04>; }; };
@@ -511,7 +512,7 @@ compatible = "ak,ak8975"; reg = <0xc>; interrupt-parent = <&gpio>; - interrupts = <109 0x04>; /* gpio PN5 */ + interrupts = <TEGRA_GPIO(N, 5) 0x04>; }; };
@@ -559,13 +560,14 @@ usb at c5000000 { status = "okay"; - nvidia,vbus-gpio = <&gpio 24 0>; /* PD0 */ + nvidia,vbus-gpio = <&gpio TEGRA_GPIO(D, 0) GPIO_ACTIVE_HIGH>; dr_mode = "otg"; }; usb at c5004000 { status = "okay"; - nvidia,phy-reset-gpio = <&gpio 169 0>; /* gpio PV1 */ + nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 1) + GPIO_ACTIVE_HIGH>; }; usb at c5008000 {
@@ -573,20 +575,21 @@ }; usb-phy at c5004400 { - nvidia,phy-reset-gpio = <&gpio 169 0>; /* gpio PV1 */ + nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 1) + GPIO_ACTIVE_HIGH>; }; sdhci at c8000000 { status = "okay"; - power-gpios = <&gpio 86 0>; /* gpio PK6 */ + power-gpios = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>; bus-width = <4>; }; sdhci at c8000400 { status = "okay"; - cd-gpios = <&gpio 69 0>; /* gpio PI5 */ - wp-gpios = <&gpio 57 0>; /* gpio PH1 */ - power-gpios = <&gpio 70 0>; /* gpio PI6 */ + cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_HIGH>; + wp-gpios = <&gpio TEGRA_GPIO(H, 1) GPIO_ACTIVE_HIGH>; + power-gpios = <&gpio TEGRA_GPIO(I, 6) GPIO_ACTIVE_HIGH>; bus-width = <4>; };
@@ -600,14 +603,14 @@ power { label = "Power"; - gpios = <&gpio 170 1>; /* gpio PV2, active low */ + gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>; linux,code = <116>; /* KEY_POWER */ gpio-key,wakeup; }; lid { label = "Lid"; - gpios = <&gpio 23 0>; /* gpio PC7 */ + gpios = <&gpio TEGRA_GPIO(C, 7) GPIO_ACTIVE_HIGH>; linux,input-type = <5>; /* EV_SW */ linux,code = <0>; /* SW_LID */ debounce-interval = <1>;
@@ -807,6 +810,6 @@ nvidia,audio-codec = <&wm8903>; nvidia,spkr-en-gpios = <&wm8903 2 0>; - nvidia,hp-det-gpios = <&gpio 185 0>; /* gpio PX1 */ + nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(X, 1) GPIO_ACTIVE_HIGH>; }; };
arch/arm/boot/dts/tegra20-tamonten.dtsip +4 -3
@@ -14,7 +14,8 @@ pll-supply = <&hdmi_pll_reg>; nvidia,ddc-i2c-bus = <&hdmi_ddc>; - nvidia,hpd-gpio = <&gpio 111 0>; /* PN7 */ + nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7) + GPIO_ACTIVE_HIGH>; }; };
@@ -465,8 +466,8 @@ }; sdhci at c8000600 { - cd-gpios = <&gpio 58 0>; /* gpio PH2 */ - wp-gpios = <&gpio 59 0>; /* gpio PH3 */ + cd-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>; + wp-gpios = <&gpio TEGRA_GPIO(H, 3) GPIO_ACTIVE_HIGH>; bus-width = <4>; status = "okay"; };
arch/arm/boot/dts/tegra20-tec.dtsp +3 -2
@@ -17,7 +17,7 @@ compatible = "wlf,wm8903"; reg = <0x1a>; interrupt-parent = <&gpio>; - interrupts = <187 0x04>; + interrupts = <TEGRA_GPIO(X, 3) 0x04>; gpio-controller; #gpio-cells = <2>;
@@ -51,6 +51,7 @@ nvidia,audio-codec = <&wm8903>; nvidia,spkr-en-gpios = <&wm8903 2 0>; - nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */ + nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) + GPIO_ACTIVE_HIGH>; }; };
arch/arm/boot/dts/tegra20-trimslice.dtsp +10 -7
@@ -18,7 +18,8 @@ pll-supply = <&hdmi_pll_reg>; nvidia,ddc-i2c-bus = <&hdmi_ddc>; - nvidia,hpd-gpio = <&gpio 111 0>; /* PN7 */ + nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7) + GPIO_ACTIVE_HIGH>; }; };
@@ -302,12 +303,13 @@ usb at c5000000 { status = "okay"; - nvidia,vbus-gpio = <&gpio 170 0>; /* gpio PV2 */ + nvidia,vbus-gpio = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>; }; usb at c5004000 { status = "okay"; - nvidia,phy-reset-gpio = <&gpio 168 0>; /* gpio PV0 */ + nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 0) + GPIO_ACTIVE_HIGH>; }; usb at c5008000 {
@@ -315,7 +317,8 @@ }; usb-phy at c5004400 { - nvidia,phy-reset-gpio = <&gpio 168 0>; /* gpio PV0 */ + nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 0) + GPIO_ACTIVE_HIGH>; }; sdhci at c8000000 {
@@ -325,14 +328,14 @@ sdhci at c8000600 { status = "okay"; - cd-gpios = <&gpio 121 0>; /* gpio PP1 */ - wp-gpios = <&gpio 122 0>; /* gpio PP2 */ + cd-gpios = <&gpio TEGRA_GPIO(P, 1) GPIO_ACTIVE_HIGH>; + wp-gpios = <&gpio TEGRA_GPIO(P, 2) GPIO_ACTIVE_HIGH>; bus-width = <4>; }; poweroff { compatible = "gpio-poweroff"; - gpios = <&gpio 191 1>; /* gpio PX7, active low */ + gpios = <&gpio TEGRA_GPIO(X, 7) GPIO_ACTIVE_LOW>; }; regulators {
arch/arm/boot/dts/tegra20-ventana.dtsp +19 -14
@@ -18,7 +18,8 @@ pll-supply = <&hdmi_pll_reg>; nvidia,ddc-i2c-bus = <&hdmi_ddc>; - nvidia,hpd-gpio = <&gpio 111 0>; /* PN7 */ + nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7) + GPIO_ACTIVE_HIGH>; }; };
@@ -310,7 +311,7 @@ compatible = "wlf,wm8903"; reg = <0x1a>; interrupt-parent = <&gpio>; - interrupts = <187 0x04>; + interrupts = <TEGRA_GPIO(X, 3) 0x04>; gpio-controller; #gpio-cells = <2>;
@@ -325,7 +326,7 @@ compatible = "isil,isl29018"; reg = <0x44>; interrupt-parent = <&gpio>; - interrupts = <202 0x04>; /*gpio PZ2 */ + interrupts = <TEGRA_GPIO(Z, 2) 0x04>; }; };
@@ -501,7 +502,8 @@ usb at c5004000 { status = "okay"; - nvidia,phy-reset-gpio = <&gpio 169 0>; /* gpio PV1 */ + nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 1) + GPIO_ACTIVE_HIGH>; }; usb at c5008000 {
@@ -509,20 +511,21 @@ }; usb-phy at c5004400 { - nvidia,phy-reset-gpio = <&gpio 169 0>; /* gpio PV1 */ + nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 1) + GPIO_ACTIVE_HIGH>; }; sdhci at c8000000 { status = "okay"; - power-gpios = <&gpio 86 0>; /* gpio PK6 */ + power-gpios = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>; bus-width = <4>; }; sdhci at c8000400 { status = "okay"; - cd-gpios = <&gpio 69 0>; /* gpio PI5 */ - wp-gpios = <&gpio 57 0>; /* gpio PH1 */ - power-gpios = <&gpio 70 0>; /* gpio PI6 */ + cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_HIGH>; + wp-gpios = <&gpio TEGRA_GPIO(H, 1) GPIO_ACTIVE_HIGH>; + power-gpios = <&gpio TEGRA_GPIO(I, 6) GPIO_ACTIVE_HIGH>; bus-width = <4>; };
@@ -570,7 +573,7 @@ regulator-name = "vdd_pnl"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; - gpio = <&gpio 22 0>; /* gpio PC6 */ + gpio = <&gpio TEGRA_GPIO(C, 6) GPIO_ACTIVE_HIGH>; enable-active-high; };
@@ -580,7 +583,7 @@ regulator-name = "vdd_bl"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; - gpio = <&gpio 176 0>; /* gpio PW0 */ + gpio = <&gpio TEGRA_GPIO(W, 0) GPIO_ACTIVE_HIGH>; enable-active-high; }; };
@@ -604,8 +607,10 @@ nvidia,audio-codec = <&wm8903>; nvidia,spkr-en-gpios = <&wm8903 2 0>; - nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */ - nvidia,int-mic-en-gpios = <&gpio 184 0>; /* gpio PX0 */ - nvidia,ext-mic-en-gpios = <&gpio 185 0>; /* gpio PX1 */ + nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>; + nvidia,int-mic-en-gpios = <&gpio TEGRA_GPIO(X, 0) + GPIO_ACTIVE_HIGH>; + nvidia,ext-mic-en-gpios = <&gpio TEGRA_GPIO(X, 1) + GPIO_ACTIVE_HIGH>; }; };
arch/arm/boot/dts/tegra20-whistler.dtsp +3 -2
@@ -18,7 +18,8 @@ pll-supply = <&hdmi_pll_reg>; nvidia,ddc-i2c-bus = <&hdmi_ddc>; - nvidia,hpd-gpio = <&gpio 111 0>; /* PN7 */ + nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7) + GPIO_ACTIVE_HIGH>; }; };
@@ -510,7 +511,7 @@ sdhci at c8000400 { status = "okay"; - wp-gpios = <&gpio 173 0>; /* gpio PV5 */ + wp-gpios = <&gpio TEGRA_GPIO(V, 5) GPIO_ACTIVE_HIGH>; bus-width = <8>; };
arch/arm/boot/dts/tegra30-beaver.dtsp +7 -7
@@ -257,9 +257,9 @@ sdhci at 78000000 { status = "okay"; - cd-gpios = <&gpio 69 0>; /* gpio PI5 */ - wp-gpios = <&gpio 155 0>; /* gpio PT3 */ - power-gpios = <&gpio 31 0>; /* gpio PD7 */ + cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_HIGH>; + wp-gpios = <&gpio TEGRA_GPIO(T, 3) GPIO_ACTIVE_HIGH>; + power-gpios = <&gpio TEGRA_GPIO(D, 7) GPIO_ACTIVE_HIGH>; bus-width = <4>; };
@@ -316,7 +316,7 @@ regulator-always-on; regulator-boot-on; enable-active-high; - gpio = <&gpio 30 0>; /* gpio PD6 */ + gpio = <&gpio TEGRA_GPIO(D, 6) GPIO_ACTIVE_HIGH>; vin-supply = <&vdd_5v_in_reg>; };
@@ -327,7 +327,7 @@ regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; enable-active-high; - gpio = <&gpio 68 0>; /* GPIO PI4 */ + gpio = <&gpio TEGRA_GPIO(I, 4) GPIO_ACTIVE_HIGH>; gpio-open-drain; vin-supply = <&vdd_5v_in_reg>; };
@@ -339,7 +339,7 @@ regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; enable-active-high; - gpio = <&gpio 63 0>; /* GPIO PH7 */ + gpio = <&gpio TEGRA_GPIO(H, 7) GPIO_ACTIVE_HIGH>; gpio-open-drain; vin-supply = <&vdd_5v_in_reg>; };
@@ -366,7 +366,7 @@ regulator-always-on; regulator-boot-on; enable-active-high; - gpio = <&gpio 95 0>; /* gpio PL7 */ + gpio = <&gpio TEGRA_GPIO(L, 7) GPIO_ACTIVE_HIGH>; vin-supply = <&sys_3v3_reg>; }; };
arch/arm/boot/dts/tegra30-cardhu-a02.dtsp +4 -4
@@ -44,7 +44,7 @@ regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; enable-active-high; - gpio = <&gpio 68 0>; /* GPIO PI4 */ + gpio = <&gpio TEGRA_GPIO(I, 4) GPIO_ACTIVE_HIGH>; gpio-open-drain; vin-supply = <&vdd_5v0_reg>; };
@@ -56,7 +56,7 @@ regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; enable-active-high; - gpio = <&gpio 63 0>; /* GPIO PH7 */ + gpio = <&gpio TEGRA_GPIO(H, 7) GPIO_ACTIVE_HIGH>; gpio-open-drain; vin-supply = <&vdd_5v0_reg>; };
@@ -80,13 +80,13 @@ regulator-always-on; regulator-boot-on; enable-active-high; - gpio = <&gpio 83 0>; /* GPIO PK3 */ + gpio = <&gpio TEGRA_GPIO(K, 3) GPIO_ACTIVE_HIGH>; }; }; sdhci at 78000400 { status = "okay"; - power-gpios = <&gpio 28 0>; /* gpio PD4 */ + power-gpios = <&gpio TEGRA_GPIO(D, 4) GPIO_ACTIVE_HIGH>; bus-width = <4>; }; };
arch/arm/boot/dts/tegra30-cardhu-a04.dtsp +5 -5
@@ -44,7 +44,7 @@ regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; enable-active-high; - gpio = <&gpio 238 0>; /* GPIO PDD6 */ + gpio = <&gpio TEGRA_GPIO(DD, 6) GPIO_ACTIVE_HIGH>; gpio-open-drain; vin-supply = <&vdd_5v0_reg>; };
@@ -56,7 +56,7 @@ regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; enable-active-high; - gpio = <&gpio 236 0>; /* GPIO PDD4 */ + gpio = <&gpio TEGRA_GPIO(DD, 4) GPIO_ACTIVE_HIGH>; gpio-open-drain; vin-supply = <&vdd_5v0_reg>; };
@@ -80,7 +80,7 @@ regulator-always-on; regulator-boot-on; enable-active-high; - gpio = <&gpio 234 0>; /* GPIO PDD2 */ + gpio = <&gpio TEGRA_GPIO(DD, 2) GPIO_ACTIVE_HIGH>; }; vdd_bl2_reg: regulator at 106 {
@@ -92,13 +92,13 @@ regulator-always-on; regulator-boot-on; enable-active-high; - gpio = <&gpio 232 0>; /* GPIO PDD0 */ + gpio = <&gpio TEGRA_GPIO(DD, 0) GPIO_ACTIVE_HIGH>; }; }; sdhci at 78000400 { status = "okay"; - power-gpios = <&gpio 27 0>; /* gpio PD3 */ + power-gpios = <&gpio TEGRA_GPIO(D, 3) GPIO_ACTIVE_HIGH>; bus-width = <4>; }; };
arch/arm/boot/dts/tegra30-cardhu.dtsip +18 -17
@@ -146,7 +146,7 @@ compatible = "isil,isl29028"; reg = <0x44>; interrupt-parent = <&gpio>; - interrupts = <88 0x04>; /*gpio PL0 */ + interrupts = <TEGRA_GPIO(L, 0) 0x04>; }; };
@@ -163,7 +163,7 @@ compatible = "wlf,wm8903"; reg = <0x1a>; interrupt-parent = <&gpio>; - interrupts = <179 0x04>; /* gpio PW3 */ + interrupts = <TEGRA_GPIO(W, 3) 0x04>; gpio-controller; #gpio-cells = <2>;
@@ -311,9 +311,9 @@ sdhci at 78000000 { status = "okay"; - cd-gpios = <&gpio 69 0>; /* gpio PI5 */ - wp-gpios = <&gpio 155 0>; /* gpio PT3 */ - power-gpios = <&gpio 31 0>; /* gpio PD7 */ + cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_HIGH>; + wp-gpios = <&gpio TEGRA_GPIO(T, 3) GPIO_ACTIVE_HIGH>; + power-gpios = <&gpio TEGRA_GPIO(D, 7) GPIO_ACTIVE_HIGH>; bus-width = <4>; };
@@ -343,7 +343,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; enable-active-high; - gpio = <&gpio 220 0>; /* gpio PBB4 */ + gpio = <&gpio TEGRA_GPIO(BB, 4) GPIO_ACTIVE_HIGH>; vin-supply = <&vio_reg>; };
@@ -368,7 +368,7 @@ regulator-always-on; regulator-boot-on; enable-active-high; - gpio = <&gpio 25 0>; /* gpio PD1 */ + gpio = <&gpio TEGRA_GPIO(D, 1) GPIO_ACTIVE_HIGH>; vin-supply = <&sys_3v3_reg>; };
@@ -379,7 +379,7 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; enable-active-high; - gpio = <&gpio 30 0>; /* gpio PD6 */ + gpio = <&gpio TEGRA_GPIO(D, 6) GPIO_ACTIVE_HIGH>; }; pex_hvdd_3v3_reg: regulator at 5 {
@@ -389,7 +389,7 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; enable-active-high; - gpio = <&gpio 95 0>; /* gpio PL7 */ + gpio = <&gpio TEGRA_GPIO(L, 7) GPIO_ACTIVE_HIGH>; vin-supply = <&sys_3v3_reg>; };
@@ -400,7 +400,7 @@ regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; enable-active-high; - gpio = <&gpio 142 0>; /* gpio PR6 */ + gpio = <&gpio TEGRA_GPIO(R, 6) GPIO_ACTIVE_HIGH>; vin-supply = <&sys_3v3_reg>; };
@@ -411,7 +411,7 @@ regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; enable-active-high; - gpio = <&gpio 143 0>; /* gpio PR7 */ + gpio = <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>; vin-supply = <&sys_3v3_reg>; };
@@ -422,7 +422,7 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; enable-active-high; - gpio = <&gpio 144 0>; /* gpio PS0 */ + gpio = <&gpio TEGRA_GPIO(S, 0) GPIO_ACTIVE_HIGH>; vin-supply = <&sys_3v3_reg>; };
@@ -435,7 +435,7 @@ regulator-always-on; regulator-boot-on; enable-active-high; - gpio = <&gpio 24 0>; /* gpio PD0 */ + gpio = <&gpio TEGRA_GPIO(D, 0) GPIO_ACTIVE_HIGH>; vin-supply = <&sys_3v3_reg>; };
@@ -446,7 +446,7 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; enable-active-high; - gpio = <&gpio 94 0>; /* gpio PL6 */ + gpio = <&gpio TEGRA_GPIO(L, 6) GPIO_ACTIVE_HIGH>; vin-supply = <&sys_3v3_reg>; };
@@ -459,7 +459,7 @@ regulator-always-on; regulator-boot-on; enable-active-high; - gpio = <&gpio 92 0>; /* gpio PL4 */ + gpio = <&gpio TEGRA_GPIO(L, 4) GPIO_ACTIVE_HIGH>; vin-supply = <&sys_3v3_reg>; };
@@ -470,7 +470,7 @@ regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; enable-active-high; - gpio = <&gpio 152 0>; /* GPIO PT0 */ + gpio = <&gpio TEGRA_GPIO(T, 0) GPIO_ACTIVE_HIGH>; gpio-open-drain; vin-supply = <&vdd_5v0_reg>; };
@@ -495,6 +495,7 @@ nvidia,audio-codec = <&wm8903>; nvidia,spkr-en-gpios = <&wm8903 2 0>; - nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */ + nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) + GPIO_ACTIVE_HIGH>; }; };
Signature · 1 line
1.7.10.4
PATCH 9/9 ARM: tegra: convert device tree files to use IRQ defines
In reply to Stephen WarrenFrom: Stephen Warren <[email protected]>
Use the GIC and standard IRQ binding defines in all IRQ specifiers.
--- arch/arm/boot/dts/tegra114.dtsip | 55 +++++---- arch/arm/boot/dts/tegra20-colibri-512.dtsip | 2 +- arch/arm/boot/dts/tegra20-harmony.dtsp | 4 +- arch/arm/boot/dts/tegra20-medcom-wide.dtsp | 2 +- arch/arm/boot/dts/tegra20-paz00.dtsp | 4 +- arch/arm/boot/dts/tegra20-plutux.dtsp | 2 +- arch/arm/boot/dts/tegra20-seaboard.dtsp | 10 +- arch/arm/boot/dts/tegra20-tamonten.dtsip | 2 +- arch/arm/boot/dts/tegra20-tec.dtsp | 2 +- arch/arm/boot/dts/tegra20-ventana.dtsp | 6 +- arch/arm/boot/dts/tegra20-whistler.dtsp | 2 +- arch/arm/boot/dts/tegra20.dtsip | 138 ++++++++++----------- arch/arm/boot/dts/tegra30-beaver.dtsp | 2 +- arch/arm/boot/dts/tegra30-cardhu.dtsip | 6 +- arch/arm/boot/dts/tegra30.dtsip | 174 ++++++++++++++------------- 15 files changed, 211 insertions(+), 200 deletions(-)
arch/arm/boot/dts/tegra114.dtsip +31 -24
@@ -1,5 +1,6 @@ #include "skeleton.dtsi" #include "tegra-gpio.h" +#include "arm-gic.h" / { compatible = "nvidia,tegra114";
@@ -13,18 +14,19 @@ <0x50042000 0x1000>, <0x50044000 0x2000>, <0x50046000 0x2000>; - interrupts = <1 9 0xf04>; + interrupts = <GIC_PPI 9 + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; }; timer at 60005000 { compatible = "nvidia,tegra114-timer", "nvidia,tegra20-timer"; reg = <0x60005000 0x400>; - interrupts = <0 0 0x04 - 0 1 0x04 - 0 41 0x04 - 0 42 0x04 - 0 121 0x04 - 0 122 0x04>; + interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>; }; tegra_car: clock {
@@ -41,14 +43,14 @@ gpio: gpio { compatible = "nvidia,tegra114-gpio", "nvidia,tegra30-gpio"; reg = <0x6000d000 0x1000>; - interrupts = <0 32 0x04 - 0 33 0x04 - 0 34 0x04 - 0 35 0x04 - 0 55 0x04 - 0 87 0x04 - 0 89 0x04 - 0 125 0x04>; + interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>; #gpio-cells = <2>; gpio-controller; #interrupt-cells = <2>;
@@ -65,7 +67,7 @@ compatible = "nvidia,tegra114-uart", "nvidia,tegra20-uart"; reg = <0x70006000 0x40>; reg-shift = <2>; - interrupts = <0 36 0x04>; + interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; };
@@ -73,7 +75,7 @@ compatible = "nvidia,tegra114-uart", "nvidia,tegra20-uart"; reg = <0x70006040 0x40>; reg-shift = <2>; - interrupts = <0 37 0x04>; + interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; };
@@ -81,7 +83,7 @@ compatible = "nvidia,tegra114-uart", "nvidia,tegra20-uart"; reg = <0x70006200 0x100>; reg-shift = <2>; - interrupts = <0 46 0x04>; + interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; };
@@ -89,14 +91,14 @@ compatible = "nvidia,tegra114-uart", "nvidia,tegra20-uart"; reg = <0x70006300 0x100>; reg-shift = <2>; - interrupts = <0 90 0x04>; + interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; rtc { compatible = "nvidia,tegra114-rtc", "nvidia,tegra20-rtc"; reg = <0x7000e000 0x100>; - interrupts = <0 2 0x04>; + interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; }; pmc {
@@ -146,9 +148,14 @@ timer { compatible = "arm,armv7-timer"; - interrupts = <1 13 0xf08>, - <1 14 0xf08>, - <1 11 0xf08>, - <1 10 0xf08>; + interrupts = + <GIC_PPI 13 + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 14 + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 11 + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 10 + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; }; };
arch/arm/boot/dts/tegra20-colibri-512.dtsip +1 -1
@@ -218,7 +218,7 @@ pmic: tps6586x at 34 { compatible = "ti,tps6586x"; reg = <0x34>; - interrupts = <0 86 0x4>; + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; ti,system-power-controller;
arch/arm/boot/dts/tegra20-harmony.dtsp +2 -2
@@ -263,7 +263,7 @@ compatible = "wlf,wm8903"; reg = <0x1a>; interrupt-parent = <&gpio>; - interrupts = <TEGRA_GPIO(X, 3) 0x04>; + interrupts = <TEGRA_GPIO(X, 3) IRQ_TYPE_LEVEL_HIGH>; gpio-controller; #gpio-cells = <2>;
@@ -291,7 +291,7 @@ pmic: tps6586x at 34 { compatible = "ti,tps6586x"; reg = <0x34>; - interrupts = <0 86 0x4>; + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; ti,system-power-controller;
arch/arm/boot/dts/tegra20-medcom-wide.dtsp +1 -1
@@ -11,7 +11,7 @@ compatible = "wlf,wm8903"; reg = <0x1a>; interrupt-parent = <&gpio>; - interrupts = <TEGRA_GPIO(X, 3) 0x04>; + interrupts = <TEGRA_GPIO(X, 3) IRQ_TYPE_LEVEL_HIGH>; gpio-controller; #gpio-cells = <2>;
arch/arm/boot/dts/tegra20-paz00.dtsp +2 -2
@@ -271,7 +271,7 @@ nvec { compatible = "nvidia,nvec"; reg = <0x7000c500 0x100>; - interrupts = <0 92 0x04>; + interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>; #address-cells = <1>; #size-cells = <0>; clock-frequency = <80000>;
@@ -288,7 +288,7 @@ pmic: tps6586x at 34 { compatible = "ti,tps6586x"; reg = <0x34>; - interrupts = <0 86 0x4>; + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; #gpio-cells = <2>; gpio-controller;
arch/arm/boot/dts/tegra20-plutux.dtsp +1 -1
@@ -17,7 +17,7 @@ compatible = "wlf,wm8903"; reg = <0x1a>; interrupt-parent = <&gpio>; - interrupts = <TEGRA_GPIO(X, 3) 0x04>; + interrupts = <TEGRA_GPIO(X, 3) IRQ_TYPE_LEVEL_HIGH>; gpio-controller; #gpio-cells = <2>;
arch/arm/boot/dts/tegra20-seaboard.dtsp +5 -5
@@ -314,7 +314,7 @@ compatible = "wlf,wm8903"; reg = <0x1a>; interrupt-parent = <&gpio>; - interrupts = <TEGRA_GPIO(X, 3) 0x04>; + interrupts = <TEGRA_GPIO(X, 3) IRQ_TYPE_LEVEL_HIGH>; gpio-controller; #gpio-cells = <2>;
@@ -329,14 +329,14 @@ compatible = "isil,isl29018"; reg = <0x44>; interrupt-parent = <&gpio>; - interrupts = <TEGRA_GPIO(Z, 2) 0x04>; + interrupts = <TEGRA_GPIO(Z, 2) IRQ_TYPE_LEVEL_HIGH>; }; gyrometer at 68 { compatible = "invn,mpu3050"; reg = <0x68>; interrupt-parent = <&gpio>; - interrupts = <TEGRA_GPIO(Z, 4) 0x04>; + interrupts = <TEGRA_GPIO(Z, 4) IRQ_TYPE_LEVEL_HIGH>; }; };
@@ -389,7 +389,7 @@ pmic: tps6586x at 34 { compatible = "ti,tps6586x"; reg = <0x34>; - interrupts = <0 86 0x4>; + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; ti,system-power-controller;
@@ -512,7 +512,7 @@ compatible = "ak,ak8975"; reg = <0xc>; interrupt-parent = <&gpio>; - interrupts = <TEGRA_GPIO(N, 5) 0x04>; + interrupts = <TEGRA_GPIO(N, 5) IRQ_TYPE_LEVEL_HIGH>; }; };
arch/arm/boot/dts/tegra20-tamonten.dtsip +1 -1
@@ -322,7 +322,7 @@ pmic: tps6586x at 34 { compatible = "ti,tps6586x"; reg = <0x34>; - interrupts = <0 86 0x4>; + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; ti,system-power-controller;
arch/arm/boot/dts/tegra20-tec.dtsp +1 -1
@@ -17,7 +17,7 @@ compatible = "wlf,wm8903"; reg = <0x1a>; interrupt-parent = <&gpio>; - interrupts = <TEGRA_GPIO(X, 3) 0x04>; + interrupts = <TEGRA_GPIO(X, 3) IRQ_TYPE_LEVEL_HIGH>; gpio-controller; #gpio-cells = <2>;
arch/arm/boot/dts/tegra20-ventana.dtsp +3 -3
@@ -311,7 +311,7 @@ compatible = "wlf,wm8903"; reg = <0x1a>; interrupt-parent = <&gpio>; - interrupts = <TEGRA_GPIO(X, 3) 0x04>; + interrupts = <TEGRA_GPIO(X, 3) IRQ_TYPE_LEVEL_HIGH>; gpio-controller; #gpio-cells = <2>;
@@ -326,7 +326,7 @@ compatible = "isil,isl29018"; reg = <0x44>; interrupt-parent = <&gpio>; - interrupts = <TEGRA_GPIO(Z, 2) 0x04>; + interrupts = <TEGRA_GPIO(Z, 2) IRQ_TYPE_LEVEL_HIGH>; }; };
@@ -372,7 +372,7 @@ pmic: tps6586x at 34 { compatible = "ti,tps6586x"; reg = <0x34>; - interrupts = <0 86 0x4>; + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; ti,system-power-controller;
arch/arm/boot/dts/tegra20-whistler.dtsp +1 -1
@@ -282,7 +282,7 @@ max8907 at 3c { compatible = "maxim,max8907"; reg = <0x3c>; - interrupts = <0 86 0x4>; + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; maxim,system-power-controller;
arch/arm/boot/dts/tegra20.dtsip +70 -68
393 lines not on this page · raw message
arch/arm/boot/dts/tegra30-beaver.dtsp +1 -1
@@ -133,7 +133,7 @@ compatible = "ti,tps65911"; reg = <0x2d>; - interrupts = <0 86 0x4>; + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; #interrupt-cells = <2>; interrupt-controller;
arch/arm/boot/dts/tegra30-cardhu.dtsip +3 -3
@@ -146,7 +146,7 @@ compatible = "isil,isl29028"; reg = <0x44>; interrupt-parent = <&gpio>; - interrupts = <TEGRA_GPIO(L, 0) 0x04>; + interrupts = <TEGRA_GPIO(L, 0) IRQ_TYPE_LEVEL_HIGH>; }; };
@@ -163,7 +163,7 @@ compatible = "wlf,wm8903"; reg = <0x1a>; interrupt-parent = <&gpio>; - interrupts = <TEGRA_GPIO(W, 3) 0x04>; + interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_LEVEL_HIGH>; gpio-controller; #gpio-cells = <2>;
@@ -190,7 +190,7 @@ compatible = "ti,tps65911"; reg = <0x2d>; - interrupts = <0 86 0x4>; + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; #interrupt-cells = <2>; interrupt-controller;
arch/arm/boot/dts/tegra30.dtsip +88 -86
411 lines not on this page · raw message
Signature · 1 line
1.7.10.4
PATCH 1/1 ARM: dt: add header to define tegra20 clocks
In reply to Stephen WarrenTo replace magic number in "clocks = <&tegra_car 28>;"
---
This patch depends on:
[PATCH 0/9] ARM: tegra: use new dtc+cpp feature
http://lists.infradead.org/pipermail/linux-arm-kernel/2013-February/149613.html
This patch is the experiment for Tegra20. The same replacement can be done for Tegra{30,114}.
Usage:
Modified arch/arm/boot/dts/tegra20.dtsip
arch/arm/boot/dts/tegra20.dtsip +1 -0
@@ -1,6 +1,7 @@ #include "skeleton.dtsi" #include "tegra-gpio.h" #include "arm-gic.h" +#include "tegra20-car.h" / {
compatible = "nvidia,tegra20"; @@ -19,7 +20,7 @@ reg = <0x50000000 0x00024000>; interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>, /* syncpt */ <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>; /* general */
- clocks = <&tegra_car 28>;
+ clocks = <&tegra_car CLK_HOST1X>;
--- arch/arm/boot/dts/tegra20-car.h | 126 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 arch/arm/boot/dts/tegra20-car.h
arch/arm/boot/dts/tegra20-car.h new file +126 -0
126 lines not on this page · raw message
Signature · 1 line
1.7.9.5
Re: [PATCH 1/1] ARM: dt: add header to define tegra20 clocks
Quoted 2 lines · Hiroshi Doyu
To replace magic number in "clocks = <
&tegra_car28>;"
But then we should probably also remove the enum tegra20_clk and replace it with this header file. We should also consider removing the list of IDs from the documentation and refer to the header file instead. Otherwise we will have 3 places which define the same IDs and we need to be sure they stay in sync...
Cheers,
Peter.
Re: [PATCH 1/1] ARM: dt: add header to define tegra20 clocks
Peter De Schrijver <[email protected]> wrote @ Thu, 14 Feb 2013 11:12:20 +0100:
Quoted 8 lines · Hiroshi Doyu
Quoted 2 lines
To replace magic number in "clocks = <
&tegra_car28>;"But then we should probably also remove the enum
tegra20_clkand replace it with this header file. We should also consider removing the list of IDs from the documentation and refer to the header file instead. Otherwise we will have 3 places which define the same IDs and we need to be sure they stay in sync...
Actually I generate "arch/arm/boot/dts/tegra{20,30}-car.h" by parsing "enum tegra{20,30}_clk {..};" with a python script.
There could be the same kind of requirement from others that both "dtsip" and "C-source" want to share the same header file. If we consider that DT is the exact H/W description, C-source should be able to include a DT header file.
For example, a C-header file for "enum tegra{20,30}_clk" should be generated from "arch/arm/boot/dts/tegra{20,30}-car.h" at runtime, or alternatively just "drivers/clk/tegra/clk-tegra{20,30}.c" can include "arch/arm/boot/dts/tegra{20,30}-car.h"? The latter may be easier.
Re: [PATCH 1/1] ARM: dt: add header to define tegra20 clocks
Quoted 9 lines
There could be the same kind of requirement from others that both "dtsip" and "C-source" want to share the same header file. If we consider that DT is the exact H/W description, C-source should be able to include a DT header file.
For example, a C-header file for "enum tegra{20,30}_clk" should be generated from "
arch/arm/boot/dts/tegra{20,30}-car.h" at runtime, or alternatively just "drivers/clk/tegra/clk-tegra{20,30}.c" can include "arch/arm/boot/dts/tegra{20,30}-car.h"? The latter may be easier.
Including arch/arm/boot/dts/tegra{20,30}-car.h seems to make much more sense to me than generating a enum based on #defines... :)
Cheers,
Peter.
Re: [PATCH 1/1] ARM: dt: add header to define tegra20 clocks
In reply to Hiroshi DoyuQuoted 1 line · Hiroshi Doyu
To replace magic number in "clocks = <
&tegra_car28>;"
I like the concept here; I was thinking about doing this today, but you beat me to it:-) Feel free to create the Tegra30 header too, and modify all the *.dts* files.
To address other comments in this thread: Yes, I think that we will want to modify the clock driver to include this header to avoid duplication/errors (that will require adjusting Linux's include path), and also remove the list of IDs from the binding document; it can just refer the the new header by name and cause the header to *be* part of the binding document.
Re: [PATCH 1/1] ARM: dt: add header to define tegra20 clocks
Quoted 7 lines · Stephen Warren
Quoted 1 line · Hiroshi Doyu
To replace magic number in "clocks = <
&tegra_car28>;"I like the concept here; I was thinking about doing this today, but you beat me to it:-) Feel free to create the Tegra30 header too, and modify all the *.dts* files.
Quoted 6 lines
To address other comments in this thread: Yes, I think that we will want to modify the clock driver to include this header to avoid duplication/errors (that will require adjusting Linux's include path), and also remove the list of IDs from the binding document; it can just refer the the new header by name and cause the header to *be* part of the binding document.
I like it, since doing so will help us hijack kernel to have dts stay in the tree rather than going to a separate repository :)
Seriously, is maintaining dts in a separate repository still a plan? If yes, we will have duplication problem someday anyway.
For reason of it, I vote for having dts stay in the kernel tree.
Shawn
Re: [PATCH 1/1] ARM: dt: add header to define tegra20 clocks
Quoted 15 lines · Shawn Guo
Quoted 7 lines · Stephen Warren
Quoted 1 line · Hiroshi Doyu
To replace magic number in "clocks = <
&tegra_car28>;"I like the concept here; I was thinking about doing this today, but you beat me to it:-) Feel free to create the Tegra30 header too, and modify all the *.dts* files.
Quoted 6 lines
To address other comments in this thread: Yes, I think that we will want to modify the clock driver to include this header to avoid duplication/errors (that will require adjusting Linux's include path), and also remove the list of IDs from the binding document; it can just refer the the new header by name and cause the header to *be* part of the binding document.
Quoted 2 lines
I like it, since doing so will help us hijack kernel to have dts stay in the tree rather than going to a separate repository :)
Well, at least the header files would need to stay in the kernel. The .txt binding documentation wouldn't have to though.
I guess this is a good argument for not putting these header files into Documentation/devicetree/bindings, and adding that to the include path, but rather putting the headers somewhere else.
Quoted 7 lines
Seriously, is maintaining dts in a separate repository still a plan? If yes, we will have duplication problem someday anyway.
For reason of it, I vote for having dts stay in the kernel tree.
Shawn
cover ARM: tegra: use new dtc+cpp feature
In reply to Stephen WarrenQuoted 6 lines · Stephen Warren
From: Stephen Warren <[email protected]>
This series converts the Tegra device tree files to use the new feature of running cpp over .dts files before compiling them with dtc. This allows GPIOs and other GPIO/IRQ specifier cells to be named for example.
Quoted 7 lines
As far as merging goes, I'd anticipate the first 3 patches being useful to any other ARM sub-arch that wants to convert; perhaps they could go through some arm-soc common branch. The next 2 patches are Tegra-specific cleanup that I'd anticipate applying to Tegra's for-3.10/cleanup. The rest of the patches depend on those 5 previous patches, so would need to go into a Tegra branch that merges in the previous patches; I'd anticipate calling it for-3.10/dtc-cpp say.
Great! This will help a lot with making the .dts* files readable.
Quoted 5 lines
One issue this raises: The first 2 patches aren't ARM-specific. I put the files they create into
arch/arm/boot/dts, but I wonder if they wouldn't be better in some arch-agnostic include directory, or even right with the binding documentation inDocumentation/devicetree/bindings. Moving the files would require adjusting the cpp include path.
I'd assume this will be used by many architectures, so it would probably be a good idea to make them common to start with.
Regards,
Tony