arch/arm/boot/dts/qcom/qcom-msm8960-sony-huashan.dts

Source file repositories/reference/linux-study-clean/arch/arm/boot/dts/qcom/qcom-msm8960-sony-huashan.dts

File Facts

System
Linux kernel
Corpus path
arch/arm/boot/dts/qcom/qcom-msm8960-sony-huashan.dts
Extension
.dts
Size
7434 bytes
Lines
362
Domain
Architecture Layer
Bucket
arch/arm
Inferred role
Architecture Layer: configuration, schema, or hardware description
Status
atlas-only

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2025, Antony Kurniawan Soemardi <linux@smankusors.com>
 */
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/reset/qcom,gcc-msm8960.h>

#include "qcom-msm8960.dtsi"
#include "pm8921.dtsi"

/ {
	model = "Sony Xperia SP";
	compatible = "sony,huashan", "qcom,msm8960t", "qcom,msm8960";
	chassis-type = "handset";

	aliases {
		serial0 = &gsbi8_serial;
		mmc0 = &sdcc1; /* SDCC1 eMMC slot */
		mmc1 = &sdcc3; /* SDCC3 SD card slot */
	};

	chosen {
		stdout-path = "serial0:115200n8";
	};

	gpio-keys {
		compatible = "gpio-keys";

		key-volume-up {
			label = "Volume Up";
			gpios = <&pm8921_gpio 21 GPIO_ACTIVE_LOW>;
			debounce-interval = <10>;
			linux,code = <KEY_VOLUMEUP>;
		};

		key-volume-down {
			label = "Volume Down";
			gpios = <&pm8921_gpio 20 GPIO_ACTIVE_LOW>;
			debounce-interval = <10>;
			linux,code = <KEY_VOLUMEDOWN>;
		};
	};
};

&gsbi8 {
	qcom,mode = <GSBI_PROT_I2C_UART>;
	status = "okay";
};

&gsbi8_serial {
	status = "okay";
};

&pm8921 {
	interrupts-extended = <&tlmm 104 IRQ_TYPE_LEVEL_LOW>;
};

&pm8921_gpio {
	keypad_default_state: keypad-default-state {
		keypad-sense-pins {
			pins = "gpio1", "gpio2", "gpio3", "gpio4", "gpio5";
			function = PMIC_GPIO_FUNC_NORMAL;
			bias-pull-up;
			input-enable;
			power-source = <PM8921_GPIO_S4>;
			qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
			qcom,pull-up-strength = <PMIC_GPIO_PULL_UP_31P5>;
		};

Annotation

Implementation Notes