Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp962643lqh; Fri, 29 Mar 2024 02:42:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW75cmWcg0mevWvnoW9KPxX98S4v3A0OoQQkMaFJePaoSrtq4iP8d/VuBRaqbomkQMNwf1zeuYzRUFozhOdb+FujuncCEHvw4h0xSqShA== X-Google-Smtp-Source: AGHT+IFetASYodejvz53eAp3znS3X4SOyrl9Z6YcdpJSqQZdC/jI26KlGsQaOMz1JRPxLGeIT8QX X-Received: by 2002:a05:6e02:3206:b0:366:3e54:c1e with SMTP id cd6-20020a056e02320600b003663e540c1emr1734478ilb.4.1711705361774; Fri, 29 Mar 2024 02:42:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711705361; cv=pass; d=google.com; s=arc-20160816; b=PklTZwCsjGpfOF5Wwt1IQQaRaHHlcdtfTNkpMkZ0R206AfdkARCqaSXExj5ms7iJEW KrIueKNVKKUHaRbtjtNuPWCyUpmnLj2XMKZ8NDz2dHt/Kph3ykmZUBkN0i15k/jIhJr/ RTVura7Mvqjj7MnQjL0nhYage02lz2LPAtxuFXrwh0T+VkVc0FUeayJeW713NWFjNYOP 5BTglKE2yBA9ouCry5WUoX98f9hxBlTBuoKWEVvKvZW3VLo6Qn9uOJjNmYb7UZtY6yi5 jo0myqo9gPI+J0xfTv27/2Noq3gbiv5rlt4x0Dn4zUfO8YsKsTpZSGVYaDdNderML+AQ XVDQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=90ky2frqnuFOvlqQMi/ghKyPwofOOLJUR1qU/c20GSE=; fh=TBuzJV82yAeoOf555px3u+4kJJAPKqgQWw+5zQpFYQA=; b=BhloOh5+xWf3oMde3dXw4sRr+k1+J5pYaas+qmhDE8HeJXG0Orcir0YMXG6XiGTcur 2DbKKllejBcmRs7suX/e2KDUxiQYHLdyBQxA4W3Rw57VvqO0GG596nmeUuOhYFT+7j24 lcUhNO/hJs1zRTbwWF1ARR2BGxEdefcwnDxn9dz6bn6+Vh/GEY+FGr0Uv6QzKpwD85ju MVygNw9bkoe1TTZ37aiIs6maZytUVWq4sy2hDx8pm8jq+Pgm06Pf2MQBhmTOznGwVLyx m1vyPYxZ+uzxTOS39FKmMWYhTSiNcw7fWMZwArW16DnnNVFVTSpzjRZJ6VDWkLihiPzX orVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b=qP0Osn8N; arc=pass (i=1 spf=pass spfdomain=yahoo.com dkim=pass dkdomain=yahoo.com dmarc=pass fromdomain=yahoo.com); spf=pass (google.com: domain of linux-kernel+bounces-124360-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124360-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b28-20020a63715c000000b005dc8762dce5si3431935pgn.51.2024.03.29.02.42.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 02:42:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124360-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b=qP0Osn8N; arc=pass (i=1 spf=pass spfdomain=yahoo.com dkim=pass dkdomain=yahoo.com dmarc=pass fromdomain=yahoo.com); spf=pass (google.com: domain of linux-kernel+bounces-124360-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124360-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4BE22285D82 for ; Fri, 29 Mar 2024 09:42:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7167C4879E; Fri, 29 Mar 2024 09:42:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=yahoo.com header.i=@yahoo.com header.b="qP0Osn8N" Received: from sonic312-23.consmr.mail.ne1.yahoo.com (sonic312-23.consmr.mail.ne1.yahoo.com [66.163.191.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DFD383EA8A for ; Fri, 29 Mar 2024 09:42:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.163.191.204 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711705352; cv=none; b=A3/JOtTbSME4PAQ7WjsHzm5ebiNRA3/QihggzEen3T6sJ3OUjD49C/RQVbcOeOWTlBiDEBRAsbhJTEpx0FA9Mo/ouXsRB5vR/1cyTCzG2TPXkSVaSa8FgyCoG2UxcGeXgWJYVgAvCmbCTLHPG1guwuBDrkWjDYOdOF/9kf/GYJw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711705352; c=relaxed/simple; bh=9bhZAagYnhyc0XJ059rEA+DZruPfYX0CNjIi1zz95xQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=G+wkrGDlYh/pZbmgnFiA7M+QV0JWgTSejU6Wgq+qdyX//Ssfh3Nla1k8VnMVTZ9AD49MdFtuhYifp5WQKVslTJA1jZhnNL0wRli/3NSp1SoOjaaGTbTcQJ2XlfTnYHTYW/vXCkz/9mLCqq91iL/52QqDYkg1CdBJrviiYlAA4aA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=yahoo.com; spf=pass smtp.mailfrom=yahoo.com; dkim=pass (2048-bit key) header.d=yahoo.com header.i=@yahoo.com header.b=qP0Osn8N; arc=none smtp.client-ip=66.163.191.204 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=yahoo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1711705349; bh=90ky2frqnuFOvlqQMi/ghKyPwofOOLJUR1qU/c20GSE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From:Subject:Reply-To; b=qP0Osn8NI+2sycsfgk9wKm3lIhTFhZnu1imhOf6y6JlBeSugwOxj6AIJPvsENjr3Ddlk6g9QrFHyBziSd6RvBusE6A1N/lUbRNpFAI9WAux5QNbW8IypmQXjbNclS5S8ftoEw2nG24KcvtCV9cS2e7QdIUcttBEEaV7gIjfQvdZTQXWH/iAFq+8x29wi9gHmttiA4vuY/Jw28zMMKEE1h0AqQnMts7J1UssSHvc4b5QT68k6PvknJ0SrsV4RA6Ae5SZgo9H75X5oVBqIHOQX//pekxOwTsjr+LuQ6mCARR740HKeRwweUC36N9zvmEVfTK4P/tTtTGO/VERQFrIx1g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1711705349; bh=5Lz6CX0NgTLEJzx4JHl/oxvYgMuqGaWM6umP7DpA9Yc=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject; b=G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b G2ppgVDzKqGAC.T80gGw0loIiFAj_F2EvrmA0EGHHwF0KgKvoObCj.AemNmxzrclB5ACVOnblKx3 z1F6X6Sk8Scm7oSezNvXFHS9.6j_HsNxnDfQ2F6lPQkR3AG.Lw5a6YLFV49oNZOIluQdGKwXQ49m mt_9LLfT2uQUg_sydCCg8EFKzRC.U8UlWCH5Hn_5vZL8M45BIJowqr0Klxz8ohHBcofY9WM6Z8F1 ZksSuLQR9g3Dsh5nmTdGLA37SX3tP8h.LvZyT3G5MrHr30p6X2XRBFGMg5J.P8bdiQFFuS7fIreT hCzHSq7otEpSSMhXvR9lij3vih58GM839p4we9g1jtxz7ioLdKbKNBWe2liJoScN1RuWXYgluEHV arvmz0ser5QYaydCr9dWiTOu2Jz.X.i6pWxjZPLVgDQ7gNGNu8ZIiIPizoNyl.H64TBgF_.1DTMa VrhFhBys.Ly9PB_bLoM2F.7J6y3f7BUKrEn_NqCIBI_Y9cgVY4bmC4vBMoW2YWgmoWXM- X-Sonic-MF: X-Sonic-ID: f2927a9f-48fc-4dd1-a7d5-c578f13d313c Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ne1.yahoo.com with HTTP; Fri, 29 Mar 2024 09:42:29 +0000 Received: by hermes--production-ir2-7bc88bfc75-9nfhm (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 765ec3141b99f80c289d78adc4080c41; Fri, 29 Mar 2024 09:42:24 +0000 (UTC) Message-ID: <5c9523db-0cbd-44b7-ab49-4ef0ee48dd80@yahoo.com> Date: Fri, 29 Mar 2024 10:42:22 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] V2 arm64: dts: qcom: Add support for Samsung Galaxy Z Fold5 To: Konrad Dybcio , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240329-v2-dts-add-support-for-samsung-galaxy-zfold5-v1-0-9a91e635cacc@yahoo.com> <20240329-v2-dts-add-support-for-samsung-galaxy-zfold5-v1-1-9a91e635cacc@yahoo.com> <1cdbd387-e937-4d5c-bedb-b4275fdf84cc@linaro.org> Content-Language: en-US From: Alexandru Serdeliuc In-Reply-To: <1cdbd387-e937-4d5c-bedb-b4275fdf84cc@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailer: WebService/1.1.22205 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Thanks, i added some notes inline as I do not know how to proceed with some if the requirements. Just to be noted, the sm8550-samsung-q5q.dts it is based on sm8550-mtp.dts so most of the stuff is from there On 29/3/24 1:52, Konrad Dybcio wrote: > On 29.03.2024 12:08 AM, Alexandru Marc Serdeliuc via B4 Relay wrote: >> From: Alexandru Marc Serdeliuc >> >> Add support for Samsung Galaxy Z Fold5 (q5q) foldable phone >> >> Currently working features: >> - Framebuffer >> - UFS >> - i2c >> - Buttons >> >> Signed-off-by: Alexandru Marc Serdeliuc >> --- The [PATCH] string is added automatically to the subject by b4, I don't know how to add/insert custom text in there, I am going to read the b4 docs and see if i can spot how to do it. > Your commit title now includes "V2". Move it inside the square braces the > next time around, so it's like [PATCH v3 1/2]. With b4, this should be done > automagically, though.. > > [...] > >> +/ { >> + model = "Samsung Galaxy Z Fold5"; >> + compatible = "samsung,q5q", "qcom,sm8550"; >> + #address-cells = <0x02>; >> + #size-cells = <0x02>; thanks, going to remove them > These two can go > > [...] > >> + reserved-memory { >> + /* >> + * The bootloader will only keep display hardware enabled >> + * if this memory region is named exactly 'splash_region' >> + */ this is a reality, without it the framebuffer do not work, due to abl 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 How to proceed? > Ouch. > > [...] > >> + vreg_l15b_1p8: ldo15 { >> + regulator-name = "vreg_l15b_1p8"; >> + regulator-min-microvolt = <1800000>; >> + regulator-max-microvolt = <1800000>; >> + regulator-initial-mode = ; >> + regulator-allow-set-load; >> + regulator-allowed-modes = > + RPMH_REGULATOR_MODE_HPM>; >> + regulator-always-on; I have removed the nodes that uses this as the driver for "Texas Instruments i2c eUSB2" is not yet submitted by the porter, however, those are took from the existing sm8550-mtp.dts How to proceed? > Any particular reason as to why? > > [...] > >> +&remoteproc_adsp { >> + firmware-name = "qcom/sm8550/adsp.mbn", >> + "qcom/sm8550/adsp_dtb.mbn"; >> + status = "okay"; >> +}; >> + >> +&remoteproc_cdsp { >> + firmware-name = "qcom/sm8550/cdsp.mbn", >> + "qcom/sm8550/cdsp_dtb.mbn"; >> + status = "okay"; >> +}; >> + >> +&remoteproc_mpss { >> + firmware-name = "qcom/sm8550/modem.mbn", >> + "qcom/sm8550/modem_dtb.mbn"; >> + status = "okay"; Those are took from the device's running Android /firmware and load without error, I used this kind of firmware loaded on other devices as well and seems to do the job, the lines are as well on existing sm8550-mtp.dts How to proceed? > Unless you stole one from the factory, these firmwares will not > load on your phone.. > >> +}; >> + >> +&sleep_clk { >> + clock-frequency = <32000>; >> +}; >> + >> +&tlmm { >> + gpio-reserved-ranges = <36 4>, <50 2>; I have no idea, i took the ranges fromĀ  the running Android FDT, without those ranges the kernel do not boot, i can dig more into these ranges if required > Would you have an idea what these GPIOs are used for? > > Konrad