]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: tegra: Add device-tree node for NVVRS RTC
authorShubhi Garg <shgarg@nvidia.com>
Tue, 7 Oct 2025 13:57:36 +0000 (13:57 +0000)
committerThierry Reding <treding@nvidia.com>
Fri, 14 Nov 2025 15:28:51 +0000 (16:28 +0100)
Add NVIDIA VRS (Voltage Regulator Specification) RTC device tree node for
Tegra234 P3701 and P3767 platforms. Assign VRS RTC as primary RTC (rtc0).

Signed-off-by: Shubhi Garg <shgarg@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra234-p3701.dtsi
arch/arm64/boot/dts/nvidia/tegra234-p3767.dtsi

index 9086a0d010e5c5f834f905fe76ad699dcc6ccd27..58bf55c0e414ca7a8a58556e70bdc75b301e48a2 100644 (file)
@@ -8,6 +8,7 @@
        aliases {
                mmc0 = "/bus@0/mmc@3460000";
                mmc1 = "/bus@0/mmc@3400000";
+               rtc0 = "/bpmp/i2c/pmic@3c";
        };
 
        bus@0 {
                i2c {
                        status = "okay";
 
+                       pmic@3c {
+                               compatible = "nvidia,vrs-10";
+                               reg = <0x3c>;
+                               interrupt-parent = <&pmc>;
+                               /* VRS Wake ID is 24 */
+                               interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
+                               interrupt-controller;
+                               #interrupt-cells = <2>;
+                       };
+
                        thermal-sensor@4c {
                                compatible = "ti,tmp451";
                                status = "okay";
index 84db7132e8fc8367e78ff7539b3f58c6444d7d7e..ab391a71c3d338f5b881f9097feccbce2f50e15d 100644 (file)
@@ -7,6 +7,7 @@
 
        aliases {
                mmc0 = "/bus@0/mmc@3400000";
+               rtc0 = "/bpmp/i2c/pmic@3c";
        };
 
        bus@0 {
                };
        };
 
+       bpmp {
+               i2c {
+                       pmic@3c {
+                               compatible = "nvidia,vrs-10";
+                               reg = <0x3c>;
+                               interrupt-parent = <&pmc>;
+                               /* VRS Wake ID is 24 */
+                               interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
+                               interrupt-controller;
+                               #interrupt-cells = <2>;
+                       };
+               };
+       };
+
        vdd_5v0_sys: regulator-vdd-5v0-sys {
                compatible = "regulator-fixed";
                regulator-name = "VDD_5V0_SYS";