From patchwork Sun Jul 24 17:24:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Patchwork-Id: 12927592 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6449CCA47C for ; Sun, 24 Jul 2022 17:25:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230490AbiGXRZA (ORCPT ); Sun, 24 Jul 2022 13:25:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbiGXRY7 (ORCPT ); Sun, 24 Jul 2022 13:24:59 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5B6610FDF; Sun, 24 Jul 2022 10:24:57 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id b21so3681021ljk.8; Sun, 24 Jul 2022 10:24:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kEqMaeNBAGPeiVakMqD7j5ZbFrxHuSRmgJ0iAS3vjNY=; b=NNkXMHViFoZ9XvY+WmaxJHFCHP9huFcvHDFPeQucD7Pq/bjQ2hMam2o3ew8PyHFSPB u0ELI5Y1OgVVNqvnLu8iThCYZ8ff2t1Y0M9M+XlLrvkpGRVJTknwEoffssQAmp5rorut Ja4PPJ+V5cyGTeD8s8zcEkdDuu3LZhvzin0IHvJ8/dtYgvTHLl0QdA6fr9XaKtEbpejl d4LRtePzAbzdARDf4mfjHMe6if6cVynb8tOMc910TjLxcsW60jAG0UtfxJscBiwKv8+F pTKCspHe6Q7Ud1mnS3kQ2Mgktxt3l1OSE8LxVKy8/71QBj26uhIuiNJArz5nJLT1kLEk eRjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kEqMaeNBAGPeiVakMqD7j5ZbFrxHuSRmgJ0iAS3vjNY=; b=e2Ud5SOtXS+7HvAtw+8g1X/PQrtLLld3L5IlCDfPddm70u99Qm1Y2aKu5e+qaTYXzi ApaQ7OVhFk3DZwjaBb/H1/1QZ9nM9r1UbVJm8YvorLmf13k7iWPeOftEbOHSMNjQU61r byFoTFKhyCN9rwOjj4UijEIyD9oA7/KJ9Y921xnnxZ0zCN8S4pZSapU1PcFpycxT1/dS o7YOP9cqnBoxKHfQTfwOtvZQbseJrMvVKMm1jLLzHPKTAIiWNQ6OBuxERzS2y4XAH+Wv XOQozmNdRDtOPDCFYLyNSlrZYD3zZj3FWOTSCtA/kWTKqPxyyOam7reTx/I8mhVscZK8 W7Nw== X-Gm-Message-State: AJIora/GjNDYoakBlUPo45raCgDuvBUNBBNh2LXpImN3a07b15Qxz6ww z+w/QPp+IZxlbin4n3dvFfMoOyDPDICYapsNS0I= X-Google-Smtp-Source: AGRyM1s6qutVwGep7Lod+dAs/FagMiAfGMUmr7f4JLMbL3iontxFpS2aG4C+FPLeB417Db94zBsPSw== X-Received: by 2002:a05:651c:151:b0:25d:e967:23e1 with SMTP id c17-20020a05651c015100b0025de96723e1mr2831769ljd.346.1658683496133; Sun, 24 Jul 2022 10:24:56 -0700 (PDT) Received: from i-vetokaappi.home.lan (dsl-hkibng42-5673c7-93.dhcp.inet.fi. [86.115.199.93]) by smtp.gmail.com with ESMTPSA id d7-20020a19f247000000b0048a73d83b7csm1928322lfk.133.2022.07.24.10.24.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jul 2022 10:24:55 -0700 (PDT) From: =?utf-8?q?Matti_Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, =?utf-8?q?Matti_Lehtim=C3=A4ki?= , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/3] ARM: dts: qcom: pm8226: Add node for the GPIOs Date: Sun, 24 Jul 2022 20:24:39 +0300 Message-Id: <20220724172442.87830-2-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220724172442.87830-1-matti.lehtimaki@gmail.com> References: <20220724172442.87830-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The PM8226 provides 8 GPIOs. Add a node to support them. Signed-off-by: Matti Lehtimäki Reviewed-by: Dmitry Baryshkov Acked-by: Krzysztof Kozlowski --- (no changes since v2) Changes in v2: - Rename pm8226 gpio node --- arch/arm/boot/dts/qcom-pm8226.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/qcom-pm8226.dtsi b/arch/arm/boot/dts/qcom-pm8226.dtsi index 9b7d9d04ded6..0c10fa16a0f3 100644 --- a/arch/arm/boot/dts/qcom-pm8226.dtsi +++ b/arch/arm/boot/dts/qcom-pm8226.dtsi @@ -90,6 +90,16 @@ pm8226_mpps: mpps@a000 { interrupt-controller; #interrupt-cells = <2>; }; + + pm8226_gpios: gpio@c000 { + compatible = "qcom,pm8226-gpio", "qcom,spmi-gpio"; + reg = <0xc000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pm8226_gpios 0 0 8>; + interrupt-controller; + #interrupt-cells = <2>; + }; }; pm8226_1: pm8226@1 { From patchwork Sun Jul 24 17:24:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Patchwork-Id: 12927593 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 133C2CCA48D for ; Sun, 24 Jul 2022 17:25:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231888AbiGXRZC (ORCPT ); Sun, 24 Jul 2022 13:25:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231474AbiGXRZB (ORCPT ); Sun, 24 Jul 2022 13:25:01 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65F1A10FDD; Sun, 24 Jul 2022 10:24:59 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id b34so5488397ljr.7; Sun, 24 Jul 2022 10:24:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MzzappSQtTkOMAtMriBW1gNBijXJuuoCP7t8bnvHFRQ=; b=X49vyZ5hV1IUPScJ5zWwUZLwmJG6u3WA4H2k55I4favrQmTGiaUC3+pc9Uhas9/zU1 82CFBs2eXXuwGHCX71DMXC2TUVUfaEv0jIY2pUrCBW7zM+0CXPx6X5wbComhB76fVbPN E1l8rqqlUBUW7QZOv8Ui7uoUxRoKdJfqfxtYvvNjTDnM6FL6iVjqKkPbid1+v8k60UPr U52fEa4rOrbuLFAfVssKhT52abNuxhukJab3lzpQ877ouMW05veLY/weuLqhzf2wVeQ7 itNw/1OkXg2b38e5ggJW41igNDW/HUmpJIlxoxgoYqqNS5y04r1E/fBIcVnc98aFYhlY 5ohA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MzzappSQtTkOMAtMriBW1gNBijXJuuoCP7t8bnvHFRQ=; b=dZQI0tmic4Mf8EVnYEYT0gYxmym1jH4UUUJ52XBo48QqibG8moY0spY0FAoEBkVRTA Yq7RuDX+yO4FowX74qMfqcGW/EmxCsbs2Gme/YOtoTZoBYWlXZoz4snmqJ0Cir2ia/2N V8ZzBRy6+DmpoepF/Tj1lhWEVftYCZCIHp3oay+KOm70fkzcrunnNxokcUxblGqs3UzV a1Y5o2ODcdWBh9e+FrEA4jLWZ/u8by7zmTV+Cprh8ZNKEJA/Co2rcldXSpS648BMmH6V mIzI6mkqIwFPcSTKMm/qrORopmwUqx9gRxWn/1lsBIgL8M5V7iPzV452NJYIqvsPnM8v hcag== X-Gm-Message-State: AJIora+RZ6s4XV8Xt9hPyboMgt92WS32tNJRMPu31dvKOfgXI1U/aPXo /GZ0R4+TsTNJufbz/5cUOySS6xFrTkMN+3XC858= X-Google-Smtp-Source: AGRyM1sd8l4ptrULcdgHJaOOHAigxaiQxUgXtoWErgSJOPXiPZ03tvRYpJS9zBVF/tKJqLIrn+0o4g== X-Received: by 2002:a2e:895a:0:b0:25d:6815:98ff with SMTP id b26-20020a2e895a000000b0025d681598ffmr2867171ljk.189.1658683497738; Sun, 24 Jul 2022 10:24:57 -0700 (PDT) Received: from i-vetokaappi.home.lan (dsl-hkibng42-5673c7-93.dhcp.inet.fi. [86.115.199.93]) by smtp.gmail.com with ESMTPSA id d7-20020a19f247000000b0048a73d83b7csm1928322lfk.133.2022.07.24.10.24.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jul 2022 10:24:57 -0700 (PDT) From: =?utf-8?q?Matti_Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, =?utf-8?q?Matti_Lehtim=C3=A4ki?= , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Stephen Boyd , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/3] dt-bindings: arm: qcom: Document samsung,matisse-wifi device Date: Sun, 24 Jul 2022 20:24:40 +0300 Message-Id: <20220724172442.87830-3-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220724172442.87830-1-matti.lehtimaki@gmail.com> References: <20220724172442.87830-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add binding documentation for Samsung Galaxy Tab 4 10.1 (2014) wifi tablet which is based on Snapdragon 400 (apq8026) SoC. Signed-off-by: Matti Lehtimäki Acked-by: Krzysztof Kozlowski --- (no changes since v2) Changes in v2: - Change codename to matisse-wifi --- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index 5c06d1bfc046..5b5b0e0ee8e7 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -104,6 +104,7 @@ properties: - enum: - asus,sparrow - lg,lenok + - samsung,matisse-wifi - const: qcom,apq8026 - items: From patchwork Sun Jul 24 17:24:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Patchwork-Id: 12927594 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E114BC43334 for ; Sun, 24 Jul 2022 17:25:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232902AbiGXRZK (ORCPT ); Sun, 24 Jul 2022 13:25:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231698AbiGXRZE (ORCPT ); Sun, 24 Jul 2022 13:25:04 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 042E610FEB; Sun, 24 Jul 2022 10:25:02 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id m12so13820857lfj.4; Sun, 24 Jul 2022 10:25:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6GRiW2zkx25/goI4FZW0/S+Tv9QEr9m8FlebSmvbDHo=; b=oCV7jnmT2Mn3GzR8zuZrmsR54vl1bceoXVXZGlmgCKwYkFi7FFhLyhSPWYizu0TkDC YzbhDoxeZsydWWdVh8rSmUJys/Km9r01e0veLHkpZNIA5kFw3i6BdLl8BJ2s0CKRR7jp HIFiUMTZQNy0DzvElv9bJHoZhoFSMyraPsvkT1sFNe9pDbxMw6b374SBiq11lLIm6+SJ Bu4XVPyQid1tSn0gA+e02HQK6k1qKmEfcK8E3a+/7/yROIPyp01la6a7KerXaOEvNyx1 i8WJVy60Ion4+Im9c9VdgducZmfCKI/7Ux9Fhdc6Jg7CCWh6ZMSnc6N76Jm7QNhVsanl r15w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6GRiW2zkx25/goI4FZW0/S+Tv9QEr9m8FlebSmvbDHo=; b=a6zYbiZrMkjmZM+QaGjBFjSlXRCj/Z5NRNPSrUrnHh0SKUrssCNIF7BYwxIDZlKH7l jaLKLW/pQOKiRloKAR/oX00HSYa/uEsdv4RKLTqOjy7bUGUbaS5KFg53MtKhKu3SrAKh OD2TUSlJmvfv7Ad0rbBHrrI9dqmkExVSkn9/qtCBKeaMl44yqjjXODS6Kq0cY1pjDBch Cx0u/3ztBNUAnBFW+L9+aL76GEmlgbldPV3wl67mUtVoUqmOGuRTwCgzxUpw/XLU0om2 sZoQVibpqJj1rAcxpEYC9zskO/oGb19iZhElloIu38gISVOHaoicqflEs1jE8NCytmow FSCQ== X-Gm-Message-State: AJIora+SB6APTwspT+mtuj8Caq15OjHnbZeiJWVNU5V/i+GD+4SOj9zf RIPRAATAhyDm27e9vvCAmKin6dpsq+VXX2FZuss= X-Google-Smtp-Source: AGRyM1sVJKHPCbU/lFubT0Gz2Y/V9cLgOJEUvlvhXCEphn7A+Ff4fO0BdhdPdktXxhEHHufGAXN7Mg== X-Received: by 2002:a05:6512:1092:b0:48a:766e:7e20 with SMTP id j18-20020a056512109200b0048a766e7e20mr3438776lfg.646.1658683500229; Sun, 24 Jul 2022 10:25:00 -0700 (PDT) Received: from i-vetokaappi.home.lan (dsl-hkibng42-5673c7-93.dhcp.inet.fi. [86.115.199.93]) by smtp.gmail.com with ESMTPSA id d7-20020a19f247000000b0048a73d83b7csm1928322lfk.133.2022.07.24.10.24.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jul 2022 10:24:59 -0700 (PDT) From: =?utf-8?q?Matti_Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, =?utf-8?q?Matti_Lehtim=C3=A4ki?= , Arnd Bergmann , Olof Johansson , soc@kernel.org, Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/3] ARM: dts: qcom: Add support for Samsung Galaxy Tab 4 10.1 (SM-T530) Date: Sun, 24 Jul 2022 20:24:41 +0300 Message-Id: <20220724172442.87830-4-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220724172442.87830-1-matti.lehtimaki@gmail.com> References: <20220724172442.87830-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add a device tree for the Samsung Galaxy Tab 4 10.1 (SM-T530) wifi tablet based on the apq8026 platform. Currently supported are accelerometer sensor, hall sensor, internal storage, physical buttons (power & volume), screen (based on simple-framebuffer set up by the bootloader), sdcard, touchscreen and USB. Signed-off-by: Matti Lehtimäki --- Changes in v3: - Fix sdhc_2 bus width - Reorder includes Changes in v2: - Change codename to matisse-wifi - Remove msm-id, not needed when lk2nd is used - Remove unused labels from reserved memory regions - Rename muic node --- arch/arm/boot/dts/Makefile | 1 + .../dts/qcom-apq8026-samsung-matisse-wifi.dts | 469 ++++++++++++++++++ 2 files changed, 470 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 5112f493f494..8bac4f4f8656 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1010,6 +1010,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-apq8016-sbc.dtb \ qcom-apq8026-asus-sparrow.dtb \ qcom-apq8026-lg-lenok.dtb \ + qcom-apq8026-samsung-matisse-wifi.dtb \ qcom-apq8060-dragonboard.dtb \ qcom-apq8064-cm-qs600.dtb \ qcom-apq8064-ifc6410.dtb \ diff --git a/arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts b/arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts new file mode 100644 index 000000000000..78a119107069 --- /dev/null +++ b/arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts @@ -0,0 +1,469 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, Matti Lehtimäki + */ + +/dts-v1/; + +#include +#include "qcom-msm8226.dtsi" +#include "qcom-pm8226.dtsi" + +/delete-node/ &smem_region; + +/ { + model = "Samsung Galaxy Tab 4 10.1"; + compatible = "samsung,matisse-wifi", "qcom,apq8026"; + chassis-type = "tablet"; + + aliases { + mmc0 = &sdhc_1; /* SDC1 eMMC slot */ + mmc1 = &sdhc_2; /* SDC2 SD card slot */ + display0 = &framebuffer0; + }; + + chosen { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + stdout-path = "display0"; + + framebuffer0: framebuffer@3200000 { + compatible = "simple-framebuffer"; + reg = <0x3200000 0x800000>; + width = <1280>; + height = <800>; + stride = <(1280 * 3)>; + format = "r8g8b8"; + }; + }; + + gpio-hall-sensor { + compatible = "gpio-keys"; + + event-hall-sensor { + label = "Hall Effect Sensor"; + gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>; + interrupts = <&tlmm 110 IRQ_TYPE_EDGE_FALLING>; + linux,input-type = ; + linux,code = ; + debounce-interval = <15>; + wakeup-source; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + autorepeat; + + key-home { + label = "Home"; + gpios = <&tlmm 108 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + }; + + key-volume-down { + label = "Volume Down"; + gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + }; + + key-volume-up { + label = "Volume Up"; + gpios = <&tlmm 106 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + }; + }; + + i2c-muic { + compatible = "i2c-gpio"; + sda-gpios = <&tlmm 14 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; + scl-gpios = <&tlmm 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; + + pinctrl-names = "default"; + pinctrl-0 = <&muic_i2c_default_state>; + + #address-cells = <1>; + #size-cells = <0>; + + muic: usb-switch@25 { + compatible = "siliconmitus,sm5502-muic"; + reg = <0x25>; + + interrupt-parent = <&tlmm>; + interrupts = <67 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-names = "default"; + pinctrl-0 = <&muic_int_default_state>; + }; + }; + + reg_tsp_1p8v: regulator-tsp-1p8v { + compatible = "regulator-fixed"; + regulator-name = "tsp_1p8v"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + gpio = <&tlmm 31 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-names = "default"; + pinctrl-0 = <&tsp_en_default_state>; + }; + + reg_tsp_3p3v: regulator-tsp-3p3v { + compatible = "regulator-fixed"; + regulator-name = "tsp_3p3v"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + gpio = <&tlmm 73 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-names = "default"; + pinctrl-0 = <&tsp_en1_default_state>; + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + framebuffer@3200000 { + reg = <0x3200000 0x800000>; + no-map; + }; + + mpss@8400000 { + reg = <0x08400000 0x1f00000>; + no-map; + }; + + mba@a300000 { + reg = <0x0a300000 0x100000>; + no-map; + }; + + reserved@cb00000 { + reg = <0x0cb00000 0x700000>; + no-map; + }; + + wcnss@d200000 { + reg = <0x0d200000 0x700000>; + no-map; + }; + + adsp@d900000 { + reg = <0x0d900000 0x1800000>; + no-map; + }; + + venus@f100000 { + reg = <0x0f100000 0x500000>; + no-map; + }; + + smem_region: smem@fa00000 { + reg = <0xfa00000 0x100000>; + no-map; + }; + + reserved@fb00000 { + reg = <0x0fb00000 0x260000>; + no-map; + }; + + rfsa@fd60000 { + reg = <0x0fd60000 0x20000>; + no-map; + }; + + rmtfs@fd80000 { + compatible = "qcom,rmtfs-mem"; + reg = <0x0fd80000 0x180000>; + no-map; + + qcom,client-id = <1>; + }; + }; +}; + +&blsp1_i2c2 { + status = "okay"; + + accelerometer@1d { + compatible = "st,lis2hh12"; + reg = <0x1d>; + + interrupt-parent = <&tlmm>; + interrupts = <54 IRQ_TYPE_LEVEL_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&accel_int_default_state>; + + st,drdy-int-pin = <1>; + + vdd-supply = <&pm8226_l19>; + vddio-supply = <&pm8226_lvs1>; + }; +}; + +&blsp1_i2c5 { + status = "okay"; + + touchscreen@4a { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + + interrupt-parent = <&tlmm>; + interrupts = <17 IRQ_TYPE_LEVEL_LOW>; + + pinctrl-names = "default"; + pinctrl-0 = <&tsp_int_rst_default_state>; + + reset-gpios = <&pm8226_gpios 6 GPIO_ACTIVE_LOW>; + + vdd-supply = <®_tsp_1p8v>; + vdda-supply = <®_tsp_3p3v>; + }; +}; + +&rpm_requests { + pm8226-regulators { + compatible = "qcom,rpm-pm8226-regulators"; + + pm8226_s3: s3 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1300000>; + }; + + pm8226_s4: s4 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8226_s5: s5 { + regulator-min-microvolt = <1150000>; + regulator-max-microvolt = <1150000>; + }; + + pm8226_l1: l1 { + regulator-min-microvolt = <1225000>; + regulator-max-microvolt = <1225000>; + }; + + pm8226_l2: l2 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + pm8226_l3: l3 { + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <1337500>; + regulator-always-on; + }; + + pm8226_l4: l4 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + pm8226_l5: l5 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + pm8226_l6: l6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + pm8226_l7: l7 { + regulator-min-microvolt = <1850000>; + regulator-max-microvolt = <1850000>; + }; + + pm8226_l8: l8 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + pm8226_l9: l9 { + regulator-min-microvolt = <2050000>; + regulator-max-microvolt = <2050000>; + }; + + pm8226_l10: l10 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8226_l12: l12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8226_l14: l14 { + regulator-min-microvolt = <2750000>; + regulator-max-microvolt = <2750000>; + }; + + pm8226_l15: l15 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + + pm8226_l16: l16 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3350000>; + }; + + pm8226_l17: l17 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + + regulator-system-load = <200000>; + regulator-allow-set-load; + regulator-always-on; + }; + + pm8226_l18: l18 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + }; + + pm8226_l19: l19 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <3000000>; + }; + + pm8226_l20: l20 { + regulator-min-microvolt = <3075000>; + regulator-max-microvolt = <3075000>; + }; + + pm8226_l21: l21 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + pm8226_l22: l22 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3000000>; + }; + + pm8226_l23: l23 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + + pm8226_l24: l24 { + regulator-min-microvolt = <1300000>; + regulator-max-microvolt = <1350000>; + }; + + pm8226_l25: l25 { + regulator-min-microvolt = <1775000>; + regulator-max-microvolt = <2125000>; + }; + + pm8226_l26: l26 { + regulator-min-microvolt = <1225000>; + regulator-max-microvolt = <1300000>; + }; + + pm8226_l27: l27 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8226_l28: l28 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + pm8226_lvs1: lvs1 {}; + }; +}; + +&sdhc_1 { + status = "okay"; + + vmmc-supply = <&pm8226_l17>; + vqmmc-supply = <&pm8226_l6>; + + bus-width = <8>; + non-removable; +}; + +&sdhc_2 { + status = "okay"; + + vmmc-supply = <&pm8226_l18>; + vqmmc-supply = <&pm8226_l21>; + + bus-width = <4>; + cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; +}; + +&tlmm { + accel_int_default_state: accel-int-default-state { + pins = "gpio54"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + muic_i2c_default_state: muic-i2c-default-state { + pins = "gpio14", "gpio15"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + muic_int_default_state: muic-int-default-state { + pins = "gpio67"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + tsp_en_default_state: tsp-en-default-state { + pins = "gpio31"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + tsp_en1_default_state: tsp-en1-default-state { + pins = "gpio73"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + tsp_int_rst_default_state: tsp-int-rst-default-state { + pins = "gpio17"; + function = "gpio"; + drive-strength = <10>; + bias-pull-up; + }; +}; + +&usb { + status = "okay"; + extcon = <&muic>, <&muic>; +}; + +&usb_hs_phy { + extcon = <&muic>; + v1p8-supply = <&pm8226_l10>; + v3p3-supply = <&pm8226_l20>; +};