summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts
diff options
context:
space:
mode:
authorAjay Nandakumar <anandakumarm@nvidia.com>2013-10-29 19:51:21 +0530
committerBharat Nihalani <bnihalani@nvidia.com>2013-10-29 23:29:38 -0700
commit30014ab843618322bb487e1e9e52edec3dfac4b6 (patch)
tree564d73da73bf795b8659e95857999f1d4a51dc00 /arch/arm/boot/dts
parentd1349f76214e9b5087dd26e4b91cd650d2a17bb7 (diff)
ARM: DT: Add DT entry for PWMs and Backlight
Add DT entry for PWM controller and Backlight for NVIDIA's Tegra 114,124 SoCs.It has 4 PWM controllers. Bug 1256106 Change-Id: Ia927d3231db1a07490b5027c1f23d8e736173f30 Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com> Reviewed-on: http://git-master/r/299035 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch/arm/boot/dts')
-rw-r--r--arch/arm/boot/dts/tegra114-dalmore.dts7
-rw-r--r--arch/arm/boot/dts/tegra114-macallan.dts7
-rw-r--r--arch/arm/boot/dts/tegra114-pluto.dts7
-rw-r--r--arch/arm/boot/dts/tegra114-roth.dts7
-rw-r--r--arch/arm/boot/dts/tegra114.dtsi1
-rw-r--r--arch/arm/boot/dts/tegra124-ardbeg.dts7
-rw-r--r--arch/arm/boot/dts/tegra124-bonaire.dts7
-rw-r--r--arch/arm/boot/dts/tegra124-bonaire_sim.dts7
-rw-r--r--arch/arm/boot/dts/tegra124-laguna.dts7
-rw-r--r--arch/arm/boot/dts/tegra124-loki.dts7
-rw-r--r--arch/arm/boot/dts/tegra124-soc.dtsi7
-rw-r--r--arch/arm/boot/dts/tegra124-tn8.dts6
-rw-r--r--arch/arm/boot/dts/tegra124-vcm30_t124.dts7
13 files changed, 83 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts
index 5dc5b14cde6e..12862916790d 100644
--- a/arch/arm/boot/dts/tegra114-dalmore.dts
+++ b/arch/arm/boot/dts/tegra114-dalmore.dts
@@ -12,6 +12,13 @@
};
};
+ backlight {
+ compatible = "pwm-backlight";
+ pwms = <&pwm 1 1000000>;
+ max-brightness = <255>;
+ default-brightness = <224>;
+ };
+
pinmux {
pinctrl-names = "default";
pinctrl-0 = <&state_default>;
diff --git a/arch/arm/boot/dts/tegra114-macallan.dts b/arch/arm/boot/dts/tegra114-macallan.dts
index 44707e7394ac..30100aa245bf 100644
--- a/arch/arm/boot/dts/tegra114-macallan.dts
+++ b/arch/arm/boot/dts/tegra114-macallan.dts
@@ -12,6 +12,13 @@
};
};
+ backlight {
+ compatible = "pwm-backlight";
+ pwms = <&pwm 1 1000000>;
+ max-brightness = <255>;
+ default-brightness = <224>;
+ };
+
pinmux {
pinctrl-names = "default";
pinctrl-0 = <&state_default>;
diff --git a/arch/arm/boot/dts/tegra114-pluto.dts b/arch/arm/boot/dts/tegra114-pluto.dts
index 161f1e4514f4..7a18b2e9d9b8 100644
--- a/arch/arm/boot/dts/tegra114-pluto.dts
+++ b/arch/arm/boot/dts/tegra114-pluto.dts
@@ -23,6 +23,13 @@
};
};
+ backlight {
+ compatible = "pwm-backlight";
+ pwms = <&pwm 1 1000000>;
+ max-brightness = <255>;
+ default-brightness = <224>;
+ };
+
pinmux {
pinctrl-names = "default";
pinctrl-0 = <&state_default>;
diff --git a/arch/arm/boot/dts/tegra114-roth.dts b/arch/arm/boot/dts/tegra114-roth.dts
index dbeb7ccab374..8436eb75142d 100644
--- a/arch/arm/boot/dts/tegra114-roth.dts
+++ b/arch/arm/boot/dts/tegra114-roth.dts
@@ -25,6 +25,13 @@
};
};
+ backlight {
+ compatible = "pwm-backlight";
+ pwms = <&pwm 1 40000>;
+ max-brightness = <255>;
+ default-brightness = <77>;
+ };
+
pmc {
status = "okay";
nvidia,invert-interrupt;
diff --git a/arch/arm/boot/dts/tegra114.dtsi b/arch/arm/boot/dts/tegra114.dtsi
index 3067aef87abc..a25c62bdc50d 100644
--- a/arch/arm/boot/dts/tegra114.dtsi
+++ b/arch/arm/boot/dts/tegra114.dtsi
@@ -291,7 +291,6 @@
reg = <0x7000a000 0x100>;
#pwm-cells = <2>;
clocks = <&tegra_car 17>;
- status = "disabled";
};
i2c1: i2c@7000c000 {
diff --git a/arch/arm/boot/dts/tegra124-ardbeg.dts b/arch/arm/boot/dts/tegra124-ardbeg.dts
index 8ed179dd5269..d942372a7a45 100644
--- a/arch/arm/boot/dts/tegra124-ardbeg.dts
+++ b/arch/arm/boot/dts/tegra124-ardbeg.dts
@@ -92,4 +92,11 @@
pout-gpio = <&gpio 190 0>;
tout-gpio = <&gpio 112 0>;
};
+
+ backlight {
+ compatible = "pwm-backlight";
+ pwms = <&pwm 1 1000000>;
+ max-brightness = <255>;
+ default-brightness = <224>;
+ };
};
diff --git a/arch/arm/boot/dts/tegra124-bonaire.dts b/arch/arm/boot/dts/tegra124-bonaire.dts
index 50098f7eb660..ebc01dc25bbf 100644
--- a/arch/arm/boot/dts/tegra124-bonaire.dts
+++ b/arch/arm/boot/dts/tegra124-bonaire.dts
@@ -19,4 +19,11 @@
device_type = "memory";
reg = <0x80000000 0x20000000>;
};
+
+ backlight {
+ compatible = "pwm-backlight";
+ pwms = <&pwm 2 5000000>;
+ max-brightness = <255>;
+ default-brightness = <224>;
+ };
};
diff --git a/arch/arm/boot/dts/tegra124-bonaire_sim.dts b/arch/arm/boot/dts/tegra124-bonaire_sim.dts
index 5e4b57bb371b..4383048beb51 100644
--- a/arch/arm/boot/dts/tegra124-bonaire_sim.dts
+++ b/arch/arm/boot/dts/tegra124-bonaire_sim.dts
@@ -18,4 +18,11 @@
device_type = "memory";
reg = <0x80000000 0x20000000>;
};
+
+ backlight {
+ compatible = "pwm-backlight";
+ pwms = <&pwm 1 1000000>;
+ max-brightness = <255>;
+ default-brightness = <224>;
+ };
};
diff --git a/arch/arm/boot/dts/tegra124-laguna.dts b/arch/arm/boot/dts/tegra124-laguna.dts
index 2d24324b348c..00ae376f3d12 100644
--- a/arch/arm/boot/dts/tegra124-laguna.dts
+++ b/arch/arm/boot/dts/tegra124-laguna.dts
@@ -85,4 +85,11 @@
nvidia,core-power-req-active-high;
nvidia,sys-clock-req-active-high;
};
+
+ backlight {
+ compatible = "pwm-backlight";
+ pwms = <&pwm 1 1000000>;
+ max-brightness = <255>;
+ default-brightness = <224>;
+ };
};
diff --git a/arch/arm/boot/dts/tegra124-loki.dts b/arch/arm/boot/dts/tegra124-loki.dts
index 5ae9d8e5aad4..2f604675d1a5 100644
--- a/arch/arm/boot/dts/tegra124-loki.dts
+++ b/arch/arm/boot/dts/tegra124-loki.dts
@@ -85,4 +85,11 @@
nvidia,core-power-req-active-high;
nvidia,sys-clock-req-active-high;
};
+
+ backlight {
+ compatible = "pwm-backlight";
+ pwms = <&pwm 1 40000>;
+ max-brightness = <255>;
+ default-brightness = <77>;
+ };
};
diff --git a/arch/arm/boot/dts/tegra124-soc.dtsi b/arch/arm/boot/dts/tegra124-soc.dtsi
index 53d4b2d87d31..26920ebed2ac 100644
--- a/arch/arm/boot/dts/tegra124-soc.dtsi
+++ b/arch/arm/boot/dts/tegra124-soc.dtsi
@@ -41,6 +41,13 @@
#clock-cells = <1>;
};
+ pwm: pwm {
+ compatible = "nvidia,tegra124-pwm", "nvidia,tegra20-pwm";
+ reg = <0x7000a000 0x100>;
+ #pwm-cells = <2>;
+ clocks = <&tegra_car 17>;
+ };
+
apbdma: dma@60020000 {
compatible = "nvidia,tegra124-apbdma";
reg = <0x60020000 0x1400>;
diff --git a/arch/arm/boot/dts/tegra124-tn8.dts b/arch/arm/boot/dts/tegra124-tn8.dts
index d97c4fab0a0b..b1c74497a64a 100644
--- a/arch/arm/boot/dts/tegra124-tn8.dts
+++ b/arch/arm/boot/dts/tegra124-tn8.dts
@@ -147,5 +147,11 @@
/include/ "tegra124-tn8-generic.dtsi"
+ backlight {
+ compatible = "pwm-backlight";
+ pwms = <&pwm 1 1000000>;
+ max-brightness = <255>;
+ default-brightness = <224>;
+ };
};
diff --git a/arch/arm/boot/dts/tegra124-vcm30_t124.dts b/arch/arm/boot/dts/tegra124-vcm30_t124.dts
index cfbbe1146bb5..c2ff8a5ba69c 100644
--- a/arch/arm/boot/dts/tegra124-vcm30_t124.dts
+++ b/arch/arm/boot/dts/tegra124-vcm30_t124.dts
@@ -42,4 +42,11 @@
status = "okay";
};
};
+
+ backlight {
+ compatible = "pwm-backlight";
+ pwms = <&pwm 1 1000000>;
+ max-brightness = <255>;
+ default-brightness = <224>;
+ };
};