From patchwork Sat Jan 27 17:21:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rong Zhang X-Patchwork-Id: 193074 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2395:b0:106:343:edcb with SMTP id gw21csp592621dyb; Sat, 27 Jan 2024 09:25:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGYTddnLYe3YYimQsTRASGAcxbgLjdDgDxBCPalYOKuYemjk9zT8iKSBYM3HN2LXNAnTrrU X-Received: by 2002:a17:903:110d:b0:1d0:cda5:d05f with SMTP id n13-20020a170903110d00b001d0cda5d05fmr1659097plh.83.1706376355396; Sat, 27 Jan 2024 09:25:55 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1706376355; cv=pass; d=google.com; s=arc-20160816; b=Ada89DcEFb1zGDzB8B6LuVK+vorlZrhO5/X1g9rQu7G7dVbvtFW9OK1025SuZyV02p KKhI7k52jZwbGR6o3DdZmAN/n8DydYRr75LM4ebT9TNy6vl7HluFg7gg+tlDR4QYg4+W Kb9XmKF0cZOod+D6VZP1YK06+XG0pO4d9/0prEJWJvW7N1lPkNLyZB2tm09JR4dguCKO DGbRJe830w8w2sQqvSdQfbgZWp7AK71qdVoPl6uGo2BUl0vCwzeYILQLOIybIiPUKAV5 OavWwc4fdjM3REV8xoqaT+2SEZ032MkNL1dEghNdXv1yk634Ttm70khkP/sfUbFwFxJk T4EQ== 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=MG15YqYcQg4kZmcciE88mhthjutuh4TmcirzKiAuvQE=; b=IEexvK1qmAxyOaoTxFC7dXfcW3/+USR2iQVnODrouL2mZH41KZp9BjQVt05lfluqmo mYOdO4cxlZueS0wy2C2hZz2C4Kl73Mt7vr0zWNqJtBE11CiGy7tszZS0NOkNI5WG+131 ivSM8c7RC7u8NT6DV72lUaRz7GWrL5E49QKKhjRekQqqN0U6NZvzo4W3ffIu+aUNSJgi g+8o5Csai5uArwEHYR+rD9We98FmEUEKthUWTnlBZsRfAWWovYcgCfXZAe9eN2EhIvqf g6mMe17QAc+50enNhBlW0n64OH6cxlyBTX6WBb5bmlDq8ZwS2WxhQOpqXNCmjRunITVE /zPQ== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@rong.moe header.s=zmail header.b=C7xMRoQE; arc=pass (i=2 spf=pass spfdomain=rong.moe dkim=pass dkdomain=rong.moe); spf=pass (google.com: domain of linux-kernel+bounces-41341-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41341-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q6-20020a170902b10600b001d4974385b5si3004827plr.401.2024.01.27.09.25.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 09:25:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41341-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=C7xMRoQE; arc=pass (i=2 spf=pass spfdomain=rong.moe dkim=pass dkdomain=rong.moe); spf=pass (google.com: domain of linux-kernel+bounces-41341-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41341-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 E3029B22324 for ; Sat, 27 Jan 2024 17:24:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0ABD22E62C; Sat, 27 Jan 2024 17:24:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=rong.moe header.i=i@rong.moe header.b="C7xMRoQE" 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 D29022E41C; Sat, 27 Jan 2024 17:24:03 +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=1706376245; cv=pass; b=U/bDnAJsiQBMZZVuvGqWxeqXWIyTBeDxnEg3be/RFbnlklPRkoOXbYYOzfFJY1zAajXk/bTwju7vRG0fe1hC+tjyKfI5GDbNT4EDXsfyJnHsFipGxV/x3gKKEv0y7A6jeMgd7pI4N4UjKkc2PZ7e7GwsNM9MBuyZkRYj+G7Q5Ms= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706376245; c=relaxed/simple; bh=ZZJDvmwgaVNUkd/QLeaQQXIy40n2tDqzdfn4OklKNVA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bKkDi9Gn3y1oiEpZ0WV5lOnZqRXuk6+lnnQu6rK4iwL+SkPdNqrsayo+2I4omN6o9ImeMzh1ChuzYWeoCnk3FoHVDXGgDTlSNVGJAce8KMyzD4p25G8yumsY0QJLlsApRDySlNIUY876CjuXyO4LVTxP9mFyHsKZQlFoRhrCDtM= 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=C7xMRoQE; 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=1706376240; cv=none; d=zohomail.com; s=zohoarc; b=nTPb8H7xvRgdLGEg2j8n83xs1KESybnQCz5lyIuil0J39LUkdE1p3QfZ0wg4ikORaQ517AQNbiOG5b0n3H2RJVEM6Q2zM4mGf8JXW42+XBrnbaMh+cRfV6q1ENRZ8m8VzwCdHpVEDr+B6SQWBfng1ZnM4kTGBqdoxGQ8AX4iqEc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1706376240; 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=CEEeMxdwNdLypKowaFmcHBUmeqYr4bIcTWuOumFPA8y5WKOwLSnITmmh+07jdUT6EC7h2p8o/QdGDrr0AGu8r9YnLrUx/qn+TqQ2/6bXPRyAEeNlEI5gnuYCCj5T6JaQHA4cEQl+jBDcxxR807Xzu0Yu8mkMWrC0FO1Cv4Qw0kY= 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=1706376240; 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=C7xMRoQEth9LevVh3MTtyXoIBncnolsugccpdeifSTkVtGnQB7343r6fBJWO5b35 xH/qAFyvqfH1exttrDlp1vH6VyukwTMN14QjwN8VL4s9/aOiGutUkfVM9xCEYY3W/xP Pe9oJh9STJwHcnLWkS4U8QSHksLDHhCZampfs8jk= Received: from tb.lan (182.118.239.249 [182.118.239.249]) by mx.zohomail.com with SMTPS id 1706376237613521.4403435319042; Sat, 27 Jan 2024 09:23:57 -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 v2 4/4] ARM: dts: qcom: msm8974: Add DTS for Samsung Galaxy S5 China (kltechn) Date: Sun, 28 Jan 2024 01:21:53 +0800 Message-ID: <20240127172155.63624-5-i@rong.moe> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240127172155.63624-1-i@rong.moe> References: <20240127172155.63624-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: 1789265293320225343 X-GMAIL-MSGID: 1789265293320225343 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 --- 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"; +};