Message ID | 20240121154010.168440-5-i@rong.moe |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-32101-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2123006dyb; Sun, 21 Jan 2024 07:42:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IGUplE0Fu8RA8UYgpClfQWQ9CSQnEEplxw7oXn1ek6Rp8K3xLGtEsOhe2XcBBU3c5mejI27 X-Received: by 2002:a05:620a:468b:b0:783:9c9e:376b with SMTP id bq11-20020a05620a468b00b007839c9e376bmr1066497qkb.8.1705851745009; Sun, 21 Jan 2024 07:42:25 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1705851744; cv=pass; d=google.com; s=arc-20160816; b=TitztTh3l4oCN+KMfk70ECgKQdZmOKN1Cea7Sb8bEzphakn1QYF+Pnk5JGPhujQ7XV ocHb0w7ACxWYDz3ff+BsZ0Y+cQ5K5hbweWH2T93OHPPCNC7zd7Kj69gBizeUyM8rktgf yZxnsTWcg41mZaV95XWIQLNnJTUU3R4c78tFdF7oy+Mgp/Ov3wyAQifzkVVaTE7Oxp4q CDLRbq5OxRfOSVlz5vQMHHv0juPnf3AT6hBCrCY75JtOaTpZSjxgHhlprEY44fWzJLq8 1DFJ99dbq/f/EhelsozhcrEHzbwBdTdQBWQH1jXbqCIEk7mTSZGBpzV2YZub0ulxRX9s 0b3w== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:delivered-to; bh=eBi1Y9eM2A7qnPGgBFbKaTHtAvRFCRKahm/+T4CdbUg=; fh=MG15YqYcQg4kZmcciE88mhthjutuh4TmcirzKiAuvQE=; b=oyye+iFhISDKNGdGJG7ftT1CCuTjQs8o3uIEk5qpQIA+Jw7k9IkKyc42yt/d9jp90y TYKRg3clu5e395uk/d/WbKT4RuQp+BUlpbUVikVJJQyN50iMuWTRoLK0kIMAZzumXoqK 94QUEvzK9HN3pWpjJKW9cnDQxIk6Rd255T5w+MRnB6mrMy4BKZyF63CvHnOnziZ7J9pW MUyQBy4RLEx7oxNLgxm0VBL5563sDBsfLw/DlzgYhOaVadjpQ8BOGpul6B2a4/0mGq8w Lp6TTPQHeUczCAlGFv19tE1Dtl4Z3uLQBLEhapb886E5WbBs+YI5bSVNUNo5T5K/iAAb IH8g== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@rong.moe header.s=zmail header.b=ZYGyGapl; arc=pass (i=2 spf=pass spfdomain=rong.moe dkim=pass dkdomain=rong.moe); spf=pass (google.com: domain of linux-kernel+bounces-32101-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32101-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e6-20020a05620a12c600b00781e6d24d31si3541995qkl.47.2024.01.21.07.42.24 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 07:42:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32101-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@rong.moe header.s=zmail header.b=ZYGyGapl; arc=pass (i=2 spf=pass spfdomain=rong.moe dkim=pass dkdomain=rong.moe); spf=pass (google.com: domain of linux-kernel+bounces-32101-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32101-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6AA801C20E96 for <ouuuleilei@gmail.com>; Sun, 21 Jan 2024 15:42:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 407943838A; Sun, 21 Jan 2024 15:41:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=rong.moe header.i=i@rong.moe header.b="ZYGyGapl" Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A950381C7; Sun, 21 Jan 2024 15:41:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705851688; cv=pass; b=uu/TPMIm6GGYLvJOOYIRIAnr3q5FS34dg4jfdOg3cQMGyW9R+zpZaBRWnU78jogzS/MF9QBOJ12bBKG/TMWKJsSmForormS8S/5wQva8EkEfPDLUKCq66GZ3BWDZr9lZzdKYTj2Y+JnsDGan9nOxdQlcAEwz4rUUwV3wIuFJGus= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705851688; c=relaxed/simple; bh=JNfgDL/TeVgg8JNSE5SizE4qw0dFiHemtFsgCnT5juA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kERhD7j6LGrkJxFHqtfhbNhE0ckMUb0id1Z3R6smsqD8hSTLJ4IlRdv5g1UM+Dx0m6hHCHaFihBmx5B4WGUcuTO0MeE/HMEkaGtBmX+l0yYCmr2uhOXxfEz9rHeqprzyPVQMYpG3mmofylkLqKZXp+JrzSW3AbjWKZqVcM5xCsg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rong.moe; spf=pass smtp.mailfrom=rong.moe; dkim=pass (1024-bit key) header.d=rong.moe header.i=i@rong.moe header.b=ZYGyGapl; arc=pass smtp.client-ip=136.143.188.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rong.moe Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rong.moe Delivered-To: i@rong.moe ARC-Seal: i=1; a=rsa-sha256; t=1705851683; cv=none; d=zohomail.com; s=zohoarc; b=beDkvSKJd5TjCIIZ8tUMWLRFxYQJSu+l3aEwpK58VOXJkcSZss5Eyun3pcBkKw1lhXSwuVKkIUUR9ZGWuwOz6BgJnyh4ixmbBGYBFETMNcC7ptwcNUpJz4++s55EBKPUHXaRKajEj8pBN5cFMpWFpq00SF7Ud7D1D1UoavvlmyU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1705851683; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=eBi1Y9eM2A7qnPGgBFbKaTHtAvRFCRKahm/+T4CdbUg=; b=TyuOSRGgtzwRSO7aQveJ8/0MIuU/1PYrnS0MJDbyxa7p1nGWag+H0FeapliFqxELMmxInKolbjy/Cae2nSncsnaCzRyLQ6SWSc2FUp9bVWQ/HM2W9i6eAMW7HEe8Mze8ETXRLSxPROEAJR4Vr/amvHU1HLGGquWyv2KCdPHOpUY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=rong.moe; spf=pass smtp.mailfrom=i@rong.moe; dmarc=pass header.from=<i@rong.moe> DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1705851683; s=zmail; d=rong.moe; i=i@rong.moe; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=eBi1Y9eM2A7qnPGgBFbKaTHtAvRFCRKahm/+T4CdbUg=; b=ZYGyGaplgv2Lh2Cd7VYJjr426hzWAqHBmoRNq3YKeaS6NY3KfVFYMm3rx45sEDPU tSJmrK3AAPI8xbT5iaONKszxh0OdINLZx+mTNQLy0vjaanpfS284uA32s+SNDIenRny v3uC60TPC/qtUOsZ2cAqeXSfxLziiGSfyuxEUIC0= Received: from tb.lan (182.118.232.129 [182.118.232.129]) by mx.zohomail.com with SMTPS id 1705851682507923.9002906477932; Sun, 21 Jan 2024 07:41:22 -0800 (PST) From: Rong Zhang <i@rong.moe> To: Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> Cc: Rong Zhang <i@rong.moe>, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Icenowy Zheng <uwu@icenowy.me> Subject: [PATCH 4/4] ARM: dts: qcom: msm8974: Add device tree for Samsung Galaxy S5 China Date: Sun, 21 Jan 2024 23:39:59 +0800 Message-ID: <20240121154010.168440-5-i@rong.moe> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240121154010.168440-1-i@rong.moe> References: <20240121154010.168440-1-i@rong.moe> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788715199377320893 X-GMAIL-MSGID: 1788715199377320893 |
Series |
ARM: dts: qcom: msm8974: Add Samsung Galaxy S5 China support
|
|
Commit Message
Rong Zhang
Jan. 21, 2024, 3:39 p.m. UTC
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@rong.moe>
---
arch/arm/boot/dts/qcom/Makefile | 1 +
.../dts/qcom/qcom-msm8974pro-samsung-kltechn.dts | 16 ++++++++++++++++
2 files changed, 17 insertions(+)
create mode 100644 arch/arm/boot/dts/qcom/qcom-msm8974pro-samsung-kltechn.dts
Comments
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@rong.moe> > 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). Best regards, Krzysztof
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@rong.moe> > --- Looks like you didn't change the brcm,board-type though? [...] > +++ 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" It's customary not to include .dts files, instead split the common parts into e.g. qcom-msm8974pro-samsung-klte-common.dtsi and include this in both the existing and the new one. Konrad
在 2024-01-22星期一的 11:50 +0100,Konrad Dybcio写道: > 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@rong.moe> > > --- > > Looks like you didn't change the brcm,board-type though? This should be intentional to allow kltechn and klte to share Wi-Fi NVRAM file. > > [...] > > > +++ 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" > > It's customary not to include .dts files, instead split the common > parts > into e.g. qcom-msm8974pro-samsung-klte-common.dtsi and include this > in > both the existing and the new one. > > Konrad
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@rong.moe> > > > > 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 >
On 22/01/2024 15:51, Rong Zhang wrote: > 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. It depends whether the devices are compatible. IOW, entire klte DTB should work fine on kltechn, just without few new devices. Best regards, Krzysztof
On Mon, 2024-01-22 at 16:17 +0100, Krzysztof Kozlowski wrote: > On 22/01/2024 15:51, Rong Zhang wrote: > > 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}: [...] > > My preference is (2.) since other variants of klte may be added in the > > future. I would like to hear your preferences. > > It depends whether the devices are compatible. IOW, entire klte DTB > should work fine on kltechn, just without few new devices. Yes, they are compatible. I'd used the klte DTB on kltechn for a long time before I made this patchset. It worked totally fine expect for LEDs and WiFi, as I've said in the cover letter. Thanks, Rong > Best regards, > Krzysztof >
On Mon, 2024-01-22 at 11:50 +0100, Konrad Dybcio wrote: > Looks like you didn't change the brcm,board-type though? In "[PATCH 2/4] ARM: dts: qcom: msm8974-samsung-klte: Pin brcm,board- type in wifi": /* * This aims to allow other klte* variants to load the same firmware, * as klte variants have little differences in the wifi part. */ So it is intentional, in order to let them share the same FW, in particular, the NVRAM file. Without [PATCH 2/4] and with this [PATCH 4/4]: - klte DT probes "brcmfmac*.samsung,klte.txt" - kltechn DT probes "brcmfmac*.samsung,kltechn.txt", but never probes "brcmfmac*.samsung,klte.txt" With both [PATCH 2/4] and this [PATCH 4/4]: - klte DT probes "brcmfmac*.samsung,klte.txt" - kltechn DT probes "brcmfmac*.samsung,klte.txt" I pinned "brcm,board-type" in the klte DT instead of the kltechn one because other klte* variants are known to have little difference in the WiFi part. By pinning it in the klte DT, future ports could be easier. If you'd prefer not doing this, I am OK to drop [PATCH 2/4] in the v2 patchset. FYI: LineageOS considers all klte variants use "common" WiFi FW: https://github.com/search?q=repo%3ALineageOS%2Fandroid_kernel_samsung_klte+CONFIG_BCMDHD_NVRAM_PATH&type=code https://github.com/LineageOS/android_device_samsung_klte-common/blob/8f71a63415397def5ba886f4030b0d91e2253262/common-proprietary-files.txt#L251 I've tested the klte port of PostmarketOS (with klte FW and this patchset) on kltechn, and it worked fine. For the FW used by PostmarketOS, see also: https://gitlab.com/postmarketOS/pmaports/-/blob/439227770ffcd32eb7e26436598c804dc35637ad/device/testing/firmware-samsung-klte/APKBUILD#L17 > > +++ 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" > > It's customary not to include .dts files, instead split the common parts > into e.g. qcom-msm8974pro-samsung-klte-common.dtsi and include this in > both the existing and the new one. At the very beginning, I thought including .dts could make the patchset tiny (considering that the difference among klte* is also tiny). I agree that splitting the common parts into a .dtsi will make things more elegant and make klte* DTs consistent with the style of qcom DTs. Will do in v2. Thanks for your advice. Thanks, Rong
diff --git a/arch/arm/boot/dts/qcom/Makefile b/arch/arm/boot/dts/qcom/Makefile index 9cc1e14e6cd0..5d7a34adf826 100644 --- a/arch/arm/boot/dts/qcom/Makefile +++ b/arch/arm/boot/dts/qcom/Makefile @@ -44,6 +44,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-msm8974pro-fairphone-fp2.dtb \ qcom-msm8974pro-oneplus-bacon.dtb \ qcom-msm8974pro-samsung-klte.dtb \ + qcom-msm8974pro-samsung-kltechn.dtb \ qcom-msm8974pro-sony-xperia-shinano-castor.dtb \ qcom-mdm9615-wp8548-mangoh-green.dtb \ qcom-sdx55-mtp.dtb \ 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"; +}; + +&i2c_led_gpio { + scl-gpios = <&tlmm 61 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + sda-gpios = <&tlmm 60 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; +}; + +&i2c_led_gpioex_pins { + pins = "gpio60", "gpio61"; +};