From patchwork Tue Feb 13 10:58:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rong Zhang X-Patchwork-Id: 200380 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp466863dyb; Tue, 13 Feb 2024 03:18:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IFMdnQoVDRvIJ8ZvOh5TDa2fVAVuNKKxzOMgW2cdAi1tPIJBY2mckFNfyxdMvBXHtVDxMYi X-Received: by 2002:a17:90a:51a3:b0:298:ae6f:3139 with SMTP id u32-20020a17090a51a300b00298ae6f3139mr937006pjh.12.1707823139283; Tue, 13 Feb 2024 03:18:59 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1707823139; cv=pass; d=google.com; s=arc-20160816; b=d+E9zZ0nZ6pWNIcoOhL9T+CG087Ddv0joZ8yCplAuP9F1sISE6Y7z2pLTkVAww8cAB m1jC0jY+YNQBVADhEN/vNUNLWRLaZ6Hjfohex8J2/DQrATGyJYvb+Ho1/sHAJzLDTA6E RRD2CI//KKtSKCGjzXw1otRfJ+8YzJevpbJSaDBeFsgNDiSL1LaSaRzXxBEO6ocaNjGl 8L0QgR2Dv5f7ihIxpvQ53aMDMLIsZfpWvc5Yn8stYWcKserR9zK/+ulPOCrid614Bidz RRKFK6FVtQRG2F3s5fX360FpGGvjbXYJFJCqrKi4WlwqJExQzqm4IJrLfYfuoOnViEUb GauA== 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=j651x5Hilte5Xbmo4xSk1+lCVyQJvHUohQWSnBdMyQw=; fh=Sjiv1od6UhGbeO0QHLkbBWwRcZArHBrx4YvjnzMqQZU=; b=KjruM7dr7iipae2Awgbq4ySwNAxCrDMLo81W7kIQxFBRJeIStRestjBrnuVUhwGCWr 28zy/6QUnDeM0zpIGVhSzpnCRPNtfVOnWwBoTj2I6kDJcIl5+/LUlmWFDiE5xsFPmMhy /39EtmmgwwKb+e3S3i4fBMeCt8R3DJpzZEEIZxmGNiBw1N1GSFUvM0dFE3Xlk/IVj38p kkreCJlcgrSZV5D9gLVpakJl1gkVi7r3aWQa5AFprCRMhfeCC+4lbrMgMP9CRvukcyHJ Bpl/1NC3/oKUjqAqZclK6ra2YUG91wPk4+bUn0DiPhzOOm9TwfwMqDNdVygsmyuplXEj YrXA==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@rong.moe header.s=zmail header.b=fa5EyQD3; arc=pass (i=2 spf=pass spfdomain=rong.moe dkim=pass dkdomain=rong.moe); spf=pass (google.com: domain of linux-kernel+bounces-63393-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63393-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=3; AJvYcCUpYL4TXAfLhs+JHWoFO5G/t5/dXDJwWITuchFHA9DROXj4lj0NAs0CabwqcEHcKUEoULiha/apfFcn+j1x++XIYH6DMw== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m19-20020a637113000000b005ce030a6460si1844401pgc.71.2024.02.13.03.18.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 03:18:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63393-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@rong.moe header.s=zmail header.b=fa5EyQD3; arc=pass (i=2 spf=pass spfdomain=rong.moe dkim=pass dkdomain=rong.moe); spf=pass (google.com: domain of linux-kernel+bounces-63393-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63393-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 60261B22402 for ; Tue, 13 Feb 2024 11:03:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B33903A8EE; Tue, 13 Feb 2024 11:02:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=rong.moe header.i=i@rong.moe header.b="fa5EyQD3" 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 A6B5938DF5; Tue, 13 Feb 2024 11:02:13 +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=1707822135; cv=pass; b=FPeFfK19y1CLXA+POfZpFSiqNeoCGjcNv8edTqWDFGnnSBJJgpfRMdGngDyBQdy+x5BmNuDlpBrXwcfyJNKgmiXNF0ioNKrwAhfavDKsPPVyMdq6KYFxoontCFTPKtxqzfZMTTuaPNLTm9+0UP1Jqw+OScmqBzDrKY1M50TW1hQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707822135; c=relaxed/simple; bh=ZZJDvmwgaVNUkd/QLeaQQXIy40n2tDqzdfn4OklKNVA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uWkqSrr8Q/nLiiRwBO7po4pGhxNHNJIaGUIyHChgVxdSD0UTfHSt/Az4ryKE2PGAe/y4eUI0fNjGbbivD1i6aOn5flHYCDUPipBBM6xKGD2GAOfpfrZg5baaU1Eiwt0UnM3konKJYlQj6Vnd/p9FxN8V2fgzi9wHcU1DsJz8u78= 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=fa5EyQD3; 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=1707822129; cv=none; d=zohomail.com; s=zohoarc; b=d9HezmARuJAYGFSwJ1LTdYoq58QKthHAhTLkBJUXfgzvkgS+sQ19AgrGLNgubdhIQFVB+epcMX8Iz4w4NTj6szBFPYNS5LCJonn3DaF0rxI3WCYsDvinwURYYxdUxFHWHqNQ+xVHEwm0bWF1GYJr1vAoY1RUOkA/tXKAbAY7y5U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1707822129; 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=j651x5Hilte5Xbmo4xSk1+lCVyQJvHUohQWSnBdMyQw=; b=g4Mtnz7meTtxytGrX+owcyM+GlPTo8tAatTZ9ydEtHIc8NWb6BNd4QnbiEEdFDyrkZo4qqtG7LPm/HDgn4fXetc5cX0VoPsCzCH0gtq4jveKQuk5OrK/csN+5iGGNI+26ZMdUADWoRVavwB4VNk2ImU6tsPZr5shIbAxGTAyRHg= 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= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1707822129; 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=j651x5Hilte5Xbmo4xSk1+lCVyQJvHUohQWSnBdMyQw=; b=fa5EyQD3TQShmT/mjR+73kLJ1n6QjAdQ7jw85rRFHkeNOJ0pPs+JebFFtqAocqd9 t1Le7wL/er9mmXCG/+BqYHW7XTDtWX40gr3T+vHUfqf5+GbyBoKGoGxu4dWGJtRKhvb PYrbppfHeIjM9w8hAb3QQxqOWMdvLd5Q/5ohdSZ8= Received: from localhost.localdomain (163.142.242.182 [163.142.242.182]) by mx.zohomail.com with SMTPS id 1707822126636336.74326025946925; Tue, 13 Feb 2024 03:02:06 -0800 (PST) From: Rong Zhang To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Rong Zhang , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Icenowy Zheng Subject: [PATCH v3 4/4] ARM: dts: qcom: msm8974: Add DTS for Samsung Galaxy S5 China (kltechn) Date: Tue, 13 Feb 2024 18:58:39 +0800 Message-ID: <20240213110137.122737-5-i@rong.moe> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240213110137.122737-1-i@rong.moe> References: <20240213110137.122737-1-i@rong.moe> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ZohoMailClient: External X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790782356119891603 X-GMAIL-MSGID: 1790782356119891603 The only difference between Samsung Galaxy S5 China (kltechn) and klte 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 Reviewed-by: Krzysztof Kozlowski --- 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 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..b902e31b16c2 --- /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-common.dtsi" + +/ { + 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"; +};