From patchwork Tue Oct 24 20:33:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stefan Hansson X-Patchwork-Id: 157689 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp2198112vqx; Tue, 24 Oct 2023 13:56:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXZP6qcKu8s6nkF33QlLhktM07vxm5xDb86ZYPsBmf2xXwkziinTkTgf4p6m8RG1TZBAtr X-Received: by 2002:a05:6a20:2443:b0:14c:c393:692 with SMTP id t3-20020a056a20244300b0014cc3930692mr3942296pzc.7.1698180976297; Tue, 24 Oct 2023 13:56:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698180976; cv=none; d=google.com; s=arc-20160816; b=cc3atvN//9SUrLCEo0U8ja7T9gj9dENHZeQsJzTc9Q/O8mH90ty+SHjMDrXMULvwk4 kE0h8fM/9kUfBvmPXNt9cMCOI9dxUu3Obwz+iSRuVQbQhoLR2gDizakH8iH3rWim1GUZ XYoFFhqGs5HT7QXvOgcUX4vEIHbdYbjoTT3Uz+9x7jfsQGITpZOdVQe1ZHkh2w/2x0FS G/RaXJtAeT92ISE9+vXpEB9IyzSS74wxLN5kzIIN1EvLuKf8So6tzqjf1/LrVa02Mnqj vqy7JqSF/XyyyyScqo7i1SAdfV4iO5Vpe5Lrj8ORwc0sXxqUjCT7aYNEe5Y+5bNAbEdx DV1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :from; bh=WftJlpZtFCnefMD8OenIbNEyH0eXljfkuOxB9Oej6aQ=; fh=8LmwB/n4G53CQiHYO+ycQgPivED5y1YDH/Ve54KLwm0=; b=P89Pe2pc9hv9FY2Nl7vwszqBxRsRqxY4o4VYjwslLwjcBgZ6MUrU827hLPQJ06JotV OwFNZgPlBBtgi1jRXrTZamOnpTInYy0/tfMs6gtWuyg4YMnLluCn49gZ4oB74bYVnFI/ DmlIKDpmRXvqzap1c2/OvBPzuh4fQF86SvmACvF6LC+eOm5IMXxTilzZ6fMsJs/VofSL v00JCJCCGCZ/HLuxOp1CaQFfL2l6Cnx03HrhaKYT5P5mG9kVr+kB6JjBKGP4SuFJ1Iue 8LlIRr2OzOkbsEXexLZIxXydQttYIk5qVZF8q36uPSlm0H0Erlqo2+88rsLBRQYMUT6R Lyjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@postmarketos.org header.s=donut header.b=Rxst1Wni; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id s3-20020a637703000000b005b8a18ec2dbsi6078290pgc.303.2023.10.24.13.56.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 13:56:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@postmarketos.org header.s=donut header.b=Rxst1Wni; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 073218087268; Tue, 24 Oct 2023 13:55:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344160AbjJXUzZ (ORCPT + 27 others); Tue, 24 Oct 2023 16:55:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343984AbjJXUzX (ORCPT ); Tue, 24 Oct 2023 16:55:23 -0400 X-Greylist: delayed 474 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 24 Oct 2023 13:55:20 PDT Received: from proxmox1.postmarketos.org (proxmox1.postmarketos.org [213.239.216.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A3E2610CE; Tue, 24 Oct 2023 13:55:20 -0700 (PDT) From: Stefan Hansson DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=donut; t=1698180447; 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=WftJlpZtFCnefMD8OenIbNEyH0eXljfkuOxB9Oej6aQ=; b=Rxst1WnimFjLSG7P0Z5cFri2f6nwirDv/8oQIEVZoZwAWmOuIOpOewTuLowKs+hYZaBX/P ZCkM44qUbboBg+e42niQ2x58EcVyb58TlMzLIsPs/kXKGOX3FZxGe14J5srceH5atIoyVz zzL+4R9DSRuTR1L8vFVCbFQyGz/A/fc= To: Andy Gross , 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 Subject: [PATCH v2 3/4] ARM: dts: qcom: Add support for Samsung Galaxy Tab 4 10.1 LTE (SM-T535) Date: Tue, 24 Oct 2023 22:33:44 +0200 Message-ID: <20231024204505.125813-4-newbyte@postmarketos.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231024204505.125813-1-newbyte@postmarketos.org> References: <20231024204505.125813-1-newbyte@postmarketos.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 24 Oct 2023 13:55:30 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780671815344240954 X-GMAIL-MSGID: 1780671815344240954 Add a device tree for the Samsung Galaxy Tab 4 10.1 (SM-T535) LTE tablet based on the MSM8926 platform. Signed-off-by: Stefan Hansson --- arch/arm/boot/dts/qcom/Makefile | 1 + .../qcom/qcom-msm8926-samsung-matisselte.dts | 36 +++++++++++++++++++ 2 files changed, 37 insertions(+) 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 a3d293e40820..cab35eeb30f6 100644 --- a/arch/arm/boot/dts/qcom/Makefile +++ b/arch/arm/boot/dts/qcom/Makefile @@ -34,6 +34,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-msm8916-samsung-serranove.dtb \ qcom-msm8926-microsoft-superman-lte.dtb \ qcom-msm8926-microsoft-tesla.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-msm8926-samsung-matisselte.dts b/arch/arm/boot/dts/qcom/qcom-msm8926-samsung-matisselte.dts new file mode 100644 index 000000000000..6e25b1a74ce5 --- /dev/null +++ b/arch/arm/boot/dts/qcom/qcom-msm8926-samsung-matisselte.dts @@ -0,0 +1,36 @@ +// 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"; +}; + +&pm8226_l3 { + regulator-max-microvolt = <1350000>; +}; + +&pm8226_s4 { + regulator-max-microvolt = <2200000>; +}; + +®_tsp_3p3v { + gpio = <&tlmm 32 GPIO_ACTIVE_HIGH>; +}; + +&sdhc_2 { + /* SD card fails to probe with error -110 */ + status = "disabled"; +}; + +&tsp_en1_default_state { + pins = "gpio32"; +};