Commit 9bd61feb authored by Conor Dooley's avatar Conor Dooley Committed by Palmer Dabbelt

riscv: dts: canaan: use custom compatible for k210 i2s

The devicetrees using the Canaan k210 all have a sound-dai-cells value
of 1, whereas the standard binding example for the DesignWare i2s and
other use cases suggest 0. Use a k210 specific compatible which
supports this difference.
Signed-off-by: default avatarConor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20220705215213.1802496-10-mail@conchuod.ieSigned-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent 3bd204cb
...@@ -251,7 +251,7 @@ spi2: spi@50240000 { ...@@ -251,7 +251,7 @@ spi2: spi@50240000 {
}; };
i2s0: i2s@50250000 { i2s0: i2s@50250000 {
compatible = "snps,designware-i2s"; compatible = "canaan,k210-i2s", "snps,designware-i2s";
reg = <0x50250000 0x200>; reg = <0x50250000 0x200>;
interrupts = <5>; interrupts = <5>;
clocks = <&sysclk K210_CLK_I2S0>; clocks = <&sysclk K210_CLK_I2S0>;
...@@ -260,7 +260,7 @@ i2s0: i2s@50250000 { ...@@ -260,7 +260,7 @@ i2s0: i2s@50250000 {
}; };
i2s1: i2s@50260000 { i2s1: i2s@50260000 {
compatible = "snps,designware-i2s"; compatible = "canaan,k210-i2s", "snps,designware-i2s";
reg = <0x50260000 0x200>; reg = <0x50260000 0x200>;
interrupts = <6>; interrupts = <6>;
clocks = <&sysclk K210_CLK_I2S1>; clocks = <&sysclk K210_CLK_I2S1>;
...@@ -269,7 +269,7 @@ i2s1: i2s@50260000 { ...@@ -269,7 +269,7 @@ i2s1: i2s@50260000 {
}; };
i2s2: i2s@50270000 { i2s2: i2s@50270000 {
compatible = "snps,designware-i2s"; compatible = "canaan,k210-i2s", "snps,designware-i2s";
reg = <0x50270000 0x200>; reg = <0x50270000 0x200>;
interrupts = <7>; interrupts = <7>;
clocks = <&sysclk K210_CLK_I2S2>; clocks = <&sysclk K210_CLK_I2S2>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment