Skip to content

Commit eecc09e

Browse files
committed
[nrf noup] dts: bindings: i2s: Add the I2S instance property
Add the I2S instance property to bindings. This is used to identify the peripheral instance in the Nordic driver. Signed-off-by: Jakub Zymelka <[email protected]>
1 parent 314d569 commit eecc09e

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

boards/nordic/nrf5340_audio_dk/nrf5340_audio_dk_nrf5340_cpuapp_common.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
pinctrl-0 = <&i2s0_default>;
139139
pinctrl-1 = <&i2s0_sleep>;
140140
pinctrl-names = "default", "sleep";
141+
instance = <0>;
141142
};
142143

143144
&uart0 {

dts/arm/nordic/nrf5340_cpuapp_peripherals.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ i2s0: i2s@28000 {
459459
#size-cells = <0>;
460460
reg = <0x28000 0x1000>;
461461
interrupts = <40 NRF_DEFAULT_IRQ_PRIORITY>;
462+
instance = <0>;
462463
status = "disabled";
463464
};
464465

dts/bindings/i2s/nordic,nrf-i2s.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,14 @@ properties:
3838
- "PCLK32M"
3939
- "PCLK32M_HFXO"
4040
- "ACLK"
41+
42+
instance:
43+
type: int
44+
description: |
45+
The I2S instance number. I2S instance I2S0 has:
46+
47+
instance = <0>;
48+
49+
And I2S20 has:
50+
51+
instance = <20>;

dts/vendor/nordic/nrf54l_05_10_15.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@
555555
#size-cells = <0>;
556556
reg = <0xdd000 0x1000>;
557557
interrupts = <221 NRF_DEFAULT_IRQ_PRIORITY>;
558+
instance = <20>;
558559
status = "disabled";
559560
};
560561

0 commit comments

Comments
 (0)