From patchwork Tue Sep 27 21:49:37 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: 12991415 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 2CD74C6FA92 for ; Tue, 27 Sep 2022 21:50:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232210AbiI0VuJ (ORCPT ); Tue, 27 Sep 2022 17:50:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231956AbiI0VuF (ORCPT ); Tue, 27 Sep 2022 17:50:05 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 171A539138; Tue, 27 Sep 2022 14:49:54 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id j16so17688127lfg.1; Tue, 27 Sep 2022 14:49:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=HJXe3gZv56ziiy/Iqiz+aCPpEAir8UgiNRNBIB+JgvI=; b=cmRdgKJaQp8ZP/tz7DiJ7Gd/VX6Uaj4p07f29IRR2mHGRue6ZPV14xb5IvUKyUrFhx G1zCmZXcrEppzfeMDdYaKbWEmXA+h/NI2bxu/lbQny4GqX4KUh+Jx/yPzBslBlpFXy06 54QCzjc/n2edcdRX4g43qJRw+p/K6wD+VTbLUpl97gJbX6qMXklTgaEk9D1GZ1skzyXK vXa4gj6MIYaJS0E8IYI2WIL69/UZUTUhc8MuRDKDGl4wrrGwgCc1neZQ6HFNA981VdDl Q8g8YniFJjLlZkLLFF3fhjJbjpiRpxXiIp3xtGA32Jj/+J2LWvG0bL86zV/SydqtRAfS upDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=HJXe3gZv56ziiy/Iqiz+aCPpEAir8UgiNRNBIB+JgvI=; b=1iNcF6gOic3LnsLwEAKEoGmcjMOMpWAn4VhKFaqiE0ljhupxfoxAGtltaXJPQ7lvIy YSLctU80/YJ/5FHgIBeTK67djiNbqa9O+lrmdCaj81VWpLmOwmYNnRkyeDjzOj3Bf/+V j1rxM63yV8JJW6SIfgwb3oZD1sMfps2WLOR/z5f0c32MU6Hj9iOJPnoCfCzaiKCGolXM GutzNCpTCfqAUEx/Ur9IAqXmkmjWcZ2eitzcw0t5tJ9SmXWswdhR1lcc93oVJSWccukG 99OtuMKcRT0Uj+tF3TSJlzprfB21TmAiKV47Ws4YYQIF7t2XByIwUpXvtpU8zv4NV4jZ x6pQ== X-Gm-Message-State: ACrzQf1ugyWEwRGBOBLzEsXNugzu5DfeAc1sr7GkxlPXnlGsPs7C+V8I m8gP7jG6/CKKaRNUy/CfNwSciAMb3Etc2w== X-Google-Smtp-Source: AMsMyM5spy55NXfBUltWrsKggDayo1j/QHeE8Kh5SD1MFscDUOLkIgX2UL6TeNAWXcinoGdXAMDd9Q== X-Received: by 2002:ac2:5462:0:b0:49d:101:e1ce with SMTP id e2-20020ac25462000000b0049d0101e1cemr11197686lfn.289.1664315392413; Tue, 27 Sep 2022 14:49:52 -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 u25-20020a2e2e19000000b0025fe7f33bc4sm279901lju.49.2022.09.27.14.49.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 14:49:51 -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?= , Dmitry Baryshkov , Konrad Dybcio , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 1/3] ARM: dts: qcom: pm8226: Add node for the GPIOs Date: Wed, 28 Sep 2022 00:49:37 +0300 Message-Id: <20220927214940.244480-2-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220927214940.244480-1-matti.lehtimaki@gmail.com> References: <20220927214940.244480-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 Reviewed-by: Konrad Dybcio 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 Tue Sep 27 21:49:38 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: 12991414 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 4C4DAC07E9D for ; Tue, 27 Sep 2022 21:50:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232161AbiI0VuI (ORCPT ); Tue, 27 Sep 2022 17:50:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231993AbiI0VuE (ORCPT ); Tue, 27 Sep 2022 17:50:04 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC30E46DB7; Tue, 27 Sep 2022 14:49:56 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id k10so17661211lfm.4; Tue, 27 Sep 2022 14:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=mzAbe27dU/1yrwR+00TAM5R4bCuMUl4NRC/4hekP9HI=; b=D0MLDmFCzrDHPaAoihQC4HNESIaoL+U9+T8O5T+wSr8rLLIJ4Cq8awtFVsYWR4ekDz eMiKi2Fz2sRkX1ItauA6IH8l++c4NHpUVNYMYr6aT3X77neUIb5gxdrxgsLt0jcq/Kvh +pr/BXE7kcZLJV9zHqXrO0SVoWMp1q9TjxP5b93Qg8Mp3AHp3kkj5s01lYJrQibhd75s vy539Eq5+pSqA5T7t0WLX7ljHfnZgcUIj0JATQlFLolIpT+JkAvZTTjWz+b/LHq0+ZmG abLVO/lGE+EmUbUUA7ISB2NJHIeBWN4x9/7sZ3dLfPw/Zu7EERURRVgEjhBAhMITGfD9 AMGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=mzAbe27dU/1yrwR+00TAM5R4bCuMUl4NRC/4hekP9HI=; b=zsTrXvWhiJkSFxEYAX4umkbYAecpWhfxK/QX00dQXftSA+QDs2GgYnwvGDo9DyISm4 Nkx/qrTSfNHTvJGyhiUhO8cXk6IZs6yJfI9uTCY6sp+1YLo4AuXpFTc5sqB9n7fHUAjk cyLsdPBRHJJR9bJm4tk09NPkEqfko1xOGbRNUDdtEKhKn9U/M02skMiqce/9gojg8Zpf QGA1DteNqBQ996LXR8J1OFpf8epaUP3V9TaeJRwWXl/dRX0dYrYUUKMElHughGhvUOTX yVcBvd8qszOJGmfRxjnmvnIUdM2QHAR5QvHClCuOPQPs2ZPEWWW2GMmJoho/F4m6xLlZ ZBmA== X-Gm-Message-State: ACrzQf1jxS4qFH69O/EnBc+cIy2PbWHWglCshlgbDL7rCZPthaPnYq7A 8AFJiiEmpnCB1iWkpQO4tQRV7nQuCQE32A== X-Google-Smtp-Source: AMsMyM5XF2Vp/tWGl1RAmm7JSsKWgOE3xh+phtDn9slW9iwn+q/Te+u3EFduCm0qsZyrOCiNxSDrpw== X-Received: by 2002:a05:6512:15a9:b0:498:f17b:c733 with SMTP id bp41-20020a05651215a900b00498f17bc733mr11634981lfb.606.1664315394694; Tue, 27 Sep 2022 14:49:54 -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 u25-20020a2e2e19000000b0025fe7f33bc4sm279901lju.49.2022.09.27.14.49.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 14:49:54 -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 , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 2/3] dt-bindings: arm: qcom: Document samsung,matisse-wifi device Date: Wed, 28 Sep 2022 00:49:38 +0300 Message-Id: <20220927214940.244480-3-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220927214940.244480-1-matti.lehtimaki@gmail.com> References: <20220927214940.244480-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 fb1d00bcc847..883ba92f589c 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -115,6 +115,7 @@ properties: - enum: - asus,sparrow - lg,lenok + - samsung,matisse-wifi - const: qcom,apq8026 - items: From patchwork Tue Sep 27 21:49: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: 12991416 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 55ABCC07E9D for ; Tue, 27 Sep 2022 21:55:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231428AbiI0Vzh (ORCPT ); Tue, 27 Sep 2022 17:55:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231986AbiI0Vzg (ORCPT ); Tue, 27 Sep 2022 17:55:36 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B9DE923E6; Tue, 27 Sep 2022 14:55:31 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id l12so12378935ljg.9; Tue, 27 Sep 2022 14:55:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=fX8vXmb3nLnVt1B17kjgCPqgJ57wIFhg/9plrIVXuzc=; b=AgTcDk3a5wWUJUAf6IJXXNChw+uOYs5jr2bBAqS4Lq4AoAK42cQCkbImp/7dBGLtWY YU7NA3TstqLk/HN87Wrb/OkeU6jc2DuXWd84BLtHIV2e+bWksy6HyadJu19tvexmnokv hizXNpMsQWqidKCeh8UPOOUsYGHhsi/Hu1A30UDnDEoVinu0f9pYQyIdyxAygLraoJXr 6zfH2NA+OAUWivdZq/qyJlyGvBHVK11hbfMK6eVP/91IqisqwJP66mCko6tyXzySmCR7 YFrlX/xXLRgBLcyIqXW13QeCI1Wd2Vji15mUIMsyxMUKAnar3KTQKvwrDjAWFV7wvHfM pBcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=fX8vXmb3nLnVt1B17kjgCPqgJ57wIFhg/9plrIVXuzc=; b=LqymIk9ZroiRnjkaqSrDAulykJxLNDiZUAT6MwYIAQWW5jU5d9EjavuxpFJqVSe2Aq TZzEZu1JA8xmBO3JeI/eI8wIvGdPXqPCLJLpGJYoPCp/U04sapnDj6f+f6iuQCOP6i3k /nP3j+DNkCZjJSm6KxbZ1Bivj1OHdzymgZLcuC4L9+zF6hlM4YtnrQktCdh8uWmeYKgX R30PpZ5gA1o+AjevvpRIXPRfpLep6OtWaXqx70b+vGEjuyvhXdnoD8sVCqqXROFHbBDF Nsg8wnjA2GlYS9Z3o3gNcudz6ZA2sPQ/l9KYl3XhreY3wUxwBYfr85AP4Duepfw0bMmX +WFQ== X-Gm-Message-State: ACrzQf1ktbJm9UujWyAxZcXm5jcmfF8R6wKWwZnvRfjgMJt6FcfD9Mz7 Yj2KEktLsvtcY4KoRzQDawwYKJmRCNr5JQ== X-Google-Smtp-Source: AMsMyM7NhKm114d4OpQqc+X02fdMdBoASFAlWylIyqLez7vNCciuBMQfFnM92y7puIVbdxR63e/iVg== X-Received: by 2002:a2e:b0d7:0:b0:26b:e586:86e9 with SMTP id g23-20020a2eb0d7000000b0026be58686e9mr10163073ljl.229.1664315398511; Tue, 27 Sep 2022 14:49:58 -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 u25-20020a2e2e19000000b0025fe7f33bc4sm279901lju.49.2022.09.27.14.49.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 14:49:58 -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 v6 3/3] ARM: dts: qcom: Add support for Samsung Galaxy Tab 4 10.1 (SM-T530) Date: Wed, 28 Sep 2022 00:49:39 +0300 Message-Id: <20220927214940.244480-4-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220927214940.244480-1-matti.lehtimaki@gmail.com> References: <20220927214940.244480-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 v6: - Set status as last property in nodes - Pad register addresses to 8 hex digits Changes in v5: - Rename pm8226-regulators node to fix issue reported by make dtbs_check Changes in v4: - Move delete-node to memory-region - Move usb-switch node to blsp_i2c4 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 | 453 ++++++++++++++++++ 2 files changed, 454 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 05d8aef6e5d2..69f6bbcf90c6 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1027,6 +1027,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..1c52337af560 --- /dev/null +++ b/arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts @@ -0,0 +1,453 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, Matti Lehtimäki + */ + +/dts-v1/; + +#include +#include "qcom-msm8226.dtsi" +#include "qcom-pm8226.dtsi" + +/ { + 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 = <0x03200000 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>; + }; + }; + + 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 = <0x03200000 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; + }; + + /delete-node/ smem@3000000; + smem_region: smem@fa00000 { + reg = <0x0fa00000 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_i2c4 { + status = "okay"; + + 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>; + }; +}; + +&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 { + 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 { + vmmc-supply = <&pm8226_l17>; + vqmmc-supply = <&pm8226_l6>; + + bus-width = <8>; + non-removable; + + status = "okay"; +}; + +&sdhc_2 { + vmmc-supply = <&pm8226_l18>; + vqmmc-supply = <&pm8226_l21>; + + bus-width = <4>; + cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; + + status = "okay"; +}; + +&tlmm { + accel_int_default_state: accel-int-default-state { + pins = "gpio54"; + 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 { + extcon = <&muic>, <&muic>; + status = "okay"; +}; + +&usb_hs_phy { + extcon = <&muic>; + v1p8-supply = <&pm8226_l10>; + v3p3-supply = <&pm8226_l20>; +};