arm64: dts: mediatek: Add newer revisions of Google Spherion and Hayato
Subsystems (2)
v3 cover arm64: dts: mediatek: Add newer revisions of Google Spherion and Hayato
Add devicetrees for the newer revisions of two machines: Google Spherion rev4 and Google Hayato rev5-sku2. For both, the difference from the previous revision is that they now use the rt5682s audio codec instead of rt5682.
Changes in v3:
- Rebased on next-20230720
Changes in v2:
- Removed patch adding asurada-audio files for rt5682s
- Added patch moving nodes from existing asurada-audio files to board dtsi
Nícolas F. R. A. Prado (5):
dt-bindings: arm64: dts: mediatek: Add rev5-sku2 of hayato
dt-bindings: arm64: dts: mediatek: Add rev4 of spherion
arm64: dts: mediatek: Remove asurada-audio dtsi files
arm64: dts: mediatek: Add hayato-rev5-sku2
arm64: dts: mediatek: Add spherion-rev4
.../devicetree/bindings/arm/mediatek.yaml | 11 +++ arch/arm64/boot/dts/mediatek/Makefile | 2 + .../mt8192-asurada-audio-rt1015p-rt5682.dtsi | 19 ----- .../mt8192-asurada-audio-rt1015p.dtsi | 26 ------- .../mediatek/mt8192-asurada-audio-rt5682.dtsi | 21 ----- .../dts/mediatek/mt8192-asurada-hayato-r1.dts | 19 ++++- .../mt8192-asurada-hayato-r5-sku2.dts | 64 +++++++++++++++ .../mediatek/mt8192-asurada-spherion-r0.dts | 19 ++++- .../mediatek/mt8192-asurada-spherion-r4.dts | 77 +++++++++++++++++++ .../boot/dts/mediatek/mt8192-asurada.dtsi | 28 +++++++ 10 files changed, 218 insertions(+), 68 deletions(-) delete mode 100644 arch/arm64/boot/dts/mediatek/mt8192-asurada-audio-rt1015p-rt5682.dtsi delete mode 100644 arch/arm64/boot/dts/mediatek/mt8192-asurada-audio-rt1015p.dtsi delete mode 100644 arch/arm64/boot/dts/mediatek/mt8192-asurada-audio-rt5682.dtsi create mode 100644 arch/arm64/boot/dts/mediatek/mt8192-asurada-hayato-r5-sku2.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r4.dts
Signature · 1 line
2.41.0
PATCH v3 1/5 dt-bindings: arm64: dts: mediatek: Add rev5-sku2 of hayato
Add binding for newer version of Google Hayato: rev5-sku2.
---
(no changes since v1)
Documentation/devicetree/bindings/arm/mediatek.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/mediatek.yaml +6 -0
@@ -133,6 +133,12 @@ properties: - enum: - mediatek,mt8183-evb - const: mediatek,mt8183 + - description: Google Hayato rev5 + items: + - const: google,hayato-rev5-sku2 + - const: google,hayato-sku2 + - const: google,hayato + - const: mediatek,mt8192 - description: Google Hayato items: - const: google,hayato-rev1
Signature · 1 line
2.41.0
PATCH v3 2/5 dt-bindings: arm64: dts: mediatek: Add rev4 of spherion
In reply to Nícolas F. R. A. PradoAdd binding for newer version of Google Spherion (Acer Chromebook 514):
rev4.
---
(no changes since v1)
Documentation/devicetree/bindings/arm/mediatek.yaml | 5 +++++ 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/mediatek.yaml +5 -0
@@ -144,6 +144,11 @@ properties: - const: google,hayato-rev1 - const: google,hayato - const: mediatek,mt8192 + - description: Google Spherion rev4 (Acer Chromebook 514) + items: + - const: google,spherion-rev4 + - const: google,spherion + - const: mediatek,mt8192 - description: Google Spherion (Acer Chromebook 514) items: - const: google,spherion-rev3
Signature · 1 line
2.41.0
PATCH v3 3/5 arm64: dts: mediatek: Remove asurada-audio dtsi files
In reply to Nícolas F. R. A. PradoThere aren't enough users of the common asurada-audio dtsi files to justify having them. It is simpler to just have the audio nodes directly on the board files.
---
(no changes since v1)
.../mt8192-asurada-audio-rt1015p-rt5682.dtsi | 19 ------------- .../mt8192-asurada-audio-rt1015p.dtsi | 26 ----------------- .../mediatek/mt8192-asurada-audio-rt5682.dtsi | 21 -------------- .../dts/mediatek/mt8192-asurada-hayato-r1.dts | 19 ++++++++++++- .../mediatek/mt8192-asurada-spherion-r0.dts | 19 ++++++++++++- .../boot/dts/mediatek/mt8192-asurada.dtsi | 28 +++++++++++++++++++ 6 files changed, 64 insertions(+), 68 deletions(-) delete mode 100644 arch/arm64/boot/dts/mediatek/mt8192-asurada-audio-rt1015p-rt5682.dtsi delete mode 100644 arch/arm64/boot/dts/mediatek/mt8192-asurada-audio-rt1015p.dtsi delete mode 100644 arch/arm64/boot/dts/mediatek/mt8192-asurada-audio-rt5682.dtsi
arch/arm64/boot/dts/mediatek/mt8192-asurada-audio-rt1015p-rt5682.dtsi deleted +0 -19
@@ -1,19 +0,0 @@ -// SPDX-License-Identifier: (GPL-2.0 OR MIT) -/* - * Copyright 2020 Google LLC - */ - -#include "mt8192-asurada-audio-rt5682.dtsi" -#include "mt8192-asurada-audio-rt1015p.dtsi" - -&sound { - compatible = "mediatek,mt8192_mt6359_rt1015p_rt5682"; - - speaker-codecs { - sound-dai = <&rt1015p>; - }; - - headset-codec { - sound-dai = <&rt5682 0>; - }; -};
arch/arm64/boot/dts/mediatek/mt8192-asurada-audio-rt1015p.dtsi deleted +0 -26
@@ -1,26 +0,0 @@ -// SPDX-License-Identifier: (GPL-2.0 OR MIT) -/* - * Copyright (C) 2022 MediaTek Inc. - */ - -#include <dt-bindings/gpio/gpio.h> -#include <dt-bindings/pinctrl/mt8192-pinfunc.h> - -/ { - rt1015p: audio-codec { - compatible = "realtek,rt1015p"; - pinctrl-names = "default"; - pinctrl-0 = <&rt1015p_pins>; - sdb-gpios = <&pio 147 GPIO_ACTIVE_HIGH>; - #sound-dai-cells = <0>; - }; -}; - -&pio { - rt1015p_pins: rt1015p-default-pins { - pins { - pinmux = <PINMUX_GPIO147__FUNC_GPIO147>; - output-low; - }; - }; -};
arch/arm64/boot/dts/mediatek/mt8192-asurada-audio-rt5682.dtsi deleted +0 -21
@@ -1,21 +0,0 @@ -// SPDX-License-Identifier: (GPL-2.0 OR MIT) -/* - * Copyright (C) 2022 MediaTek Inc. - */ - -&i2c1 { - rt5682: audio-codec@1a { - compatible = "realtek,rt5682i"; - reg = <0x1a>; - interrupts-extended = <&pio 18 IRQ_TYPE_LEVEL_LOW>; - realtek,jd-src = <1>; - realtek,btndet-delay = <16>; - #sound-dai-cells = <1>; - - AVDD-supply = <&mt6359_vio18_ldo_reg>; - DBVDD-supply = <&mt6359_vio18_ldo_reg>; - LDO1-IN-supply = <&mt6359_vio18_ldo_reg>; - MICVDD-supply = <&pp3300_g>; - VBAT-supply = <&pp3300_ldo_z>; - }; -};
arch/arm64/boot/dts/mediatek/mt8192-asurada-hayato-r1.dts +18 -1
@@ -4,7 +4,6 @@ */ /dts-v1/; #include "mt8192-asurada.dtsi" -#include "mt8192-asurada-audio-rt1015p-rt5682.dtsi" / { model = "Google Hayato rev1";
@@ -101,6 +100,24 @@ pins-rts { }; }; +&rt5682 { + compatible = "realtek,rt5682i"; + realtek,btndet-delay = <16>; + VBAT-supply = <&pp3300_ldo_z>; +}; + +&sound { + compatible = "mediatek,mt8192_mt6359_rt1015p_rt5682"; + + speaker-codecs { + sound-dai = <&rt1015p>; + }; + + headset-codec { + sound-dai = <&rt5682 0>; + }; +}; + &touchscreen { compatible = "hid-over-i2c"; post-power-on-delay-ms = <10>;
arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dts +18 -1
@@ -4,7 +4,6 @@ */ /dts-v1/; #include "mt8192-asurada.dtsi" -#include "mt8192-asurada-audio-rt1015p-rt5682.dtsi" #include <dt-bindings/leds/common.h> / {
@@ -58,6 +57,24 @@ CROS_STD_MAIN_KEYMAP >; }; +&rt5682 { + compatible = "realtek,rt5682i"; + realtek,btndet-delay = <16>; + VBAT-supply = <&pp3300_ldo_z>; +}; + +&sound { + compatible = "mediatek,mt8192_mt6359_rt1015p_rt5682"; + + speaker-codecs { + sound-dai = <&rt1015p>; + }; + + headset-codec { + sound-dai = <&rt5682 0>; + }; +}; + &touchscreen { compatible = "elan,ekth3500"; };
arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi +28 -0
@@ -210,6 +210,14 @@ wifi_restricted_dma_region: wifi@c0000000 { }; }; + rt1015p: audio-codec { + compatible = "realtek,rt1015p"; + pinctrl-names = "default"; + pinctrl-0 = <&rt1015p_pins>; + sdb-gpios = <&pio 147 GPIO_ACTIVE_HIGH>; + #sound-dai-cells = <0>; + }; + sound: sound { mediatek,platform = <&afe>; pinctrl-names = "aud_clk_mosi_off",
@@ -305,6 +313,19 @@ &i2c1 { clock-frequency = <400000>; pinctrl-names = "default"; pinctrl-0 = <&i2c1_pins>; + + rt5682: audio-codec@1a { + /* Realtek RT5682i or RT5682s, sharing the same configuration */ + reg = <0x1a>; + interrupts-extended = <&pio 18 IRQ_TYPE_LEVEL_LOW>; + realtek,jd-src = <1>; + #sound-dai-cells = <1>; + + AVDD-supply = <&mt6359_vio18_ldo_reg>; + DBVDD-supply = <&mt6359_vio18_ldo_reg>; + LDO1-IN-supply = <&mt6359_vio18_ldo_reg>; + MICVDD-supply = <&pp3300_g>; + }; }; &i2c2 {
@@ -1184,6 +1205,13 @@ pins-inhibit { }; }; + rt1015p_pins: rt1015p-default-pins { + pins { + pinmux = <PINMUX_GPIO147__FUNC_GPIO147>; + output-low; + }; + }; + scp_pins: scp-pins { pins-vreq-vao { pinmux = <PINMUX_GPIO195__FUNC_SCP_VREQ_VAO>;
Signature · 1 line
2.41.0
Re: [PATCH v3 3/5] arm64: dts: mediatek: Remove asurada-audio dtsi files
Il 21/07/23 22:16, Nícolas F. R. A. Prado ha scritto:
Quoted 5 lines
There aren't enough users of the common asurada-audio dtsi files to justify having them. It is simpler to just have the audio nodes directly on the board files.
Signed-off-by Nícolas F. R. A. Prado <[email protected]>
PATCH v3 4/5 arm64: dts: mediatek: Add hayato-rev5-sku2
In reply to Nícolas F. R. A. PradoAdd a devicetree for rev5-sku2 of Hayato. It uses the rt5682s audio codec instead of the rt5682 used in the previous revision.
---
(no changes since v2)
Changes in v2:
- Added audio nodes directly in this file
arch/arm64/boot/dts/mediatek/Makefile | 1 + .../mt8192-asurada-hayato-r5-sku2.dts | 64 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8192-asurada-hayato-r5-sku2.dts
arch/arm64/boot/dts/mediatek/Makefile +1 -0
@@ -45,6 +45,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-kukui-krane-sku176.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-pumpkin.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-hayato-r1.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-hayato-r5-sku2.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-spherion-r0.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-cherry-tomato-r1.dtb
arch/arm64/boot/dts/mediatek/mt8192-asurada-hayato-r5-sku2.dts new file +64 -0
64 lines not on this page · raw message
Signature · 1 line
2.41.0
Re: [PATCH v3 4/5] arm64: dts: mediatek: Add hayato-rev5-sku2
Il 21/07/23 22:16, Nícolas F. R. A. Prado ha scritto:
Quoted 5 lines
Add a devicetree for rev5-sku2 of Hayato. It uses the rt5682s audio codec instead of the rt5682 used in the previous revision.
Signed-off-by Nícolas F. R. A. Prado <[email protected]>
PATCH v3 5/5 arm64: dts: mediatek: Add spherion-rev4
In reply to Nícolas F. R. A. PradoAdd a devicetree for rev4 of Spherion. It uses the rt5682s audio codec instead of the rt5682 used in the previous revision.
---
(no changes since v2)
Changes in v2:
- Added audio nodes directly in this file
arch/arm64/boot/dts/mediatek/Makefile | 1 + .../mediatek/mt8192-asurada-spherion-r4.dts | 77 +++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r4.dts
arch/arm64/boot/dts/mediatek/Makefile +1 -0
@@ -47,6 +47,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-hayato-r1.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-hayato-r5-sku2.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-spherion-r0.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-spherion-r4.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-cherry-tomato-r1.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-cherry-tomato-r2.dtb
arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r4.dts new file +77 -0
77 lines not on this page · raw message
Signature · 1 line
2.41.0
Re: [PATCH v3 5/5] arm64: dts: mediatek: Add spherion-rev4
Il 21/07/23 22:16, Nícolas F. R. A. Prado ha scritto:
Quoted 5 lines
Add a devicetree for rev4 of Spherion. It uses the rt5682s audio codec instead of the rt5682 used in the previous revision.
Signed-off-by Nícolas F. R. A. Prado <[email protected]>