#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

#include "sa8155-pmic-overlay.dtsi"

/* Empty node to generate minimal overlay fragment */
&soc {
	ss5_pwr_ctrl0 {
		compatible = "qcom,gnss_sirf";
		pinctrl-0 = <&ss5_pwr_ctrl_rst_on>;
		ssVreset-gpio = <&tlmm 11 1>;
		ssVonoff-gpio = <&tlmm 39 1>;
		ssVboot-gpio = <&tlmm 40 1>;
	};
};

&qupv3_se0_spi {
	status = "ok";
	#address-cells = <1>;
	#size-cells = <0>;
	can-controller@0 {
		compatible = "qcom,nxp,mpc5746c";
		reg = <0>;
		interrupt-parent = <&tlmm>;
		interrupts = <38 0>;
		spi-max-frequency = <5000000>;
		qcom,clk-freq-mhz = <40000000>;
		qcom,max-can-channels = <1>;
		qcom,bits-per-word = <8>;
		qcom,support-can-fd;
	};
};

&pcie1 {
	qcom,boot-option = <0x0>;
};

&sdhc_2 {
	vdd-supply = <&pm8150_1_l17>;
	qcom,vdd-voltage-level = <2950000 2960000>;
	qcom,vdd-current-level = <200 800000>;

	vdd-io-supply = <&pm8150_2_l13>;
	qcom,vdd-io-voltage-level = <1808000 2960000>;
	qcom,vdd-io-current-level = <200 22000>;

	pinctrl-names = "default", "sleep";

	pinctrl-0 = <&sdc2_on>;
	pinctrl-1 = <&sdc2_off>;
	cd-gpios = <&pm8150_1_gpios 4 GPIO_ACTIVE_LOW>;

	status = "ok";
};

&ufsphy_mem {
	compatible = "qcom,ufs-phy-qmp-v4";

	vdda-pll-supply = <&pm8150_2_l8>;
	vdda-phy-supply = <&pm8150_2_l18>;
	vdda-phy-max-microamp = <87100>;
	vdda-pll-max-microamp = <18300>;

	status = "ok";
};

&ufshc_mem {
	vdd-hba-supply = <&ufs_phy_gdsc>;
	vdd-hba-fixed-regulator;

	vcc-supply = <&pm8150_1_l10>;
	vcc-voltage-level = <2950000 2960000>;
	vcc-max-microamp = <750000>;

	vccq2-supply = <&pm8150_1_s4>;
	vccq2-max-microamp = <750000>;

	qcom,vddp-ref-clk-supply = <&pm8150_2_l5>;
	qcom,vddp-ref-clk-max-microamp = <100>;

	/* Disable Write Booster Feature */
	qcom,disable-wb-support;

	status = "ok";
};

&qupv3_se10_i2c {
	#address-cells = <1>;
	#size-cells = <0>;

	status = "ok";
	asm330@6a {
		compatible = "st,asm330lhh";
		reg = <0x6a>;
		vio-supply = <&pm8150_2_l7>;
		vdd-supply = <&pm8150_2_l16>;
		interrupt-parent = <&tlmm>;
		interrupts = <12 IRQ_TYPE_LEVEL_HIGH>;
		pinctrl-names = "default";
		pinctrl-0 = <&sensor_int1_default
		&sensor_int2_default>;
	};
};
