From mboxrd@z Thu Jan 1 00:00:00 1970 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 A33A8CCA47B for ; Thu, 14 Jul 2022 12:38:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237574AbiGNMiV (ORCPT ); Thu, 14 Jul 2022 08:38:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239433AbiGNMiT (ORCPT ); Thu, 14 Jul 2022 08:38:19 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C5BD5D5B7 for ; Thu, 14 Jul 2022 05:38:16 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id u13so2582955lfn.5 for ; Thu, 14 Jul 2022 05:38:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=HQulMpi6ebVv9hyML4tItyIl5xLpbKDct7PC2mpkxeQ=; b=Y15if/WpW0q91C2Y9DNd5hKZKCLo70vZSVfKCUyH2usUhcei6e3nSqr6EwqGa2Rlnu JsosEczb63gWp6i4MT/bliv1m3JVWLpCT6kGsapwxovXu2dKkLEkzDHdNLKj7GS3/NNc XEDmDtWX3CsctxWmhtgoxO78tV7XBl9u0oQnyGuwYKWKU0W5DgQZOH3AyW1zoaa4W2kI CsFf97Y2lmpVlAKkWY9AHY12N8AUEBYZGObMCQ77degYNqIM66mbTTTcK/veUUgUUBtj 2R3g7Q4W6GAPsIHExS9egWLyPWx4EDm3RwsxnWSgLQe//GQ/eGt103J6YXBCfa3d3U3o /g6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=HQulMpi6ebVv9hyML4tItyIl5xLpbKDct7PC2mpkxeQ=; b=PfZ2C5cC+CgqpB+WLUubam2WFmPVaZ6lBoTmK+8KcJDloTO5i+oxy+WgVwYyiYj94D YS3nU8hWZsFXW1LpIqlpJr7VWT6d9lewMZB6giafp1oRTq6bbOeb5KCBvA8S0RAXY/uZ +yaejWu29XqcFiSnKXnRg6aBG5zF+PIUK+flus8aGlvzoqTEXIqIPskOqJbx1peaxVCa OQjYffJPrWTHIQdJ5640qgyJ3akwIrhU44qRsKHhP9wCCECITA8QixI0dyZL9eCN6qBq qyp+OcmuJS3j7fTRGSCRfBHFWq4yC74dLzNM9I3semQ1RlswMmuF6e5o1kTM3opU3I1K jpRA== X-Gm-Message-State: AJIora+57rX5nljft57vjcMtWE2DgIkZUR11cOZTGMIrAgYqSFptuvhw oGxi7QNC2UuLGlTKCGM3y8OyqQ== X-Google-Smtp-Source: AGRyM1uPdUxesSgoWpPZ0YuLdgLiEr1sKPKCX/u7HpTO1yuLeRFIoXnMjcyv6kwZ6ag04SvqI5RDvQ== X-Received: by 2002:a05:6512:2243:b0:489:daa1:42a3 with SMTP id i3-20020a056512224300b00489daa142a3mr4794511lfu.567.1657802294472; Thu, 14 Jul 2022 05:38:14 -0700 (PDT) Received: from [10.0.0.8] (fwa5da9-171.bb.online.no. [88.93.169.171]) by smtp.gmail.com with ESMTPSA id p4-20020a2eb984000000b0025d84b41cbasm265946ljp.121.2022.07.14.05.38.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Jul 2022 05:38:13 -0700 (PDT) Message-ID: Date: Thu, 14 Jul 2022 14:38:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2 5/5] arm64: dts: qcom: Add device tree for Sony Xperia 1 IV Content-Language: en-US To: Konrad Dybcio , ~postmarketos/upstreaming@lists.sr.ht Cc: martin.botka@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, jamipkettunen@somainline.org, Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220714123406.1919836-1-konrad.dybcio@somainline.org> <20220714123406.1919836-5-konrad.dybcio@somainline.org> From: Krzysztof Kozlowski In-Reply-To: <20220714123406.1919836-5-konrad.dybcio@somainline.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 14/07/2022 14:34, Konrad Dybcio wrote: > Add support for Sony Xperia 1 IV, a.k.a PDX223. This device is a part > of the SoMC SM8450 Nagara platform and currently it is the only > device based on that board, so no -common DTSI is created until (if?) > other Nagara devices appear. > > This commit brings support for: > * SD Card > * USB (*including SuperSpeed*) > * ADSP/CDSP/SLPI (modem remains untested for now) > * Most regulators (some GPIO-enabled ones require PMIC GPIOs but > trying to access any SPMI device crashes the device..) > * 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. > > To create a working boot image, you need to run: > cat arch/arm64/boot/Image.gz arch/arm64/boot/dts/qcom/sm8450-sony-xperia-\ > nagara-pdx223.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 1 \ > --os_version 12 \ > --os_patch_level 2022-06 \ # or newer > -o boot.img-sony-xperia-pdx223 > > 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-pdx223 > fastboot erase vendor_boot > fastboot erase recovery > fastboot flash dtbo emptydtbo.img > fastboot reboot > > 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 > --- > Changes since v1: > - remove a stray blank line > - use generic node names for CS35L41 > - fix up indentation for sdhci-caps-mask > > arch/arm64/boot/dts/qcom/Makefile | 1 + > .../qcom/sm8450-sony-xperia-nagara-pdx223.dts | 634 ++++++++++++++++++ > 2 files changed, 635 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx223.dts > Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof