xref: /linux/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-pico6.dts (revision 90d32e92011eaae8e70a9169b4e7acf4ca8f9d3a)
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2/*
3 * Copyright 2023 Google LLC
4 */
5
6/dts-v1/;
7#include "mt8183-kukui-jacuzzi.dtsi"
8#include "mt8183-kukui-audio-ts3a227e-max98357a.dtsi"
9
10/ {
11	model = "Google pico6 board";
12	chassis-type = "convertible";
13	compatible = "google,pico-sku2", "google,pico", "mediatek,mt8183";
14
15	bt_wakeup: bt-wakeup {
16		compatible = "gpio-keys";
17		pinctrl-names = "default";
18		pinctrl-0 = <&bt_pins_wakeup>;
19
20		wobt {
21			label = "Wake on BT";
22			gpios = <&pio 42 GPIO_ACTIVE_HIGH>;
23			linux,code = <KEY_WAKEUP>;
24			wakeup-source;
25		};
26	};
27};
28
29&i2c_tunnel {
30	google,remote-bus = <0>;
31};
32
33&i2c2 {
34	i2c-scl-internal-delay-ns = <25000>;
35
36	trackpad@2c {
37		compatible = "hid-over-i2c";
38		reg = <0x2c>;
39		hid-descr-addr = <0x20>;
40
41		pinctrl-names = "default";
42		pinctrl-0 = <&trackpad_pins>;
43
44		interrupts-extended = <&pio 7 IRQ_TYPE_LEVEL_LOW>;
45
46		wakeup-source;
47	};
48};
49
50&wifi_wakeup {
51	wowlan {
52		gpios = <&pio 113 GPIO_ACTIVE_LOW>;
53	};
54};
55
56&wifi_pwrseq {
57	post-power-on-delay-ms = <50>;
58
59	/* Toggle WIFI_ENABLE to reset the chip. */
60	reset-gpios = <&pio 8 GPIO_ACTIVE_LOW>;
61};
62
63&wifi_pins_pwrseq {
64	pins-wifi-enable {
65		pinmux = <PINMUX_GPIO8__FUNC_GPIO8>;
66	};
67};
68
69&mmc1_pins_default {
70	pins-cmd-dat {
71		drive-strength = <MTK_DRIVE_6mA>;
72	};
73	pins-clk {
74		drive-strength = <MTK_DRIVE_6mA>;
75	};
76};
77
78&mmc1_pins_uhs {
79	pins-clk {
80		drive-strength = <MTK_DRIVE_6mA>;
81	};
82};
83
84&mmc1 {
85	bluetooth@2 {
86		reg = <2>;
87		compatible = "mediatek,mt7921s-bluetooth";
88		pinctrl-names = "default";
89		pinctrl-0 = <&bt_pins_reset>;
90		reset-gpios = <&pio 120 GPIO_ACTIVE_LOW>;
91	};
92};
93
94&pio {
95	bt_pins_wakeup: bt-pins-wakeup {
96		piins-bt-wakeup {
97			pinmux = <PINMUX_GPIO42__FUNC_GPIO42>;
98			input-enable;
99		};
100	};
101
102	bt_pins_reset: bt-pins-reset {
103		pins-bt-reset {
104			pinmux = <PINMUX_GPIO120__FUNC_GPIO120>;
105			output-high;
106		};
107	};
108};
109
110/delete-node/ &bluetooth;
111/delete-node/ &bt_pins;
112