xref: /freebsd-src/sys/contrib/device-tree/src/arm64/mediatek/mt8183-kukui-jacuzzi-pico6.dts (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
18d13bc63SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0 OR MIT)
28d13bc63SEmmanuel Vadot/*
38d13bc63SEmmanuel Vadot * Copyright 2023 Google LLC
48d13bc63SEmmanuel Vadot */
58d13bc63SEmmanuel Vadot
68d13bc63SEmmanuel Vadot/dts-v1/;
78d13bc63SEmmanuel Vadot#include "mt8183-kukui-jacuzzi.dtsi"
88d13bc63SEmmanuel Vadot#include "mt8183-kukui-audio-ts3a227e-max98357a.dtsi"
98d13bc63SEmmanuel Vadot
108d13bc63SEmmanuel Vadot/ {
118d13bc63SEmmanuel Vadot	model = "Google pico6 board";
128d13bc63SEmmanuel Vadot	chassis-type = "convertible";
138d13bc63SEmmanuel Vadot	compatible = "google,pico-sku2", "google,pico", "mediatek,mt8183";
148d13bc63SEmmanuel Vadot
158d13bc63SEmmanuel Vadot	bt_wakeup: bt-wakeup {
168d13bc63SEmmanuel Vadot		compatible = "gpio-keys";
178d13bc63SEmmanuel Vadot		pinctrl-names = "default";
188d13bc63SEmmanuel Vadot		pinctrl-0 = <&bt_pins_wakeup>;
198d13bc63SEmmanuel Vadot
20*0e8011faSEmmanuel Vadot		event-wobt {
218d13bc63SEmmanuel Vadot			label = "Wake on BT";
228d13bc63SEmmanuel Vadot			gpios = <&pio 42 GPIO_ACTIVE_HIGH>;
238d13bc63SEmmanuel Vadot			linux,code = <KEY_WAKEUP>;
248d13bc63SEmmanuel Vadot			wakeup-source;
258d13bc63SEmmanuel Vadot		};
268d13bc63SEmmanuel Vadot	};
278d13bc63SEmmanuel Vadot};
288d13bc63SEmmanuel Vadot
298d13bc63SEmmanuel Vadot&i2c_tunnel {
308d13bc63SEmmanuel Vadot	google,remote-bus = <0>;
318d13bc63SEmmanuel Vadot};
328d13bc63SEmmanuel Vadot
338d13bc63SEmmanuel Vadot&i2c2 {
348d13bc63SEmmanuel Vadot	i2c-scl-internal-delay-ns = <25000>;
358d13bc63SEmmanuel Vadot
368d13bc63SEmmanuel Vadot	trackpad@2c {
378d13bc63SEmmanuel Vadot		compatible = "hid-over-i2c";
388d13bc63SEmmanuel Vadot		reg = <0x2c>;
398d13bc63SEmmanuel Vadot		hid-descr-addr = <0x20>;
408d13bc63SEmmanuel Vadot
418d13bc63SEmmanuel Vadot		pinctrl-names = "default";
428d13bc63SEmmanuel Vadot		pinctrl-0 = <&trackpad_pins>;
438d13bc63SEmmanuel Vadot
448d13bc63SEmmanuel Vadot		interrupts-extended = <&pio 7 IRQ_TYPE_LEVEL_LOW>;
458d13bc63SEmmanuel Vadot
468d13bc63SEmmanuel Vadot		wakeup-source;
478d13bc63SEmmanuel Vadot	};
488d13bc63SEmmanuel Vadot};
498d13bc63SEmmanuel Vadot
50*0e8011faSEmmanuel Vadot&wifi_wakeup_event {
518d13bc63SEmmanuel Vadot	gpios = <&pio 113 GPIO_ACTIVE_LOW>;
528d13bc63SEmmanuel Vadot};
538d13bc63SEmmanuel Vadot
548d13bc63SEmmanuel Vadot&wifi_pwrseq {
558d13bc63SEmmanuel Vadot	post-power-on-delay-ms = <50>;
568d13bc63SEmmanuel Vadot
578d13bc63SEmmanuel Vadot	/* Toggle WIFI_ENABLE to reset the chip. */
588d13bc63SEmmanuel Vadot	reset-gpios = <&pio 8 GPIO_ACTIVE_LOW>;
598d13bc63SEmmanuel Vadot};
608d13bc63SEmmanuel Vadot
618d13bc63SEmmanuel Vadot&wifi_pins_pwrseq {
628d13bc63SEmmanuel Vadot	pins-wifi-enable {
638d13bc63SEmmanuel Vadot		pinmux = <PINMUX_GPIO8__FUNC_GPIO8>;
648d13bc63SEmmanuel Vadot	};
658d13bc63SEmmanuel Vadot};
668d13bc63SEmmanuel Vadot
678d13bc63SEmmanuel Vadot&mmc1_pins_default {
688d13bc63SEmmanuel Vadot	pins-cmd-dat {
69*0e8011faSEmmanuel Vadot		drive-strength = <6>;
708d13bc63SEmmanuel Vadot	};
718d13bc63SEmmanuel Vadot	pins-clk {
72*0e8011faSEmmanuel Vadot		drive-strength = <6>;
738d13bc63SEmmanuel Vadot	};
748d13bc63SEmmanuel Vadot};
758d13bc63SEmmanuel Vadot
768d13bc63SEmmanuel Vadot&mmc1_pins_uhs {
778d13bc63SEmmanuel Vadot	pins-clk {
78*0e8011faSEmmanuel Vadot		drive-strength = <6>;
798d13bc63SEmmanuel Vadot	};
808d13bc63SEmmanuel Vadot};
818d13bc63SEmmanuel Vadot
828d13bc63SEmmanuel Vadot&mmc1 {
8301950c46SEmmanuel Vadot	bluetooth@2 {
8401950c46SEmmanuel Vadot		reg = <2>;
858d13bc63SEmmanuel Vadot		compatible = "mediatek,mt7921s-bluetooth";
868d13bc63SEmmanuel Vadot		pinctrl-names = "default";
878d13bc63SEmmanuel Vadot		pinctrl-0 = <&bt_pins_reset>;
888d13bc63SEmmanuel Vadot		reset-gpios = <&pio 120 GPIO_ACTIVE_LOW>;
898d13bc63SEmmanuel Vadot	};
908d13bc63SEmmanuel Vadot};
918d13bc63SEmmanuel Vadot
928d13bc63SEmmanuel Vadot&pio {
938d13bc63SEmmanuel Vadot	bt_pins_wakeup: bt-pins-wakeup {
948d13bc63SEmmanuel Vadot		piins-bt-wakeup {
958d13bc63SEmmanuel Vadot			pinmux = <PINMUX_GPIO42__FUNC_GPIO42>;
968d13bc63SEmmanuel Vadot			input-enable;
978d13bc63SEmmanuel Vadot		};
988d13bc63SEmmanuel Vadot	};
998d13bc63SEmmanuel Vadot
1008d13bc63SEmmanuel Vadot	bt_pins_reset: bt-pins-reset {
1018d13bc63SEmmanuel Vadot		pins-bt-reset {
1028d13bc63SEmmanuel Vadot			pinmux = <PINMUX_GPIO120__FUNC_GPIO120>;
1038d13bc63SEmmanuel Vadot			output-high;
1048d13bc63SEmmanuel Vadot		};
1058d13bc63SEmmanuel Vadot	};
1068d13bc63SEmmanuel Vadot};
1078d13bc63SEmmanuel Vadot
1088d13bc63SEmmanuel Vadot/delete-node/ &bluetooth;
1098d13bc63SEmmanuel Vadot/delete-node/ &bt_pins;
110