]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm64: zynqmp: dt: Add AMS node
authorMichal Simek <michal.simek@xilinx.com>
Thu, 2 Nov 2017 11:04:43 +0000 (12:04 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 28 Nov 2017 15:09:15 +0000 (16:09 +0100)
The AMS includes an ADC as well as on-chip sensors that can be used to
sample external voltages and monitor on-die operating conditions, such as
temperature and supply voltage levels.

Signed-off-by: Rajnikant Bhojani <rajnikant.bhojani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/dts/zynqmp-zcu102-revA.dts
arch/arm/dts/zynqmp.dtsi

index 9e5a13d5bce8074d1318f0e39756877c105eeed1..579212ed20a20b13e2be162cf6b5484a566a5553 100644 (file)
@@ -914,6 +914,18 @@ drivers/hwmon/pmbus/Makefile:11:obj-$(CONFIG_SENSORS_MAX20751)  += max20751.o
        dr_mode = "host";
 };
 
+&xilinx_ams {
+       status = "okay";
+};
+
+&ams_ps {
+       status = "okay";
+};
+
+&ams_pl {
+       status = "okay";
+};
+
 &xilinx_drm {
        status = "okay";
        clocks = <&si570_1>;
index 0984077bacf52b647256dce9ff134e2a865be343..788ad0473efef27667039c5be11a4ffec7e739f4 100644 (file)
                        timeout-sec = <10>;
                };
 
+               xilinx_ams: ams@ffa50000 {
+                       compatible = "xlnx,zynqmp-ams";
+                       status = "disabled";
+                       interrupt-parent = <&gic>;
+                       interrupts = <0 56 4>;
+                       interrupt-names = "ams-irq";
+                       reg = <0x0 0xffa50000 0x0 0x800>;
+                       reg-names = "ams-base";
+                       #address-cells = <2>;
+                       #size-cells = <2>;
+                       #io-channel-cells = <1>;
+                       ranges;
+
+                       ams_ps: ams_ps@ffa50800 {
+                               compatible = "xlnx,zynqmp-ams-ps";
+                               status = "disabled";
+                               reg = <0x0 0xffa50800 0x0 0x400>;
+                       };
+
+                       ams_pl: ams_pl@ffa50c00 {
+                               compatible = "xlnx,zynqmp-ams-pl";
+                               status = "disabled";
+                               reg = <0x0 0xffa50c00 0x0 0x400>;
+                       };
+               };
+
                xilinx_drm: xilinx_drm {
                        compatible = "xlnx,drm";
                        status = "disabled";