public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Bjorn Andersson <andersson@kernel.org>
To: "Lin, Meng-Bo" <linmengbo0689@protonmail.com>
Cc: devicetree@vger.kernel.org, Stephan Gerhold <stephan@gerhold.net>,
	Nikita Travkin <nikita@trvn.ru>,
	Josef W Menad <JosefWMenad@protonmail.ch>,
	Markuss Broks <markuss.broks@gmail.com>,
	linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
	~postmarketos/upstreaming@lists.sr.ht, "Lin,
	Andy Gross" <agross@kernel.org>,
	Konrad Dybcio <konrad.dybcio@somainline.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Subject: Re: [PATCH v2 2/4] arm64: dts: qcom: msm8916-samsung-j5-common: Add initial common device tree
Date: Sat, 5 Nov 2022 21:56:56 -0500	[thread overview]
Message-ID: <20221106025656.5s6bwcuk2blv5tvm@builder.lan> (raw)
In-Reply-To: <20220928123816.104641-1-linmengbo0689@protonmail.com>

On Wed, Sep 28, 2022 at 12:39:46PM +0000, Lin, Meng-Bo wrote:
> The smartphones below are using the MSM8916 SoC,
> which are released in 2015-2016:
> 
> Samsung Galaxy J5 2015 (SM-J500*)
> Samsung Galaxy J5 2016 (SM-J510*)
> Samsung Galaxy J3 2016
> - SM-J3109/SM-J320Y/SM-J320YZ
> - SM-J320N0/SM-J320ZN
> - SM-J320P/SM-J320R4/SM-J320V/SM-S320VL
> 
> Add a common device tree for with initial support for:
> 

I'm afraid I don't think this, or the $subject, reflects what you're
actually doing in this change.

This should say something about moving the J5 device definition to a
common file, so that it could be reused in other related devices.

> - GPIO keys
> - SDHCI (internal and external storage)
> - USB Device Mode
> - UART (on USB connector via the SM5703 MUIC)
> - WCNSS (WiFi/BT)
> - Regulators
> 
> The three devices (some varints of J3, all other variants of J5 released
> in 2015 and J5X released in 2016) are very similar, with some differences
> in display and GPIO pins. The common parts are shared in
> msm8916-samsung-j5-common.dtsi to reduce duplication.
> 
> Signed-off-by: Lin, Meng-Bo <linmengbo0689@protonmail.com>
> ---
>  ...6-samsung-j5.dts => msm8916-samsung-j5-common.dtsi} | 10 ++--------
>  1 file changed, 2 insertions(+), 8 deletions(-)
>  rename arch/arm64/boot/dts/qcom/{msm8916-samsung-j5.dts => msm8916-samsung-j5-common.dtsi} (94%)
> 
> diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi
> similarity index 94%
> rename from arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts
> rename to arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi
> index eabeed18cfaa..4f71609bf6f8 100644
> --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts
> +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi

With this movewe have the Makefile referencing a file that doesn't
exist. Please introduce msm8916-samsung-j5.dts in the same commit.

> @@ -1,15 +1,10 @@
>  // SPDX-License-Identifier: GPL-2.0-only
>  
> 
> -/dts-v1/;
> -
>  #include "msm8916-pm8916.dtsi"
> +
>  #include <dt-bindings/gpio/gpio.h>
>  
> 
>  / {
> -	model = "Samsung Galaxy J5 (2015)";
> -	compatible = "samsung,j5", "qcom,msm8916";
> -	chassis-type = "handset";
> -
>  	aliases {
>  		serial0 = &blsp1_uart2;
>  	};
> @@ -92,7 +87,6 @@ &usb {
>  
> 
>  &usb_hs_phy {
>  	extcon = <&pm8916_usbin>;
> -	qcom,init-seq = /bits/ 8 <0x1 0x19 0x2 0x0b>;
>  };
>  
> 
>  &smd_rpm_regulators {
> @@ -199,7 +193,7 @@ l18 {
>  };
>  
> 
>  &msmgpio {
> -	gpio_keys_default: gpio-keys-default {
> +	gpio_keys_default: gpio-keys-default-state {

This is a good, but unrelated change.

Thanks,
Bjorn

>  		pins = "gpio107", "gpio109";
>  		function = "gpio";
>  
> 
> -- 
> 
> 2.30.2
> 


  parent reply	other threads:[~2022-11-06  2:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-28 11:01 arm64: dts: qcom: msm8916-samsung-j5: Use common init device tree Lin, Meng-Bo
2022-09-28 11:06 ` [PATCH 2/3] " Lin, Meng-Bo
2022-09-28 11:06 ` [PATCH 1/3] dt-bindings: qcom: Document bindings for new msm8916-samsung-j5 devices Lin, Meng-Bo
2022-09-28 11:06 ` [PATCH 3/3] arm64: dts: qcom: msm8916-samsung-j5-common: Add Hall sensor Lin, Meng-Bo
2022-09-28 11:06 ` arm64: dts: qcom: msm8916-samsung-j5: Use common init device tree Krzysztof Kozlowski
2022-09-28 12:19 ` [PATCH v2 0/4] arm64: dts: qcom: msm8916-samsung-j5: Use common " Lin, Meng-Bo
2022-09-28 12:39   ` [PATCH v2 1/4] dt-bindings: qcom: Document bindings for new msm8916-samsung-j5 devices Lin, Meng-Bo
2022-09-28 14:14     ` Krzysztof Kozlowski
2022-09-28 12:39   ` [PATCH v2 2/4] arm64: dts: qcom: msm8916-samsung-j5-common: Add initial common device tree Lin, Meng-Bo
2022-09-28 14:16     ` Krzysztof Kozlowski
2022-11-06  2:56     ` Bjorn Andersson [this message]
2022-09-28 12:39   ` [PATCH v2 3/4] arm64: dts: qcom: msm8916-samsung-j5: Use " Lin, Meng-Bo
2022-09-28 12:40   ` [PATCH v2 4/4] arm64: dts: qcom: msm8916-samsung-j5-common: Add Hall sensor Lin, Meng-Bo
2022-09-28 14:14   ` [PATCH v2 0/4] arm64: dts: qcom: msm8916-samsung-j5: Use common device tree Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221106025656.5s6bwcuk2blv5tvm@builder.lan \
    --to=andersson@kernel.org \
    --cc=JosefWMenad@protonmail.ch \
    --cc=agross@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konrad.dybcio@somainline.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linmengbo0689@protonmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=markuss.broks@gmail.com \
    --cc=nikita@trvn.ru \
    --cc=robh+dt@kernel.org \
    --cc=stephan@gerhold.net \
    --cc=~postmarketos/upstreaming@lists.sr.ht \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox