Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d779e7aa authored by Bo Zhang's avatar Bo Zhang Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: add device tree support for QCS404 Turbox C404 DVT



Add initial device tree support for QCS404 Turbox C404 DVT.

Change-Id: If48574b93ff539fcf962ca72d0349cbee3b134c9
Signed-off-by: default avatarBo Zhang <bozhang@codeaurora.org>
parent c8980a40
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -91,7 +91,9 @@ dtb-$(CONFIG_ARCH_QCS405) += qcs405-iot-sku1.dtb \
		qcs405-iot-sku13.dtb \
		qcs407-iot-sku13.dtb \
		qcs405-iot-robot-reference-board.dtb \
		qcs404-iot-robot-reference-board.dtb
		qcs404-iot-robot-reference-board.dtb \
		qcs405-iot-robot-reference-dvt-board.dtb \
		qcs404-iot-robot-reference-dvt-board.dtb

ifeq ($(CONFIG_BUILD_ARM64_DT_OVERLAY),y)
	dtbo-$(CONFIG_ARCH_SM8150) += \
+125 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

/dts-v1/;

#include "qcs404.dtsi"
#include "qcs405-wsa-audio-overlay.dtsi"

/ {
	model = "Qualcomm Technologies, Inc. QCS404 Turbox C404 DVT IOT";
	compatible = "qcom,qcs404-iot", "qcom,qcs404", "qcom,iot";
	qcom,board-id = <0x010020 5>;
};

&mdss_rgb {
	status = "disabled";
};

&i2c_5 {
	status = "ok";
};

&i2c_2 {
	status = "disabled";
};

&smp2p_sleepstate {
	status = "disabled";
};

&smb1351_otg_supply {
	status = "disabled";
};

&pms405_pon {
	interrupts = <0x0 0x8 0x0 IRQ_TYPE_NONE>,
		     <0x0 0x8 0x1 IRQ_TYPE_NONE>;
	interrupt-names = "kpdpwr", "resin";
	qcom,pon_2 {
		qcom,pon-type = <1>;
		qcom,pull-up = <1>;
		qcom,support-reset = <1>;
		qcom,s1-timer = <4480>;
		qcom,s2-timer = <1000>;
		qcom,s2-type = <1>;
		linux,code = <KEY_KPEQUAL>;
	};
};

&soc {
	gpio_keys {
		vol_mute {
			gpios = <&tlmm 19 GPIO_ACTIVE_LOW>;
		};
	};
};

&adsp_fw_mem {
	reg = <0x0 0x87400000 0x0 0x1400000>;
};

&tlmm {
	evb_tlmm_gpio_key{
		tlmm_gpio_key_active: tlmm_gpio_key_active {
			mux {
				pins = "gpio19","gpio52","gpio54","gpio115";
			};

			config {
				pins = "gpio19","gpio52","gpio54","gpio115";
			};
		};

		tlmm_gpio_key_suspend: tlmm_gpio_key_suspend {
			mux {
				pins = "gpio19","gpio52","gpio54","gpio115";
			};

			config {
				pins = "gpio19","gpio52","gpio54","gpio115";
			};
		};
	};
};

&usb3 {
	qcom,charging-disabled;
	/delete-property/ extcon;
};

&usb2s {
	qcom,charging-disabled;
};

&qcs405_snd {
	qcom,tasha-codec = <0>;
	qcom,model = "qcs404-wsa-rb1-snd-card";
};

&wcd9335 {
	status = "disabled";
};

&rpm_bus {
	rpm-regulator-ldoa7 {
		status = "okay";
		pms405_l7: regulator-l7 {
			regulator-min-microvolt = <1800000>;
			regulator-max-microvolt = <1800000>;
			qcom,init-voltage = <1800000>;
			regulator-always-on;
			status = "okay";
		};
	};
};
+107 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

/dts-v1/;

#include "qcs405.dtsi"
#include "qcs405-wsa-audio-overlay.dtsi"
#include "qcs405-circular-pca9956.dtsi"

/ {
	model = "Qualcomm Technologies, Inc. QCS405 Turbox C405 DVT IOT";
	compatible = "qcom,qcs405-iot", "qcom,qcs405", "qcom,iot";
	qcom,board-id = <0x010020 5>;
};

&mdss_rgb {
	status = "disabled";
};

&i2c_5 {
	status = "ok";
};

&i2c_2 {
	status = "disabled";
};

&smp2p_sleepstate {
	status = "disabled";
};

&smb1351_otg_supply {
	status = "disabled";
};

&soc {
	gpio_keys {
		vol_mute {
			gpios = <&tlmm 19 GPIO_ACTIVE_LOW>;
		};
	};
};

&tlmm {
	evb_tlmm_gpio_key{
		tlmm_gpio_key_active: tlmm_gpio_key_active {
			mux {
				pins = "gpio19","gpio52","gpio54","gpio115";
			};

			config {
				pins = "gpio19","gpio52","gpio54","gpio115";
			};
		};

		tlmm_gpio_key_suspend: tlmm_gpio_key_suspend {
			mux {
				pins = "gpio19","gpio52","gpio54","gpio115";
			};

			config {
				pins = "gpio19","gpio52","gpio54","gpio115";
			};
		};
	};
};

&usb3 {
	qcom,charging-disabled;
	/delete-property/ extcon;
};

&usb2s {
	qcom,charging-disabled;
};

&qcs405_snd {
	qcom,tasha-codec = <0>;
	qcom,model = "qcs404-wsa-rb1-snd-card";
};

&wcd9335 {
	status = "disabled";
};

&rpm_bus {
	rpm-regulator-ldoa7 {
		status = "okay";
		pms405_l7: regulator-l7 {
			regulator-min-microvolt = <1800000>;
			regulator-max-microvolt = <1800000>;
			qcom,init-voltage = <1800000>;
			regulator-always-on;
			status = "okay";
		};
	};
};