From patchwork Thu Feb 15 18:02:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stefan Hansson X-Patchwork-Id: 201684 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp21658dyb; Thu, 15 Feb 2024 10:04:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV7SCJkhAp3/M32vRqJKBPXt3qvMI+JucWSB/h+necZg1WUcGn0avvWvTUl2xzGk1+e4KGijNdm3H2gqXbP+9THjKG9eg== X-Google-Smtp-Source: AGHT+IFqvb1S+BNjt7VcOzUILIxZXaySmjxHbbgLgrxHosLS9mGq9omZxJIenRBvz1iNySLBOzk4 X-Received: by 2002:aa7:c6d6:0:b0:560:64f4:cbd1 with SMTP id b22-20020aa7c6d6000000b0056064f4cbd1mr2114783eds.19.1708020282755; Thu, 15 Feb 2024 10:04:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708020282; cv=pass; d=google.com; s=arc-20160816; b=SbiFDA9Bk0t5motU+qdl6DASMKhqh9mw9NnPe5ixm536emiWzBxr0A5C8EgKJYkMMI sODw5BEn7kvM52EHjXqt6MRXHzJk5/83XirqqLFK66Hcfj2gWfhQZak4KKBcBNXG6LBS hpgoIROzJS3uyS4jCRzZtX7ur+17+1q5VKVUC2BYFaBJClI9MlHiFKEftoLHHnDdzbEg E7y9+BkDFUtXnRHQd6AEmBV466DLo+eIBmWcKWNPcbB+VSs1mE7jBPWE32z7BVyMiZ8H +CU5dyQoFmTtuLO6dU0amHeu+YhlyUmKJ/CSvV0PsYcmKtgpAKy8EfsnlF1gjy3PKobr QYnA== ARC-Message-Signature: i=2; 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; bh=rAtam4EIfXigpEqgMeE23pOshhbAC6AmZJF6OjqvVKY=; fh=BOHMyQNoNwruHbyPjEZug/JXZ4HRZPnvk4WDFKc+FWM=; b=ftpKNpPw3r08E5cyFpjuyFjcpm4Newlu8OR+sV8QLoCjFBC8vZVdhaPL4HxPWG8mJ3 WknXg/R24EfPLNTTUZfr6KDOb8H057agel+jhJ9jl9OrHC/LLDUgmVDg5ZMDAmxVpKQp rPg1M5v3R6sQP5u5BPHbj89++pk3lj6iMOldT54h0cA0uZACvepM8MXEW/vvyrR7MqJ6 E0brkg6Ij+zYWZ5LcPkcLBRahVNR6NADfFy8ORDb8Mq/OKwToSbyKQXY69aNEkJvUDlX v5/cPNdK76B5ZWL3FN87vAjLMJZbQjJBI1bhKpQ/AwBWkqfr9DlrRPzT5OXB2BLfGzPu b3uA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@postmarketos.org header.s=key1 header.b=NfEpazB2; arc=pass (i=1 spf=pass spfdomain=postmarketos.org dkim=pass dkdomain=postmarketos.org dmarc=pass fromdomain=postmarketos.org); spf=pass (google.com: domain of linux-kernel+bounces-67469-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67469-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=postmarketos.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w6-20020a50fa86000000b00561581319f3si840025edr.164.2024.02.15.10.04.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 10:04:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67469-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@postmarketos.org header.s=key1 header.b=NfEpazB2; arc=pass (i=1 spf=pass spfdomain=postmarketos.org dkim=pass dkdomain=postmarketos.org dmarc=pass fromdomain=postmarketos.org); spf=pass (google.com: domain of linux-kernel+bounces-67469-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67469-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=postmarketos.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5DB3D1F21F97 for ; Thu, 15 Feb 2024 18:04:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 548661386AE; Thu, 15 Feb 2024 18:03:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="NfEpazB2" Received: from out-171.mta0.migadu.com (out-171.mta0.migadu.com [91.218.175.171]) (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 1A6D31386C0; Thu, 15 Feb 2024 18:03:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708020216; cv=none; b=O/q/2bX2VJunqzUPZIRLfMQfMFxJmtXovbcRIcNrlUEGOR3n2b9AjutEhZNt009AO35pG+K+IjRq73RDGvrU8SqJIKNau8NEdPGCia/5kZ+OI8nma5WGjl/tX1N4+a/G/F8xnDWOLNGuqpEvxdR6I7BUjpWMo8k6AgoOnkO8gb4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708020216; c=relaxed/simple; bh=8sWG4bfraGGDKYB36OyZq2qLHIGfdaMP7dvZD4Qq53g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YAZCT+ZHyzSfUDbxlgw94LBLbWEp7Bo4uJ9d9yggLhEyBmFcYEN7bBnVcl8q6toRLmFDDMja5Mb3T01OA9CSKznB3tmocxmqFfDm7SuP+NuIEa0OcT0QLJ5QziT2144bDpv+HLJKbCFu+tITZV7qQQOw7DfkLDGNWm9zSoc4mqE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org; spf=pass smtp.mailfrom=postmarketos.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b=NfEpazB2; arc=none smtp.client-ip=91.218.175.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=postmarketos.org X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1708020213; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rAtam4EIfXigpEqgMeE23pOshhbAC6AmZJF6OjqvVKY=; b=NfEpazB2jSXUWjLXaYkE21LrtEjDJY9Pw5Fg1drCZoOFEkrb+k3C9JT+UDvM1zk2uZf0e1 vxNyxYn+H5wV4OZbd5B4vpySG6n6lr6nG3zMRmus83N5IsN7XPSHSCcetRciABXl0luHjm y779t0Bv0rptyfagtVuUBPwSh67ueX0eOl5bT65R4cV1nU4yqCt9tDQLN27G5nrpuS1cEJ NfcBZB8pZ0Mzfn+v+wsXGTQPtrEYO83t47d2D4KMyRxzasAWjySrkG9QnitKeW+8SYtfsJ xwArQ6wHrAgtTyQXSrPjL6QoU2NY5BK+Nd2oW0KvLl2ndKblbFDTsNjAwILdsg== From: Stefan Hansson To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Stefan Hansson , Krzysztof Kozlowski Subject: [PATCH v6 3/4] ARM: dts: qcom: Add support for Samsung Galaxy Tab 4 10.1 LTE (SM-T535) Date: Thu, 15 Feb 2024 19:02:01 +0100 Message-ID: <20240215180322.99089-4-newbyte@postmarketos.org> In-Reply-To: <20240215180322.99089-1-newbyte@postmarketos.org> References: <20240215180322.99089-1-newbyte@postmarketos.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790989076032796455 X-GMAIL-MSGID: 1790989076032796455 Add a device tree for the Samsung Galaxy Tab 4 10.1 (SM-T535) LTE tablet based on the MSM8926 platform. The common dtsi is also modified to describe the widest constraints, which required modifications to the matisse-wifi dts. Signed-off-by: Stefan Hansson Reviewed-by: Krzysztof Kozlowski --- arch/arm/boot/dts/qcom/Makefile | 1 + .../qcom-apq8026-samsung-matisse-wifi.dts | 8 ++++ .../qcom-msm8226-samsung-matisse-common.dtsi | 4 +- .../qcom/qcom-msm8926-samsung-matisselte.dts | 37 +++++++++++++++++++ 4 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 arch/arm/boot/dts/qcom/qcom-msm8926-samsung-matisselte.dts diff --git a/arch/arm/boot/dts/qcom/Makefile b/arch/arm/boot/dts/qcom/Makefile index 9cc1e14e6cd0..6478a39b3be5 100644 --- a/arch/arm/boot/dts/qcom/Makefile +++ b/arch/arm/boot/dts/qcom/Makefile @@ -36,6 +36,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-msm8926-microsoft-superman-lte.dtb \ qcom-msm8926-microsoft-tesla.dtb \ qcom-msm8926-motorola-peregrine.dtb \ + qcom-msm8926-samsung-matisselte.dtb \ qcom-msm8960-cdp.dtb \ qcom-msm8960-samsung-expressatt.dtb \ qcom-msm8974-lge-nexus5-hammerhead.dtb \ diff --git a/arch/arm/boot/dts/qcom/qcom-apq8026-samsung-matisse-wifi.dts b/arch/arm/boot/dts/qcom/qcom-apq8026-samsung-matisse-wifi.dts index ac8aef5f9d09..da3be658e822 100644 --- a/arch/arm/boot/dts/qcom/qcom-apq8026-samsung-matisse-wifi.dts +++ b/arch/arm/boot/dts/qcom/qcom-apq8026-samsung-matisse-wifi.dts @@ -73,6 +73,14 @@ touchscreen@4a { }; }; +&pm8226_l3 { + regulator-max-microvolt = <1337500>; +}; + +&pm8226_s4 { + regulator-max-microvolt = <1800000>; +}; + &tlmm { tsp_en1_default_state: tsp-en1-default-state { pins = "gpio73"; diff --git a/arch/arm/boot/dts/qcom/qcom-msm8226-samsung-matisse-common.dtsi b/arch/arm/boot/dts/qcom/qcom-msm8226-samsung-matisse-common.dtsi index 6d116f9b443b..24ed2ba85d62 100644 --- a/arch/arm/boot/dts/qcom/qcom-msm8226-samsung-matisse-common.dtsi +++ b/arch/arm/boot/dts/qcom/qcom-msm8226-samsung-matisse-common.dtsi @@ -230,7 +230,7 @@ pm8226_s3: s3 { pm8226_s4: s4 { regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; + regulator-max-microvolt = <2200000>; }; pm8226_s5: s5 { @@ -250,7 +250,7 @@ pm8226_l2: l2 { pm8226_l3: l3 { regulator-min-microvolt = <750000>; - regulator-max-microvolt = <1337500>; + regulator-max-microvolt = <1350000>; regulator-always-on; }; diff --git a/arch/arm/boot/dts/qcom/qcom-msm8926-samsung-matisselte.dts b/arch/arm/boot/dts/qcom/qcom-msm8926-samsung-matisselte.dts new file mode 100644 index 000000000000..d0e1bc39f8ef --- /dev/null +++ b/arch/arm/boot/dts/qcom/qcom-msm8926-samsung-matisselte.dts @@ -0,0 +1,37 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, Matti Lehtimäki + * Copyright (c) 2023, Stefan Hansson + */ + +/dts-v1/; + +#include "qcom-msm8226-samsung-matisse-common.dtsi" + +/ { + model = "Samsung Galaxy Tab 4 10.1 LTE"; + compatible = "samsung,matisselte", "qcom,msm8926", "qcom,msm8226"; + chassis-type = "tablet"; + + reg_tsp_3p3v: regulator-tsp-3p3v { + compatible = "regulator-fixed"; + regulator-name = "tsp_3p3v"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + gpio = <&tlmm 32 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-names = "default"; + pinctrl-0 = <&tsp_en1_default_state>; + }; +}; + +&tlmm { + tsp_en1_default_state: tsp-en1-default-state { + pins = "gpio32"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; +};