-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm64: dts: mt8183: add kukui platform audio node
Set pin control for the SoC sound node. The compatibles are set by each model dts. The codecs that each models use are: burnet ts3a227_max98357 damu da7219_max98357 fennel da7219_rt1015p fennel14 da7219_rt1015p juniper ts3a227_max98357 kakadu da7219_rt1015p kappa ts3a227_max98357 kenzo ts3a227_max98357 kodama ts3a227_max98357 krane ts3a227_max98357 willow-sku0 da7219_max98357 willow-sku1 ts3a227_max98357 Signed-off-by: Kansho Nishida <kansho@chromium.org> Link: https://lore.kernel.org/r/20210706190111.v3.2.I6e9ce0f2a489f9a52299656cd966b38ae75e7552@changeid Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
- Loading branch information
Kansho Nishida
authored and
Matthias Brugger
committed
Sep 13, 2021
1 parent
13dd23c
commit d2bbd5d
Showing
21 changed files
with
243 additions
and
4 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
13 changes: 13 additions & 0 deletions
13
arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-da7219-max98357a.dtsi
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,13 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Google Kukui (and derivatives) da7219-max98357a sound card. | ||
* | ||
* Copyright 2019 Google LLC. | ||
*/ | ||
|
||
#include "mt8183-kukui-audio-da7219.dtsi" | ||
#include "mt8183-kukui-audio-max98357a.dtsi" | ||
|
||
&sound { | ||
compatible = "mediatek,mt8183_da7219_max98357"; | ||
}; |
13 changes: 13 additions & 0 deletions
13
arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-da7219-rt1015p.dtsi
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,13 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Google Kukui (and derivatives) da7219-rt1015p sound card. | ||
* | ||
* Copyright 2020 Google LLC. | ||
*/ | ||
|
||
#include "mt8183-kukui-audio-da7219.dtsi" | ||
#include "mt8183-kukui-audio-rt1015p.dtsi" | ||
|
||
&sound { | ||
compatible = "mediatek,mt8183_da7219_rt1015p"; | ||
}; |
54 changes: 54 additions & 0 deletions
54
arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-da7219.dtsi
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,54 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Google Kukui (and derivatives) audio fragment for da7219. | ||
* | ||
* Copyright 2020 Google LLC. | ||
*/ | ||
|
||
&i2c5 { | ||
da7219: da7219@1a { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&da7219_pins>; | ||
compatible = "dlg,da7219"; | ||
reg = <0x1a>; | ||
interrupt-parent = <&pio>; | ||
interrupts = <165 IRQ_TYPE_LEVEL_LOW 165 0>; | ||
|
||
dlg,micbias-lvl = <2600>; | ||
dlg,mic-amp-in-sel = "diff"; | ||
VDD-supply = <&pp1800_alw>; | ||
VDDMIC-supply = <&pp3300_alw>; | ||
VDDIO-supply = <&pp1800_alw>; | ||
|
||
status = "okay"; | ||
|
||
da7219_aad { | ||
dlg,adc-1bit-rpt = <1>; | ||
dlg,btn-avg = <4>; | ||
dlg,btn-cfg = <50>; | ||
dlg,mic-det-thr = <500>; | ||
dlg,jack-ins-deb = <20>; | ||
dlg,jack-det-rate = "32ms_64ms"; | ||
dlg,jack-rem-deb = <1>; | ||
|
||
dlg,a-d-btn-thr = <0xa>; | ||
dlg,d-b-btn-thr = <0x16>; | ||
dlg,b-c-btn-thr = <0x21>; | ||
dlg,c-mic-btn-thr = <0x3E>; | ||
}; | ||
}; | ||
}; | ||
|
||
&pio { | ||
da7219_pins: da7219_pins { | ||
pins1 { | ||
pinmux = <PINMUX_GPIO165__FUNC_GPIO165>; | ||
input-enable; | ||
bias-pull-up; | ||
}; | ||
}; | ||
}; | ||
|
||
&sound { | ||
mediatek,headset-codec = <&da7219>; | ||
}; |
13 changes: 13 additions & 0 deletions
13
arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-max98357a.dtsi
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,13 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Google Kukui (and derivatives) audio fragment for max98357a. | ||
* | ||
* Copyright 2020 Google LLC. | ||
*/ | ||
|
||
/ { | ||
max98357a: max98357a { | ||
compatible = "maxim,max98357a"; | ||
sdmode-gpios = <&pio 175 0>; | ||
}; | ||
}; |
13 changes: 13 additions & 0 deletions
13
arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-rt1015p.dtsi
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,13 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Google Kukui (and derivatives) audio fragment for rt1015p. | ||
* | ||
* Copyright 2020 Google LLC. | ||
*/ | ||
|
||
/ { | ||
rt1015p: rt1015p { | ||
compatible = "realtek,rt1015p"; | ||
sdb-gpios = <&pio 175 0>; | ||
}; | ||
}; |
13 changes: 13 additions & 0 deletions
13
arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-ts3a227e-max98357a.dtsi
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,13 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Google Kukui (and derivatives) ts3a227e-max98357a sound card. | ||
* | ||
* Copyright 2020 Google LLC. | ||
*/ | ||
|
||
#include "mt8183-kukui-audio-max98357a.dtsi" | ||
#include "mt8183-kukui-audio-ts3a227e.dtsi" | ||
|
||
&sound { | ||
compatible = "mediatek,mt8183_mt6358_ts3a227_max98357"; | ||
}; |
13 changes: 13 additions & 0 deletions
13
arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-ts3a227e-rt1015p.dtsi
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,13 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Google Kukui (and derivatives) mt6358-ts3a227-rt1015p sound card. | ||
* | ||
* Copyright 2021 Google LLC. | ||
*/ | ||
|
||
#include "mt8183-kukui-audio-ts3a227e.dtsi" | ||
#include "mt8183-kukui-audio-rt1015p.dtsi" | ||
|
||
&sound { | ||
compatible = "mediatek,mt8183_mt6358_ts3a227_rt1015p"; | ||
}; |
32 changes: 32 additions & 0 deletions
32
arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-ts3a227e.dtsi
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,32 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Google Kukui (and derivatives) audio fragment for ts3a227e. | ||
* | ||
* Copyright 2019 Google LLC. | ||
*/ | ||
|
||
&i2c5 { | ||
ts3a227e: ts3a227e@3b { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&ts3a227e_pins>; | ||
compatible = "ti,ts3a227e"; | ||
reg = <0x3b>; | ||
interrupt-parent = <&pio>; | ||
interrupts = <157 IRQ_TYPE_LEVEL_LOW>; | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
&pio { | ||
ts3a227e_pins: ts3a227e_pins { | ||
pins1 { | ||
pinmux = <PINMUX_GPIO157__FUNC_GPIO157>; | ||
input-enable; | ||
bias-pull-up; | ||
}; | ||
}; | ||
}; | ||
|
||
&sound { | ||
mediatek,headset-codec = <&ts3a227e>; | ||
}; |
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
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
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
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
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
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