mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-31 22:23:05 +00:00

The dts and dtsi add support for msm8916 variant of Samsung Galaxy J3 SM-J320YZ smartphone released in 2016. Add a device tree for SM-J320YZ with initial support for: - GPIO keys - SDHCI (internal and external storage) - USB Device Mode - UART (on USB connector via the SM5703 MUIC) - WCNSS (WiFi/BT) - Regulators - QDSP6 audio - Speaker/earpiece/headphones/microphones via digital/analog codec in MSM8916/PM8916 - WWAN Internet via BAM-DMUX - Touchscreen - Accelerometer There are different variants of J3, with some differences in MUIC, sensor, NFC and touch key I2C buses. The common parts are shared in msm8916-samsung-j3-common.dtsi to reduce duplication. Signed-off-by: Lin, Meng-Bo <linmengbo06890@proton.me> Link: https://lore.kernel.org/r/20240804065854.42437-3-linmengbo06890@proton.me Signed-off-by: Bjorn Andersson <andersson@kernel.org>
32 lines
626 B
Plaintext
32 lines
626 B
Plaintext
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
/dts-v1/;
|
|
|
|
#include "msm8916-samsung-j3-common.dtsi"
|
|
|
|
/ {
|
|
model = "Samsung Galaxy J3 (2016) (SM-J320YZ)";
|
|
compatible = "samsung,j3ltetw", "qcom,msm8916";
|
|
chassis-type = "handset";
|
|
};
|
|
|
|
&i2c_muic {
|
|
sda-gpios = <&tlmm 0 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
|
|
scl-gpios = <&tlmm 1 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
|
|
};
|
|
|
|
&i2c_sensors {
|
|
/* I2C2 */
|
|
sda-gpios = <&tlmm 6 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
|
|
scl-gpios = <&tlmm 7 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
|
|
};
|
|
|
|
&muic_i2c_default {
|
|
pins = "gpio0", "gpio1";
|
|
};
|
|
|
|
&sensors_i2c_default {
|
|
/* I2C2 */
|
|
pins = "gpio6", "gpio7";
|
|
};
|