// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2022 Vyacheslav Bocharov <adeep@lexina.in>
 * Copyright (c) 2022 JetHome
 * Author: Vyacheslav Bocharov <adeep@lexina.in>
 */

/dts-v1/;

#include "meson-axg-jethome-jethub-j1xx.dtsi"

/ {
	compatible = "jethome,jethub-j110", "amlogic,a113d", "amlogic,meson-axg";
	model = "JetHome JetHub D1p (J110) HW rev.2";

	/* 2GiB or 4GiB RAM */
	memory@0 {
		device_type = "memory";
		reg = <0x0 0x0 0x0 0x80000000>;
	};
};


/* wifi module */
&sd_emmc_b {
	broken-cd;/* cd-gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>;*/
};

/* UART Bluetooth */
&uart_B {
	bluetooth {
		compatible = "realtek,rtl8822cs-bt";
		enable-gpios = <&gpio GPIOZ_7 GPIO_ACTIVE_HIGH>;
		host-wake-gpios = <&gpio GPIOZ_8 GPIO_ACTIVE_HIGH>;
		device-wake-gpios = <&gpio GPIOZ_6 GPIO_ACTIVE_HIGH>;
	};
};

&i2c_AO {
	/* EEPROM on base board */
	eeprompd: eeprom@56 {
		compatible = "atmel,24c64";
		reg = <0x56>;
		pagesize = <0x20>;
		label = "eeprompd";
		address-width = <0x10>;
		vcc-supply = <&vddao_3v3>;
	};
};
