Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp623532rdb; Thu, 15 Feb 2024 10:04:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVTcdlF+CNsYUMc4K51wuxKVGNwV4PzcWJ08WUJB9dkPZEhTGF/hImIlTX5Qi79bBT9KLJ4CugMoo6PQvuJUzH/Xdt3SIuxnpYGR2NMdw== X-Google-Smtp-Source: AGHT+IHHTvMEiXMowsNKPlYT1XnNQ5Ekm9w/+4SJ5gLlArf7eHmsCpDCYrmfw8Q6AY+EdZdVMI7q X-Received: by 2002:a05:6358:6f0b:b0:178:6211:871 with SMTP id r11-20020a0563586f0b00b0017862110871mr2786473rwn.0.1708020254269; Thu, 15 Feb 2024 10:04:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708020254; cv=pass; d=google.com; s=arc-20160816; b=JBD1m61Z3cQ27U8WXaSnLuIvvQh+gfvH8+GYNtNPpwAVBYmdL8pTYYSiF4STe5qpvg KUM/ZNNRodzn5A7dxTcgSX81IUHvWrNWNh2D4XTN5GrIEeW2weTCPCXZJytuKaVCQmic hs/ZL23edSQU9Awwa5V56JJvJccC6y2xIQhFupDg1Rd3IhjdybkXQmSO4bUKZ2CUcd6A uLuZRXwYor0oLeXPdBKY6lYgUxDqJlOndqRXmgPERuph7HqDWEI+pYFhVG+FYhBWo1az BuTqmHB3UJgVHHYPQ+rqBKtlb7sMcZ3LE5r/979z49yqCShuN7iNGbCSlkjQWv7wIxy9 29Kw== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67469-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=postmarketos.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l25-20020ac87259000000b0042dd73507fesi717134qtp.683.2024.02.15.10.04.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 10:04:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67469-linux.lists.archive=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=@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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67469-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 091A21C211B9 for ; Thu, 15 Feb 2024 18:04:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03B8713959D; Thu, 15 Feb 2024 18:03:38 +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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 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; + }; +}; -- 2.43.0