]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: mediatek: mt8390-genio-700-evk: add keys and USB HUB
authorMacpaul Lin <macpaul.lin@mediatek.com>
Mon, 7 Oct 2024 09:02:44 +0000 (17:02 +0800)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Wed, 16 Oct 2024 10:06:04 +0000 (12:06 +0200)
1. Add i2c, mmc to aliases.
4. Add PMIC_KEY setting.
5. Add USB HUB TUSB8020 to xhci1.
6. Re-order spi2 node.

Signed-off-by: Macpaul Lin <macpaul.lin@mediatek.com>
Link: https://lore.kernel.org/r/20241007090244.1731-2-macpaul.lin@mediatek.com
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts

index 944c49603f12c7244fa09ac2955251fa82426e43..bb68665f0b2da80397b833db0241a06648a322a0 100644 (file)
                     "mediatek,mt8188";
 
        aliases {
+               i2c0 = &i2c0;
+               i2c1 = &i2c1;
+               i2c2 = &i2c2;
+               i2c3 = &i2c3;
+               i2c4 = &i2c4;
+               i2c5 = &i2c5;
+               i2c6 = &i2c6;
+               mmc0 = &mmc0;
+               mmc1 = &mmc1;
                serial0 = &uart0;
        };
 
 &i2c4 {
        pinctrl-names = "default";
        pinctrl-0 = <&i2c4_pins>;
-       pinctrl-1 = <&rt1715_int_pins>;
        clock-frequency = <1000000>;
        status = "okay";
 };
 &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 {
        status = "okay";
 };
 
+&spi2 {
+       pinctrl-0 = <&spi2_pins>;
+       pinctrl-names = "default";
+       mediatek,pad-select = <0>;
+       #address-cells = <1>;
+       #size-cells = <0>;
+       status = "okay";
+};
+
 &uart0 {
        pinctrl-0 = <&uart0_pins>;
        pinctrl-names = "default";
        status = "okay";
 };
 
-&spi2 {
-       pinctrl-0 = <&spi2_pins>;
-       pinctrl-names = "default";
-       mediatek,pad-select = <0>;
-       #address-cells = <1>;
-       #size-cells = <0>;
-       status = "okay";
-};
-
 &u3phy0 {
        status = "okay";
 };
 &xhci1 {
        status = "okay";
        vusb33-supply = <&mt6359_vusb_ldo_reg>;
+       #address-cells = <1>;
+       #size-cells = <0>;
+
+       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 {