-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
riscv: dts: starfive: Add full support for JH7110 and VisionFive 2 board
Merge all StarFive dts patches together. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
- Loading branch information
Showing
6 changed files
with
923 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
arch/riscv/boot/dts/starfive/jh7110-starfive-audio-card.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// SPDX-License-Identifier: GPL-2.0 OR MIT | ||
/* | ||
* Device Tree for JH7110 + Simple Audio Card | ||
* | ||
* Copyright (C) 2023 StarFive Technology Co., Ltd. | ||
*/ | ||
|
||
/dts-v1/; | ||
#include "jh7110-starfive-visionfive-2-v1.3b.dts" | ||
|
||
/ { | ||
model = "StarFive VisionFive 2 Audio Board"; | ||
compatible = "starfive,visionfive-2-audio", "starfive,jh7110"; | ||
|
||
wm8960_mclk: wm8960-mclk { | ||
compatible = "fixed-clock"; | ||
clock-output-names = "wm8960_mclk"; | ||
#clock-cells = <0>; | ||
clock-frequency = <24576000>; | ||
}; | ||
|
||
sound { | ||
compatible = "simple-audio-card"; | ||
|
||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
simple-audio-card,name = "Starfive-TDM-Sound-Card"; | ||
simple-audio-card,widgets = "Microphone", "Mic Jack", | ||
"Line", "Line In", | ||
"Line", "Line Out", | ||
"Speaker", "Speaker", | ||
"Headphone", "Headphone Jack"; | ||
simple-audio-card,routing = "Headphone Jack", "HP_L", | ||
"Headphone Jack", "HP_R", | ||
"Speaker", "SPK_LP", | ||
"Speaker", "SPK_LN", | ||
"LINPUT1", "Mic Jack", | ||
"LINPUT3", "Mic Jack", | ||
"RINPUT1", "Mic Jack", | ||
"RINPUT2", "Mic Jack"; | ||
|
||
simple-audio-card,dai-link@0 { | ||
reg = <0>; | ||
format = "dsp_a"; | ||
bitclock-master = <&dailink_master>; | ||
frame-master = <&dailink_master>; | ||
|
||
cpu { | ||
sound-dai = <&tdm>; | ||
}; | ||
dailink_master: codec { | ||
sound-dai = <&wm8960>; | ||
clocks = <&wm8960_mclk>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
&i2c0 { | ||
wm8960: codec@1a { | ||
compatible = "wlf,wm8960"; | ||
reg = <0x1a>; | ||
wlf,shared-lrclk; | ||
#sound-dai-cells = <0>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.