Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2096994rwr; Sat, 6 May 2023 05:01:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7mrxCZzGI03pCSVQu71Br2b2Jp5NeY0ejRKJj3fT2TzeWbQo6Zx4A7/sj55wXFDb3iT+lT X-Received: by 2002:a05:6a20:7490:b0:e4:b52:76c9 with SMTP id p16-20020a056a20749000b000e40b5276c9mr6147033pzd.23.1683374460301; Sat, 06 May 2023 05:01:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683374460; cv=none; d=google.com; s=arc-20160816; b=MW22QVfdw0k8+/v6MKWXQMEKx1hzUiEiuUbs90DEFHrycp/Nyj7el9wJ0tD/Tf/JwU FRUxsnNN8ktshsBZDpw3t3NBImmw4NuIvGWST9q8o+TLbcsq0KSTLxUfn7B/Alx/siQV Q0fn5XMqeOuZn/q0OmYAa8IgjoAlr8AuAw8vGH+4QaM2ump/3pllZLO4WF+fZ/I69M8q DiW1p3svsUIOloyzetdUsHjQsZUTH1h42uyYLelyQCGuyqZlV93Nh1+Qz+gWsyO+j9+2 z0JxCW+0lrnsb88DLesBywS/NyRN9wt4Tskb2ZUhCPaqm56eDEEbeIE4Bi0CjDMeCE9w Xc+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xXhdre3g6H6MxYfxQGqp7f/RjF8xgr6/bS/OJWM+1K0=; b=Wsc+iJWwu0H577jLxUoE2OiJHs1ZzYQ5PrOjzvUUUVlwHNFRrvge4xgp9PWVIpsWRc u8qIHgR2baOAuSTJeYa8qGQBo7v2KDau4jjY/3iPgx972RKuY3ksfU2CaNvSXjvG8/ny ptkuxJN36w+ZE+d/C1Y/5kjKR9LQLhOXVs6W8S6gnWwW21Hc38tuHgpzV1aMhLVLaCJ/ exZPNwATrVTEEvwtxXmD9lly+1mS1yuQ04OLi6YA2MmA5SUUug14jH+8Qr7UgHvranNH 3Jm9dDZSR9AH3yN1HnrcZR/uDF9FfAJwZU7oXBmPTZj4IFFyJ6tXc5qbU6JcQHQrDZ1k 9HJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MQA9OcXb; 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 q4-20020a638c44000000b0052c27a0125bsi3853945pgn.738.2023.05.06.05.00.45; Sat, 06 May 2023 05:01:00 -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=MQA9OcXb; 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 S231584AbjEFLsx (ORCPT + 99 others); Sat, 6 May 2023 07:48:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231639AbjEFLsv (ORCPT ); Sat, 6 May 2023 07:48:51 -0400 Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DA768A5E for ; Sat, 6 May 2023 04:48:49 -0700 (PDT) Received: by mail-yb1-xb30.google.com with SMTP id 3f1490d57ef6-b9a6f17f2b6so17954637276.1 for ; Sat, 06 May 2023 04:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683373728; x=1685965728; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xXhdre3g6H6MxYfxQGqp7f/RjF8xgr6/bS/OJWM+1K0=; b=MQA9OcXbL/XwwsogkZ4TESHUPK3/H6PVWHQbaJBYohKYAbVa9divMjrh24i5VM3qlu VPoFQx/k3xzIqtyQ1BD8ubBNoG0tNDyLQWbhJtJ6EwuDXMu3etuDWilDOvrKP4cBD7mR 8wwAlR9LG/gDlSBzpKvq7noxAXE3s2BzAeR9I0DRZ54nIkBzDcmyjt9hijysM+XtnQ7h Ou6nUtUiPCpSLHpUy2FzLO2W/Ddxzj2/ui8x3Tnvgzh4IFOglLN9td/lNPzKYQFa+/pP BOfEAfWhE6rL6tUmZo5Q/gStZl/1ezuiY2C+D5lYWzFvcSm3zewWWNJnSjzw6olfQdYq M9Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683373728; x=1685965728; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xXhdre3g6H6MxYfxQGqp7f/RjF8xgr6/bS/OJWM+1K0=; b=JcI1YNiYKDIRiiRcYaH7YQEnPEADaKzCDn8PqdS9zFaKOymklo+Hqo9aWGyzphoJth QNLNGCff3lJxFTmtnZPsJQdO8ohugjgtusdqBY3DtvOv75TvrwjD7nwgS5SA4B6lkS5M gJu3ZWApJHV6ZhCEs8v2Z+S0OpdH3VpTG+k19/UVAR04lY9CCfNCMZm85UR1/aw3SPLY /qo6WFacXYiNZNhWjaKp4xkuyD0bwHUTOpa2b2o4jEVKfiS+EMLrAthsaY/sUrngVadN PwJ0AYCiQiua48XkFyxKKwD0eyXWKQLOaDWjy/1qMxh++/wnUpzTabbjtNJIg/E9HQX6 ponA== X-Gm-Message-State: AC+VfDwZ3Bh/MaPnwkWZKWGEGlP1G+Fp9BTr1ghs1S56GyaBRluIj762 VWFHB9Wi1LaD0zMOQfUG1rOqLG8W/ryj0U6sVX9+4g== X-Received: by 2002:a0d:e812:0:b0:559:deee:be50 with SMTP id r18-20020a0de812000000b00559deeebe50mr4862100ywe.21.1683373728242; Sat, 06 May 2023 04:48:48 -0700 (PDT) MIME-Version: 1.0 References: <20230505-fxtec-pro1x-support-v2-0-0ea2378ba9ae@riseup.net> <20230505-fxtec-pro1x-support-v2-1-0ea2378ba9ae@riseup.net> In-Reply-To: From: Dmitry Baryshkov Date: Sat, 6 May 2023 14:48:37 +0300 Message-ID: Subject: Re: [PATCH v2 1/2] arm64: dts: qcom: Add Fxtec Pro1X (QX1050) DTS 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 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, so vreg_s6a is fine (usually it would be vreg_s6a_0p3 or vreg_s6a_1p5). > > Konrad > > + regulator-min-microvolt = <304000>; > > + regulator-max-microvolt = <1456000>; > > + }; -- With best wishes Dmitry