[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8a0cfdd0-ffb5-429f-8f86-30013c47e64a@collabora.com>
Date: Mon, 22 Apr 2024 12:35:01 +0200
From: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
To: Macpaul Lin <macpaul.lin@...iatek.com>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>, Matthias Brugger
<matthias.bgg@...il.com>, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org
Cc: Bear Wang <bear.wang@...iatek.com>, Pablo Sun <pablo.sun@...iatek.com>,
Macpaul Lin <macpaul@...il.com>, Chunfeng Yun <chunfeng.yun@...iatek.com>,
Yow-shin Liou <yow-shin.liou@...iatek.com>,
Jason-ch Chen <Jason-ch.Chen@...iatek.com>,
Chris-qj chen <chris-qj.chen@...iatek.com>,
MediaTek Chromebook Upstream
<Project_Global_Chrome_Upstream_Group@...iatek.com>,
Chen-Yu Tsai <wenst@...omium.org>
Subject: Re: [PATCH 2/3] arm64: dts: mediatek: mt8390-genio-700-evk: add
IT5205, RT1715, and USB HUB
Il 22/04/24 11:39, Macpaul Lin ha scritto:
> 1. Add i2c to aliases.
> 2. Add MUX IT5205 support to i2c1.
> 3. Add TYPEC RT1715 support to i2c4.
> 4. Add PMIC_KEY setting.
> 5. Add USB HUB TUSB8020 to xhci1.
>
> Signed-off-by: Macpaul Lin <macpaul.lin@...iatek.com>
> ---
> .../dts/mediatek/mt8390-genio-700-evk.dts | 56 ++++++++++++++++++-
> 1 file changed, 55 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts b/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts
> index 9b7ad046f193..17f22b1836bf 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts
> +++ b/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts
> @@ -23,6 +23,15 @@
> "mediatek,mt8188";
>
> aliases {
> + i2c0 = &i2c0;
> + i2c1 = &i2c1;
> + i2c2 = &i2c2;
> + i2c3 = &i2c3;
> + i2c4 = &i2c4;
> + i2c5 = &i2c5;
> + i2c6 = &i2c6;
> + mmc0 = &mmc0;
> + mmc1 = &mmc1;
> serial0 = &uart0;
> };
>
> @@ -225,6 +234,16 @@
> pinctrl-0 = <&i2c1_pins>;
> clock-frequency = <400000>;
> status = "okay";
> +
> + typec-mux@48 {
> + compatible = "ite,it5205";
> + reg = <0x48>;
> +
> + mode-switch;
> + orientation-switch;
> +
> + vcc-supply = <&mt6359_vcn33_1_bt_ldo_reg>;
> + };
> };
>
> &i2c2 {
> @@ -242,11 +261,19 @@
> };
>
> &i2c4 {
> - pinctrl-names = "default";
> + pinctrl-names = "default", "default";
> pinctrl-0 = <&i2c4_pins>;
> pinctrl-1 = <&rt1715_int_pins>;
This should be
pinctrl-names = "default";
pinctrl-0 = <&i2c4_pins>;
> clock-frequency = <1000000>;
> status = "okay";
> +
> + rt1715@4e {
> + compatible = "richtek,rt1715";
> + reg = <0x4e>;
> + interrupts-extended = <&pio 12 IRQ_TYPE_LEVEL_LOW>;
> + vbus-supply = <&usb_p1_vbus>;
pinctrl-names = "default";
pinctrl-0 = <&rt1715_int_pins>;
Cheers,
Angelo
> + status = "okay";
> + };
> };
>
> &i2c5 {
> @@ -836,6 +863,17 @@
> &pmic {
> interrupt-parent = <&pio>;
> interrupts = <222 IRQ_TYPE_LEVEL_HIGH>;
> +
> + mt6359keys: keys {
> + compatible = "mediatek,mt6359-keys";
> + mediatek,long-press-mode = <1>;
> + power-off-time-sec = <0>;
> +
> + power-key {
> + linux,keycodes = <KEY_POWER>;
> + wakeup-source;
> + };
> + };
> };
>
> &scp {
> @@ -890,6 +928,22 @@
> &xhci1 {
> status = "okay";
> vusb33-supply = <&mt6359_vusb_ldo_reg>;
> +
> + hub_2_0: hub@1 {
> + compatible = "usb451,8025";
> + reg = <1>;
> + peer-hub = <&hub_3_0>;
> + reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
> + vdd-supply = <&usb_hub_fixed_3v3>;
> + };
> +
> + hub_3_0: hub@2 {
> + compatible = "usb451,8027";
> + reg = <2>;
> + peer-hub = <&hub_2_0>;
> + reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
> + vdd-supply = <&usb_hub_fixed_3v3>;
> + };
> };
>
> &xhci2 {
Powered by blists - more mailing lists