ARM: dts: rp1: Add I2C timings
authorPhil Elwell <phil@raspberrypi.com>
Tue, 16 Jan 2024 16:05:18 +0000 (16:05 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:34 +0000 (11:35 +0000)
Add SCL rise and fall times, to allow the derivation of timings at
arbitrary speeds.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
arch/arm/boot/dts/broadcom/rp1.dtsi

index 8c2ff53a045adf9d2324c108e08018642893c983..46f80a729a9cca2c381b5afb5b63ed0413bec9e4 100644 (file)
                        compatible = "snps,designware-i2c";
                        interrupts = <RP1_INT_I2C0 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rp1_clocks RP1_CLK_SYS>;
+                       i2c-scl-rising-time-ns = <65>;
+                       i2c-scl-falling-time-ns = <100>;
                        status = "disabled";
                };
 
                        compatible = "snps,designware-i2c";
                        interrupts = <RP1_INT_I2C1 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rp1_clocks RP1_CLK_SYS>;
+                       i2c-scl-rising-time-ns = <65>;
+                       i2c-scl-falling-time-ns = <100>;
                        status = "disabled";
                };
 
                        compatible = "snps,designware-i2c";
                        interrupts = <RP1_INT_I2C2 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rp1_clocks RP1_CLK_SYS>;
+                       i2c-scl-rising-time-ns = <65>;
+                       i2c-scl-falling-time-ns = <100>;
                        status = "disabled";
                };
 
                        compatible = "snps,designware-i2c";
                        interrupts = <RP1_INT_I2C3 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rp1_clocks RP1_CLK_SYS>;
+                       i2c-scl-rising-time-ns = <65>;
+                       i2c-scl-falling-time-ns = <100>;
                        status = "disabled";
                };
 
                        compatible = "snps,designware-i2c";
                        interrupts = <RP1_INT_I2C4 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rp1_clocks RP1_CLK_SYS>;
+                       i2c-scl-rising-time-ns = <65>;
+                       i2c-scl-falling-time-ns = <100>;
                        status = "disabled";
                };
 
                        compatible = "snps,designware-i2c";
                        interrupts = <RP1_INT_I2C5 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rp1_clocks RP1_CLK_SYS>;
+                       i2c-scl-rising-time-ns = <65>;
+                       i2c-scl-falling-time-ns = <100>;
                        status = "disabled";
                };
 
                        compatible = "snps,designware-i2c";
                        interrupts = <RP1_INT_I2C6 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rp1_clocks RP1_CLK_SYS>;
+                       i2c-scl-rising-time-ns = <65>;
+                       i2c-scl-falling-time-ns = <100>;
                        status = "disabled";
                };