On Mon, 2024-01-22 at 10:48 +0100, Krzysztof Kozlowski wrote: > On 21/01/2024 16:39, Rong Zhang wrote: > > This device has little difference compared to Samsung Galaxy S5 (klte), > > so the device tree is based on qcom-msm8974pro-samsung-klte.dts. The > > only difference is the gpio pins of i2c_led_gpio. With pins corrected, > > the LEDs and WiFi are able to work properly. > > > > Signed-off-by: Rong Zhang <i@xxxxxxxx> > > > > diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974pro-samsung-kltechn.dts b/arch/arm/boot/dts/qcom/qcom-msm8974pro-samsung-kltechn.dts > > new file mode 100644 > > index 000000000000..5a8d59ea4439 > > --- /dev/null > > +++ b/arch/arm/boot/dts/qcom/qcom-msm8974pro-samsung-kltechn.dts > > @@ -0,0 +1,16 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +#include "qcom-msm8974pro-samsung-klte.dts" > > + > > +/ { > > + model = "Samsung Galaxy S5 China"; > > + compatible = "samsung,kltechn", "samsung,klte", "qcom,msm8974pro", "qcom,msm8974"; > > That's not what you said in the binding. > > It does not look like you tested the DTS against bindings. Please run > `make dtbs_check W=1` (see > Documentation/devicetree/bindings/writing-schema.rst or > https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/ > for instructions). Oops, I've forgot to run dtbs_check again after my final decision of adding "samsung,klte". Thanks for pointing it out. I added it because I thought the difference between klte and kltechn is so tiny and I've seen some other dts doing that. I've glanced similar dts. To solve this, I think we could either: 1. keep the dt-binding in [PATCH 3/4], and delete "samsung,klte" here 2. rewrite dt-binding like crystalfontz,cfa100{36,37,49,55,56,57,58}: diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index 2bd29a2399ad..4979ccae2b64 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -223,11 +223,17 @@ properties: - fairphone,fp2 - oneplus,bacon - samsung,klte - - samsung,kltechn - sony,xperia-castor - const: qcom,msm8974pro - const: qcom,msm8974 + - items: + - enum: + - samsung,kltechn + - const: samsung,klte + - const: qcom,msm8974pro + - const: qcom,msm8974 + - items: - const: qcom,msm8916-mtp - const: qcom,msm8916-mtp/1 My preference is (2.) since other variants of klte may be added in the future. I would like to hear your preferences. Thanks, Rong > Best regards, > Krzysztof >