bcm27xx: update 6.1 patches from RPi foundation
[openwrt/staging/xback.git] / target / linux / bcm27xx / patches-6.1 / 950-1259-ARM-dts-rp1-Add-I2C-timings.patch
1 From 4c7a8e9e40d915c61df188d6b9f82836b616bd4f Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Tue, 16 Jan 2024 16:05:18 +0000
4 Subject: [PATCH 1259/1295] ARM: dts: rp1: Add I2C timings
5
6 Add SCL rise and fall times, to allow the derivation of timings at
7 arbitrary speeds.
8
9 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
10 ---
11 arch/arm/boot/dts/rp1.dtsi | 14 ++++++++++++++
12 1 file changed, 14 insertions(+)
13
14 --- a/arch/arm/boot/dts/rp1.dtsi
15 +++ b/arch/arm/boot/dts/rp1.dtsi
16 @@ -305,6 +305,8 @@
17 compatible = "snps,designware-i2c";
18 interrupts = <RP1_INT_I2C0 IRQ_TYPE_LEVEL_HIGH>;
19 clocks = <&rp1_clocks RP1_CLK_SYS>;
20 + i2c-scl-rising-time-ns = <65>;
21 + i2c-scl-falling-time-ns = <100>;
22 status = "disabled";
23 };
24
25 @@ -313,6 +315,8 @@
26 compatible = "snps,designware-i2c";
27 interrupts = <RP1_INT_I2C1 IRQ_TYPE_LEVEL_HIGH>;
28 clocks = <&rp1_clocks RP1_CLK_SYS>;
29 + i2c-scl-rising-time-ns = <65>;
30 + i2c-scl-falling-time-ns = <100>;
31 status = "disabled";
32 };
33
34 @@ -321,6 +325,8 @@
35 compatible = "snps,designware-i2c";
36 interrupts = <RP1_INT_I2C2 IRQ_TYPE_LEVEL_HIGH>;
37 clocks = <&rp1_clocks RP1_CLK_SYS>;
38 + i2c-scl-rising-time-ns = <65>;
39 + i2c-scl-falling-time-ns = <100>;
40 status = "disabled";
41 };
42
43 @@ -329,6 +335,8 @@
44 compatible = "snps,designware-i2c";
45 interrupts = <RP1_INT_I2C3 IRQ_TYPE_LEVEL_HIGH>;
46 clocks = <&rp1_clocks RP1_CLK_SYS>;
47 + i2c-scl-rising-time-ns = <65>;
48 + i2c-scl-falling-time-ns = <100>;
49 status = "disabled";
50 };
51
52 @@ -337,6 +345,8 @@
53 compatible = "snps,designware-i2c";
54 interrupts = <RP1_INT_I2C4 IRQ_TYPE_LEVEL_HIGH>;
55 clocks = <&rp1_clocks RP1_CLK_SYS>;
56 + i2c-scl-rising-time-ns = <65>;
57 + i2c-scl-falling-time-ns = <100>;
58 status = "disabled";
59 };
60
61 @@ -345,6 +355,8 @@
62 compatible = "snps,designware-i2c";
63 interrupts = <RP1_INT_I2C5 IRQ_TYPE_LEVEL_HIGH>;
64 clocks = <&rp1_clocks RP1_CLK_SYS>;
65 + i2c-scl-rising-time-ns = <65>;
66 + i2c-scl-falling-time-ns = <100>;
67 status = "disabled";
68 };
69
70 @@ -353,6 +365,8 @@
71 compatible = "snps,designware-i2c";
72 interrupts = <RP1_INT_I2C6 IRQ_TYPE_LEVEL_HIGH>;
73 clocks = <&rp1_clocks RP1_CLK_SYS>;
74 + i2c-scl-rising-time-ns = <65>;
75 + i2c-scl-falling-time-ns = <100>;
76 status = "disabled";
77 };
78