@@ -283,7 +283,7 @@ Example SoC include file:
};
usb@c5004000 {
- clocks = <&tegra_car 58>; /* usb2 */
+ clocks = <&tegra_car CLK_USB2>; /* usb2 */
};
};
@@ -1,6 +1,7 @@
#include "skeleton.dtsi"
#include "tegra-gpio.h"
#include "arm-gic.h"
+#include "tegra114-car.h"
/ {
compatible = "nvidia,tegra114";
@@ -27,7 +28,7 @@
<GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&tegra_car 5>;
+ clocks = <&tegra_car CLK_TIMER>;
};
tegra_car: clock {
@@ -70,7 +71,7 @@
reg-shift = <2>;
interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
- clocks = <&tegra_car 6>;
+ clocks = <&tegra_car CLK_UARTA>;
};
serial@70006040 {
@@ -79,7 +80,7 @@
reg-shift = <2>;
interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
- clocks = <&tegra_car 192>;
+ clocks = <&tegra_car CLK_UARTB>;
};
serial@70006200 {
@@ -88,7 +89,7 @@
reg-shift = <2>;
interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
- clocks = <&tegra_car 55>;
+ clocks = <&tegra_car CLK_UARTC>;
};
serial@70006300 {
@@ -97,14 +98,14 @@
reg-shift = <2>;
interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
- clocks = <&tegra_car 65>;
+ clocks = <&tegra_car CLK_UARTD>;
};
rtc {
compatible = "nvidia,tegra114-rtc", "nvidia,tegra20-rtc";
reg = <0x7000e000 0x100>;
interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&tegra_car 4>;
+ clocks = <&tegra_car CLK_RTC>;
};
pmc {
Replace magic number in tegra_car: - clocks = <&tegra_car 28>; + clocks = <&tegra_car CLK_HOST1X>; Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com> --- .../bindings/clock/nvidia,tegra114-car.txt | 2 +- arch/arm/boot/dts/tegra114.dtsip | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-)