Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp901644lqb; Wed, 17 Apr 2024 14:22:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUckUfY8mudbU34lowiStt/J5f8MfRZkZF7LOar2pwcahjmTSSkjGUReVp1n2kmoAWIJCXLVshLND1NJtL6sqJx04vI7VS2RQaerchH6Q== X-Google-Smtp-Source: AGHT+IFJmFvz4bZTvb2/V4F0XLWquQ1iVNHJDIvod/SAC2AJo16GKipHU3ecCBbhc82qM3zFBrJb X-Received: by 2002:a05:6a00:9390:b0:6ea:ed87:1348 with SMTP id ka16-20020a056a00939000b006eaed871348mr388101pfb.13.1713388932209; Wed, 17 Apr 2024 14:22:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713388932; cv=pass; d=google.com; s=arc-20160816; b=f3/Nl08ZwFTNHqBLr1mWAYC58Sw7b0iGNW+jc33Th0vCYiDpJ9msWCPHu3ZZO5TnJI 2oN3XBBqKentVAOMKqbtKNTsMmu02GZxxnz/VwY0+HL4+MCkpnvm3CPaaSNBdhAo9RkF rYTUTmB4GNnLRrjfJISgAiUZNZu/JwnW/SgRsF7bydvBSdXh8zlIhl8D3aprJScR7kzH GZ0U1/nxLqPFngzA0f/yk9EHm8jDtiYURBl0hrgZL4HYRZD2NZx2rNG4A7kY4VzB5ADJ 4oNteY/qOdAjN3PWsy9IM23O39KpmfuGPnHAyfNudL05znWntEUtU6w4Zz8Z5qcgRxZf 6h4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:message-id:references:in-reply-to:subject :cc:to:from:date:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=quVV6U2MRgnQC60YlJV81e/ef5YER8QUEqFEocp014k=; fh=MtJcQ/0OZRtRFefYukgVlzd00UWNFo/DNbd8q3KxYik=; b=azu9vHHGSMcMKdu/EKw97wJcmSar0AeQ2Buu/2OjYBzpKTayaMsk1+tQ6d6OjGeu6O oSCAP+atzjb7+DxZacfc/mu3/X2GR5g14b5Q66JIwGNV1qmeQRRYbRXhuhw2EK5VHBdO Bmjp/cyGW8q9EHgrpiQmCcsqMe5zj+4pmNRpZjrwRdKuKh2nVoSCEJyrchn1rl/bUGdc qYFUsfWnGaxK2y1/YIg77dqU/YuVjHzWI2A3+Bp77NgFjuY5p45Jnk59Px6Dr2P00BgF Ul4EZ4hjOSYCnIbN1V5r78QHiH/e61Nueqv9Gkaaw5nmpSksKBoD4tLwPa5ouNlq14we zu5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mainlining.org header.s=psm header.b=srN8XFks; arc=pass (i=1 spf=pass spfdomain=mainlining.org dkim=pass dkdomain=mainlining.org dmarc=pass fromdomain=mainlining.org); spf=pass (google.com: domain of linux-kernel+bounces-148199-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148199-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mainlining.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w35-20020a634763000000b005dc86bae4b8si72476pgk.408.2024.04.17.14.22.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 14:22:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148199-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@mainlining.org header.s=psm header.b=srN8XFks; arc=pass (i=1 spf=pass spfdomain=mainlining.org dkim=pass dkdomain=mainlining.org dmarc=pass fromdomain=mainlining.org); spf=pass (google.com: domain of linux-kernel+bounces-148199-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148199-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mainlining.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BAD7DB21471 for ; Wed, 17 Apr 2024 09:04:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0AF5412DD8C; Wed, 17 Apr 2024 09:04:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b="srN8XFks" Received: from mail.mainlining.org (mainlining.org [94.241.141.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C42296E613; Wed, 17 Apr 2024 09:04:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=94.241.141.152 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713344677; cv=none; b=PkV7bRByNpeTV7M+ixLbRoBrEJ4pATKiLhDV3fXR+CvMEwWnpNzUnpVH9sRFtrYPOI+ZRQeN4HJ1OE8TvjN06y+xIRmL00okopywPAdRNtxbXhU+LJXnqo/r4VZXEyWHME3fuQdGAQfJjr9Uwi4Jwtd8thcSaJyC4Oig/bUkmkU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713344677; c=relaxed/simple; bh=7QolzLj9sOposFuoEX+8jUHaH3lwhpg4u6WkeAJRYBg=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type; b=e28IyAmlfmeJFE2oc1CRWaZj82WCG/1Z7YoDq1zO6gZ4ixpZA9MfuByRpy0r/n3xfOn/i2v8GJhPIyDOkUUWMSbbT9DICnmRNq1auCj1WbbL7Z3/HVUvyGgk8BtlSRZ6jn4r36wwnWPfMufQCp0f5qpAsXV37aIto7K5tujNDqA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org; spf=pass smtp.mailfrom=mainlining.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b=srN8XFks; arc=none smtp.client-ip=94.241.141.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mainlining.org Received: from localhost (docker-mailserver-web-1.docker-mailserver_default [172.18.0.7]) by mail.mainlining.org (Postfix) with ESMTPSA id A6D39E2100; Wed, 17 Apr 2024 09:04:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mainlining.org; s=psm; t=1713344663; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=quVV6U2MRgnQC60YlJV81e/ef5YER8QUEqFEocp014k=; b=srN8XFksuZWSirnniB/PWM5MhF0Ykl87jX7idybXGrWexSzv+sxYF/q9Q3I6GHU9WCGH7Y Y1uavHcNnrUcOgp5AAvC1LSxtlgKxPIeAs4Wg6hxnn9uUciKVOB38SXt6tbDcc9AC7pMRH h8tWV5ZPd5DlPn13phq8SYvNYbxm1JjylNE1aqK5TZywtvRHe88ozHZsgqy1ycAGDhibDs t4ysJHo5Gi4BVGOtsuXgvss46LuVQFFh0XCT/VBtTaNXFo0Rbp9g5cKRiJNSR5XfQGAtmz nN0tgzm2qlXEePXnDhx+SdpoVYLE7jAN6TgV4FtkTe9LLf+6dUUte6/Dc7cBWQ== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Wed, 17 Apr 2024 11:04:23 +0200 From: David Wronek To: Konrad Dybcio Cc: James Schulman , David Rhodes , Richard Fitzgerald , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ricardo Rivera-Matos , Bjorn Andersson , Abel Vesa , Sai Prakash Ranjan , Neil Armstrong , Kees Cook , Tony Luck , "Guilherme G. Piccoli" , Marijn Suijten , alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH 7/7] arm64: dts: qcom: Add SM8550 Xperia 1 V In-Reply-To: <20240210-topic-1v-v1-7-fda0db38e29b@linaro.org> References: <20240210-topic-1v-v1-0-fda0db38e29b@linaro.org> <20240210-topic-1v-v1-7-fda0db38e29b@linaro.org> Message-ID: <27d8df63a83349d48d577fa8614a0c15@mainlining.org> X-Sender: david@mainlining.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit W dniu 2024-02-12 14:10, Konrad Dybcio napisaƂ(a): > Add support for Sony Xperia 1 V, a.k.a PDX234. This device is a part > of the SoMC SM8550 Yodo platform. > > This commit brings support for: > * Remoteprocs (sans modem for now) > * Flash LED (the notification LED is gone :((((() > * SD Card > * USB (*including SuperSpeed*) + PMIC_GLINK (it's funky, requires a > replug > with an cable flip sometimes..) > * Most regulators > * Part of I2C-connected peripherals (notably no touch due to a > driver bug) > * PCIe0 (PCIe1 is unused) > > Do note display via simplefb is not supported, as the display is > blanked > upon exiting XBL. > I also noticed such behaviour on my S24 Ultra. I was pointed out by Xilin Wu that on SM8450 or newer, the display will be turned off by the bootloader if the node '/reserved-memory/splash_region' does not exist in the device tree. Adding it in the device tree for my phone made the bootloader leave the display on. Maybe it's the same case here? https://git.codelinaro.org/clo/la/abl/tianocore/edk2/-/blob/LA.VENDOR.1.0.r2-09400-WAIPIO.QSSI14.0/QcomModulePkg/Library/BootLib/UpdateDeviceTree.c?ref_type=tags#L220 > To create a working boot image, you need to run: > cat arch/arm64/boot/Image.gz > arch/arm64/boot/dts/qcom/sm8550-sony-xperia-\ > yodo-pdx234.dtb > .Image.gz-dtb > > mkbootimg \ > --kernel .Image.gz-dtb \ > --ramdisk some_initrd.img \ > --pagesize 4096 \ > --base 0x0 \ > --kernel_offset 0x8000 \ > --ramdisk_offset 0x1000000 \ > --tags_offset 0x100 \ > --cmdline "SOME_CMDLINE" \ > --dtb_offset 0x1f00000 \ > --header_version 2 \ > -o boot.img-sony-xperia-pdx234 > > Then, you need to flash it on the device and get rid of all the > vendor_boot/dtbo mess: > > // You have to either pull vbmeta{"","_system"} from > // /dev/block/bootdevice/by-name/ or build one as a part of AOSP build > process > fastboot --disable-verity --disable-verification flash vbmeta > vbmeta.img > fastboot --disable-verity --disable-verification flash vbmeta_system \ > vbmeta_system.img > > fastboot flash boot boot.img-sony-xperia-pdx234 > fastboot erase vendor_boot > fastboot erase recovery > fastboot flash dtbo emptydtbo.img > fastboot erase init_boot // ? I don't remember if it's necessary, sorry > fastboot continue > > Where emptydtbo.img is a tiny file that consists of 2 bytes (all > zeroes), doing > a "fastboot erase" won't cut it, the bootloader will go crazy and > things will > fall apart when it tries to overlay random bytes from an empty > partition onto a > perfectly good appended DTB. > > Signed-off-by: Konrad Dybcio > --- > arch/arm64/boot/dts/qcom/Makefile | 1 + > .../dts/qcom/sm8550-sony-xperia-yodo-pdx234.dts | 779 > +++++++++++++++++++++ > 2 files changed, 780 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/Makefile > b/arch/arm64/boot/dts/qcom/Makefile > index f7c5662213e4..9bbea531660d 100644 > --- a/arch/arm64/boot/dts/qcom/Makefile > +++ b/arch/arm64/boot/dts/qcom/Makefile > @@ -237,6 +237,7 @@ dtb-$(CONFIG_ARCH_QCOM) += > sm8450-sony-xperia-nagara-pdx224.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm8550-hdk.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm8550-mtp.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm8550-qrd.dtb > +dtb-$(CONFIG_ARCH_QCOM) += sm8550-sony-xperia-yodo-pdx234.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm8650-mtp.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm8650-qrd.dtb > dtb-$(CONFIG_ARCH_QCOM) += x1e80100-crd.dtb > diff --git > a/arch/arm64/boot/dts/qcom/sm8550-sony-xperia-yodo-pdx234.dts > b/arch/arm64/boot/dts/qcom/sm8550-sony-xperia-yodo-pdx234.dts > new file mode 100644 > index 000000000000..85e0d3d66e16 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sm8550-sony-xperia-yodo-pdx234.dts > @@ -0,0 +1,779 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2023, Linaro Limited > + */ > + > +/dts-v1/; > + > +#include > +#include > +#include > +#include > +#include > +#include "sm8550.dtsi" > +#include "pm8010.dtsi" > +#include "pm8550.dtsi" > +#include "pm8550b.dtsi" > +#define PMK8550VE_SID 5 > +#include "pm8550ve.dtsi" > +#include "pm8550vs.dtsi" > +#include "pmk8550.dtsi" > +/* TODO: Only one SID of PMR735D seems accessible? */ > + > +/delete-node/ &hwfence_shbuf; > +/delete-node/ &mpss_mem; > +/delete-node/ &rmtfs_mem; > +/ { > + model = "Sony Xperia 1 V"; > + compatible = "sony,pdx234", "qcom,sm8550"; > + chassis-type = "handset"; > + > + aliases { > + i2c0 = &i2c0; > + i2c4 = &i2c4; > + i2c10 = &i2c10; > + i2c11 = &i2c11; > + i2c16 = &i2c_hub_2; > + serial0 = &uart7; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + label = "gpio-keys"; > + > + pinctrl-0 = <&focus_n &snapshot_n &vol_down_n>; > + pinctrl-names = "default"; > + > + key-camera-focus { > + label = "Camera Focus"; > + linux,code = ; > + gpios = <&pm8550b_gpios 8 GPIO_ACTIVE_LOW>; > + debounce-interval = <15>; > + linux,can-disable; > + wakeup-source; > + }; > + > + key-camera-snapshot { > + label = "Camera Snapshot"; > + gpios = <&pm8550b_gpios 7 GPIO_ACTIVE_LOW>; > + linux,code = ; > + debounce-interval = <15>; > + linux,can-disable; > + wakeup-source; > + }; > + > + key-volume-down { > + label = "Volume Down"; > + linux,code = ; > + gpios = <&pm8550_gpios 6 GPIO_ACTIVE_LOW>; > + debounce-interval = <15>; > + linux,can-disable; > + wakeup-source; > + }; > + }; > + > + pmic-glink { > + compatible = "qcom,sm8550-pmic-glink", "qcom,pmic-glink"; > + orientation-gpios = <&tlmm 11 GPIO_ACTIVE_HIGH>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + connector@0 { > + compatible = "usb-c-connector"; > + reg = <0>; > + power-role = "dual"; > + data-role = "dual"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + > + pmic_glink_hs_in: endpoint { > + remote-endpoint = <&usb_1_dwc3_hs>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + > + pmic_glink_ss_in: endpoint { > + remote-endpoint = <&usb_dp_qmpphy_out>; > + }; > + }; > + }; > + }; > + }; > + > + reserved-memory { > + mpss_mem: mpss-region@89800000 { > + reg = <0x0 0x89800000 0x0 0x10800000>; > + no-map; > + }; > + > + splash@b8000000 { > + reg = <0x0 0xb8000000 0x0 0x2b00000>; > + no-map; > + }; > + > + hwfence_shbuf: hwfence-shbuf-region@e6440000 { > + reg = <0x0 0xe6440000 0x0 0x2dd000>; > + no-map; > + }; > + > + rmtfs_mem: memory@f8b00000 { > + compatible = "qcom,rmtfs-mem"; > + reg = <0x0 0xf8b00000 0x0 0x280000>; > + no-map; > + > + qcom,client-id = <1>; > + qcom,vmid = ; > + }; > + > + ramoops@ffd00000 { > + compatible = "ramoops"; > + reg = <0x0 0xffd00000 0x0 0xc0000>; > + console-size = <0x40000>; > + record-size = <0x1000>; > + pmsg-size = <0x40000>; > + ecc-size = <16>; > + }; > + > + rdtag-store-region@ffdc0000 { > + reg = <0x0 0xffdc0000 0x0 0x40000>; > + no-map; > + }; > + }; > + > + vph_pwr: vph-pwr-regulator { > + compatible = "regulator-fixed"; > + regulator-name = "vph_pwr"; > + regulator-min-microvolt = <3700000>; > + regulator-max-microvolt = <3700000>; > + > + regulator-always-on; > + regulator-boot-on; > + }; > +}; > + > +&apps_rsc { > + regulators-0 { > + compatible = "qcom,pm8550-rpmh-regulators"; > + qcom,pmic-id = "b"; > + > + pm8550_bob1: bob1 { > + regulator-name = "pm8550_bob1"; > + regulator-min-microvolt = <3416000>; > + regulator-max-microvolt = <3960000>; > + regulator-initial-mode = ; > + }; > + > + /* TODO: bob2 @ 2.704-3.008V doesn't fall into the vreg driver > constraints */ > + > + pm8550_l1: ldo1 { > + regulator-name = "pm8550_l1"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-initial-mode = ; > + }; > + > + pm8550_l2: ldo2 { > + regulator-name = "pm8550_l2"; > + regulator-min-microvolt = <3008000>; > + regulator-max-microvolt = <3008000>; > + regulator-initial-mode = ; > + }; > + > + /* L4 exists in cmd-db, but the board seems to crash on access */ > + > + pm8550_l5: ldo5 { > + regulator-name = "pm8550_l5"; > + regulator-min-microvolt = <3104000>; > + regulator-max-microvolt = <3104000>; > + regulator-initial-mode = ; > + }; > + > + pm8550_l6: ldo6 { > + regulator-name = "pm8550_l6"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <3008000>; > + regulator-initial-mode = ; > + }; > + > + pm8550_l7: ldo7 { > + regulator-name = "pm8550_l7"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <3008000>; > + regulator-initial-mode = ; > + }; > + > + pm8550_l8: ldo8 { > + regulator-name = "pm8550_l8"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <3008000>; > + regulator-initial-mode = ; > + }; > + > + pm8550_l9: ldo9 { > + regulator-name = "pm8550_l9"; > + regulator-min-microvolt = <2960000>; > + regulator-max-microvolt = <3008000>; > + regulator-initial-mode = ; > + }; > + > + pm8550_l10: ldo10 { > + regulator-name = "pm8550_l10"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-initial-mode = ; > + }; > + > + pm8550_l11: ldo11 { > + regulator-name = "pm8550_l11"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1504000>; > + regulator-initial-mode = ; > + }; > + > + pm8550_l12: ldo12 { > + regulator-name = "pm8550_l12"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-initial-mode = ; > + }; > + > + pm8550_l13: ldo13 { > + regulator-name = "pm8550_l13"; > + regulator-min-microvolt = <3000000>; > + regulator-max-microvolt = <3000000>; > + regulator-initial-mode = ; > + }; > + > + pm8550_l14: ldo14 { > + regulator-name = "pm8550_l14"; > + regulator-min-microvolt = <3304000>; > + regulator-max-microvolt = <3304000>; > + regulator-initial-mode = ; > + }; > + > + pm8550_l15: ldo15 { > + regulator-name = "pm8550_l15"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-initial-mode = ; > + }; > + > + pm8550_l16: ldo16 { > + regulator-name = "pm8550_l16"; > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + regulator-initial-mode = ; > + }; > + > + pm8550_l17: ldo17 { > + regulator-name = "pm8550_l17"; > + regulator-min-microvolt = <2504000>; > + regulator-max-microvolt = <2504000>; > + regulator-initial-mode = ; > + }; > + }; > + > + regulators-1 { > + compatible = "qcom,pm8550vs-rpmh-regulators"; > + qcom,pmic-id = "c"; > + > + pm8550vs_0_l1: ldo1 { > + regulator-name = "pm8550vs_0_l1"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + regulator-initial-mode = ; > + }; > + > + pm8550vs_0_l3: ldo3 { > + regulator-name = "pm8550vs_0_l3"; > + regulator-min-microvolt = <880000>; > + regulator-max-microvolt = <912000>; > + regulator-initial-mode = ; > + }; > + }; > + > + regulators-2 { > + compatible = "qcom,pm8550vs-rpmh-regulators"; > + qcom,pmic-id = "d"; > + > + pm8550vs_1_l1: ldo1 { > + regulator-name = "pm8550vs_1_l1"; > + regulator-min-microvolt = <880000>; > + regulator-max-microvolt = <920000>; > + regulator-initial-mode = ; > + }; > + > + /* L3 exists in cmd-db, but the board seems to crash on access */ > + }; > + > + regulators-3 { > + compatible = "qcom,pm8550vs-rpmh-regulators"; > + qcom,pmic-id = "e"; > + > + pm8550vs_2_s4: smps4 { > + regulator-name = "pm8550vs_2_s4"; > + regulator-min-microvolt = <904000>; > + regulator-max-microvolt = <984000>; > + regulator-initial-mode = ; > + }; > + > + pm8550vs_2_s5: smps5 { > + regulator-name = "pm8550vs_2_s5"; > + regulator-min-microvolt = <1010000>; > + regulator-max-microvolt = <1120000>; > + regulator-initial-mode = ; > + }; > + > + pm8550vs_2_l1: ldo1 { > + regulator-name = "pm8550vs_2_l1"; > + regulator-min-microvolt = <880000>; > + regulator-max-microvolt = <912000>; > + regulator-initial-mode = ; > + }; > + > + pm8550vs_2_l2: ldo2 { > + regulator-name = "pm8550vs_2_l2"; > + regulator-min-microvolt = <880000>; > + regulator-max-microvolt = <968000>; > + regulator-initial-mode = ; > + }; > + > + pm8550vs_2_l3: ldo3 { > + regulator-name = "pm8550vs_2_l3"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + regulator-initial-mode = ; > + }; > + }; > + > + regulators-4 { > + compatible = "qcom,pm8550ve-rpmh-regulators"; > + qcom,pmic-id = "f"; > + > + pm8550ve_s4: smps4 { > + regulator-name = "pm8550ve_s4"; > + regulator-min-microvolt = <500000>; > + regulator-max-microvolt = <700000>; > + regulator-initial-mode = ; > + }; > + > + pm8550ve_l1: ldo1 { > + regulator-name = "pm8550ve_l1"; > + regulator-min-microvolt = <912000>; > + regulator-max-microvolt = <912000>; > + regulator-initial-mode = ; > + }; > + > + pm8550ve_l2: ldo2 { > + regulator-name = "pm8550ve_l2"; > + regulator-min-microvolt = <880000>; > + regulator-max-microvolt = <912000>; > + regulator-initial-mode = ; > + }; > + > + pm8550ve_l3: ldo3 { > + regulator-name = "pm8550ve_l3"; > + regulator-min-microvolt = <912000>; > + regulator-max-microvolt = <912000>; > + regulator-initial-mode = ; > + }; > + }; > + > + regulators-5 { > + compatible = "qcom,pm8550vs-rpmh-regulators"; > + qcom,pmic-id = "g"; > + > + pm8550vs_3_s1: smps1 { > + regulator-name = "pm8550vs_3_s1"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1300000>; > + regulator-initial-mode = ; > + }; > + > + pm8550vs_3_s2: smps2 { > + regulator-name = "pm8550vs_3_s2"; > + regulator-min-microvolt = <500000>; > + regulator-max-microvolt = <1036000>; > + regulator-initial-mode = ; > + }; > + > + pm8550vs_3_s3: smps3 { > + regulator-name = "pm8550vs_3_s3"; > + regulator-min-microvolt = <300000>; > + regulator-max-microvolt = <1004000>; > + regulator-initial-mode = ; > + }; > + > + pm8550vs_3_s4: smps4 { > + regulator-name = "pm8550vs_3_s4"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1352000>; > + regulator-initial-mode = ; > + }; > + > + pm8550vs_3_s5: smps5 { > + regulator-name = "pm8550vs_3_s5"; > + regulator-min-microvolt = <500000>; > + regulator-max-microvolt = <1004000>; > + regulator-initial-mode = ; > + }; > + > + pm8550vs_3_s6: smps6 { > + regulator-name = "pm8550vs_3_s6"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <2000000>; > + regulator-initial-mode = ; > + }; > + > + pm8550vs_3_l1: ldo1 { > + regulator-name = "pm8550vs_3_l1"; > + regulator-min-microvolt = <1144000>; > + regulator-max-microvolt = <1256000>; > + regulator-initial-mode = ; > + }; > + > + pm8550vs_3_l2: ldo2 { > + regulator-name = "pm8550vs_3_l2"; > + regulator-min-microvolt = <1104000>; > + regulator-max-microvolt = <1200000>; > + regulator-initial-mode = ; > + }; > + > + pm8550vs_3_l3: ldo3 { > + regulator-name = "pm8550vs_3_l3"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + regulator-initial-mode = ; > + }; > + }; > + > + /* TODO: Unknown PMIC @ k, l, PM8010 @ m, n */ > +}; > + > +&gpi_dma1 { > + status = "okay"; > +}; > + > +&gpi_dma2 { > + status = "okay"; > +}; > + > +&i2c_hub_2 { > + clock-frequency = <400000>; > + status = "okay"; > + > + pmic@75 { > + compatible = "dlg,slg51000"; > + reg = <0x75>; > + dlg,cs-gpios = <&pm8550vs_g_gpios 4 GPIO_ACTIVE_HIGH>; > + > + pinctrl-0 = <&cam_pwr_a_cs>; > + pinctrl-names = "default"; > + > + regulators { > + slg51000_a_ldo1: ldo1 { > + regulator-name = "slg51000_a_ldo1"; > + regulator-min-microvolt = <2400000>; > + regulator-max-microvolt = <3300000>; > + }; > + > + slg51000_a_ldo2: ldo2 { > + regulator-name = "slg51000_a_ldo2"; > + regulator-min-microvolt = <2400000>; > + regulator-max-microvolt = <3300000>; > + }; > + > + slg51000_a_ldo3: ldo3 { > + regulator-name = "slg51000_a_ldo3"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <3750000>; > + }; > + > + slg51000_a_ldo4: ldo4 { > + regulator-name = "slg51000_a_ldo4"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <3750000>; > + }; > + > + slg51000_a_ldo5: ldo5 { > + regulator-name = "slg51000_a_ldo5"; > + regulator-min-microvolt = <500000>; > + regulator-max-microvolt = <1200000>; > + }; > + > + slg51000_a_ldo6: ldo6 { > + regulator-name = "slg51000_a_ldo6"; > + regulator-min-microvolt = <500000>; > + regulator-max-microvolt = <1200000>; > + }; > + > + slg51000_a_ldo7: ldo7 { > + regulator-name = "slg51000_a_ldo7"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <3750000>; > + }; > + }; > + }; > +}; > + > +&i2c_master_hub_0 { > + status = "okay"; > +}; > + > +&i2c0 { > + clock-frequency = <1000000>; > + status = "okay"; > + > + /* NXP NFC @ 28 */ > +}; > + > +&i2c4 { > + clock-frequency = <400000>; > + status = "okay"; > + > + /* LX Semi SW82907 touchscreen @ 28 */ > +}; > + > +&i2c10 { > + clock-frequency = <1000000>; > + status = "okay"; > + > + /* Cirrus Logic CS40L25A boosted haptics driver @ 40 */ > +}; > + > +&i2c11 { > + clock-frequency = <1000000>; > + status = "okay"; > + > + cs35l41_l: speaker-amp@30 { > + compatible = "cirrus,cs35l45"; > + reg = <0x30>; > + interrupts-extended = <&tlmm 182 IRQ_TYPE_LEVEL_LOW>; > + reset-gpios = <&tlmm 183 GPIO_ACTIVE_HIGH>; > + cirrus,asp-sdout-hiz-ctrl = <(CS35L45_ASP_TX_HIZ_UNUSED | > CS35L45_ASP_TX_HIZ_DISABLED)>; > + #sound-dai-cells = <1>; > + > + cirrus,gpio-ctrl2 { > + gpio-ctrl = <0x2>; > + }; > + }; > + > + cs35l41_r: speaker-amp@31 { > + compatible = "cirrus,cs35l45"; > + reg = <0x31>; > + interrupts-extended = <&tlmm 182 IRQ_TYPE_LEVEL_LOW>; > + reset-gpios = <&tlmm 183 GPIO_ACTIVE_HIGH>; > + cirrus,asp-sdout-hiz-ctrl = <(CS35L45_ASP_TX_HIZ_UNUSED | > CS35L45_ASP_TX_HIZ_DISABLED)>; > + #sound-dai-cells = <1>; > + > + cirrus,gpio-ctrl2 { > + gpio-ctrl = <0x2>; > + }; > + }; > +}; > + > +&pcie0 { > + wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; > + perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; > + > + pinctrl-0 = <&pcie0_default_state>; > + pinctrl-names = "default"; > + > + status = "okay"; > +}; > + > +&pcie0_phy { > + vdda-phy-supply = <&pm8550vs_2_l1>; > + vdda-pll-supply = <&pm8550vs_2_l3>; > + > + status = "okay"; > +}; > + > +&pm8550_flash { > + status = "okay"; > + > + led-0 { > + function = LED_FUNCTION_FLASH; > + color = ; > + led-sources = <1>, <4>; > + led-max-microamp = <500000>; > + flash-max-microamp = <1000000>; > + flash-max-timeout-us = <1280000>; > + function-enumerator = <0>; > + }; > + > + led-1 { > + function = LED_FUNCTION_FLASH; > + color = ; > + led-sources = <2>, <3>; > + led-max-microamp = <500000>; > + flash-max-microamp = <1000000>; > + flash-max-timeout-us = <1280000>; > + function-enumerator = <1>; > + }; > +}; > + > +&pm8550_gpios { > + vol_down_n: volume-down-n-state { > + pins = "gpio6"; > + function = "normal"; > + power-source = <1>; > + bias-pull-up; > + input-enable; > + }; > + > + sdc2_card_det_n: sd-card-det-n-state { > + pins = "gpio12"; > + function = "normal"; > + power-source = <1>; > + bias-pull-down; > + output-disable; > + input-enable; > + }; > +}; > + > +&pm8550b_gpios { > + snapshot_n: snapshot-n-state { > + pins = "gpio7"; > + function = "normal"; > + power-source = <1>; > + bias-pull-up; > + input-enable; > + }; > + > + focus_n: focus-n-state { > + pins = "gpio8"; > + function = "normal"; > + power-source = <1>; > + bias-pull-up; > + input-enable; > + }; > +}; > + > +&pm8550vs_g_gpios { > + cam_pwr_a_cs: cam-pwr-a-cs-state { > + pins = "gpio4"; > + function = "normal"; > + power-source = <0x01>; > + drive-push-pull; > + output-low; > + qcom,drive-strength = ; > + }; > +}; > + > +&pm8550b_eusb2_repeater { > + qcom,tune-usb2-disc-thres = /bits/ 8 <0x6>; > + qcom,tune-usb2-amplitude = /bits/ 8 <0xf>; > + qcom,tune-usb2-preem = /bits/ 8 <0x7>; > + vdd18-supply = <&pm8550_l15>; > + vdd3-supply = <&pm8550_l5>; > +}; > + > +&pon_pwrkey { > + status = "okay"; > +}; > + > +&pon_resin { > + linux,code = ; > + status = "okay"; > +}; > + > +&qupv3_id_0 { > + status = "okay"; > +}; > + > +&qupv3_id_1 { > + status = "okay"; > +}; > + > +&remoteproc_adsp { > + firmware-name = "qcom/sm8550/Sony/yodo/adsp.mbn", > + "qcom/sm8550/Sony/yodo/adsp_dtb.mbn"; > + status = "okay"; > +}; > + > +&remoteproc_cdsp { > + firmware-name = "qcom/sm8550/Sony/yodo/cdsp.mbn", > + "qcom/sm8550/Sony/yodo/cdsp_dtb.mbn"; > + status = "okay"; > +}; > + > +&sdhc_2 { > + cd-gpios = <&pm8550_gpios 12 GPIO_ACTIVE_HIGH>; > + pinctrl-0 = <&sdc2_default &sdc2_card_det_n>; > + pinctrl-1 = <&sdc2_sleep &sdc2_card_det_n>; > + pinctrl-names = "default", "sleep"; > + vmmc-supply = <&pm8550_l9>; > + vqmmc-supply = <&pm8550_l8>; > + no-sdio; > + no-mmc; > + status = "okay"; > +}; > + > +&sleep_clk { > + clock-frequency = <32000>; > +}; > + > +&tlmm { > + gpio-reserved-ranges = <32 8>; > +}; > + > +&uart7 { > + status = "okay"; > +}; > + > +&usb_1 { > + status = "okay"; > +}; > + > +&usb_1_dwc3 { > + dr_mode = "otg"; > + usb-role-switch; > +}; > + > +&usb_1_dwc3_hs { > + remote-endpoint = <&pmic_glink_hs_in>; > +}; > + > +&usb_1_dwc3_ss { > + remote-endpoint = <&usb_dp_qmpphy_usb_ss_in>; > +}; > + > +&usb_1_hsphy { > + vdd-supply = <&pm8550vs_2_l1>; > + vdda12-supply = <&pm8550vs_2_l3>; > + phys = <&pm8550b_eusb2_repeater>; > + > + status = "okay"; > +}; > + > +&usb_dp_qmpphy { > + vdda-phy-supply = <&pm8550vs_2_l3>; > + vdda-pll-supply = <&pm8550ve_l3>; > + orientation-switch; > + > + status = "okay"; > +}; > + > +&usb_dp_qmpphy_out { > + remote-endpoint = <&pmic_glink_ss_in>; > +}; > + > +&usb_dp_qmpphy_usb_ss_in { > + remote-endpoint = <&usb_1_dwc3_ss>; > +}; > + > +&xo_board { > + clock-frequency = <76800000>; > +}; -- Best regards, David Wronek