xref: /freebsd-src/sys/contrib/device-tree/src/arm64/amlogic/meson-gxl-s905d-mecool-kii-pro.dts (revision b97ee269eae3cbaf35c18f51a459aea581c2a7dc)
12eb4d8dcSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
22eb4d8dcSEmmanuel Vadot
32eb4d8dcSEmmanuel Vadot/*
42eb4d8dcSEmmanuel Vadot * Author: Christian Hewitt <christianshewitt@gmail.com>
52eb4d8dcSEmmanuel Vadot */
62eb4d8dcSEmmanuel Vadot
72eb4d8dcSEmmanuel Vadot/dts-v1/;
82eb4d8dcSEmmanuel Vadot
92eb4d8dcSEmmanuel Vadot#include "meson-gxl-s905d.dtsi"
102eb4d8dcSEmmanuel Vadot#include "meson-gx-p23x-q20x.dtsi"
112eb4d8dcSEmmanuel Vadot#include <dt-bindings/input/input.h>
122eb4d8dcSEmmanuel Vadot#include <dt-bindings/leds/common.h>
132eb4d8dcSEmmanuel Vadot
142eb4d8dcSEmmanuel Vadot/ {
152eb4d8dcSEmmanuel Vadot	compatible = "videostrong,gxl-kii-pro", "amlogic,s905d", "amlogic,meson-gxl";
162eb4d8dcSEmmanuel Vadot	model = "MeCool KII Pro";
172eb4d8dcSEmmanuel Vadot
182eb4d8dcSEmmanuel Vadot	adc-keys {
192eb4d8dcSEmmanuel Vadot		compatible = "adc-keys";
202eb4d8dcSEmmanuel Vadot		io-channels = <&saradc 0>;
212eb4d8dcSEmmanuel Vadot		io-channel-names = "buttons";
222eb4d8dcSEmmanuel Vadot		keyup-threshold-microvolt = <1710000>;
232eb4d8dcSEmmanuel Vadot
242eb4d8dcSEmmanuel Vadot		button-function {
252eb4d8dcSEmmanuel Vadot			label = "Update";
262eb4d8dcSEmmanuel Vadot			linux,code = <KEY_VENDOR>;
272eb4d8dcSEmmanuel Vadot			press-threshold-microvolt = <10000>;
282eb4d8dcSEmmanuel Vadot		};
292eb4d8dcSEmmanuel Vadot	};
302eb4d8dcSEmmanuel Vadot
312eb4d8dcSEmmanuel Vadot	gpio-keys-polled {
322eb4d8dcSEmmanuel Vadot		compatible = "gpio-keys-polled";
332eb4d8dcSEmmanuel Vadot		poll-interval = <100>;
342eb4d8dcSEmmanuel Vadot
35*b97ee269SEmmanuel Vadot		button {
362eb4d8dcSEmmanuel Vadot			label = "power";
372eb4d8dcSEmmanuel Vadot			linux,code = <KEY_POWER>;
382eb4d8dcSEmmanuel Vadot			gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
392eb4d8dcSEmmanuel Vadot		};
402eb4d8dcSEmmanuel Vadot	};
412eb4d8dcSEmmanuel Vadot
422eb4d8dcSEmmanuel Vadot	leds {
432eb4d8dcSEmmanuel Vadot		compatible = "gpio-leds";
442eb4d8dcSEmmanuel Vadot
452eb4d8dcSEmmanuel Vadot		led-blue {
462eb4d8dcSEmmanuel Vadot			color = <LED_COLOR_ID_BLUE>;
472eb4d8dcSEmmanuel Vadot			function = LED_FUNCTION_POWER;
482eb4d8dcSEmmanuel Vadot			gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
492eb4d8dcSEmmanuel Vadot			default-state = "on";
502eb4d8dcSEmmanuel Vadot			panic-indicator;
512eb4d8dcSEmmanuel Vadot		};
522eb4d8dcSEmmanuel Vadot	};
532eb4d8dcSEmmanuel Vadot};
542eb4d8dcSEmmanuel Vadot
552eb4d8dcSEmmanuel Vadot&ethmac {
562eb4d8dcSEmmanuel Vadot	phy-mode = "rmii";
572eb4d8dcSEmmanuel Vadot	phy-handle = <&internal_phy>;
582eb4d8dcSEmmanuel Vadot};
592eb4d8dcSEmmanuel Vadot
602eb4d8dcSEmmanuel Vadot&ir {
612eb4d8dcSEmmanuel Vadot	linux,rc-map-name = "rc-mecool-kii-pro";
622eb4d8dcSEmmanuel Vadot};
632eb4d8dcSEmmanuel Vadot
642eb4d8dcSEmmanuel Vadot&sd_emmc_a {
652eb4d8dcSEmmanuel Vadot	brcmf: wifi@1 {
662eb4d8dcSEmmanuel Vadot		reg = <1>;
672eb4d8dcSEmmanuel Vadot		compatible = "brcm,bcm4329-fmac";
682eb4d8dcSEmmanuel Vadot	};
692eb4d8dcSEmmanuel Vadot};
702eb4d8dcSEmmanuel Vadot
712eb4d8dcSEmmanuel Vadot&uart_A {
722eb4d8dcSEmmanuel Vadot	status = "okay";
732eb4d8dcSEmmanuel Vadot	pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
742eb4d8dcSEmmanuel Vadot	pinctrl-names = "default";
752eb4d8dcSEmmanuel Vadot	uart-has-rtscts;
762eb4d8dcSEmmanuel Vadot
772eb4d8dcSEmmanuel Vadot	bluetooth {
782eb4d8dcSEmmanuel Vadot		compatible = "brcm,bcm43438-bt";
792eb4d8dcSEmmanuel Vadot		shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
802eb4d8dcSEmmanuel Vadot		max-speed = <2000000>;
812eb4d8dcSEmmanuel Vadot		clocks = <&wifi32k>;
822eb4d8dcSEmmanuel Vadot		clock-names = "lpo";
832eb4d8dcSEmmanuel Vadot	};
842eb4d8dcSEmmanuel Vadot};
85