forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: ARM: dts: qcom: Add basic DT for mdm9607 + Waveshare 4G HAT
Mostly an adjusted version of my device tree for MSM8909. Working functionality on the Waveshare 4G HAT: - UART - Boots into postmarketOS installed on SD card - USB - NAND (with some quirks) - Modem (mobile data works with ModemManager) Signed-off-by: Stephan Gerhold <[email protected]>
- Loading branch information
1 parent
3d6166a
commit 70d7022
Showing
5 changed files
with
1,428 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
172 changes: 172 additions & 0 deletions
172
arch/arm/boot/dts/qcom/qcom-mdm9607-waveshare-4g-hat.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
#include "qcom-mdm9607.dtsi" | ||
#include "qcom-pm8019.dtsi" | ||
|
||
/ { | ||
model = "Waveshare SIM7600 4G HAT"; | ||
compatible = "waveshare,mdm9607-4g-hat", "qcom,mdm9607"; | ||
|
||
aliases { | ||
serial0 = &blsp_uart2; | ||
mmc0 = &sdhc_2; | ||
}; | ||
|
||
chosen { | ||
stdout-path = "serial0"; | ||
}; | ||
|
||
reg_5v: regulator-5v { | ||
compatible = "regulator-fixed"; | ||
regulator-name = "5V"; | ||
regulator-min-microvolt = <5000000>; | ||
regulator-max-microvolt = <5000000>; | ||
regulator-boot-on; | ||
regulator-always-on; | ||
}; | ||
reg_3p3v: regulator-3p3v { | ||
compatible = "regulator-fixed"; | ||
regulator-name = "VDD_3.3V"; | ||
regulator-min-microvolt = <3300000>; | ||
regulator-max-microvolt = <3300000>; | ||
regulator-boot-on; | ||
regulator-always-on; | ||
vin-supply = <®_5v>; | ||
}; | ||
reg_3p0v: regulator-3p0v { | ||
compatible = "regulator-fixed"; | ||
regulator-name = "VDD_3.0V"; | ||
regulator-min-microvolt = <3000000>; | ||
regulator-max-microvolt = <3000000>; | ||
regulator-boot-on; | ||
regulator-always-on; | ||
vin-supply = <®_5v>; | ||
}; | ||
|
||
usb_id: usb-id { | ||
compatible = "linux,extcon-usb-gpio"; | ||
id-gpio = <&pm8019_mpps 1 GPIO_ACTIVE_HIGH>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&pinctrl_usb_id>; | ||
}; | ||
}; | ||
|
||
&blsp_uart2 { | ||
status = "okay"; | ||
}; | ||
|
||
&mpss { | ||
status = "okay"; | ||
pll-supply = <&pm8019_l3>; | ||
}; | ||
|
||
&qpic_dma { | ||
status = "okay"; | ||
}; | ||
|
||
&qpic_nand { | ||
status = "okay"; | ||
|
||
nand: nand@0 { | ||
reg = <0>; | ||
/* MIBIB partition fails with "failed to copy last codeword" */ | ||
secure-regions = /bits/ 64 <0x140000 0x140000>; | ||
}; | ||
}; | ||
|
||
&sdhc_2 { | ||
status = "okay"; | ||
vmmc-supply = <®_3p0v>; | ||
vqmmc-supply = <&pm8019_l13>; | ||
}; | ||
|
||
&usb { | ||
status = "okay"; | ||
extcon = <&usb_id>, <&usb_id>; | ||
}; | ||
|
||
&usb_hs_phy { | ||
extcon = <&usb_id>; | ||
v1p8-supply = <&pm8019_l2>; | ||
v3p3-supply = <&pm8019_l4>; | ||
}; | ||
|
||
&rpm_requests { | ||
pm8019-regulators { | ||
compatible = "qcom,rpm-pm8019-regulators"; | ||
|
||
/* pm8019_s1 is managed via SPMI (CPR) */ | ||
pm8019_s2: s2 { | ||
regulator-min-microvolt = <750000>; | ||
regulator-max-microvolt = <1275000>; | ||
}; | ||
/* pm8019_s3 is managed by rpmpd (MDM9607_VDDCX) */ | ||
pm8019_s4: s4 { | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <1950000>; | ||
}; | ||
|
||
pm8019_l1: l1 { | ||
regulator-min-microvolt = <1250000>; | ||
regulator-max-microvolt = <1250000>; | ||
}; | ||
pm8019_l2: l2 { | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <1800000>; | ||
}; | ||
pm8019_l3: l3 { | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <1800000>; | ||
}; | ||
pm8019_l4: l4 { | ||
regulator-min-microvolt = <3075000>; | ||
regulator-max-microvolt = <3075000>; | ||
}; | ||
pm8019_l5: l5 { | ||
regulator-min-microvolt = <1700000>; | ||
regulator-max-microvolt = <3050000>; | ||
}; | ||
pm8019_l6: l6 { | ||
regulator-min-microvolt = <1700000>; | ||
regulator-max-microvolt = <3050000>; | ||
}; | ||
pm8019_l7: l7 { | ||
regulator-min-microvolt = <1700000>; | ||
regulator-max-microvolt = <1900000>; | ||
}; | ||
pm8019_l8: l8 { | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <1800000>; | ||
}; | ||
pm8019_l9: l9 { | ||
regulator-min-microvolt = <1200000>; | ||
regulator-max-microvolt = <1250000>; | ||
}; | ||
pm8019_l10: l10 { | ||
regulator-min-microvolt = <1050000>; | ||
regulator-max-microvolt = <1050000>; | ||
}; | ||
pm8019_l11: l11 { | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <1800000>; | ||
}; | ||
/* pm8019_l12 is managed by rpmpd (MSM8909_VDDMX) */ | ||
pm8019_l13: l13 { | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <2850000>; | ||
}; | ||
pm8019_l14: l14 { | ||
regulator-min-microvolt = <2650000>; | ||
regulator-max-microvolt = <3000000>; | ||
}; | ||
}; | ||
}; | ||
|
||
&pm8019_mpps { | ||
pinctrl_usb_id: usb-id-state { | ||
pins = "mpp1"; | ||
function = "digital"; | ||
power-source = <3>; | ||
bias-pull-up = <10000>; | ||
input-enable; | ||
}; | ||
}; |
Oops, something went wrong.