Message ID | 20230806-xiaomi-star-v1-0-0c384e8b5737@gmail.com |
---|---|
Headers | show |
Series | Add initial support for Xiaomi Mi 11 Ultra | expand |
On 05/08/2023 19:03, Xilin Wu via B4 Relay wrote: > From: Xilin Wu <wuxilin123@gmail.com> > > Add support for Xiaomi Mi 11 Ultra. This commit brings support for: > * Front and rear display panels (initialized by bootloader) > * USB > * UFS > * PCIe0 > * Thermistor sensors > * ADSP/CDSP/Modem/SLPI > * IR Transmitter > * RTC provided by PMK8350 > * Buttons > ... > +/* > + * Delete following upstream (sm8350.dtsi) reserved > + * memory mappings which are different on this device. > + */ > +/delete-node/ &pil_adsp_mem; > +/delete-node/ &pil_slpi_mem; > +/delete-node/ &pil_cdsp_mem; > +/delete-node/ &pil_ipa_fw_mem; > +/delete-node/ &pil_ipa_gsi_mem; > +/delete-node/ &pil_gpu_mem; > +/delete-node/ &pil_spss_mem; > +/delete-node/ &pil_modem_mem; > +/delete-node/ &rmtfs_mem; > +/delete-node/ &pil_trustedvm_mem; > +/delete-node/ &removed_mem; > + > +/ { > + model = "Xiaomi Mi 11 Ultra"; > + compatible = "xiaomi,star", "qcom,sm8350"; > + chassis-type = "handset"; > + > + chosen { > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + framebuffer0: framebuffer-front@ea600000 { framebuffer@ > + compatible = "simple-framebuffer"; > + reg = <0 0xea600000 0 (1440 * 3200 * 4)>; > + > + width = <1440>; > + height = <3200>; > + stride = <(1440 * 4)>; > + format = "a8r8g8b8"; > + }; > + > + framebuffer1: framebuffer-rear@eb79c000 { framebuffer@ > + compatible = "simple-framebuffer"; > + reg = <0 0xeb79c000 0 (126 * 294 * 4)>; > + > + width = <126>; > + height = <294>; > + stride = <(126 * 4)>; > + format = "a8r8g8b8"; > + }; > + }; > + > + reg = <0 0x86100000 0 0x3900000>; > + no-map; > + }; > + > + pil_slpi_mem: memory@89a00000 { > + reg = <0 0x89a00000 0 0x2f00000>; > + no-map; > + }; > + > + pil_cdsp_mem: memory@8c900000 { > + reg = <0 0x8c900000 0 0x1e00000>; > + no-map; > + }; > + > + pil_ipa_fw_mem: memory@8e700000 { > + reg = <0 0x8e700000 0 0x10000>; > + no-map; > + }; > + > + pil_ipa_gsi_mem: memory@8e710000 { > + reg = <0 0x8e710000 0 0xa000>; > + no-map; > + }; > + ... > +&pm8350c_gpios { > + gpio-line-names = "VDD_BOOST_5V_EN", > + "NC", > + "OTG_OVP_EN", > + "WL_TXON", > + "NC", > + "NC", > + "NC", > + "NC", > + "NC"; > +}; > + > +&pmk8350_adc_tm { > + status = "okay"; > + > + pm8350-skin-therm@0 { Hm, didn't we change the node names to generic "channel" and started using labels? At least in next or ongoing patches? Or was it only for VADC? > + reg = <0>; > + io-channels = <&pmk8350_vadc PM8350_ADC7_AMUX_THM1_100K_PU(1)>; > + qcom,ratiometric; > + qcom,hw-settle-time-us = <200>; > + }; ... > + > +&ufs_mem_hc { > + status = "okay"; > + > + reset-gpios = <&tlmm 203 GPIO_ACTIVE_LOW>; > + > + vcc-supply = <&vreg_l7b_2p96>; > + vcc-max-microamp = <800000>; > + vccq-supply = <&vreg_l9b_1p2>; > + vccq-max-microamp = <900000>; > +}; > + > +&ufs_mem_phy { > + status = "okay"; > + > + vdda-phy-supply = <&vreg_l5b_0p88>; > + vdda-pll-supply = <&vreg_l6b_1p2>; > +}; > + > +&usb_1 { > + /* USB 2.0 only */ > + qcom,select-utmi-as-pipe-clk; > + status = "okay"; > +}; > + > +&usb_1_dwc3 { > + dr_mode = "otg"; > + usb-role-switch; > + maximum-speed = "high-speed"; > + /* Remove USB3 phy */ > + phys = <&usb_1_hsphy>; > + phy-names = "usb2-phy"; > +}; > + > +&usb_1_dwc3_hs { > + remote-endpoint = <&pmic_glink_hs_in>; > +}; > + > +&usb_1_hsphy { > + status = "okay"; > + > + vdda-pll-supply = <&vreg_l5b_0p88>; > + vdda18-supply = <&vreg_l1c_1p8>; > + vdda33-supply = <&vreg_l2b_3p07>; > +}; > + Looks like you have trailing blank line. Best regards, Krzysztof
Signed-off-by: Xilin Wu <wuxilin123@gmail.com> --- Xilin Wu (3): soc: qcom: pmic_glink: enable UCSI for SM8350 dt-bindings: arm: qcom: Add Xiaomi Mi 11 Ultra arm64: dts: qcom: Add device tree for Xiaomi Mi 11 Ultra Documentation/devicetree/bindings/arm/qcom.yaml | 1 + arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/sm8350-xiaomi-star.dts | 1251 +++++++++++++++++++++++ drivers/soc/qcom/pmic_glink.c | 1 + 4 files changed, 1254 insertions(+) --- base-commit: d2aae0f5a3d5af50b13b13cb452745cd0428ce5e change-id: 20230806-xiaomi-star-e53d86a3b59e Best regards,