Add H3 I2S DT configuration
This commit is contained in:
parent
64c5b17d55
commit
0d3fddfd49
50
patch/kernel/sunxi-next/00-19-add-H3-i2s-DT-nodes.patch
Normal file
50
patch/kernel/sunxi-next/00-19-add-H3-i2s-DT-nodes.patch
Normal file
@ -0,0 +1,50 @@
|
||||
Add the new DAI blocks to the device tree. I2S0 and I2S1 are for
|
||||
connecting to an external codec.
|
||||
|
||||
Signed-off-by: Marcus Cooper <codek...@gmail.com>
|
||||
---
|
||||
v2 changes compared to v1 are:
|
||||
- removed i2s2 which is used for HDMI audio
|
||||
---
|
||||
arch/arm/boot/dts/sunxi-h3-h5.dtsi | 26 ++++++++++++++++++++++++++
|
||||
1 file changed, 26 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
|
||||
index 11240a8313c2..ef87d29036d9 100644
|
||||
--- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi
|
||||
+++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
|
||||
@@ -450,6 +450,32 @@
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
+ i2s0: i2s@01c22000 {
|
||||
+ #sound-dai-cells = <0>;
|
||||
+ compatible = "allwinner,sun8i-h3-i2s";
|
||||
+ reg = <0x01c22000 0x400>;
|
||||
+ interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
|
||||
+ clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>;
|
||||
+ clock-names = "apb", "mod";
|
||||
+ dmas = <&dma 3>, <&dma 3>;
|
||||
+ resets = <&ccu RST_BUS_I2S0>;
|
||||
+ dma-names = "rx", "tx";
|
||||
+ status = "disabled";
|
||||
+ };
|
||||
+
|
||||
+ i2s1: i2s@01c22400 {
|
||||
+ #sound-dai-cells = <0>;
|
||||
+ compatible = "allwinner,sun8i-h3-i2s";
|
||||
+ reg = <0x01c22400 0x400>;
|
||||
+ interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
|
||||
+ clocks = <&ccu CLK_BUS_I2S1>, <&ccu CLK_I2S1>;
|
||||
+ clock-names = "apb", "mod";
|
||||
+ dmas = <&dma 4>, <&dma 4>;
|
||||
+ resets = <&ccu RST_BUS_I2S1>;
|
||||
+ dma-names = "rx", "tx";
|
||||
+ status = "disabled";
|
||||
+ };
|
||||
+
|
||||
codec: codec@01c22c00 {
|
||||
#sound-dai-cells = <0>;
|
||||
compatible = "allwinner,sun8i-h3-codec";
|
||||
--
|
||||
2.14.1
|
||||
21
patch/kernel/sunxi-next/00-20-add-i2s-DT-pins.patch
Normal file
21
patch/kernel/sunxi-next/00-20-add-i2s-DT-pins.patch
Normal file
@ -0,0 +1,21 @@
|
||||
diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
|
||||
index 11240a83..6049895c 100644
|
||||
--- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi
|
||||
+++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
|
||||
@@ -310,6 +310,16 @@
|
||||
function = "i2c2";
|
||||
};
|
||||
|
||||
+ i2s0_pins: i2s0 {
|
||||
+ pins = "PA18", "PA19", "PA20", "PA21";
|
||||
+ function = "i2s0";
|
||||
+ };
|
||||
+
|
||||
+ i2s1_pins: i2s1 {
|
||||
+ pins = "PG10", "PG11", "PG12", "PG13";
|
||||
+ function = "i2s1";
|
||||
+ };
|
||||
+
|
||||
mmc0_pins_a: mmc0@0 {
|
||||
pins = "PF0", "PF1", "PF2", "PF3",
|
||||
"PF4", "PF5";
|
||||
Loading…
Reference in New Issue
Block a user