From patchwork Mon Nov 14 09:56:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13042017 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A267AC4332F for ; Mon, 14 Nov 2022 09:59:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237031AbiKNJ7U (ORCPT ); Mon, 14 Nov 2022 04:59:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237021AbiKNJ6j (ORCPT ); Mon, 14 Nov 2022 04:58:39 -0500 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC69B1EC6D for ; Mon, 14 Nov 2022 01:57:14 -0800 (PST) Received: by mail-lf1-x12d.google.com with SMTP id p8so18356206lfu.11 for ; Mon, 14 Nov 2022 01:57:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dRS7PBGZp4XrpSqD1cc049+5M2adrMuAS40ElKEXgN4=; b=du8uD/HdudnVC4I3bifU1xX2zSxTqtL4WLiCwoaZX2sPn4QdTRrUXnNGI4K/FnCgek Db/y4d4/DvnewgWFxxUI8TTas9JK0ljyJwNoSUZDqG/Vl2YJ99lRpYzwtrWjgfeeMC2K K2rPVgNgSi0Ejk2WYjZt7/HUY0TTox+NsUgmCr1YWrCx0O5G+bDGHi6stlo/RYdqUtaO SqzE7JHQAVPrUssoy+euIBSh7hC0v7xcSZxja3XJsrEP870e37xITFInu/0y6uSzTT1+ 7XdjQujnOp+hWM6mB6UuR2n/ldIHfGBtHmB7tmYN4YOyFLhbgHvNZIOawTn7fHLQEr6O ZmyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dRS7PBGZp4XrpSqD1cc049+5M2adrMuAS40ElKEXgN4=; b=5HizzEfGoCm+ULH5O7snz/MV6EnmnTrXJQl/GguitIpuStkaSDUYY3JCoKY2DI+m2Q bi5h39ACddwwjIgxa3/54bdfXEoeyupMVh0BH5+WC+rG629GFtJJIFSJxmaQMBiO8JUc prH6BHDbHljVSXtVJMc/UFAOnftKSwvXF4RWJzMdAkjuheItLU6hnPHNF0mD2r0VKcOc wpIjNCmugvaybXo9OpW8qaJp/s3hYWUVFfFdVdkfekaGopXZoLS8nb+W1Vt+G9WgAyfe Lzcjh6ZntzPQb/oKoPMuXwt83g/FZEnHFjvPsMrkY0HW14R658ZI159rlRS5G/gxTrFP uDuA== X-Gm-Message-State: ANoB5pm0DO2Uz6oGJ2uOaq+cO9v+sfDbN/KiLm/TawkJHFGK3qY8d7Ux 22wykFI6HS+IEqt1OxEuIlocaTHgSRssZDNr X-Google-Smtp-Source: AA0mqf6J/0GDhZ5dZx8H2IlcyFgvQTDMDmpBbEcVxbIhPmkuWQAlQ+LmWg8tm0kafcFWBm+128B2VA== X-Received: by 2002:ac2:48a4:0:b0:4a2:3955:109a with SMTP id u4-20020ac248a4000000b004a23955109amr4560892lfg.73.1668419826179; Mon, 14 Nov 2022 01:57:06 -0800 (PST) Received: from localhost.localdomain ([194.29.137.22]) by smtp.gmail.com with ESMTPSA id p12-20020a2eb98c000000b00278e7800715sm1832012ljp.16.2022.11.14.01.57.05 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 14 Nov 2022 01:57:05 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org Cc: patches@linaro.org, Konrad Dybcio , Krzysztof Kozlowski , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/4] arm64: dts: qcom: sm8450: Add Xperia 5 IV support Date: Mon, 14 Nov 2022 10:56:53 +0100 Message-Id: <20221114095654.34561-3-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20221114095654.34561-1-konrad.dybcio@linaro.org> References: <20221114095654.34561-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add a device tree for the Xperia 5 IV (pdx224). It's literally the 1 IV with a smaller body, different panel, one camera lens (not sensor afaict) swapped out and no 3D iToF sensor, hence the device-specific DT is tiny. Be sure to follow the vbmeta disablement steps (detailed in pdx223 introduction commit message), otherwise your phone will not boot and will reject anything and everything with just a non-descriptive "Your device is corrupted" followed by a sad reboot. This should not be the case, as vbmeta should be plainly ignored in unlocked state, but what can we do.. Signed-off-by: Konrad Dybcio Signed-off-by: Konrad Dybcio --- Changes since v1: - use a common suffix for the fixed regulator node name arch/arm64/boot/dts/qcom/Makefile | 1 + .../qcom/sm8450-sony-xperia-nagara-pdx224.dts | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx224.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index d534888bcfe5..804bbd070fec 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -168,3 +168,4 @@ dtb-$(CONFIG_ARCH_QCOM) += sm8350-sony-xperia-sagami-pdx215.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8450-hdk.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8450-qrd.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8450-sony-xperia-nagara-pdx223.dtb +dtb-$(CONFIG_ARCH_QCOM) += sm8450-sony-xperia-nagara-pdx224.dtb diff --git a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx224.dts b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx224.dts new file mode 100644 index 000000000000..0d64d3c0afed --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx224.dts @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, Konrad Dybcio + * Copyright (c) 2022, Linaro Limited + */ + +/dts-v1/; + +#include "sm8450-sony-xperia-nagara.dtsi" + +/ { + model = "Sony Xperia 5 IV"; + compatible = "sony,pdx224", "qcom,sm8450"; + + imx563_vdig_vreg: imx563-vdig-regulator { + compatible = "regulator-fixed"; + regulator-name = "imx563_vdig_vreg"; + gpio = <&tlmm 22 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; +};