Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2144643rwr; Sat, 6 May 2023 05:47:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4vbpcq4RD56dfA5yo5XoEgGJzNn849lZje2noEZ8SC46+BDDjsaAqyYhxgHtBJczy+EjDl X-Received: by 2002:a05:6a00:a81:b0:62d:8376:3712 with SMTP id b1-20020a056a000a8100b0062d83763712mr6659268pfl.28.1683377257382; Sat, 06 May 2023 05:47:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683377257; cv=none; d=google.com; s=arc-20160816; b=zEWPDLauPNTxUxPAsd08u0AbbzLm9AsmgfL9OG07gO+NajpbTOtLuAegFhRgkYU3Yt g/VDboHMNSENIck78wJgRlFUir2y5uRSk+g4PGYtgBNrzUJLFnGWdKJFOQuHJDNTW7Ag zGmWWhe1y4X3lZuVUvYtxQ/1sy43WQsZwJDG9leAB5/2DbnpZ2naTXdlniM1uitNt7bq 9Cu2t9v2CdUQ05gyM5RwkmknKhr01sdRNO7El4Qjx++l3icjQRAEMd1uymRWd0Q9ivBb zs8FKsZXPY+s6oS7HH0tXYxDBxf2IKKlkT6bYZ2D5dlvSSpbwG1ZwD9mprclj1vlIojh 5Giw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=OUDagiW7UckkdR32TMqC1U7AToV7XXnlxtT8unY2FCc=; b=TQtdaY5SMCHl7hCYrdhbc2ePbyCgQl05X3d3dVckoMw+oZmpewy4ejIUzXzkRo5JV2 k3xayUouUo7mrPKcL2j/vy4X6hZMw0FAGddV5fnhKpQonQU1e4/4sORJM0hrx797Z26x SRMDBVIhI+87rZGKuXE4dfkT3b4wEF7iYNRB75YntsMwWx8EBivb4cWIenKD2n3HJaHZ rD05BqkkNpdAG/G9TniWy+9O8YMv6CShBF22enyDyXosHCA6C2gvCxuZ2wdvrpDUK/ZD +Ma1656zo9WjNX7rfVmuRbIgLpUl2U/JWRDutAwqPFt6tDViJKHcMJDmKK6+BFVwwSLC ES8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TtQh5dW1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x9-20020aa79569000000b0063b7acc199bsi4455786pfq.65.2023.05.06.05.47.23; Sat, 06 May 2023 05:47:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TtQh5dW1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232374AbjEFMeC (ORCPT + 99 others); Sat, 6 May 2023 08:34:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232305AbjEFMeA (ORCPT ); Sat, 6 May 2023 08:34:00 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5331F156AE for ; Sat, 6 May 2023 05:33:58 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2ac826a1572so27002261fa.0 for ; Sat, 06 May 2023 05:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683376436; x=1685968436; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=OUDagiW7UckkdR32TMqC1U7AToV7XXnlxtT8unY2FCc=; b=TtQh5dW1tnaYHQC+E9VwtKcjJMjAdRN0rj/Swc4+1sk5GAdEKh1Hdj9It7LoygwJ2p rSlxE+t3PCa+spa04/dKfqpe4pMMZEk74R3h/clf72/MvYnqKkNH0rXA0ZmK+F78Ize7 R8f7NsSpuFqbFgUbbOoc+BXYMUMxtRMo7fHb9s9vdKp/3Bc2JE3FCLV0Zx2jdzg1S26R MOuiuOyN1ipHz41mrGX8WfrIN/xH/h8cDcCfFHQYKWt6QEeDzCmGE7hCcLP9wsrTBImZ dN0QYchNzTcqFgA7ZZNsmw+jlk4B4+5fWNjd40uW+/jfDMpQ30lUWSyOcYRyZlk5iq79 t0qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683376436; x=1685968436; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OUDagiW7UckkdR32TMqC1U7AToV7XXnlxtT8unY2FCc=; b=BbknbhqPiav+bgPlAJhu/LpEEpGmoRwhRbj6jpcg24aB5weAGga+DkvK08hXf0Fma1 qmLiboc+VN+DN1FYpn3IGNNJZi384eM+MbXhmiwnvQQgYEOMzAAYu9x0YcACOtmV6mvD ckQXdGncPxfsQtQmzG/fqHSDOIO0JrUysGMqEE5u1WJJjo1KtljD2q8fXEG4XTRnmh0u lhf0/q088MZSjen88gdDGJBbCOYUGrJIroK4D9gLznWacSBpya0I36nhPM5YfgADLTd9 43aC3FTzacSbRY/dF/dnyDvPVzuWavVlCyDJ2nvPJ+iPtbFha2BUSbgBQZ8AKfx7FcGN JAtQ== X-Gm-Message-State: AC+VfDyvWZgHik3U5czBB4TIcBeKFOokKOKyXbY3WQzWkMR0EKp2Flk7 aBQk4zeInhXdpTeTDG46i2dYyQ== X-Received: by 2002:a2e:8002:0:b0:2a7:acb7:cabc with SMTP id j2-20020a2e8002000000b002a7acb7cabcmr1191795ljg.40.1683376436572; Sat, 06 May 2023 05:33:56 -0700 (PDT) Received: from ?IPV6:2001:14ba:a0db:1f00::8a5? (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id a8-20020ac25208000000b004eb0c12df21sm643606lfl.128.2023.05.06.05.33.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 06 May 2023 05:33:56 -0700 (PDT) Message-ID: Date: Sat, 6 May 2023 15:33:55 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2 1/2] arm64: dts: qcom: Add Fxtec Pro1X (QX1050) DTS Content-Language: en-GB To: Konrad Dybcio Cc: Dang Huynh , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230505-fxtec-pro1x-support-v2-0-0ea2378ba9ae@riseup.net> <20230505-fxtec-pro1x-support-v2-1-0ea2378ba9ae@riseup.net> From: Dmitry Baryshkov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/05/2023 15:30, Konrad Dybcio wrote: > > > On 6.05.2023 13:48, Dmitry Baryshkov wrote: >> On Fri, 5 May 2023 at 21:41, Konrad Dybcio wrote: >>> >>> >>> >>> On 5.05.2023 19:12, Dang Huynh wrote: >>>> The F(x)tec Pro1X is a mobile phone released by FX Technologies Ltd >>>> in 2022. >>>> >>>> The phone is exactly the same as the Pro1 released in 2019 with some >>>> changes: >>>> - MSM8998 -> SM6115 >>>> - Camera button is no longer multistate >>>> - Only one 48MP back camera >>>> - A new keyboard layout picked by the community. >>>> >>>> This commit has the following features working: >>>> - Display (using simplefb) >>>> - UFS >>>> - Power and volume buttons >>>> - Pinctrl >>>> - RPM Regulators >>>> - USB (Device Mode) >>>> >>>> To get a successful boot run: >>>> >>>> cat arch/arm64/boot/Image.gz arch/arm64/boot/dts/qcom/\ >>>> sm6115-fxtec-pro1x.dtb > .Image.gz-dtb >>>> >>>> mkbootimg --kernel .Image.gz-dtb \ >>>> --ramdisk initrd.img \ >>>> --base 0x0 \ >>>> --kernel_offset 0x8000 \ >>>> --ramdisk_offset 0x1000000 \ >>>> --second_offset 0xf00000 \ >>>> --tags_offset 0x100 \ >>>> --pagesize 4096 \ >>>> --cmdline "CMDLINE HERE" \ >>>> -o qx1050-boot.img >>>> >>>> fastboot flash boot qx1050-boot.img >>>> fastboot erase dtbo >>>> fastboot reboot >>>> >>>> Signed-off-by: Dang Huynh >>>> --- >>>> arch/arm64/boot/dts/qcom/Makefile | 1 + >>>> arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts | 248 ++++++++++++++++++++++++ >>>> 2 files changed, 249 insertions(+) >>>> >>>> diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile >>>> index d42c59572ace..e311ba675f35 100644 >>>> --- a/arch/arm64/boot/dts/qcom/Makefile >>>> +++ b/arch/arm64/boot/dts/qcom/Makefile >>>> @@ -174,6 +174,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sdm845-shift-axolotl.dtb >>>> dtb-$(CONFIG_ARCH_QCOM) += sdm850-lenovo-yoga-c630.dtb >>>> dtb-$(CONFIG_ARCH_QCOM) += sdm850-samsung-w737.dtb >>>> dtb-$(CONFIG_ARCH_QCOM) += sm4250-oneplus-billie2.dtb >>>> +dtb-$(CONFIG_ARCH_QCOM) += sm6115-fxtec-pro1x.dtb >>>> dtb-$(CONFIG_ARCH_QCOM) += sm6115p-lenovo-j606f.dtb >>>> dtb-$(CONFIG_ARCH_QCOM) += sm6125-sony-xperia-seine-pdx201.dtb >>>> dtb-$(CONFIG_ARCH_QCOM) += sm6125-xiaomi-laurel-sprout.dtb >>>> diff --git a/arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts b/arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts >>>> new file mode 100644 >>>> index 000000000000..a9ff1d9534ae >>>> --- /dev/null >>>> +++ b/arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts >>>> @@ -0,0 +1,248 @@ >>>> +// SPDX-License-Identifier: GPL-2.0-only >>> I'm not a licensing expert, but fyi sm6115.dtsi uses (GPL2+ & BSD3) >> >> Yes, we usually ask for the DTs to be dual-licensed, since they may be >> e.g. used or distributed as a part of the bootloader. >> >>> >> >> [skipped] >> >>>> + >>>> +&rpm_requests { >>>> + pm6125-regulators { >>>> + compatible = "qcom,rpm-pm6125-regulators"; >>>> + >>>> + vreg_s6a: s6 { >>> You can keep the PMIC name apparent by renaming vreg_s6a to >>> pm6125_s6 etc. >> >> Hmm, we were usually using the resource-name here, > Yeah, but on smd rpm a "resource name" is a very vague concept, > you have a "path" to a resource (which is resolved internally by RPM), > then there's a "type", "key" and "id" > > so vreg_s6a is fine >> (usually it would be vreg_s6a_0p3 or vreg_s6a_1p5). > That naming is *very* problematic if your device isn't a dragonboard/RBx > where you can look up the schematics and leads to a lot of confusion, as > you can't really be sure what voltages are correct until you can confirm > everything works properly on the board :/ Fully agree here. I just wanted to point out that vreg_s6a is also a frequently used alias. > > > Konrad >> >>> >>> Konrad >>>> + regulator-min-microvolt = <304000>; >>>> + regulator-max-microvolt = <1456000>; >>>> + }; >> -- With best wishes Dmitry