Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1243337rwr; Fri, 5 May 2023 11:04:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6urHi7aA9Np+vaLQZePv7Eo4Z68pjQmbEhf52bqYa2F8YJclzt39F3eSuc1uR3W6P8rZw7 X-Received: by 2002:a05:6a21:380e:b0:f0:69db:ebea with SMTP id yi14-20020a056a21380e00b000f069dbebeamr1991543pzb.30.1683309859947; Fri, 05 May 2023 11:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683309859; cv=none; d=google.com; s=arc-20160816; b=TvZQiWmb0yldmnx2myq8dKm4XWkhvDam7mAU1GcIvCn5g8JnlAm0Xzvd1OlM6Q0G6R Hn+rVlbidUKlKC5lalweBiz3pOA52XCYqSuQUIyJxyokm6hUTVSk6LJ8bQmrurDS029U baevoHceLUsU2TcSMgZHzI9zAYtxFeK3o2MnMMBJG9RrX+07rp0Fcq9eCCHR/xBs1uzN Rqp7fxkthBf/4hlJhhn+pjwtLD3v8FJQWeyCmG15aUsgtnstE4cw8TINmKdENx7pt26l 54gWzEAD2br9mMigqYWo+YeAJ2ldRlahhkwUjY1fvH+UYaRgoIn+idVRUjdE10amIhNE yTTg== 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=rey0KwBHM7411diwiWKCmyMvBOFP1gJrFypl112tTpk=; b=C7ZvMj2oWhfw0UQESNTQBP60hBtnjS7xPhzKGMVNDXcbfHhpLZmGSX0fcfSTwSOqV0 J1x3jjzbbIUftdROF8ZsQ9+70bdpCve8Upab7yCmdw8VBf/16OtvDRcqc+wOYgNWGyub DrKtt39RJr26hgO0rcIF1L3poZea9mZJ/VSkCFp2M7hIj2RNBWh5LdiQ/nw82oQaSXjH xgZqNCecjGF2gMBwRB4v4+Mx/oIsG3KCb3afWNRgzv+vfHeDCxp4v3jtZeNLi6a4vyhR PSMouDHi/u4YCgfxfPrYNStP1xI6q3+swvC/1Rem/3zpOD9NrWm6S6ODkfUoLniUx4F+ 24Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="FIWg5//z"; 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 j190-20020a638bc7000000b0052c830b3069si2676043pge.461.2023.05.05.11.04.04; Fri, 05 May 2023 11:04:19 -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="FIWg5//z"; 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 S233040AbjEESAH (ORCPT + 99 others); Fri, 5 May 2023 14:00:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233223AbjEER7u (ORCPT ); Fri, 5 May 2023 13:59:50 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDDAB3588 for ; Fri, 5 May 2023 10:59:47 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-50bd2d7ba74so29458195a12.1 for ; Fri, 05 May 2023 10:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683309586; x=1685901586; 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=rey0KwBHM7411diwiWKCmyMvBOFP1gJrFypl112tTpk=; b=FIWg5//zkmQBoHwXGNqCTnDVWd1gtbUfxOhUrcgaPtk+qmt14BgBQFyKSrZ/5ymBeR RsUN1ZKzdkXoEogPG1w/QMfr6ONZDAhX3uJnIz1sweZmmPFctJ5Ag9T41uM9eK6ZHZ/I D5bza/THw4Cbb9obL5BmJ+zf/3sLWsB43QWya3eLDxV2zXY1dGmOk6V3FFVMqU+YMiHV HtuMV3JZAJlLPHp8ogDSBDZVYRvrwysgUozGtaq9/cbJAnWNCmXsruOHZl+rtTvKmbvc SoH+gHp1hRKk/lTwN/Gbq9tVZrnMHVdssuplZ7ZqEkfg7aUlhqk3/mDh6Jdo3VTK4I4l 9xRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683309586; x=1685901586; 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=rey0KwBHM7411diwiWKCmyMvBOFP1gJrFypl112tTpk=; b=jl39Hs0LO+wX6hyfn6D5JeUnCLo8RaTV6inlPlWOJV238fDUe/sOHqT1yiUarzu0LZ YAnusVQpOQWQo/RD31WEF4C5HqYdpeuNEg76mcC1+/pJzP6J0+VQz3jT+khCu0zaf5QV pcTF5rmDqTXqoAemXYW4y7Fe37KJ33mOqqIZi+LQzGAEiCTiOueXH8y9fVy0lkOH8h14 U5HLTxmi3H6YJeGi6Y/Ku+BWSHv4uKwTmiCzkz7WUgj+e04Cjz0OjXvgZCILsL9dgKbx L4wZsJ6jaulwUyCx55ZeXnL06ttNwWg9MpYvmfjJxD5uiV5KVIpUdnzS+bVRlD8i6TNl 0vQg== X-Gm-Message-State: AC+VfDzdcmxa5uwzssiIA41bqB3B8V3+8K3ilg0tMlGSqkatixnzlqgr zR6E4ArtlbtNYdKrGD/rAVYcWUjxu3nMsrPrNsKu0g== X-Received: by 2002:a17:907:9728:b0:960:ddba:e5bf with SMTP id jg40-20020a170907972800b00960ddbae5bfmr2567704ejc.0.1683309586112; Fri, 05 May 2023 10:59:46 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:52e:24ce:bbc1:127d? ([2a02:810d:15c0:828:52e:24ce:bbc1:127d]) by smtp.gmail.com with ESMTPSA id ss13-20020a170907038d00b009659fed3612sm1211351ejb.24.2023.05.05.10.59.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 May 2023 10:59:45 -0700 (PDT) Message-ID: Date: Fri, 5 May 2023 19:59:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH v2 1/2] arm64: dts: qcom: Add Fxtec Pro1X (QX1050) DTS Content-Language: en-US To: Dang Huynh , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: 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: Krzysztof Kozlowski In-Reply-To: <20230505-fxtec-pro1x-support-v2-1-0ea2378ba9ae@riseup.net> Content-Type: text/plain; charset=UTF-8 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 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 05/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 > +/* > + * Copyright (c) 2023, Dang Huynh > + */ > + > +/dts-v1/; > + > +#include "sm6115.dtsi" > +#include "pm6125.dtsi" > + > +/ { > + model = "F(x)tec Pro1X (QX1050)"; > + compatible = "fxtec,pro1x", "qcom,sm6115"; > + chassis-type = "handset"; > + > + qcom,msm-id = <417 0x10000>, <444 0x10000>; > + qcom,board-id = <34 0>; > + > + chosen { > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + framebuffer0: framebuffer@5c000000 { > + compatible = "simple-framebuffer"; > + reg = <0 0x5c000000 0 (1080 * 2160 * 4)>; > + width = <1080>; > + height = <2160>; > + stride = <(1080 * 4)>; > + format = "a8r8g8b8"; > + clocks = <&gcc GCC_DISP_HF_AXI_CLK>; > + }; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&vol_up_n>; > + > + key-volume-up { > + label = "Volume Up"; > + linux,code = ; > + gpios = <&pm6125_gpios 5 GPIO_ACTIVE_LOW>; > + debounce-interval = <15>; > + linux,can-disable; > + gpio-key,wakeup; > + }; > + }; > +}; > + > +&dispcc { > + /* HACK: disable until a panel driver is ready to retain simplefb */ > + status = "disabled"; > +}; > + > +&pm6125_gpios { > + vol_up_n: vol-up-n-state { > + pins = "gpio5"; > + function = "normal"; > + power-source = <0>; > + bias-pull-up; > + input-enable; > + }; > +}; > + > +&pon_pwrkey { > + status = "okay"; > +}; > + > +&pon_resin { > + linux,code = ; > + status = "okay"; > +}; > + > +&rpm_requests { > + pm6125-regulators { No improvements. This is a friendly reminder during the review process. It seems my previous comments were not fully addressed. Maybe my feedback got lost between the quotes, maybe you just forgot to apply it. Please go back to the previous discussion and either implement all requested changes or keep discussing them. Thank you. Best regards, Krzysztof