From patchwork Sat Nov 25 12:05:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 169709 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp1889970vqx; Sat, 25 Nov 2023 04:06:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFszBiRtl0ecveqc6iZ2VxQEN5chJME9HgsJRYXgSbvBP9i23I/vpJLCBwbt0sQRR/OTiiH X-Received: by 2002:a05:6a20:8401:b0:18b:9f43:7d75 with SMTP id c1-20020a056a20840100b0018b9f437d75mr7131714pzd.17.1700914010710; Sat, 25 Nov 2023 04:06:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700914010; cv=none; d=google.com; s=arc-20160816; b=Moh13z3jhj7Cn8XjKNSMWzn8nDG9a9zHuVGVdPhG3iH3bnwdg5Rel0D3tZncX8RhRW /MMAKEu/14IDIcmRTk6OzAhr3/SDGBJtT1aZtfhxki+X8bHdUchpn1/1Fy8a4b3Te4Yw XjwI/lYLUJwr3G82G6UfJJ7AkMMJwpE1yXhbjnz1BEDqELmFQzcZf7xy2+JsgKOaCdRv RRJM5hKTTri4o5RMlYwr535Yo6zMNgXYHLB2DUJF/flStKF1LEPIwBnLLfxVsReEcv7q cwV55TavekQUIKbOzwgc9w8HP/6oVPMWmZQUGICc+Uzb0rFxBFlryCC5xWQPDBMIqUF3 Hv1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=8Frwy0V5eLcaFrSQl1iDUAkFujPi0gyeAIWR3FsrVnA=; fh=SxZEQPa7J6gyZ5OaJ10v2d9i5tj9VpW8lbemGEErldk=; b=QRm0crNkHeAc0yqY53CcxxuzdpcCuex+5926trinhVFbR5zC5tn9BQI5rYoU5UG9T1 plGsqjyYymGlbGNzV/JkXdRCjgprtmHVyibxQiYc+231Td5d7pA6FaSq8yROAiVNowDQ L2VU5L4umF/R38RvpNxPS8mdUgVjGb/XRJ36f8pbDnIMYTwPLSsTxFVnqDPjufbGqiRu +mEPdfwWNIlFVl7ucnj9a7RYAXwAB/aJAAJaWN92uHx+H5Zd9497An49nT5aLwqsnEbl tCS/gs83J2uBl1ghBrMnzD69adNrJ1mHeh15uc2YMt5PySKBXD407xNiZL1Vnraexnax mYQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=KwldGkRA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id k24-20020a63ba18000000b005c200cf68absi5643747pgf.229.2023.11.25.04.06.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 04:06:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=KwldGkRA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 09EB1803F8E9; Sat, 25 Nov 2023 04:06:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232050AbjKYMGe (ORCPT + 99 others); Sat, 25 Nov 2023 07:06:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232139AbjKYMGU (ORCPT ); Sat, 25 Nov 2023 07:06:20 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67B5519BD; Sat, 25 Nov 2023 04:06:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1700913954; bh=RAZ74Knzjdmb2BEEYQF0t/FZOb3VEv5E7RbVxw1ZbJY=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=KwldGkRALilZUKj875SHMm/dFy6/JZdTLQszdVT1BDpM/PviYDNl3awaXd51x3HPr WzZPz3nenSkddmTg8wCvhmMPrqGzFChDEQ4h20ThRBzgCeaZqc+WJ545Sg0mbpxgoE TzbyRE71cusC0U6bgpsI6quUzPMb3nhusy2XiqgY= From: Luca Weiss Date: Sat, 25 Nov 2023 13:05:34 +0100 Subject: [PATCH v3 2/3] dt-bindings: arm: qcom: Add HTC One Mini 2 MIME-Version: 1.0 Message-Id: <20231125-htc-memul-v3-2-e8f4c5839e23@z3ntu.xyz> References: <20231125-htc-memul-v3-0-e8f4c5839e23@z3ntu.xyz> In-Reply-To: <20231125-htc-memul-v3-0-e8f4c5839e23@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Luca Weiss , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=768; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=RAZ74Knzjdmb2BEEYQF0t/FZOb3VEv5E7RbVxw1ZbJY=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlYeMeInpiHC6IX1Jiu/Qli+uWruxnoyq/ixb06 jVlZGHIzjuJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZWHjHgAKCRBy2EO4nU3X VnZ+D/0drQsDA7qS79urMBWG7sPQgQDtpkuzbv5TTKlueDh7E735FEhJuZ34fDSDsMXU/bGcLlR Gu3WnPiMgLrMq67+et3SQQWYyPfnwEvXc3s2ZrK8PgZIRZ9R6LoPZxggxlDQS6WIvxxZCbIY11n gDKfRGPPeqivIMKmHve6+qW5F1mmwyMwYUkHewHFAhWn+57nWPiTUoiua+zJNHl3u6TKpcGEi7v gHnmu/w+NCHpKCs4uBhUAzhtRsqf49VLOWExNvbV4bP8/u0wZGpC7JEYSNui+QwgCFOXanFzzW6 yUR1xEh6txMhvlUt4M/6ocVDSfGlQ2qf454s9KTMcKHTjKdxUAtG2pVI8t2M1hH3NvAS2Taw+mI zCGiRKlZQ2LCx3FthfK6oSxsA1TNQAq8BJyR6YeF0Y9s/BXfNMHQqpRwOEGbsxa4Q23ZKjylTfg 1+pG9lx8MC8Asx0zb1ChVKK7FlmPE9lshpr0vhVrVgwLk0EAm4JBGAZP/tayj5lXiA+8CzNiel1 vYYdtEZR3nEpYuVHSnMPFMnaS5ik6fCcAoiwPUPcTbdKj2kKbztt3eOCkCUrZ8u/Nzr0Ov7SEJ9 A+gLAjwWnFtSyl+vJCaqHzmVrEG9LUp2kAn2/XOE+QKCPNMnUsP4PgFZC+A88Xu+sm8TK4MafR1 RXe6Kh0LVH711+w== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Sat, 25 Nov 2023 04:06:48 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783537609995118747 X-GMAIL-MSGID: 1783537609995118747 Document the compatible for the MSM8926-based HTC One Mini 2 smartphone. Acked-by: Krzysztof Kozlowski Signed-off-by: Luca Weiss --- 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 88b84035e7b1..60605f2d237b 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -194,6 +194,7 @@ properties: - items: - enum: + - htc,memul - microsoft,superman-lte - microsoft,tesla - const: qcom,msm8926 From patchwork Sat Nov 25 12:05:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 169711 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp1890512vqx; Sat, 25 Nov 2023 04:07:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3CRNcQhADWcZbfXSuFMv3UpijQ8qZbXODpOjF7w/rtrfmPa73Bb+c1GrhJGeDZTBClWsB X-Received: by 2002:a05:6808:3c46:b0:3b8:3399:8731 with SMTP id gl6-20020a0568083c4600b003b833998731mr8277700oib.57.1700914069067; Sat, 25 Nov 2023 04:07:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700914069; cv=none; d=google.com; s=arc-20160816; b=tNR5DZ7v5zrcuI55IKy3Qg7GF9Gsvzn+E2V5At5RAgwutXMV3b4AgGHVh6vB2WIkBL GE55YrZmulX78GV2tGHKE2S1FwnN7Y4TmTSl/T2p+Vw65ltcEBW1VB0f7QEi6JlaO2H+ tTWwadytyZzUJF2Cm4zGthpGHISBpggLkU5jCLhzvDvcjMqwzBV8OkMzSkgzxgUxsR1q nrN1kcYLVvq2xaf6ccWH6t5hMVodWOcnOeB402WELbsiKkLixmZUzCSdNLk2ERj8EnYd BJeb9EvFFPtXHFwlWFto1rmRfOOiTS4qVqyWKGVjVWQzHigk/a1k276ALjmGdqTV3sOK 0AiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=7EmeSXhf10CAhwAZDmJG3Y3a3BhLMY4uBa9L2nP1NiU=; fh=p/bg9NVpTiVjbBmm0OUDdw072NCVCLC8AJOG5FEIOhI=; b=GNpbw4Jsuf4Iit1Obpwmom+jHtr+Aqu49WVtOrjTLdHXulDfRK7WoHDpNriGHokrEq 3jpAlsNM3k4jtZ+L0fuQjcCv5aaPCmG76DHt/1fGJ76QjcDVKT+ZEY/LTE53T3PplfTQ KvcW4QXPB0T0vNLm0zQyXzBhsMIeYmkE6hRAJiuNiOzpz2wg8TghXhgxlK5CX6mZJn8V R1DajT2EdAJj3t67tcFUni/+QOt9GAoNikJxYZ6Eg+KrUVIF5Z25nmHx7JL9vlmCohZ5 7VPi0NjD0BnYa4T8rQag0STHNaODUCL68HI2i023CZeawZjnv22AntwY9GP6c1BI9EW/ zsCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=cDG9qlVZ; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id g14-20020a63200e000000b0056569ee3ae6si5821300pgg.798.2023.11.25.04.07.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 04:07:49 -0800 (PST) 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=@z3ntu.xyz header.s=z3ntu header.b=cDG9qlVZ; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 3AED58075917; Sat, 25 Nov 2023 04:06:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231971AbjKYMFz (ORCPT + 99 others); Sat, 25 Nov 2023 07:05:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231934AbjKYMFv (ORCPT ); Sat, 25 Nov 2023 07:05:51 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BECBD10E4; Sat, 25 Nov 2023 04:05:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1700913954; bh=XWd0m3Sk3KVal5HsS3OYVlpwywwhjxKlou4dUtYlXOg=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=cDG9qlVZbz9bOjgmGUHNyG+id2CL55cuXbFEpEXaiobxBCOw81tXxGDbmSp13ygI/ S1xhKJNvPqSkXX7tJnYR2avDP/+MGoJ3poMfBeCsSgNZVzyuTW1NM5XRphdLGB1n2Z mHC3hcWuDBEWyrFq6VgatRiobwI/UcNj4Sj3JQ58= From: Luca Weiss Date: Sat, 25 Nov 2023 13:05:35 +0100 Subject: [PATCH v3 3/3] ARM: dts: qcom: Add support for HTC One Mini 2 MIME-Version: 1.0 Message-Id: <20231125-htc-memul-v3-3-e8f4c5839e23@z3ntu.xyz> References: <20231125-htc-memul-v3-0-e8f4c5839e23@z3ntu.xyz> In-Reply-To: <20231125-htc-memul-v3-0-e8f4c5839e23@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=8858; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=XWd0m3Sk3KVal5HsS3OYVlpwywwhjxKlou4dUtYlXOg=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlYeMfhAWy4yhj4hp4FAGc+ryRYrmRmxUfN4YqF pX0Qb3X8Z+JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZWHjHwAKCRBy2EO4nU3X VtEiD/9yEgLcoaxC8l1JYNROzzEFnX8lxDF9Qob9s6mvkrPvBlbf0QNAVCtEiPVoOnpBRUMcq+6 tC72fLAS2kvrlifR8gQ2k9xngbQndaVke1ng/yGRymeWZTXC45hsVMAPwkRBuSC9kTsYao6s4rD Z8Ub/6Y84pO3lYmPnVKW41ld9x0QM6Id7gfgG7rWblY+Vej0ivUgWH8cnQFpE0d5jieuxOOfcAb LTer7JzbSAAyJbHf/jW1vSt5MaFwvK24cuwTPXOxTxmbgMB+OlzaB7HsavE34Vp7mWBYFv8/Cyj 9vEqwIVt8OA+DQO8HmWMp6AoAMZqoF1Eq+7H9Wc1asXyS05+1Nb0Ia9aKhbXnIo6HjyIxjDdUgU zXm4Sip60d+uSHyDJjgiagWLHiw9Gc8yY8kiKW15JAdaSbWTmWB2DweaNnD9jaibL4lrdyqcr/Y Qi/TQ+nQAL3ily4LmUrBMrOY1vM8j10AmGzkYeOwntcFlncoBSC9/nz4DVg+lr/auOx3sTUElBP RmCf1VowT4m4tmECIPjgaAKitAUaa1fVRHF7i0Soo9VITSQntI4zT9eWJjjFn4X1MuNRPyVPP0J DecLxFq0VFrdj0T+p8f+x960r17S/lUXAPsMh9Tl4gnB5FBlnLRyK2nN37af2bR4lmnqilwM4Lg NnwJe70+NSOTmvg== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD 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_PASS,T_SCC_BODY_TEXT_LINE 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]); Sat, 25 Nov 2023 04:06:43 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783537671261129838 X-GMAIL-MSGID: 1783537671261129838 Add support for this smartphone based on the MSM8926 SoC, codenamed "memul". Supported functionality: * Power & volume buttons * ADSP * Magnetometer * Accelerometer * Touchscreen * Vibrator * SD card * Charger * USB Reviewed-by: Konrad Dybcio Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/Makefile | 1 + arch/arm/boot/dts/qcom/qcom-msm8926-htc-memul.dts | 370 ++++++++++++++++++++++ 2 files changed, 371 insertions(+) diff --git a/arch/arm/boot/dts/qcom/Makefile b/arch/arm/boot/dts/qcom/Makefile index a3d293e40820..0cb272f4fa45 100644 --- a/arch/arm/boot/dts/qcom/Makefile +++ b/arch/arm/boot/dts/qcom/Makefile @@ -32,6 +32,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-msm8916-samsung-e7.dtb \ qcom-msm8916-samsung-grandmax.dtb \ qcom-msm8916-samsung-serranove.dtb \ + qcom-msm8926-htc-memul.dtb \ qcom-msm8926-microsoft-superman-lte.dtb \ qcom-msm8926-microsoft-tesla.dtb \ qcom-msm8960-cdp.dtb \ diff --git a/arch/arm/boot/dts/qcom/qcom-msm8926-htc-memul.dts b/arch/arm/boot/dts/qcom/qcom-msm8926-htc-memul.dts new file mode 100644 index 000000000000..06d357e743f3 --- /dev/null +++ b/arch/arm/boot/dts/qcom/qcom-msm8926-htc-memul.dts @@ -0,0 +1,370 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2023, Luca Weiss + */ + +/dts-v1/; + +#include "qcom-msm8226.dtsi" +#include "qcom-pm8226.dtsi" + +/delete-node/ &adsp_region; +/delete-node/ &smem_region; + +/ { + model = "HTC One Mini 2"; + compatible = "htc,memul", "qcom,msm8926", "qcom,msm8226"; + chassis-type = "handset"; + + aliases { + mmc1 = &sdhc_2; /* SDC2 SD card slot */ + }; + + gpio-keys { + compatible = "gpio-keys"; + + key-power { + label = "Power"; + gpios = <&tlmm 106 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 108 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + }; + }; + + reserved-memory { + unknown@5b00000 { + reg = <0x05b00000 0x200000>; + no-map; + }; + + unknown@7500000 { + reg = <0x07500000 0xb00000>; + no-map; + }; + + mpss_region: mpss@8000000 { + reg = <0x08000000 0x4f00000>; + no-map; + }; + + unknown@cf00000 { + reg = <0x0cf00000 0x200000>; + no-map; + }; + + mba_region: mba@d100000 { + reg = <0x0d100000 0x3a000>; + no-map; + }; + + unknown@d13a000 { + reg = <0x0d13a000 0xc6000>; + no-map; + }; + + wcnss_region: wcnss@d200000 { + reg = <0x0d200000 0x650000>; + no-map; + }; + + unknown@d850000 { + reg = <0x0d850000 0x3b0000>; + no-map; + }; + + adsp_region: adsp@dc00000 { + reg = <0x0dc00000 0x1400000>; + no-map; + }; + + unknown@f000000 { + reg = <0x0f000000 0x500000>; + no-map; + }; + + venus_region: venus@f500000 { + reg = <0x0f500000 0x500000>; + no-map; + }; + + smem_region: smem@fa00000 { + reg = <0x0fa00000 0x100000>; + no-map; + }; + + unknown@fb00000 { + reg = <0x0fb00000 0x1b00000>; + no-map; + }; + }; +}; + +&adsp { + firmware-name = "qcom/msm8926/memul/adsp.mbn"; + status = "okay"; +}; + +&blsp1_i2c2 { + status = "okay"; + + magnetometer@d { + compatible = "asahi-kasei,ak8963"; + reg = <0x0d>; + interrupts-extended = <&tlmm 66 IRQ_TYPE_EDGE_RISING>; + vdd-supply = <&pm8226_l19>; + vid-supply = <&pm8226_l28>; + }; + + accelerometer@18 { + compatible = "bosch,bma250e"; + reg = <0x18>; + interrupts-extended = <&tlmm 63 IRQ_TYPE_EDGE_RISING>; + vdd-supply = <&pm8226_l19>; + vddio-supply = <&pm8226_l28>; + }; +}; + +&blsp1_i2c4 { + status = "okay"; + + /* TFA9887 @ 34 */ + /* TFA9887 @ 35 */ +}; + +&blsp1_i2c5 { + status = "okay"; + + touchscreen@20 { + compatible = "syna,rmi4-i2c"; + reg = <0x20>; + + interrupts-extended = <&tlmm 17 IRQ_TYPE_EDGE_FALLING>; + vdd-supply = <&pm8226_l19>; + + syna,startup-delay-ms = <160>; + + #address-cells = <1>; + #size-cells = <0>; + + rmi4-f01@1 { + reg = <0x1>; + syna,nosleep-mode = <1>; + }; + + rmi4-f12@12 { + reg = <0x12>; + syna,sensor-type = <1>; + }; + }; +}; + +&blsp1_i2c6 { + status = "okay"; + + /* NCP6924 Camera Regulators @ 10 */ + /* PN544 NFC @ 28 */ + /* TPS61310 Flash/Torch @ 33 */ +}; + +&pm8226_vib { + status = "okay"; +}; + +&rpm_requests { + regulators { + compatible = "qcom,rpm-pm8226-regulators"; + + pm8226_s3: s3 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1350000>; + }; + + pm8226_s4: s4 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2200000>; + }; + + 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>; + }; + + 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>; + }; + + pm8226_l7: l7 { + regulator-min-microvolt = <1850000>; + regulator-max-microvolt = <1850000>; + }; + + pm8226_l8: l8 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + 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 = <3000000>; + regulator-max-microvolt = <3000000>; + }; + + pm8226_l16: l16 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3350000>; + }; + + pm8226_l17: l17 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + }; + + pm8226_l18: l18 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + }; + + pm8226_l19: l19 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + pm8226_l20: l20 { + regulator-min-microvolt = <3075000>; + regulator-max-microvolt = <3075000>; + }; + + pm8226_l21: l21 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + regulator-allow-set-load; + }; + + pm8226_l22: l22 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + pm8226_l23: l23 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3000000>; + }; + + 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 = <1225000>; + }; + + pm8226_l27: l27 { + regulator-min-microvolt = <2050000>; + regulator-max-microvolt = <2050000>; + }; + + pm8226_l28: l28 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8226_lvs1: lvs1 {}; + }; +}; + +&sdhc_2 { + vmmc-supply = <&pm8226_l18>; + vqmmc-supply = <&pm8226_l21>; + + bus-width = <4>; + cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; + + status = "okay"; +}; + +&smbb { + qcom,fast-charge-safe-current = <1750000>; + qcom,fast-charge-current-limit = <1750000>; + qcom,fast-charge-safe-voltage = <4360000>; + qcom,fast-charge-high-threshold-voltage = <4350000>; + qcom,auto-recharge-threshold-voltage = <4300000>; + qcom,minimum-input-voltage = <4300000>; +}; + +&usb { + extcon = <&smbb>; + dr_mode = "peripheral"; + status = "okay"; +}; + +&usb_hs_phy { + extcon = <&smbb>; + v1p8-supply = <&pm8226_l10>; + v3p3-supply = <&pm8226_l20>; +};