From patchwork Wed Dec 7 18:30:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 30983 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp344963wrr; Wed, 7 Dec 2022 10:34:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Zv9RuPTxVpQOCPRJUtOFBxGTyC4IvDLRTqnuzE6qJfB3Y3ms3v1aYAmI+LHUgdcPCCulM X-Received: by 2002:a17:90a:a616:b0:219:6afd:24be with SMTP id c22-20020a17090aa61600b002196afd24bemr36823213pjq.0.1670438068813; Wed, 07 Dec 2022 10:34:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670438068; cv=none; d=google.com; s=arc-20160816; b=KBZc2yKhQzCFbe02s+jxPXdywKESlHmXTrU30/q8n9T4YQBKuk2ZWprxMfbtbF9Tgj Vic1WDPakyxqv8QHLgFcEJ3sUGVkWcelloOg3Krg8EcBcwTkEOukeUk+pMqsMpUm9Ed7 Qia5po0VHmqK4wlN+G21SoNTkGCci1/QJXx5CTmqbdn464Sw9Lrj5I3VzcdHiCv8uOIE UztibgIMoXpScg2lSMpZPVvrerkmkCCnoO+iwmKsBqdwk6QFQPY9YyCIxw7LQiORYt+J fVExSLLoJgqxWB0kADOlprXQDnfbJnzOW0GzhLfllns8Ihk2Ue5H8ykB1ISuqOQxmIto 1X5Q== 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=eHNqvLkjnoiFCW0hk6sSuG0YXku8QD+j/XWsGE0PAvI=; b=s31FAfKG4if5pNKMqkSAk/0BTCSx/TjZT+gyw0NMeBMfJs303EcXugU3SsIdSrS8lH mGNIbtEVZSR3J4IG5JhEqiHyP0ryOXWYQeL/mmZMYoTvJxb6gnMVcftRk2pwojquTU98 PmhyAin7Hv1UzxUFZgwqlNddaRElO9VgXRjs0FWQKOBfXrWfMR+5OYR5fLB3Zzci5dtp +H+rBdJJDaAoERErrH4vbw0fwgHu+aQJKm85Bt9c5c8ZwRBsdj28NqAVLRrRKYpxIUCk LB/vgkL67KA8WA5YbjuYdQOPQrOVkWjjC0iB5dAHG4N1FjAX1wNoNn3eZABfMEHzmVRg dJdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=lqUvmB3H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t6-20020a17090a950600b0021846dc82a3si2012700pjo.18.2022.12.07.10.34.15; Wed, 07 Dec 2022 10:34:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=lqUvmB3H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229675AbiLGSbF (ORCPT + 99 others); Wed, 7 Dec 2022 13:31:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbiLGSbC (ORCPT ); Wed, 7 Dec 2022 13:31:02 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF2296C728; Wed, 7 Dec 2022 10:31:00 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 9A931CA469; Wed, 7 Dec 2022 18:30:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1670437859; bh=CL5KW81BJDK7GvVQuSAfITYvbryePD8pkoaJleSZyVs=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=lqUvmB3H+zcRLd76BEXcRmo5w2kxggk7jGL3w/QqnJdSi7BeJLlNZ2xLgxVBaPR+l UtWwCaB1wmhRqTWZ1rgkDDRYUdGNk/MW7rHHhEDuZizYY/nJ5YJI+iI4C6mpOxMm4i zAOX+L1j/duJJ6U4FISia+GtIrISLVDoKiTA0wtw= From: Luca Weiss Date: Wed, 07 Dec 2022 19:30:38 +0100 Subject: [PATCH v3 1/9] dt-bindings: arm: qcom: document new msm8953-family devices MIME-Version: 1.0 Message-Id: <20221207-msm8953-6-1-next-dtbs-v3-v3-1-a64b3b0af0eb@z3ntu.xyz> References: <20221207-msm8953-6-1-next-dtbs-v3-v3-0-a64b3b0af0eb@z3ntu.xyz> In-Reply-To: <20221207-msm8953-6-1-next-dtbs-v3-v3-0-a64b3b0af0eb@z3ntu.xyz> To: Krzysztof Kozlowski , Rob Herring , Konrad Dybcio , Kees Cook , "Guilherme G. Piccoli" , Andy Gross , Bjorn Andersson , Tony Luck Cc: Gabriela David , Eugene Lepshy , linux-hardening@vger.kernel.org, Anton Bambura , Krzysztof Kozlowski , Luca Weiss , Adam Skladowski , ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, Danila Tikhonov , Gianluca Boiano , Sireesh Kodali , Vladimir Lypak , Julian Braha , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Alejandro Tafalla X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2237; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=CL5KW81BJDK7GvVQuSAfITYvbryePD8pkoaJleSZyVs=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBjkNva3qghZA5biCuXwpgh6lMoB7b4T0KPile+mQOF f8vGFkmJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY5Db2gAKCRBy2EO4nU3XVmnED/ 4gzcuAprln2W+j1EjLWFNbGWy9nN9sEUhLG1US94QGYE4tVTJpQtYWvYx2PRXBrJwKdpw/D7GctwKe TRfNtaT4mRzmWaz8vDygAi+LygXuj7cZMPtXFOVORnzf8Rj9+PsFz++kU/qYUykPSeEfzWqZdzGboG Gp/+u71MsYKFcZyP7iKigvMy7L/FqOUWULJp3HJrHD/ZaJyFhyWUrzlrdNkVD7wi/ziSHbzhzeVmwG BQkkp4Bciw2saPod8opDibMB630eMdH6ffFo/N9RZgotx3s0ErWU4oC4IBqODJUUFBPdb4ejNMv0gN kJKwaIOp9GCbff4mmZcqOt7Gu/pmpIUggm4Igg15wZvULKfSvZrQnObKBYHEgNyYO3sIjezcEodeqA 5e28e6yVPItdNfFy+po4eUWsNvV/l7EJeYNLiZRMShsyGZl3GSo6gr6krS1s5EL1yQS5n1o0UE0xc8 GT+DXJXZItMKcY93+vCaPBssk336u+pohj6H18D5tB2yIlRATcFGzPCzWqdtyCNDh5PvmXsBJkJsv4 8hRCPSsGeFnLa7HRqN7zZ7JNdMAvlEVLdrkYdrsbJ0J3aaMsoBAme+NO4ku15DEz60SaWz8HF7urM/ hG2M258N0X2nM1kkNPUeJF67LUMWxJSFI7S+jRvHtTEl4H2c1O+j2BUAbYAA== 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,FROM_SUSPICIOUS_NTLD, SPF_HELO_NONE,SPF_PASS,T_PDS_OTHER_BAD_TLD 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751581268596156169?= X-GMAIL-MSGID: =?utf-8?q?1751581268596156169?= Document the various phones added in upcoming patches. Also allow qcom,msm-id and qcom,board-id for msm8953 and sdm450. Signed-off-by: Luca Weiss Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/qcom.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index 27063a045bd0..aa83ef0e8ac1 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -35,6 +35,7 @@ description: | mdm9615 msm8226 msm8916 + msm8953 msm8956 msm8974 msm8976 @@ -52,6 +53,7 @@ description: | sc8180x sc8280xp sda660 + sdm450 sdm630 sdm632 sdm636 @@ -213,6 +215,15 @@ properties: - const: qcom,msm8916-v1-qrd/9-v1 - const: qcom,msm8916 + - items: + - enum: + - motorola,potter + - xiaomi,daisy + - xiaomi,mido + - xiaomi,tissot + - xiaomi,vince + - const: qcom,msm8953 + - items: - enum: - lg,bullhead @@ -693,6 +704,11 @@ properties: - qcom,sc8280xp-qrd - const: qcom,sc8280xp + - items: + - enum: + - motorola,ali + - const: qcom,sdm450 + - items: - enum: - sony,discovery-row @@ -709,6 +725,7 @@ properties: - items: - enum: - fairphone,fp3 + - motorola,ocean - const: qcom,sdm632 - items: @@ -922,10 +939,12 @@ allOf: - qcom,apq8026 - qcom,apq8094 - qcom,apq8096 + - qcom,msm8953 - qcom,msm8992 - qcom,msm8994 - qcom,msm8996 - qcom,msm8998 + - qcom,sdm450 - qcom,sdm630 - qcom,sdm632 - qcom,sdm845 From patchwork Wed Dec 7 18:30:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 30979 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp344436wrr; Wed, 7 Dec 2022 10:33:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Yz3x1vwW3XZuWcF1u3D9JO3GrS3Xzk55MQAAYHvoiyFbLRTtJJedHbWe827S8S3Vq8n03 X-Received: by 2002:a05:6402:4023:b0:46c:f631:c0e6 with SMTP id d35-20020a056402402300b0046cf631c0e6mr9870050eda.251.1670437997471; Wed, 07 Dec 2022 10:33:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670437997; cv=none; d=google.com; s=arc-20160816; b=u6WPMUop3HJV1vah6tjMQrGcxo+96Kggp4c5lYF/gwQ/ZHLsYZFTABR5ghQQrxmo46 Gceb2SR8cTDwOpdtMl+OMOLeAJBEoRQmUiNcguL+yPLDAAijshUEbgGU36BYum43DzxA 1xYOyBrxYXvt17wHnv0QfDM0KRLHwo3XKuzcnIM4Rp967YTFb2n8eESRN4doLQ+JuuTP ODcwWQkongI7ZtUcefdDG+j5Kri5WacU4HDmt3oHz1Zruki96F0uKZmT9s+zCzb894fp jB/TO33wSKWDdOvjfCBrNvIbpM1mCeEi8h0RwteuVjFTGUhk4Zd6apm5oCny8gjoRJM+ 41XA== 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=0Bd6VSFXWcCsr2gL+aobyoxrpPXGmALbK6cFIDQeD/0=; b=VWrtDatmZQnbfIch7Ou0LcHcHx8GOjFREO6xdh4j7UwX7LPdvb4JpQndWTy8sy6SZ5 /VFQ4EdSQUuqM7YwoCSiKBOgMT47EB/reyoR3OT3xl0EaSZE/QL8Ceoaq6UCP1Ts7mLZ BzpXoq68J48NKGWvjL8ORAcOGl6YaZUG1PvziBXml3X3sbOrTH00p0ZVp64hdSclZzUR W6sphLJEI+XuoYknQ217+jnCfFeCobhoXwqfqz32hnM6nu/Ixl8bDXrETbfoPU2AEeam CgEI9RFl4v4idU2i3620XpBuaaJAA1jB33b463qzTSdhyUnD6JJQk15Oe0vlTimXdeSp kXYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=Mx4mU9BK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho13-20020a1709070e8d00b007c098bddb61si5008148ejc.448.2022.12.07.10.32.54; Wed, 07 Dec 2022 10:33:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=Mx4mU9BK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229796AbiLGSbq (ORCPT + 99 others); Wed, 7 Dec 2022 13:31:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229809AbiLGSbc (ORCPT ); Wed, 7 Dec 2022 13:31:32 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0439E6C728; Wed, 7 Dec 2022 10:31:31 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 17F6BCA46D; Wed, 7 Dec 2022 18:30:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1670437859; bh=B+AM+CcfgTRFOdwUZ63j7q7vBTSNvVXCXcySWzAp1hM=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=Mx4mU9BKB8YHc/pCCWTNpwjZwlu7khgaAy9Kf2Hleee930pwui9NL2JEWdiUKySz3 i/OuIUPUDuLofPcmVLKcoFv2hf1K3zoM3ADYzgTIdrSitzdMoFMKFVhH/Fi5/kH0gW codKX8s7aLBMCgNXAEPK4+TXDBG8jJ+zAOvGjAOw= From: Luca Weiss Date: Wed, 07 Dec 2022 19:30:39 +0100 Subject: [PATCH v3 2/9] arm64: dts: qcom: msm8953: Adjust reserved-memory nodes MIME-Version: 1.0 Message-Id: <20221207-msm8953-6-1-next-dtbs-v3-v3-2-a64b3b0af0eb@z3ntu.xyz> References: <20221207-msm8953-6-1-next-dtbs-v3-v3-0-a64b3b0af0eb@z3ntu.xyz> In-Reply-To: <20221207-msm8953-6-1-next-dtbs-v3-v3-0-a64b3b0af0eb@z3ntu.xyz> To: Krzysztof Kozlowski , Rob Herring , Konrad Dybcio , Kees Cook , "Guilherme G. Piccoli" , Andy Gross , Bjorn Andersson , Tony Luck Cc: Gabriela David , Eugene Lepshy , linux-hardening@vger.kernel.org, Anton Bambura , Krzysztof Kozlowski , Luca Weiss , Adam Skladowski , ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, Danila Tikhonov , Gianluca Boiano , Sireesh Kodali , Vladimir Lypak , Julian Braha , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Alejandro Tafalla X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2417; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=B+AM+CcfgTRFOdwUZ63j7q7vBTSNvVXCXcySWzAp1hM=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBjkNvb8MkvoDCBCcRBiz6BD2Ywv5+8Tt+2/TenOAMP 9fleJw+JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY5Db2wAKCRBy2EO4nU3XVgd8EA CiJhz7sSU4qDafwF0FGbFj13g+FFDaLxvmCLOzrLlvK7XrrmiwEb7Ii7Vx3x+CAbIApwerVAoY9Ibv 5th5dGa/saNnV5qJ4BSbtHPFJSbto1tQ3F4tTzEGAM9m+o6GWEPMmXjocwKAY7AT93U14r3pAzYEVZ y1WBm7b+tsm5GVeFyxBoE8vofMK46A+6WZ+mG3sb7NprxArhPpbOCcaiyOWQCbCd0IIUG//doqDY4y 1DOGN0CCE7wdNziNVEkKPCHpyswJKyufCPegR82ry9rMhuDZpnqBTse/+d4oN/hMnjXjw5E76b1AZi OU/PmBja55IpXfUxwFWPABIwQJeZcl9M1+brOUQDFdU0T6L/eBCmhRMkcOeU24OilPSXuCXPtTMYen Bw0ogjyZvsD1eOVHX9nUfNOwWj+Ik5/rZaHeEkuZoJAYEtWTWQCN1hzXBgCEGB/B4/diMG89d48oXM JFSxhUy2KdX4jMyevo9nHintjlmm4HIwsDCpneV0EYAX5BSss/qEyS+WV6MnPVLeFC0Hm7gYPVGYw+ 6iRGwrIsbPo9J6x5AVReaiRvDCE4KplmRChaFXkM6a5lp9LgHdt1LKf5sdNQAbS/h3kJ5729ujOeOr Zcwg/LktIR6/UtFA48yeSUuNKYBR9tRqSeQOYHUUhiD5DgKrCgFkP5ZWj2xg== 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,FROM_SUSPICIOUS_NTLD, SPF_HELO_NONE,SPF_PASS,T_PDS_OTHER_BAD_TLD 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751581193644989777?= X-GMAIL-MSGID: =?utf-8?q?1751581193644989777?= Adjust node names so they're not just memory@ but actually show what they're used for. Also add labels to most nodes so we can easily reference them from devices. Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8953.dtsi | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi b/arch/arm64/boot/dts/qcom/msm8953.dtsi index 32349174c4bd..62d2ae30711b 100644 --- a/arch/arm64/boot/dts/qcom/msm8953.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8953.dtsi @@ -245,18 +245,18 @@ reserved-memory { #size-cells = <2>; ranges; - zap_shader_region: memory@81800000 { + zap_shader_region: zap@81800000 { compatible = "shared-dma-pool"; reg = <0x0 0x81800000 0x0 0x2000>; no-map; }; - memory@85b00000 { + qseecom_mem: qseecom@85b00000 { reg = <0x0 0x85b00000 0x0 0x800000>; no-map; }; - smem_mem: memory@86300000 { + smem_mem: smem@86300000 { compatible = "qcom,smem"; reg = <0x0 0x86300000 0x0 0x100000>; qcom,rpm-msg-ram = <&rpm_msg_ram>; @@ -264,47 +264,47 @@ smem_mem: memory@86300000 { no-map; }; - memory@86400000 { + reserved@86400000 { reg = <0x0 0x86400000 0x0 0x400000>; no-map; }; - mpss_mem: memory@86c00000 { + mpss_mem: mpss@86c00000 { reg = <0x0 0x86c00000 0x0 0x6a00000>; no-map; }; - adsp_fw_mem: memory@8d600000 { + adsp_fw_mem: adsp@8d600000 { reg = <0x0 0x8d600000 0x0 0x1100000>; no-map; }; - wcnss_fw_mem: memory@8e700000 { + wcnss_fw_mem: wcnss@8e700000 { reg = <0x0 0x8e700000 0x0 0x700000>; no-map; }; - memory@90000000 { + dfps_data_mem: dfps-data@90000000 { reg = <0 0x90000000 0 0x1000>; no-map; }; - memory@90001000 { + cont_splash_mem: cont-splash@90001000 { reg = <0x0 0x90001000 0x0 0x13ff000>; no-map; }; - venus_mem: memory@91400000 { + venus_mem: venus@91400000 { reg = <0x0 0x91400000 0x0 0x700000>; no-map; }; - mba_mem: memory@92000000 { + mba_mem: mba@92000000 { reg = <0x0 0x92000000 0x0 0x100000>; no-map; }; - memory@f2d00000 { + rmtfs@f2d00000 { compatible = "qcom,rmtfs-mem"; reg = <0x0 0xf2d00000 0x0 0x180000>; no-map; From patchwork Wed Dec 7 18:30:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 30978 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp344364wrr; Wed, 7 Dec 2022 10:33:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf6wbr4Xnp+bkSBsHHZjycIdqxJun3orYltkfNzncS8AOnXCyjQQbVc8NEoIEwtsRO4RRA7d X-Received: by 2002:a17:906:d211:b0:79d:f5f2:6f55 with SMTP id w17-20020a170906d21100b0079df5f26f55mr58177054ejz.531.1670437991600; Wed, 07 Dec 2022 10:33:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670437991; cv=none; d=google.com; s=arc-20160816; b=TnETPoryqluuYxfQWOfT0uEXgE8VjPyyWIDSCLRGAGySTOye113t/lp8pWPtNvEgQx IpI68VhoJJXsA0sOk+luW3smCO48WOzGFIal1WhXyDf145/pYCmtzv/TVtZ6oFbaA1ug 0GiMF7ojz7Edq1kyI0wfKQBW6KY4x7mchd0hoqCCJP/HLEkMkXmRuunCJV4CQSDz2/0c wRbbPeuoxNKOz7mFqPlKKkbbX5Cqw7mGTfNf1PaRKywKAwpTk+Wds8xYVUfRrLMhneC4 ZG12dd2BvBWUg2I1mfjwHOyvHT+QagwwKZHI/KuPS4ZDqTICzZ7tO+FS0vTHUDkSXcOu JiVQ== 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=4HP7l93V/PaQH3xTp6Ys6XH5xN5P7vykqWfel9w5h68=; b=MjEMJMD8G1r7/FQLrOOrPHjqHaN9G7KpOqHOM7uusk2B8DpyJ4G07q1vXq9LTSXi27 PL+hJvtKQ75nPLTdtbZgtwhTHScJDpyeNidKFs5vb3SSvD9049Xj/9pFw6kWh9Hg01ky It4Z+pIFPlXWv1nzfvtk8zQijOLblbOJmwWuRGcStqpZsRmTa/YLIPk690qG+4vMxmnd dyapnvcg2149mDX4d5i0LY5PNfL0/vk3sn1ak805O9A7IKPTv3zpoxnJALPxHJp5vTK0 9D012TT2/3QBmskPQsazaWroB7lZgWcLrQs5rx2qFGQwHvIyPiuGsRLc6+j2HoBffG6X mk+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=lx4oaurz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho9-20020a1709070e8900b007c106ff40ddsi5665474ejc.631.2022.12.07.10.32.48; Wed, 07 Dec 2022 10:33:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=lx4oaurz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229763AbiLGSbp (ORCPT + 99 others); Wed, 7 Dec 2022 13:31:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbiLGSbc (ORCPT ); Wed, 7 Dec 2022 13:31:32 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67D3C6C738; Wed, 7 Dec 2022 10:31:31 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 7E8E4CA46E; Wed, 7 Dec 2022 18:30:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1670437859; bh=3NYobxsgmI/f1HWzVhaq1CGDv252AX/ZxmEmqHEFhmE=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=lx4oaurzqOtPSl+fPQohVYH3UpKDyEKAwA3Zm7gzZAFwSFIv7J5RNphwQ2owj85ve qURAl5ckONxr8C/bTJ4lpIgbYtH0UE+gu25YCbiz9HG74WLl5F6UOonMy6XmquGfQl iWWXw+sIIa0gkOLxeXI5H4NLNztBUy743HHcIVAg= From: Luca Weiss Date: Wed, 07 Dec 2022 19:30:40 +0100 Subject: [PATCH v3 3/9] arm64: dts: qcom: sdm450: Add device tree for Motorola Moto G6 MIME-Version: 1.0 Message-Id: <20221207-msm8953-6-1-next-dtbs-v3-v3-3-a64b3b0af0eb@z3ntu.xyz> References: <20221207-msm8953-6-1-next-dtbs-v3-v3-0-a64b3b0af0eb@z3ntu.xyz> In-Reply-To: <20221207-msm8953-6-1-next-dtbs-v3-v3-0-a64b3b0af0eb@z3ntu.xyz> To: Krzysztof Kozlowski , Rob Herring , Konrad Dybcio , Kees Cook , "Guilherme G. Piccoli" , Andy Gross , Bjorn Andersson , Tony Luck Cc: Gabriela David , Eugene Lepshy , linux-hardening@vger.kernel.org, Anton Bambura , Krzysztof Kozlowski , Luca Weiss , Adam Skladowski , ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, Danila Tikhonov , Gianluca Boiano , Sireesh Kodali , Vladimir Lypak , Julian Braha , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Alejandro Tafalla X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=6927; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=rX1h49uDBw+/pYJ6x2ppOAB8FuHs0pUY9JI/ADxtvo4=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBjkNvczbNQXVfIFJgUDTv7UHnFT1RjYuyv9cKQHdnb cUoJNkSJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY5Db3AAKCRBy2EO4nU3XVjunD/ 4m1OWQBy6hh6thKtSv5thmNDb3bOQom5pu0wR0S6lgwDeAytJBuwY2H7PIfZPmaqkeakx7DxvGUCSE 6SBRllytmSBFoj+gh0uibZ1uJ59NLqzs4igajH9LP/4O3htYl3viFk2TTs9sS8G1Bf2abgr3XTp5t1 zFFGJ0d1LZjOKeOsd9UXNEwtvprbLjJ7JJtX3cd2DI2XujpRI6L/ytJJe13ATmMrvF1fXdyitqKtV1 +iFEaOWW9tLiIp/a9SWLbKZf75vh73KFZ+6rT/5ZAOYVzbksAOkMwwx+cdxiXO17BRS0+11uTBnwDr L0tQNnq77GTIzYF2/JEgP3meWdICWntQlukOuc2IgKiDDlktSgFYwWJ/BmaN+RRbpUavUT/1xyx862 WzMxdVNNSCz7k8AT5PZ2LW+SNsY5KOfL2n7kvlycu07BB70bv54DdKBkK1wjTuMjb/KSXdKAnAs/Nb dFVx6+hdo1SDss5pJ/Ht4sSU/Rh9yzW3WyXXqjcHZzdT7eg0YNTLoA11rrCFIJAb2xuhmp4HoMGUT5 s9Kj7jRHYIGHus8Lirv6EP3gVcCmllin3iZzTcI1nT4+pwkoklYmKAioSDHmoLsoUAGTrmP7EsurwE 2elsNqjkPl0xZdDGC7nLte30o2LvpqyrEQ8wcSXMldPGLIoB4E4+8RyYJj3w== 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,FROM_SUSPICIOUS_NTLD, SPF_HELO_NONE,SPF_PASS,T_PDS_OTHER_BAD_TLD 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751581187469723151?= X-GMAIL-MSGID: =?utf-8?q?1751581187469723151?= From: Julian Braha Add device tree for the Motorola Moto G6 (ali) smartphone. This device is based on Snapdragon 450 (sdm450) SoC which is a variant of MSM8953. Signed-off-by: Julian Braha Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/sdm450-motorola-ali.dts | 252 +++++++++++++++++++++++ 2 files changed, 253 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 3e79496292e7..dcca6f084509 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -127,6 +127,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sc7280-crd-r3.dtb dtb-$(CONFIG_ARCH_QCOM) += sc8280xp-crd.dtb dtb-$(CONFIG_ARCH_QCOM) += sc8280xp-lenovo-thinkpad-x13s.dtb dtb-$(CONFIG_ARCH_QCOM) += sda660-inforce-ifc6560.dtb +dtb-$(CONFIG_ARCH_QCOM) += sdm450-motorola-ali.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm630-sony-xperia-ganges-kirin.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm630-sony-xperia-nile-discovery.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm630-sony-xperia-nile-pioneer.dtb diff --git a/arch/arm64/boot/dts/qcom/sdm450-motorola-ali.dts b/arch/arm64/boot/dts/qcom/sdm450-motorola-ali.dts new file mode 100644 index 000000000000..362be5719dd2 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm450-motorola-ali.dts @@ -0,0 +1,252 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, Julian Braha + */ +/dts-v1/; + +#include "msm8953.dtsi" +#include "pm8953.dtsi" +#include "pmi8950.dtsi" + +/delete-node/ &qseecom_mem; + +/ { + model = "Motorola Moto G6"; + compatible = "motorola,ali", "qcom,sdm450"; + chassis-type = "handset"; + qcom,msm-id = <338 0>; + qcom,board-id = <0x43 0xc200>; + + gpio-keys { + compatible = "gpio-keys"; + + key-volume-up { + label = "volume_up"; + gpios = <&tlmm 85 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + reserved-memory { + qseecom_mem: qseecom@84300000 { + reg = <0x0 0x84300000 0x0 0x2000000>; + no-map; + }; + + ramoops@ef000000 { + compatible = "ramoops"; + reg = <0x0 0xef000000 0x0 0xc0000>; + console-size = <0x40000>; + }; + }; + + vph_pwr: vph-pwr-regulator { + compatible = "regulator-fixed"; + regulator-name = "vph_pwr"; + regulator-always-on; + regulator-boot-on; + }; +}; + +&hsusb_phy { + vdd-supply = <&pm8953_l3>; + vdda-pll-supply = <&pm8953_l7>; + vdda-phy-dpdm-supply = <&pm8953_l13>; + + status = "okay"; +}; + +&i2c_3 { + status = "okay"; + + touchscreen@38 { + compatible = "edt,edt-ft5406"; + reg = <0x38>; + interrupt-parent = <&tlmm>; + interrupts = <65 IRQ_TYPE_EDGE_FALLING>; + vcc-supply = <&pm8953_l10>; + + pinctrl-names = "default"; + pinctrl-0 = <&ts_int_active &ts_reset_active>; + + reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>; + touchscreen-size-x = <1080>; + touchscreen-size-y = <2160>; + }; +}; + +&pm8953_resin { + linux,code = ; + status = "okay"; +}; + +&pmi8950_wled { + qcom,num-strings = <3>; + qcom,external-pfet; + qcom,cabc; + + status = "okay"; +}; + +&rpm_requests { + regulators { + compatible = "qcom,rpm-pm8953-regulators"; + + vdd_s1-supply = <&vph_pwr>; + vdd_s2-supply = <&vph_pwr>; + vdd_s3-supply = <&vph_pwr>; + vdd_s4-supply = <&vph_pwr>; + vdd_s5-supply = <&vph_pwr>; + vdd_s6-supply = <&vph_pwr>; + vdd_s7-supply = <&vph_pwr>; + vdd_l1-supply = <&pm8953_s3>; + vdd_l2_l3-supply = <&pm8953_s3>; + vdd_l4_l5_l6_l7_l16_l19-supply = <&pm8953_s4>; + vdd_l8_l11_l12_l13_l14_l15-supply = <&vph_pwr>; + vdd_l9_l10_l17_l18_l22-supply = <&vph_pwr>; + + pm8953_s1: s1 { + regulator-min-microvolt = <795000>; + regulator-max-microvolt = <1081000>; + }; + + pm8953_s3: s3 { + regulator-min-microvolt = <1224000>; + regulator-max-microvolt = <1224000>; + }; + + pm8953_s4: s4 { + regulator-min-microvolt = <1900000>; + regulator-max-microvolt = <2050000>; + }; + + pm8953_l1: l1 { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1100000>; + }; + + pm8953_l2: l2 { + regulator-min-microvolt = <975000>; + regulator-max-microvolt = <1225000>; + }; + + pm8953_l3: l3 { + regulator-min-microvolt = <925000>; + regulator-max-microvolt = <925000>; + }; + + pm8953_l5: l5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8953_l6: l6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8953_l7: l7 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1900000>; + }; + + pm8953_l8: l8 { + regulator-min-microvolt = <2900000>; + regulator-max-microvolt = <2900000>; + }; + + pm8953_l9: l9 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + }; + + pm8953_l10: l10 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + pm8953_l11: l11 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + }; + + pm8953_l12: l12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + pm8953_l13: l13 { + regulator-min-microvolt = <3125000>; + regulator-max-microvolt = <3125000>; + }; + + pm8953_l16: l16 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8953_l17: l17 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + pm8953_l19: l19 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1350000>; + }; + + pm8953_l22: l22 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2850000>; + }; + + pm8953_l23: l23 { + regulator-min-microvolt = <975000>; + regulator-max-microvolt = <1225000>; + }; + }; +}; + +&sdhc_1 { + vmmc-supply = <&pm8953_l8>; + vqmmc-supply = <&pm8953_l5>; + + status = "okay"; +}; + +&sdhc_2 { + vmmc-supply = <&pm8953_l11>; + vqmmc-supply = <&pm8953_l12>; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_off>; + pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; + + status = "okay"; +}; + +&tlmm { + gpio-reserved-ranges = <95 5>, <111 1>, <126 1>; + + ts_int_active: ts-int-active-state { + pins = "gpio65"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; + + ts_reset_active: ts-reset-active-state { + pins = "gpio64"; + function = "gpio"; + drive-strength = <0x08>; + bias-pull-up; + }; +}; + +&usb3 { + status = "okay"; +}; + +&usb3_dwc3 { + dr_mode = "peripheral"; +}; From patchwork Wed Dec 7 18:30:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 30985 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp345204wrr; Wed, 7 Dec 2022 10:35:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf63jN4fTADVz3D/HSMXMethxs0/V5Kx12wvyKxe3jQwGYFX2NBNKjlaZdwDzGsBl9LFcIPt X-Received: by 2002:a17:902:7584:b0:189:6292:990a with SMTP id j4-20020a170902758400b001896292990amr60048658pll.171.1670438100242; Wed, 07 Dec 2022 10:35:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670438100; cv=none; d=google.com; s=arc-20160816; b=ENskm5Mdm2RIepxMMT814hFgAENwgMSB+zAcm1XSKH7z2OBVZIbYEfosEET/VJ3ifB sQ1sDWwecL5TcHC17Y9velxGasQA6ao5CLMpGTccQOqWyHjGFm/vUBwWh3kTp36+qm09 cs0FbCNEhYInoDdK9v8lm5FgL3+kD4OnJRRhhDf0oqX9JeJuOLyXg2rto1sBWDPIWqfC /X2YE+5JvZQ6zgKZTFEoafFIsSFMhualXvRKxZzOHXNnEqgVcqfaWi6S52+ru8K9CcXQ ci1PfrdVTGeMmXcygPTGifOOQXGnzWER5PHo8H0A7ylVQW1dnYS5o0Lr8ULtDkrozPtL k0mQ== 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=j4iYheE9MmQ2H5zvqw5loKV3ZPvFe6nS6fdI6xNcQEw=; b=yjreVY73U/0sAzJmySmZLemK6xyGvDYkznR+KkonuLI7gYqeRImtXdkkHL0JqWafwg C8Jc19/F0A74gnj5QJ/vfG31LrpW/d+onpRjR+m/9dF3jAYfFuX+CrUsln+i5c8DOInJ 09ihNMLMk4klrUeYZQ5WDBbfXDou7XImIuMfdoRd0EnhUacKVoIWX99xhNLoyxxS1UNk r9RDxV1oyM0ViunQTmSDhq3a3bp4t2StE6/BNSqSGr8loukB/SfwNx2a/DdOnT77RENA yB/hSmNdIVyFkCH3xp9w2eh0QghboS9MYBSy7as+qfuNwZt0YpKAYbOmrQXiVOhLUap6 8Oiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=aVbvCdIA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 64-20020a630843000000b004770fe91070si20554733pgi.587.2022.12.07.10.34.46; Wed, 07 Dec 2022 10:35:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=aVbvCdIA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229886AbiLGSb5 (ORCPT + 99 others); Wed, 7 Dec 2022 13:31:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229770AbiLGSbd (ORCPT ); Wed, 7 Dec 2022 13:31:33 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5A706DCED; Wed, 7 Dec 2022 10:31:31 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 05D4ACA46F; Wed, 7 Dec 2022 18:31:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1670437860; bh=ziYJ5alYgPDCYdKyrJ3ErxhzqWB2pyFGEyyXqN3xjjo=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=aVbvCdIAVoupaHT0KMAujPYJ4floEP9ZpngUZG/pu6KWp7L0b5UkM8slMj9+PaP4x Kup322oaK7r7UmBCdiUIMcZAKjN1MA1kHIgSQ+A3oM3qnQj2A+buoBbDqNqObiTPIP wiBfU3N2lf+tMBQHPVbAqHqJ5qOAjkBJBjmYklzA= From: Luca Weiss Date: Wed, 07 Dec 2022 19:30:41 +0100 Subject: [PATCH v3 4/9] arm64: dts: qcom: msm8953: Add device tree for Motorola G5 Plus MIME-Version: 1.0 Message-Id: <20221207-msm8953-6-1-next-dtbs-v3-v3-4-a64b3b0af0eb@z3ntu.xyz> References: <20221207-msm8953-6-1-next-dtbs-v3-v3-0-a64b3b0af0eb@z3ntu.xyz> In-Reply-To: <20221207-msm8953-6-1-next-dtbs-v3-v3-0-a64b3b0af0eb@z3ntu.xyz> To: Krzysztof Kozlowski , Rob Herring , Konrad Dybcio , Kees Cook , "Guilherme G. Piccoli" , Andy Gross , Bjorn Andersson , Tony Luck Cc: Gabriela David , Eugene Lepshy , linux-hardening@vger.kernel.org, Anton Bambura , Krzysztof Kozlowski , Luca Weiss , Adam Skladowski , ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, Danila Tikhonov , Gianluca Boiano , Sireesh Kodali , Vladimir Lypak , Julian Braha , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Alejandro Tafalla X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=8084; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=eFObl3NPc+KgvXBxwx4ThXe25S6Q9ZZ6hfwUqvnRK/c=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBjkNvcvLAs5kbF36N+x0drZUZR6am/uKeZJzGf7a2W yaS/g5SJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY5Db3AAKCRBy2EO4nU3XVnKGD/ 9rgVAngR4gDiLi7sYEOmkp3SGjR80sXkt6MHu6dIeHyYp9ypdNvG9rR2POYBpByxrOA8rV8IWwy49J q2IeptgSVhj3UZcS8x4ozlbp3jyJ/l/Vje9e7tiS0ixcXWmju99xw0t6KIB0ZQrIePstmSRXDPI3Mp iMA7O65421G1dOSaUsmECkWNeafXeOEjQNB8kUYBrBPIOB8rWf9HjAtKZfxZTFMLe2SfRPuHVz3QSU MNM/CU70qm0XaS0frpQrBRYLGt4ap0WhoUhK55Up9fyxOWY54Tvgf8TWNW21NZn0s89dOjNUCtvlX+ NxkmQXOjsauEs8tw+PuT7uXyG7Md+48XkQDfDEsf2TZxTHdw9get6qr7naDqXSoj94fUuNvuUumLot IrYkDPVw8dH31q3jDu/XUCe39mQtqZHuhgcQ9tan9NoocXq+QOiG0vEb0MqznsgrtmyPaW+y/AYa7Q BN2u8XJEewhuLPKLNamu/eY7zs7QTjTYfhr98pw0BpcNSvbpHhVaQj3CjF9URJocptqFEA7zAsUC9p Yakll7iHJ81ALO6k+zRFufS7Jn2KsbeDRyzBXsVrQ5LmU2RRKmpONohAXh1n1YPtgsFsuNgZ2TfPLS cJEvzE5pClYRK6jCTTGzXTr9dpDyJlf1XasElT39g28sLGB0l+ouoLT7xZLw== 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,FROM_SUSPICIOUS_NTLD, SPF_HELO_NONE,SPF_PASS,T_PDS_OTHER_BAD_TLD 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751581301381881762?= X-GMAIL-MSGID: =?utf-8?q?1751581301381881762?= From: Sireesh Kodali Add device tree for the Motorola G5 Plus (potter) smartphone. This device is based on Snapdragon 625 (msm8953) SoC. Signed-off-by: Sireesh Kodali Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/msm8953-motorola-potter.dts | 305 +++++++++++++++++++++ 2 files changed, 306 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index dcca6f084509..a054c902943b 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -21,6 +21,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-grandmax.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-j5.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-serranove.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-wingtech-wt88047.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8953-motorola-potter.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8956-sony-xperia-loire-kugo.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8956-sony-xperia-loire-suzu.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8992-lg-bullhead-rev-10.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8953-motorola-potter.dts b/arch/arm64/boot/dts/qcom/msm8953-motorola-potter.dts new file mode 100644 index 000000000000..711d84dad9d7 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8953-motorola-potter.dts @@ -0,0 +1,305 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, Sireesh Kodali + */ +/dts-v1/; + +#include "msm8953.dtsi" +#include "pm8953.dtsi" +#include "pmi8950.dtsi" + +/delete-node/ &cont_splash_mem; +/delete-node/ &qseecom_mem; + +/ { + model = "Motorola G5 Plus"; + compatible = "motorola,potter", "qcom,msm8953"; + chassis-type = "handset"; + qcom,msm-id = <293 0>; + qcom,board-id = <0x46 0x83a0>; + + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + framebuffer@90001000 { + compatible = "simple-framebuffer"; + reg = <0 0x90001000 0 (2220 * 1920 * 3)>; + + width = <1080>; + height = <1920>; + stride = <(1080 * 3)>; + format = "r8g8b8"; + + power-domains = <&gcc MDSS_GDSC>; + + clocks = <&gcc GCC_MDSS_AHB_CLK>, + <&gcc GCC_MDSS_AXI_CLK>, + <&gcc GCC_MDSS_VSYNC_CLK>, + <&gcc GCC_MDSS_MDP_CLK>, + <&gcc GCC_MDSS_BYTE0_CLK>, + <&gcc GCC_MDSS_PCLK0_CLK>, + <&gcc GCC_MDSS_ESC0_CLK>; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio_key_default>; + + key-volume-up { + label = "Volume Up"; + gpios = <&tlmm 85 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + reserved-memory { + qseecom_mem: qseecom@84300000 { + reg = <0x0 0x84300000 0x0 0x2000000>; + no-map; + }; + + cont_splash_mem: cont-splash@90001000 { + reg = <0x0 0x90001000 0x0 (1080 * 1920 * 3)>; + no-map; + }; + + reserved@aefd2000 { + reg = <0x0 0xaefd2000 0x0 0x2e000>; + no-map; + }; + + reserved@eefe4000 { + reg = <0x0 0xeefe4000 0x0 0x1c000>; + no-map; + }; + + ramoops@ef000000 { + compatible = "ramoops"; + reg = <0x0 0xef000000 0x0 0x80000>; + console-size = <0x40000>; + ftrace-size = <0>; + record-size = <0x3f800>; + pmsg-size = <0x800>; + }; + }; + + vph_pwr: vph-pwr-regulator { + compatible = "regulator-fixed"; + regulator-name = "vph_pwr"; + regulator-always-on; + regulator-boot-on; + }; +}; + +&hsusb_phy { + vdd-supply = <&pm8953_l3>; + vdda-pll-supply = <&pm8953_l7>; + vdda-phy-dpdm-supply = <&pm8953_l13>; + + status = "okay"; +}; + +&i2c_3 { + status = "okay"; + + touchscreen@20 { + reg = <0x20>; + compatible = "syna,rmi4-i2c"; + + interrupt-parent = <&tlmm>; + interrupts = <65 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-names = "default"; + pinctrl-0 = <&ts_reset>; + + vdd-supply = <&pm8953_l22>; + vio-supply = <&pm8953_l6>; + + syna,reset-delay-ms = <200>; + syna,startup-delay-ms = <500>; + }; +}; + +&pm8953_resin { + linux,code = ; + status = "okay"; +}; + +&pmi8950_wled { + qcom,current-limit-microamp = <25000>; + qcom,num-strings = <3>; + qcom,external-pfet; + qcom,cabc; + + status = "okay"; +}; + +&rpm_requests { + regulators { + compatible = "qcom,rpm-pm8953-regulators"; + vdd_s1-supply = <&vph_pwr>; + vdd_s2-supply = <&vph_pwr>; + vdd_s3-supply = <&vph_pwr>; + vdd_s4-supply = <&vph_pwr>; + vdd_s5-supply = <&vph_pwr>; + vdd_s6-supply = <&vph_pwr>; + vdd_s7-supply = <&vph_pwr>; + vdd_l1-supply = <&pm8953_s3>; + vdd_l2_l3-supply = <&pm8953_s3>; + vdd_l4_l5_l6_l7_l16_l19-supply = <&pm8953_s4>; + vdd_l8_l11_l12_l13_l14_l15-supply = <&vph_pwr>; + vdd_l9_l10_l17_l18_l22-supply = <&vph_pwr>; + + pm8953_s1: s1 { + regulator-min-microvolt = <863000>; + regulator-max-microvolt = <1152000>; + }; + + pm8953_s3: s3 { + regulator-min-microvolt = <1224000>; + regulator-max-microvolt = <1224000>; + }; + + pm8953_s4: s4 { + regulator-min-microvolt = <1896000>; + regulator-max-microvolt = <2048000>; + }; + + pm8953_l1: l1 { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1100000>; + }; + + pm8953_l2: l2 { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + }; + + pm8953_l3: l3 { + regulator-min-microvolt = <925000>; + regulator-max-microvolt = <925000>; + regulator-allow-set-load; + }; + + pm8953_l5: l5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8953_l6: l6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + pm8953_l7: l7 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1900000>; + }; + + pm8953_l8: l8 { + regulator-min-microvolt = <2900000>; + regulator-max-microvolt = <2900000>; + }; + + pm8953_l9: l9 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + }; + + pm8953_l10: l10 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8953_l11: l11 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <3000000>; + }; + + pm8953_l12: l12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3000000>; + }; + + pm8953_l13: l13 { + regulator-min-microvolt = <3075000>; + regulator-max-microvolt = <3125000>; + }; + + pm8953_l15: l15 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8953_l16: l16 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8953_l17: l17 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <3000000>; + }; + + pm8953_l19: l19 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1350000>; + }; + + pm8953_l22: l22 { + regulator-always-on; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2850000>; + }; + + pm8953_l23: l23 { + regulator-min-microvolt = <975000>; + regulator-max-microvolt = <1225000>; + }; + }; +}; + +&sdhc_1 { + vmmc-supply = <&pm8953_l8>; + vqmmc-supply = <&pm8953_l5>; + + status = "okay"; +}; + +&sdhc_2 { + vmmc-supply = <&pm8953_l11>; + vqmmc-supply = <&pm8953_l12>; + + cd-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_off>; + pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; + + status = "okay"; +}; + +&tlmm { + gpio-reserved-ranges = <1 2>, <96 4>, <111 1>, <126 1>; + + ts_reset: ts-reset-state { + pins = "gpio64"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; +}; + +&usb3 { + status = "okay"; +}; + +&usb3_dwc3 { + dr_mode = "peripheral"; +}; From patchwork Wed Dec 7 18:30:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 30984 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp345009wrr; Wed, 7 Dec 2022 10:34:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Yiyzc9iHhHjnUkkxfSm5NrSxamRmaOkqYZy7Ch9wuFa9404rL+Q6gt8wKqjIbWK3rqnCC X-Received: by 2002:a17:902:f802:b0:189:4de4:e717 with SMTP id ix2-20020a170902f80200b001894de4e717mr67443452plb.17.1670438074909; Wed, 07 Dec 2022 10:34:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670438074; cv=none; d=google.com; s=arc-20160816; b=yhgCWvvqN7C1g/FAFe/fUOocP38IOv5vF6TKS8Mk3RCv27SqSMp7LJx8uv4z1OF7bW K3zmYhX163dQNo4gjSE9FnAf0Mym4jges+FmR8aDkBXOsf7p+3eNbL3jaEFre1uYndl4 A155zE6zoWBk8Rfavj+5pby3yO4SxLde0a+NetoJXZWUt+w8exsiD8SwsZQnOevJ62FW U3oLROdWrzsn6TL1uohehjPWFqlfcrkfQRKqkvQGpfQqQotGwFxLRVls/MqXDK8lvnEk h4JwAJZVkXjiRAUd8V+2HI4C0LT+sU47CJb5V+X1KNs2vpnxsrXDIxw10fBzY4XaDhJN cG8g== 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=kYIBbFWiDl99vkhYQZ0a0iF6BvUxVNOl9hi8pl4MSS0=; b=h3jfTrQAXJ1JqN5KYZWNKgrTKWuv2Zh5yuOj7OKSWHjjn/1mh44xAms9HgOIR/eru8 IA69V5eNhpMyNeuKkHJzRJ3bxNOQNs6YK8WH80hFOpXiFgp8pnySntccIL9X+5YRQ5YB yN+oxnoAndiUIZGdVvXdj0E+xEKE//ThtHhL3tjpymouEnZyi0oTEwvfgUGv8qPIwvy4 F3ffzy74SlAtOdHbEmLfhPuu/hUH4hkUVdFXnql3hAzOdhpGgP2AP3P5Mdu+dagWSBHQ qqd1Ho+cyP/RBEzBfBxsHuqyjjBUOqddM8EgO5QEPBx6dJHZ2DnP8lgM5NjycyfPiQX3 tXPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=Wt8q+nZI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bj7-20020a170902850700b00186ab026646si19625719plb.394.2022.12.07.10.34.22; Wed, 07 Dec 2022 10:34:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=Wt8q+nZI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229750AbiLGSbI (ORCPT + 99 others); Wed, 7 Dec 2022 13:31:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229668AbiLGSbD (ORCPT ); Wed, 7 Dec 2022 13:31:03 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 882D86A759; Wed, 7 Dec 2022 10:31:02 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 74F94CA470; Wed, 7 Dec 2022 18:31:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1670437860; bh=BMCHmKOc0vteuXLh+B2pFCmznzoV9ucRHz1r68RLUHk=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=Wt8q+nZIfDGwLlbItU1Mlc5WyX3HL76+1+h2mLQUegpKcHqjFuet30dP7Kso8xWMX hW+ZIe2Gv+y9M8WQlbrNp0Vf3VaQnK7KqtwJBtEkO+UsdIxXUGh3mtV8psuRWSZij+ r5Xd941ZEOEGYMQkh6bY8bx+iad/o/YKv7L5bguw= From: Luca Weiss Date: Wed, 07 Dec 2022 19:30:42 +0100 Subject: [PATCH v3 5/9] arm64: dts: qcom: msm8953: Add device tree for Xiaomi Mi A2 Lite MIME-Version: 1.0 Message-Id: <20221207-msm8953-6-1-next-dtbs-v3-v3-5-a64b3b0af0eb@z3ntu.xyz> References: <20221207-msm8953-6-1-next-dtbs-v3-v3-0-a64b3b0af0eb@z3ntu.xyz> In-Reply-To: <20221207-msm8953-6-1-next-dtbs-v3-v3-0-a64b3b0af0eb@z3ntu.xyz> To: Krzysztof Kozlowski , Rob Herring , Konrad Dybcio , Kees Cook , "Guilherme G. Piccoli" , Andy Gross , Bjorn Andersson , Tony Luck Cc: Gabriela David , Eugene Lepshy , linux-hardening@vger.kernel.org, Anton Bambura , Krzysztof Kozlowski , Luca Weiss , Adam Skladowski , ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, Danila Tikhonov , Gianluca Boiano , Sireesh Kodali , Vladimir Lypak , Julian Braha , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Alejandro Tafalla X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=8532; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=1J049reWA5VsT/IP0WCS7ErWf1Dn+n7hE8IAJpanTn8=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBjkNvdM/foUXS1yCnJfsFJ1M/ZVbKhvMu5YxCzK+w8 +8yCgp+JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY5Db3QAKCRBy2EO4nU3XVpZOD/ 98tB7Fr/RkDARmdIPRMGih5p6w/RglqNCKInAJ0C+JcVuyaj41I2MfUXWezSsJ1580QdgdQPm99DWm E4sxW9HgbXyDM8fb9NO+9CXaguFmoSAy0+1T1qbBKlruYYLhB0/e0rVitRO7xrqYC0x9+gAUXxe3uP FaBouVyTeQXCWgeTcJuixFkeO6vaAa0Me+RX7ic4P0lgyj7UT20AOgf6A5iSAbOv7ImWyEN3xezepM VPVabSZYltoh65Lt0ix3N04VW5b2WEbc1VmflSzqyFmpuPjA1wH9MIKkf7xLEgd75s3nlXz0axSfoz cg6VPWVvwllerbmx6Dck6qJ4bLsF3h2CbwibTwOV9QKbMDt8SSLNa5TyeP6ukp60vZnsADG+bg6CYY gVr63u6Cdyb/Fo6pxop5yy6JWFTHrv5qu9+tyYhKCWHAw7cmZLTlwTE2ChuBv0wG6OjF+jo1nLNGvB Bq4rfS6P0HEyqL0JaCWx4CCsyasVPz/mNpKhvtPd0RnxsNNLZsayTRqcIWV3qXhnOx4EYFJ0fAEhcK Yey+MAa/J3CvQG6K64x7kh4+vkcUA6Xte68vy4S6gMuSlbjGztsDXDiPEc7JtQCDNWCQ3OzfWhJlfE XcNUivOm5WEBi8PQgRZ+RcwNxk5Y2AVMBoz/Q4m9wnyiKlXsLgBKyUgs6pmg== 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,FROM_SUSPICIOUS_NTLD, SPF_HELO_NONE,SPF_PASS,T_PDS_OTHER_BAD_TLD 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751581275014278060?= X-GMAIL-MSGID: =?utf-8?q?1751581275014278060?= From: Alejandro Tafalla Add device tree for the Xiaomi Mi A2 Lite (daisy) smartphone. This device is based on Snapdragon 625 (msm8953) SoC. Signed-off-by: Alejandro Tafalla Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/msm8953-xiaomi-daisy.dts | 325 ++++++++++++++++++++++ 2 files changed, 326 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index a054c902943b..f5976bfc5ff0 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -22,6 +22,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-j5.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-serranove.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-wingtech-wt88047.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8953-motorola-potter.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8953-xiaomi-daisy.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8956-sony-xperia-loire-kugo.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8956-sony-xperia-loire-suzu.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8992-lg-bullhead-rev-10.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-daisy.dts b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-daisy.dts new file mode 100644 index 000000000000..1d672e608653 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-daisy.dts @@ -0,0 +1,325 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, Alejandro Tafalla + */ +/dts-v1/; + +#include "msm8953.dtsi" +#include "pm8953.dtsi" +#include "pmi8950.dtsi" + +/delete-node/ &adsp_fw_mem; +/delete-node/ &qseecom_mem; +/delete-node/ &wcnss_fw_mem; + +/ { + model = "Xiaomi Mi A2 Lite"; + compatible = "xiaomi,daisy", "qcom,msm8953"; + chassis-type = "handset"; + qcom,msm-id = <293 0>; + qcom,board-id= <0x1000b 0x9>; + + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + framebuffer@90001000 { + compatible = "simple-framebuffer"; + reg = <0 0x90001000 0 (1920 * 2280 * 3)>; + + width = <1080>; + height = <2280>; + stride = <(1080 * 3)>; + format = "r8g8b8"; + + power-domains = <&gcc MDSS_GDSC>; + + clocks = <&gcc GCC_MDSS_AHB_CLK>, + <&gcc GCC_MDSS_AXI_CLK>, + <&gcc GCC_MDSS_VSYNC_CLK>, + <&gcc GCC_MDSS_MDP_CLK>, + <&gcc GCC_MDSS_BYTE0_CLK>, + <&gcc GCC_MDSS_PCLK0_CLK>, + <&gcc GCC_MDSS_ESC0_CLK>; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio_key_default>; + + key-volume-up { + label = "Volume Up"; + gpios = <&tlmm 85 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + reserved-memory { + qseecom_mem: qseecom@84a00000 { + reg = <0x0 0x84a00000 0x0 0x1900000>; + no-map; + }; + + adsp_fw_mem: adsp@8d600000 { + reg = <0x0 0x8d600000 0x0 0x1200000>; + no-map; + }; + + wcnss_fw_mem: wcnss@8e800000 { + reg = <0x0 0x8e800000 0x0 0x700000>; + no-map; + }; + }; + + /* + * We bitbang on &i2c_4 because BLSP is protected by TZ as sensors are + * normally proxied via ADSP firmware. GPIOs aren't protected. + */ + i2c-sensors { + compatible = "i2c-gpio"; + sda-gpios = <&tlmm 14 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; + scl-gpios = <&tlmm 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; + i2c-gpio,delay-us = <2>; /* ~100 kHz */ + #address-cells = <1>; + #size-cells = <0>; + + imu@6a { + compatible = "st,lsm6dsl"; + reg = <0x6a>; + vdd-supply = <&pm8953_l10>; + vddio-supply = <&pm8953_l6>; + mount-matrix = "-1", "0", "0", + "0", "-1", "0", + "0", "0", "1"; + }; + }; + + vph_pwr: vph-pwr-regulator { + compatible = "regulator-fixed"; + regulator-name = "vph_pwr"; + regulator-always-on; + regulator-boot-on; + }; +}; + +&hsusb_phy { + vdd-supply = <&pm8953_l3>; + vdda-pll-supply = <&pm8953_l7>; + vdda-phy-dpdm-supply = <&pm8953_l13>; + + status = "okay"; +}; + +&i2c_2 { + status = "okay"; + + speaker_codec: audio-codec@3a { + compatible = "maxim,max98927"; + reg = <0x3a>; + + reset-gpios = <&tlmm 89 GPIO_ACTIVE_LOW>; + + vmon-slot-no = <1>; + imon-slot-no = <1>; + interleave_mode = <0>; + + #sound-dai-cells = <0>; + }; +}; + +&i2c_3 { + status = "okay"; + + touchscreen@38 { + compatible = "edt,edt-ft5406"; + reg = <0x38>; + + interrupt-parent = <&tlmm>; + interrupts = <65 IRQ_TYPE_EDGE_FALLING>; + + reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>; + + vcc-supply = <&pm8953_l10>; + + touchscreen-size-x = <1080>; + touchscreen-size-y = <2280>; + }; +}; + +&pm8953_resin { + linux,code = ; + status = "okay"; +}; + +&pmi8950_wled { + qcom,current-limit-microamp = <20000>; + qcom,num-strings = <2>; + + status = "okay"; +}; + +&rpm_requests { + regulators { + compatible = "qcom,rpm-pm8953-regulators"; + + vdd_s1-supply = <&vph_pwr>; + vdd_s2-supply = <&vph_pwr>; + vdd_s3-supply = <&vph_pwr>; + vdd_s4-supply = <&vph_pwr>; + vdd_s5-supply = <&vph_pwr>; + vdd_s6-supply = <&vph_pwr>; + vdd_s7-supply = <&vph_pwr>; + vdd_l1-supply = <&pm8953_s3>; + vdd_l2_l3-supply = <&pm8953_s3>; + vdd_l4_l5_l6_l7_l16_l19-supply = <&pm8953_s4>; + vdd_l8_l11_l12_l13_l14_l15-supply = <&vph_pwr>; + vdd_l9_l10_l17_l18_l22-supply = <&vph_pwr>; + + pm8953_s1: s1 { + regulator-min-microvolt = <863000>; + regulator-max-microvolt = <1152000>; + }; + + pm8953_s3: s3 { + regulator-min-microvolt = <1224000>; + regulator-max-microvolt = <1224000>; + }; + + pm8953_s4: s4 { + regulator-min-microvolt = <1896000>; + regulator-max-microvolt = <2048000>; + }; + + pm8953_l1: l1 { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1100000>; + }; + + pm8953_l2: l2 { + regulator-min-microvolt = <975000>; + regulator-max-microvolt = <1225000>; + }; + + pm8953_l3: l3 { + regulator-min-microvolt = <925000>; + regulator-max-microvolt = <925000>; + regulator-allow-set-load; + }; + + pm8953_l5: l5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8953_l6: l6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + pm8953_l7: l7 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1900000>; + }; + + pm8953_l8: l8 { + regulator-min-microvolt = <2900000>; + regulator-max-microvolt = <2900000>; + }; + + pm8953_l9: l9 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + }; + + pm8953_l10: l10 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + regulator-always-on; + }; + + pm8953_l11: l11 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + }; + + pm8953_l12: l12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + pm8953_l13: l13 { + regulator-min-microvolt = <3125000>; + regulator-max-microvolt = <3125000>; + }; + + pm8953_l16: l16 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8953_l17: l17 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + pm8953_l19: l19 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1350000>; + }; + + pm8953_l22: l22 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2850000>; + regulator-always-on; + }; + + pm8953_l23: l23 { + regulator-min-microvolt = <975000>; + regulator-max-microvolt = <1225000>; + }; + }; +}; + +&sdhc_1 { + vmmc-supply = <&pm8953_l8>; + vqmmc-supply = <&pm8953_l5>; + + status = "okay"; +}; + +&sdhc_2 { + vmmc-supply = <&pm8953_l11>; + vqmmc-supply = <&pm8953_l12>; + + cd-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; + pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; + + status = "okay"; +}; + +&tlmm { + gpio-reserved-ranges = <0 4>, <16 4>, <135 4>; +}; + +&uart_0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart_console_active>; + + status = "okay"; +}; + +&usb3 { + status = "okay"; +}; + +&usb3_dwc3 { + dr_mode = "peripheral"; +}; From patchwork Wed Dec 7 18:30:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 30982 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp344568wrr; Wed, 7 Dec 2022 10:33:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf7x3K2qr90k99uEaRfRsJmIx05j8WRGV2ZI3uNi84+fgbUMkJ+LSNkiT6/bxmOM0jNq3Bsu X-Received: by 2002:a17:906:114a:b0:7c0:c836:e586 with SMTP id i10-20020a170906114a00b007c0c836e586mr19541595eja.750.1670438017092; Wed, 07 Dec 2022 10:33:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670438017; cv=none; d=google.com; s=arc-20160816; b=DmtNUBDNqbMPN8Y2Q+gxkYEUxhkhJBrely+jAIZKF1RiC3n9sWC+YDII9stZxLhB5l mGDMd6CSXimpmujDlKh3rGzmGJV3LO4yjdcBkhTiMoNovfL60R3XCCsYWJQ9dUpek/Ic OZkT8tuHrrK3O9EvIoIzEYXkVYplPu33GNIt6gjC4j+NHoUEbIpTFwbV5ib24i4/hYiy pfuV7hnCHa3LTxjxS4YeolVzE761vbiR3dx22AGBhY4ceA+fB8btJGdqb+G/wyExSnt7 lMdGoTm5WUfwb74ONw9kvgrCovYIe+FE1nT1MWLaBQKaGNMRIWxJ/tyYldWFU6C2G3vA Lc3A== 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=ZYeAwd9QJx1YQVtN9KJWBBQTZs4oAqJ32qOYydrNkwU=; b=kcUHBLR/+/a+jSPFOnCImL/MwFLkR+cst2RYwpcF7JexnAQbjF7iARImhqhLrgQ/0u mylgzsykRXQ8Hzp3HLyxLbzX0qAsMXuqudpRjaqCtFqdNUUGIaEFKa0pm+Vm7V7uJG3e NyRyjN8B4QHehox8Lvc68yCToCbcAEFhCvaLRLbwmPLews0tiLqgT/uFWZnzXCANy7Kr rESJIuDmKUzHeeXtUqjjuNuQuItFYRaAByCc0TuziqpoaNPophZ1fsiQoUGiDAOcC+OK izsZ1mH8kmhdkhLmrhunchmAi7L5daJz5pV2ehJxBUtSttyASzG3mP9PS/evzKUO1FFj KJBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=eZGS4+q8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w10-20020a056402070a00b0045782fcb80asi4214851edx.225.2022.12.07.10.33.14; Wed, 07 Dec 2022 10:33:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=eZGS4+q8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229915AbiLGScH (ORCPT + 99 others); Wed, 7 Dec 2022 13:32:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbiLGSbd (ORCPT ); Wed, 7 Dec 2022 13:31:33 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B05A36E56B; Wed, 7 Dec 2022 10:31:32 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id E72ADCA471; Wed, 7 Dec 2022 18:31:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1670437861; bh=pbfn08dGG7YdLfcGfId7UXFTZ+EKF8vVg0ELk+o0V98=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=eZGS4+q8WRBBHIIgpA8+rtEvlTgFUhScX2pwqyphA4X7C8xPkxu2jkJErasVv/C1X lPJeQUs5X6pIPr2ghvlHsPzBWl7syp3j7nGIr9H8CddlqCUdQ9JxuFnZqqbzxusPia kNodx3Yfb8ZgYpgZuXPl95g4zfoboLvPP6zXclio= From: Luca Weiss Date: Wed, 07 Dec 2022 19:30:43 +0100 Subject: [PATCH v3 6/9] arm64: dts: qcom: msm8953: Add device tree for Xiaomi Redmi Note 4X MIME-Version: 1.0 Message-Id: <20221207-msm8953-6-1-next-dtbs-v3-v3-6-a64b3b0af0eb@z3ntu.xyz> References: <20221207-msm8953-6-1-next-dtbs-v3-v3-0-a64b3b0af0eb@z3ntu.xyz> In-Reply-To: <20221207-msm8953-6-1-next-dtbs-v3-v3-0-a64b3b0af0eb@z3ntu.xyz> To: Krzysztof Kozlowski , Rob Herring , Konrad Dybcio , Kees Cook , "Guilherme G. Piccoli" , Andy Gross , Bjorn Andersson , Tony Luck Cc: Gabriela David , Eugene Lepshy , linux-hardening@vger.kernel.org, Anton Bambura , Krzysztof Kozlowski , Luca Weiss , Adam Skladowski , ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, Danila Tikhonov , Gianluca Boiano , Sireesh Kodali , Vladimir Lypak , Julian Braha , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Alejandro Tafalla X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=8569; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=Q1UcI4yYtZABwNd6z7oomNy8iSPUOyOpZsvZ3v/13tM=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBjkNveeNdMbYmM6Cam7fHWqgH9+/4+o46zAKo0If7L Yz7k+GeJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY5Db3gAKCRBy2EO4nU3XVrvMD/ 9VABY4nRxCU1hUCDfEZVO+gUgCWvSGT61+rXqMG0j6NvEdpHYfDHc6OMdWDHzztVa2TJY8M7jpB0l7 CnIRJGd67ooEJUUZdz9arJta+jBcUej6v5RYMyN11KEbE1trT6GKiNO+qnSFG+3yG8BMaHnqry28/d PqfJCcRXbpbKiN3LRjrK8iq/CHsUDsDw6yko52GfhpbTZRsw4H0zFptWknECeYizZBpxHYUzJIEwx6 5vdHL8kfEHOU1wWXxbdG22thY1dROZIwVxasOfmPVOsJLT/986Wf12YnkhZpfkrbFb4BrDTZTZOo2M ++SgSPmV3u1Xsg1pr2NjEylecesvzX+tKT99fwWCCbwAKVV3xAFQhSjOCLg8BBiEJbohjW9CNJ1TRE khp2Wki3MNhEAStH2Ttwkb9meUf5QgkbheUzaluApRxb8ziWClEUbWP6CcwtwNVSuvOabz77b0q+Qm CoTsnkgBAcFSD6JrH8F3dMX0Jy+7jjiN8AjNoxIJTYYKvPBCiNYa2YxiUKV4vETmHsgFNdjnS3GdHJ PCN9/s4SR6840b2Rjto759VFr8ghcr/mRAGeWWTj492maPh1dVuOdj5SWKw58OUCPAUOrlPmpOA2Sb UjFnN2Iqvh8oKpf+q/G8nMDszk3n+82RGEi5bgBXjO0ZEVa1fMcE+9bRMvAA== 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,FROM_SUSPICIOUS_NTLD, SPF_HELO_NONE,SPF_PASS,T_PDS_OTHER_BAD_TLD 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751581214533331909?= X-GMAIL-MSGID: =?utf-8?q?1751581214533331909?= From: Adam Skladowski Add device tree for the Xiaomi Redmi Note 4X (mido) smartphone. This device is based on Snapdragon 625 (msm8953) SoC. Signed-off-by: Adam Skladowski Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/msm8953-xiaomi-mido.dts | 329 +++++++++++++++++++++++ 2 files changed, 330 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index f5976bfc5ff0..2ae3cf2522b8 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -23,6 +23,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-serranove.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-wingtech-wt88047.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8953-motorola-potter.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8953-xiaomi-daisy.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8953-xiaomi-mido.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8956-sony-xperia-loire-kugo.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8956-sony-xperia-loire-suzu.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8992-lg-bullhead-rev-10.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-mido.dts b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-mido.dts new file mode 100644 index 000000000000..ed95d09cedb1 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-mido.dts @@ -0,0 +1,329 @@ +// SPDX-License-Identifier: BSD-3-Clause +/dts-v1/; + +#include "msm8953.dtsi" +#include "pm8953.dtsi" +#include "pmi8950.dtsi" +#include + +/delete-node/ &cont_splash_mem; +/delete-node/ &qseecom_mem; + +/ { + model = "Xiaomi Redmi Note 4X"; + compatible = "xiaomi,mido", "qcom,msm8953"; + chassis-type = "handset"; + qcom,msm-id = <293 0>; + qcom,board-id = <11 0>; + + aliases { + mmc0 = &sdhc_1; + mmc1 = &sdhc_2; + }; + + speaker_amp: audio-amplifier { + compatible = "awinic,aw8738"; + mode-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; + awinic,mode = <5>; + sound-name-prefix = "Speaker Amp"; + }; + + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + framebuffer@90001000 { + compatible = "simple-framebuffer"; + reg = <0 0x90001000 0 (1920 * 1080 * 3)>; + + width = <1080>; + height = <1920>; + stride = <(1080 * 3)>; + format = "r8g8b8"; + + power-domains = <&gcc MDSS_GDSC>; + + clocks = <&gcc GCC_MDSS_AHB_CLK>, + <&gcc GCC_MDSS_AXI_CLK>, + <&gcc GCC_MDSS_VSYNC_CLK>, + <&gcc GCC_MDSS_MDP_CLK>, + <&gcc GCC_MDSS_BYTE0_CLK>, + <&gcc GCC_MDSS_PCLK0_CLK>, + <&gcc GCC_MDSS_ESC0_CLK>; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio_key_default>; + + key-volume-up { + label = "Volume Up"; + gpios = <&tlmm 85 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + reserved-memory { + qseecom_mem: qseecom@84a00000 { + reg = <0x0 0x84a00000 0x0 0x1900000>; + no-map; + }; + + cont_splash_mem: cont-splash@90001000 { + reg = <0x0 0x90001000 0x0 (1080 * 1920 * 3)>; + no-map; + }; + + ramoops@9ff00000 { + compatible = "ramoops"; + reg = <0x0 0x9ff00000 0x0 0x00100000>; + console-size = <0x100000>; + }; + }; + + vph_pwr: vph-pwr-regulator { + compatible = "regulator-fixed"; + regulator-name = "vph_pwr"; + regulator-min-microvolt = <3700000>; + regulator-max-microvolt = <3700000>; + regulator-always-on; + regulator-boot-on; + }; +}; + +&hsusb_phy { + vdd-supply = <&pm8953_l3>; + vdda-pll-supply = <&pm8953_l7>; + vdda-phy-dpdm-supply = <&pm8953_l13>; + + status = "okay"; +}; + +&i2c_2 { + status = "okay"; + + led-controller@45 { + compatible = "awinic,aw2013"; + reg = <0x45>; + + vcc-supply = <&pm8953_l10>; + + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_INDICATOR; + led-max-microamp = <5000>; + }; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_INDICATOR; + led-max-microamp = <5000>; + }; + + led@2 { + reg = <2>; + color = ; + function = LED_FUNCTION_INDICATOR; + led-max-microamp = <5000>; + }; + }; +}; + +&i2c_3 { + status = "okay"; + + touchscreen@38 { + compatible = "edt,edt-ft5406"; + reg = <0x38>; + + interrupt-parent = <&tlmm>; + interrupts = <65 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-names = "default"; + pinctrl-0 = <&ts_int_active>; + + reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>; + + vcc-supply = <&pm8953_l10>; + + touchscreen-size-x = <1080>; + touchscreen-size-y = <1920>; + }; +}; + +&pm8953_resin { + linux,code = ; + status = "okay"; +}; + +&rpm_requests { + regulators { + compatible = "qcom,rpm-pm8953-regulators"; + + vdd_s1-supply = <&vph_pwr>; + vdd_s2-supply = <&vph_pwr>; + vdd_s3-supply = <&vph_pwr>; + vdd_s4-supply = <&vph_pwr>; + vdd_s5-supply = <&vph_pwr>; + vdd_s6-supply = <&vph_pwr>; + vdd_s7-supply = <&vph_pwr>; + vdd_l1-supply = <&pm8953_s3>; + vdd_l2_l3-supply = <&pm8953_s3>; + vdd_l4_l5_l6_l7_l16_l19-supply = <&pm8953_s4>; + vdd_l8_l11_l12_l13_l14_l15-supply = <&vph_pwr>; + vdd_l9_l10_l17_l18_l22-supply = <&vph_pwr>; + vdd_l23-supply = <&pm8953_s3>; + + pm8953_s1: s1 { + regulator-min-microvolt = <863000>; + regulator-max-microvolt = <1152000>; + }; + + pm8953_s3: s3 { + regulator-min-microvolt = <1224000>; + regulator-max-microvolt = <1224000>; + }; + + pm8953_s4: s4 { + regulator-min-microvolt = <1896000>; + regulator-max-microvolt = <2048000>; + }; + + pm8953_l1: l1 { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1100000>; + }; + + pm8953_l2: l2 { + regulator-min-microvolt = <975000>; + regulator-max-microvolt = <1225000>; + }; + + pm8953_l3: l3 { + regulator-min-microvolt = <925000>; + regulator-max-microvolt = <925000>; + regulator-allow-set-load; + }; + + pm8953_l5: l5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8953_l6: l6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + pm8953_l7: l7 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1900000>; + }; + + pm8953_l8: l8 { + regulator-min-microvolt = <2900000>; + regulator-max-microvolt = <2900000>; + }; + + pm8953_l9: l9 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + }; + + pm8953_l10: l10 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + regulator-always-on; + }; + + pm8953_l11: l11 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + }; + + pm8953_l12: l12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + pm8953_l13: l13 { + regulator-min-microvolt = <3125000>; + regulator-max-microvolt = <3125000>; + }; + + pm8953_l16: l16 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8953_l17: l17 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + pm8953_l19: l19 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1350000>; + }; + + pm8953_l22: l22 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2850000>; + regulator-always-on; + }; + + pm8953_l23: l23 { + regulator-min-microvolt = <975000>; + regulator-max-microvolt = <1225000>; + }; + }; +}; + +&sdhc_1 { + vmmc-supply = <&pm8953_l8>; + vqmmc-supply = <&pm8953_l5>; + + status = "okay"; +}; + +&sdhc_2 { + vmmc-supply = <&pm8953_l11>; + vqmmc-supply = <&pm8953_l12>; + + cd-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; + pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; + + status = "okay"; +}; + +&tlmm { + gpio-reserved-ranges = <0 4>, <135 4>; + + ts_int_active: ts-int-active-state { + pins = "gpio65"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; +}; + +&usb3 { + status = "okay"; +}; + +&usb3_dwc3 { + dr_mode = "peripheral"; +}; From patchwork Wed Dec 7 18:30:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 30980 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp344514wrr; Wed, 7 Dec 2022 10:33:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf4o5l0yCrqONklBPFWZMa7cu5OEKJ/ghAdRcJwsVrKwAcEF+27PVGaLZr4xfb6iEAhd9blF X-Received: by 2002:a05:6402:5412:b0:460:e19c:15a3 with SMTP id ev18-20020a056402541200b00460e19c15a3mr66982915edb.252.1670438009170; Wed, 07 Dec 2022 10:33:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670438009; cv=none; d=google.com; s=arc-20160816; b=ruDOUrk6LBJXZb4ZdjKqH8YGhoaoMLvSPDpzV2sQjiAwuBjsCJ8EXKv5gkUhktb6cE 2X5Rg5pl+hAl5y2yQ0JhPgg8unU0gqjrZ9mlkZYGiafBZMyanlU0uMMvjGYqZm3zGzdg sws9qvew8STBBr9kjwU8JnlzlG9dtnoCQYIi+Affq9stqHCh/giBwWQPUb+txPbvXLac bECp9B5/z4F0rRxOMFakE5Xcmf8pSr23burwFFxAxabJZaJB9C1zV91ioElaeljWfjZK zzHTI84fKVHLE3e9lTjCadykaI2crbP6JpI82ACLzJ0N/bPUH87WWy1+RyZ8plpsT/4t uOVA== 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=voVxBbukd8EAYkYrVAHpQfQ/3e656LmGcgmgMd2Z5DM=; b=LukxPmK+iINaIIwUcZ/p/Hlj5evOrJE4Wubg/i6X5flRBXv2Bo116ZQEGM+qbP9wLo TsY68Rc+ECcJuHOOa7BmXw3+sialIAJGkGFOQ5Vpeq5iF1XGteuxrv8DNoAxS3ADI/gV RoeVd+I6QBfOCHQIbQFw5UkhTSuD5p2ZKl+m9P4VuvuNVvUdwpLHKR3yMBUXEoDIsIk3 IhKn5ZLC07Y9TwRyRq7ETgtBx7ZBqK72uUs3TvwMCb7vR4hOLN7mcUjToz/jOp4JeiZg qpexn7NNq0WE7ZHnLgv6Kea6oKb1BBTa4cDfVZO/RSEcZqmkz2JeLNlKE08R52wcj4RL 0Z3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b="q/tShhMU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i27-20020a0564020f1b00b00469b3fcafe8si4931676eda.432.2022.12.07.10.33.04; Wed, 07 Dec 2022 10:33:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b="q/tShhMU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229843AbiLGSbx (ORCPT + 99 others); Wed, 7 Dec 2022 13:31:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbiLGSbe (ORCPT ); Wed, 7 Dec 2022 13:31:34 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 399F96E567; Wed, 7 Dec 2022 10:31:33 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 5FEE9CA472; Wed, 7 Dec 2022 18:31:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1670437861; bh=uisAfVyyhrMHXO0O+e7NeCHaC4yFvRGvxwpNmScg5kc=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=q/tShhMUHPhI0o8aww8ARlRdXZF4QrzQj7H70bM48UmuCNG83mLFxoPPFsEMjvA/B nwh+TUp8HO1BEZUzt5L2vpxtMi7b+czwOmlFuuYkjj4qtY+jluK57P/J/jSqg40YNl fgFQkI7CnqL+5fvfGitQvydZ/id239BBcU/P5784= From: Luca Weiss Date: Wed, 07 Dec 2022 19:30:44 +0100 Subject: [PATCH v3 7/9] arm64: dts: qcom: msm8953: Add device tree for Xiaomi Mi A1 MIME-Version: 1.0 Message-Id: <20221207-msm8953-6-1-next-dtbs-v3-v3-7-a64b3b0af0eb@z3ntu.xyz> References: <20221207-msm8953-6-1-next-dtbs-v3-v3-0-a64b3b0af0eb@z3ntu.xyz> In-Reply-To: <20221207-msm8953-6-1-next-dtbs-v3-v3-0-a64b3b0af0eb@z3ntu.xyz> To: Krzysztof Kozlowski , Rob Herring , Konrad Dybcio , Kees Cook , "Guilherme G. Piccoli" , Andy Gross , Bjorn Andersson , Tony Luck Cc: Gabriela David , Eugene Lepshy , linux-hardening@vger.kernel.org, Anton Bambura , Krzysztof Kozlowski , Luca Weiss , Adam Skladowski , ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, Danila Tikhonov , Gianluca Boiano , Sireesh Kodali , Vladimir Lypak , Julian Braha , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Alejandro Tafalla X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=8575; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=oe/Ek8tw94FxKggvF+vZIjQNeeHgMz0Aiwl/Kg433Ok=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBjkNvf+f01399sDZDcrEfU4D6iTtD9jwQ0xpOVPye8 XYQNcx6JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY5Db3wAKCRBy2EO4nU3XVmjYEA C1da3nS6LkozfdCqGiUE8mlp7txgDCWEkgV5FsgAMlB68LVfVP8uhDp1/lfiCdu+qI9HNFcYJPM1W6 cCP2XMCiuIHW7xU9JPIS3WDbeQ+M4jzd/QRdOstF+BLcwItBK7l/Ns5V99wSmvPFY5HCWIHCy4OPEU ILAL4OCfPz1rKjlZTGmMV0zqosLH6+bWY6rMM/pkC8gSWPqvM+Lnb07m/vrtHGTN2O+xMwegXD63Xg VNqsXzGLbXb9MUnwXYV46tpiXXJWFQdX6LqzM9Qx+Kuj8zX1VzbdHJRZGUJws0ca3GyoMtT8ulI0Eu RqS3J3NvneuA/BbRCWFlVEm/X6YchvdU/cE7oppIqZrFVkO1t+ZrACcMklvP6m4E+S560kiJGjWW0z gVZkPxJ+ccXR6mtdYY+Je9xVpJYPMtDR6taDCjiqXqxrFyq6WByfad6fZDVutMs4Hv8uh/Xu29k/lG N6hQb1oz0GvXGFY5/MePGtqKJhn1W09lU8VpMjfBSMa647wv1DDTUzDnRE9nlNaexQscazFgOfLlHn UpLBMwUW0NDYzK6QkeCNdNqweR4gTIl8a8LpeS40EO+XZlVHUky218YskhJRLW64kDnhtdbGpYBqB3 gSq3W5uPd7POmBSEveNB4bABnpS/WBAofdTWwzTAEUe+eekTPpIBRd1BoTeA== 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,FROM_SUSPICIOUS_NTLD, SPF_HELO_NONE,SPF_PASS,T_PDS_OTHER_BAD_TLD 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751581205922412588?= X-GMAIL-MSGID: =?utf-8?q?1751581205922412588?= From: Danila Tikhonov Add device tree for the Xiaomi Mi A1 (tissot) smartphone. This device is based on Snapdragon 625 (msm8953) SoC. Co-developed-by: Anton Bambura Signed-off-by: Anton Bambura Signed-off-by: Danila Tikhonov Signed-off-by: Vladimir Lypak Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts | 325 +++++++++++++++++++++ 2 files changed, 326 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 2ae3cf2522b8..054dfbe820d9 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -24,6 +24,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-wingtech-wt88047.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8953-motorola-potter.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8953-xiaomi-daisy.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8953-xiaomi-mido.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8953-xiaomi-tissot.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8956-sony-xperia-loire-kugo.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8956-sony-xperia-loire-suzu.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8992-lg-bullhead-rev-10.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts new file mode 100644 index 000000000000..831d3a42b583 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts @@ -0,0 +1,325 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, Danila Tikhonov + * Copyright (c) 2022, Anton Bambura + */ +/dts-v1/; + +#include "msm8953.dtsi" +#include "pm8953.dtsi" +#include "pmi8950.dtsi" +#include + +/delete-node/ &adsp_fw_mem; +/delete-node/ &qseecom_mem; +/delete-node/ &wcnss_fw_mem; + +/ { + model = "Xiaomi Mi A1"; + compatible = "xiaomi,tissot", "qcom,msm8953"; + chassis-type = "handset"; + qcom,msm-id = <293 0>; + qcom,board-id = <0x1000b 0x00>; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio_key_default>, <&gpio_hall_sensor_default>; + + event-hall-sensor { + label = "Hall Effect Sensor"; + gpios = <&tlmm 44 GPIO_ACTIVE_LOW>; + linux,input-type = ; + linux,code = ; + linux,can-disable; + }; + + key-volume-up { + label = "Volume Up"; + gpios = <&tlmm 85 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + reserved-memory { + qseecom_mem: qseecom@84a00000 { + reg = <0x0 0x84a00000 0x0 0x1900000>; + no-map; + }; + + adsp_fw_mem: adsp@8d600000 { + reg = <0x0 0x8d600000 0x0 0x1200000>; + no-map; + }; + + wcnss_fw_mem: wcnss@8e800000 { + reg = <0x0 0x8e800000 0x0 0x700000>; + no-map; + }; + + ramoops@9ff00000 { + compatible = "ramoops"; + reg = <0x0 0x9ff00000 0x0 0x00100000>; + record-size = <0x1000>; + console-size = <0x80000>; + ftrace-size = <0x1000>; + pmsg-size = <0x8000>; + }; + }; + + vph_pwr: vph-pwr-regulator { + compatible = "regulator-fixed"; + regulator-name = "vph_pwr"; + regulator-always-on; + regulator-boot-on; + }; +}; + +&hsusb_phy { + vdd-supply = <&pm8953_l3>; + vdda-pll-supply = <&pm8953_l7>; + vdda-phy-dpdm-supply = <&pm8953_l13>; + + status = "okay"; +}; + +&i2c_2 { + status = "okay"; + + max98927_codec: audio-codec@3a { + compatible = "maxim,max98927"; + reg = <0x3a>; + + reset-gpios = <&tlmm 86 GPIO_ACTIVE_LOW>; + + vmon-slot-no = <1>; + imon-slot-no = <1>; + + #sound-dai-cells = <1>; + }; + + led-controller@45 { + compatible = "awinic,aw2013"; + reg = <0x45>; + + vcc-supply = <&pm8953_l10>; + + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + led-max-microamp = <5000>; + function = LED_FUNCTION_INDICATOR; + color = ; + }; + }; +}; + +&i2c_3 { + status = "okay"; + + touchscreen@38 { + compatible = "edt,edt-ft5406"; + reg = <0x38>; + + interrupt-parent = <&tlmm>; + interrupts = <65 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-names = "default"; + pinctrl-0 = <&ts_int_default>; + + reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>; + + vcc-supply = <&pm8953_l10>; + + touchscreen-size-x = <1080>; + touchscreen-size-y = <1920>; + }; +}; + +&pm8953_resin { + linux,code = ; + status = "okay"; +}; + +&pmi8950_wled { + qcom,num-strings = <2>; + qcom,external-pfet; + qcom,cabc; + + status = "okay"; +}; + +&rpm_requests { + regulators { + compatible = "qcom,rpm-pm8953-regulators"; + + vdd_s1-supply = <&vph_pwr>; + vdd_s2-supply = <&vph_pwr>; + vdd_s3-supply = <&vph_pwr>; + vdd_s4-supply = <&vph_pwr>; + vdd_s5-supply = <&vph_pwr>; + vdd_s6-supply = <&vph_pwr>; + vdd_s7-supply = <&vph_pwr>; + vdd_l1-supply = <&pm8953_s3>; + vdd_l2_l3-supply = <&pm8953_s3>; + vdd_l4_l5_l6_l7_l16_l19-supply = <&pm8953_s4>; + vdd_l8_l11_l12_l13_l14_l15-supply = <&vph_pwr>; + vdd_l9_l10_l17_l18_l22-supply = <&vph_pwr>; + + pm8953_s1: s1 { + regulator-min-microvolt = <870000>; + regulator-max-microvolt = <1156000>; + }; + + pm8953_s3: s3 { + regulator-min-microvolt = <1224000>; + regulator-max-microvolt = <1224000>; + }; + + pm8953_s4: s4 { + regulator-min-microvolt = <1900000>; + regulator-max-microvolt = <2050000>; + }; + + pm8953_l1: l1 { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + }; + + pm8953_l2: l2 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1225000>; + }; + + pm8953_l3: l3 { + regulator-min-microvolt = <925000>; + regulator-max-microvolt = <925000>; + }; + + pm8953_l5: l5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8953_l6: l6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8953_l7: l7 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1900000>; + }; + + pm8953_l8: l8 { + regulator-min-microvolt = <2900000>; + regulator-max-microvolt = <2900000>; + }; + + pm8953_l9: l9 { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + pm8953_l10:l10 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + pm8953_l11: l11 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + }; + + pm8953_l12: l12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + pm8953_l13: l13 { + regulator-min-microvolt = <3125000>; + regulator-max-microvolt = <3125000>; + }; + + pm8953_l16: l16 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8953_l17: l17 { + regulator-min-microvolt = <2750000>; + regulator-max-microvolt = <2850000>; + }; + + pm8953_l19: l19 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1350000>; + }; + + pm8953_l22: l22 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + }; + + pm8953_l23: l23 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1225000>; + }; + }; +}; + +&sdhc_1 { + vmmc-supply = <&pm8953_l8>; + vqmmc-supply = <&pm8953_l5>; + + status = "okay"; +}; + +&sdhc_2 { + vmmc-supply = <&pm8953_l11>; + vqmmc-supply = <&pm8953_l12>; + + cd-gpios = <&tlmm 133 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; + pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; + + status = "okay"; +}; + +&tlmm { + gpio-reserved-ranges = <0 4>, <16 4>, <135 4>; + + gpio_hall_sensor_default: gpio-hall-sensor-state { + pins = "gpio44"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + + ts_int_default: ts-int-default-state { + pins = "gpio65"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; +}; + +&uart_0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart_console_active>; + + status = "okay"; +}; + +&usb3 { + status = "okay"; +}; + +&usb3_dwc3 { + dr_mode = "peripheral"; +}; From patchwork Wed Dec 7 18:30:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 30981 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp344535wrr; Wed, 7 Dec 2022 10:33:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf5uv0iACTUuGp319kvmnEnRWFZDhnonDjf9GnNZ5443jEuwK6IbYmvZ87kpbri4TyNgIBhQ X-Received: by 2002:a17:907:7ba2:b0:7c0:d08f:1d9a with SMTP id ne34-20020a1709077ba200b007c0d08f1d9amr18028960ejc.701.1670438012571; Wed, 07 Dec 2022 10:33:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670438012; cv=none; d=google.com; s=arc-20160816; b=RkPX29aORQ3iBpCYjhsJHcrkU1BclrYxUt5lEZGhE1wRX3K8/2awjnutkWrCJu9g1Z VQbdBfDVZ8tftqAWUI6Ejvf0lA9ooEzFye/YLANpgM04BkA/ZLBPTHtMew5WQEssxB/H uZ1x9pezCCuJo/B36RTdECfzkRo1tW1xDJa99lWboh3N8rCmrxYyPR6CSxOhEzO3mP2U w2SojNdGdkpW240lInC4gREpE2nWGmW2rrszWG28ypQHotH8P5MFrCD1Npo4BdCAfAZF 1Cb5vQ3JY3zv8gEMoBOmiFruZTxbAnaTzg5Ar6/E3Juo7j7EK0cAIFZ2lrBCUHVjopgQ xP+A== 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=nFiUkMFtlYQAodmPVPKwM6mxPO04KPyAI0No/xQsHz8=; b=nJKDo1k0l+UyQYR3femyEy5HLKQ1TD6iqbO1scbapmDRu7dpztxCS9706Rg7H/CaQi As6ylIFSrx5gUXA2VtM6QoyRoNmxyQXDv5B3lVMiNCvPNqBiX/sUY6fxcL3p8Wp40D1X V1vvfypSrL8HrkzESq1ikyDWErSO3OTL9ad8HKkeDwnGkTlEzpRJFizhi+YQnqU3Hnkm qlGXfdwoHxQ7jVvzQjIYyfXxF9wdJUa39fhl+I9zZ2sVV03mW16k8/CaKeeHlLD+SoUo JaYPOhfKuR5Vtt8Wz6VeEyec/L+B0j3yJkLfO0aMmAaIKDGmr5EFP4Wpa2dEkCJlc5Ns Pmig== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=fUwJikyR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc15-20020a1709078a0f00b007ad6a0afbc6si14648813ejc.7.2022.12.07.10.33.09; Wed, 07 Dec 2022 10:33:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=fUwJikyR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229807AbiLGSb7 (ORCPT + 99 others); Wed, 7 Dec 2022 13:31:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229722AbiLGSbf (ORCPT ); Wed, 7 Dec 2022 13:31:35 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D01C66E574; Wed, 7 Dec 2022 10:31:33 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id E6398CA473; Wed, 7 Dec 2022 18:31:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1670437862; bh=NPfgoa3jrigKRkS6OV0XIN3b8dwyV8EmRW4epf631/s=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=fUwJikyRUDfEdi8VtZYPmOr3NplY3QiVjkotuX2+/AIrjpTnbQqHqnAHsr5fitMRL wU76tQkWQASGUokQHrXooxGYUBIuZKqvMBcxY5blRKh/kjjRPN3Wygj5C2Rfjq+PhM SCC3wXqxo8I4OXGXjK3VQeP2O1LFTjAwA1/BSwLE= From: Luca Weiss Date: Wed, 07 Dec 2022 19:30:45 +0100 Subject: [PATCH v3 8/9] arm64: dts: qcom: msm8953: Add device tree for Xiaomi Redmi 5 Plus MIME-Version: 1.0 Message-Id: <20221207-msm8953-6-1-next-dtbs-v3-v3-8-a64b3b0af0eb@z3ntu.xyz> References: <20221207-msm8953-6-1-next-dtbs-v3-v3-0-a64b3b0af0eb@z3ntu.xyz> In-Reply-To: <20221207-msm8953-6-1-next-dtbs-v3-v3-0-a64b3b0af0eb@z3ntu.xyz> To: Krzysztof Kozlowski , Rob Herring , Konrad Dybcio , Kees Cook , "Guilherme G. Piccoli" , Andy Gross , Bjorn Andersson , Tony Luck Cc: Gabriela David , Eugene Lepshy , linux-hardening@vger.kernel.org, Anton Bambura , Krzysztof Kozlowski , Luca Weiss , Adam Skladowski , ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, Danila Tikhonov , Gianluca Boiano , Sireesh Kodali , Vladimir Lypak , Julian Braha , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Alejandro Tafalla X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=9507; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=5SrLeS7Gsr5HU9IP+bjgqR2wSSVXySYc9ccC/dzGMNI=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBjkNvgAf+yiE+poJLVaCvycACz5VqQbYOvH/spjfLA 0N019rGJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY5Db4AAKCRBy2EO4nU3XVovxD/ oCbJRhNOdnX9sy3yylfNKw78SJQQww2SdALfYetWdRQDVDqTk/RW5wp2QAmzBebwbrWc1JZtJ0Qc3r QgOFTGn48B1irCtwUhUPOTcEXKBDHDuCQy2+zUpK7ZVpw8R3vghcySXUbKHDnGK2vKhin+TLVw1krn FJkZFUKm1t0KsiQ/THHwZaCpYc6Ssrkba+k9qfSmKrf6FwyWDGpDHQfWIR8CkmasrByObcniZoU9db WvoSK6Qe7WVdjFWsrtFsb2lpkNQiLbul4aFtQsmQUnQ8NjrGEo/Av0UPQ09KvoYSFGlu9qx/j/a5F3 eM5ybeyBHlYFp8HpAkRGo+oI1/lgJdap/XUJLQGZ2f3wTgG/1VIhfqySd/K+RywkbQfVVzcc6qgCfY j4U0KlnZnnM9bUT4dEVzkd3okunmjYErc4kuok6cR8UGkytQ9RXSAhJndwrqTeeom4QPzgYj9Ptg4w riZTE73JPGmG8F47bHDhrTS1ddbWudGm5mwC/lprk/f3Zs4AbRgLjGKdWHLVoehKzMVPRBHkT9Txxd 6gM1gHYRFhaDH3ddkfVSn+OoagKNDi51u5mDnQ6e2ZR6QiN2kv1g6N534M27G/ZCizz2ai8HRRGvj1 Lk51vjc5Rm86csACqQUpsCtT55pEZckJplXyFgY6KxFeRRnkut2AM2tEA0OA== 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,FROM_SUSPICIOUS_NTLD, SPF_HELO_NONE,SPF_PASS,T_PDS_OTHER_BAD_TLD 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751581209772564281?= X-GMAIL-MSGID: =?utf-8?q?1751581209772564281?= From: Eugene Lepshy Add device tree for the Xiaomi Redmi 5 Plus (vince) smartphone. This device is based on Snapdragon 625 (msm8953) SoC. Signed-off-by: Eugene Lepshy Co-developed-by: Gianluca Boiano Signed-off-by: Gianluca Boiano Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/msm8953-xiaomi-vince.dts | 361 ++++++++++++++++++++++ 2 files changed, 362 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 054dfbe820d9..995973d3960a 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -25,6 +25,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8953-motorola-potter.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8953-xiaomi-daisy.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8953-xiaomi-mido.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8953-xiaomi-tissot.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8953-xiaomi-vince.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8956-sony-xperia-loire-kugo.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8956-sony-xperia-loire-suzu.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8992-lg-bullhead-rev-10.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-vince.dts b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-vince.dts new file mode 100644 index 000000000000..b5be55034fd3 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-vince.dts @@ -0,0 +1,361 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, Eugene Lepshy + * Copyright (c) 2022, Gianluca Boiano + */ +/dts-v1/; + +#include "msm8953.dtsi" +#include "pm8953.dtsi" +#include "pmi8950.dtsi" +#include + +/delete-node/ &adsp_fw_mem; +/delete-node/ &cont_splash_mem; +/delete-node/ &qseecom_mem; +/delete-node/ &wcnss_fw_mem; + +/ { + model = "Xiaomi Redmi 5 Plus"; + compatible = "xiaomi,vince", "qcom,msm8953"; + chassis-type = "handset"; + qcom,msm-id = <293 0>; + qcom,board-id= <0x1000b 0x08>; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio_key_default>; + + key-volume-up { + label = "volume_up"; + linux,code = ; + gpios = <&tlmm 85 GPIO_ACTIVE_LOW>; + }; + }; + + reserved-memory { + qseecom_mem: qseecom@84a00000 { + reg = <0x0 0x84a00000 0x0 0x1900000>; + no-map; + }; + + cont_splash_mem: cont-splash@90001000 { + reg = <0x0 0x90001000 0x0 (1080 * 2160 * 3)>; + no-map; + }; + + adsp_fw_mem: adsp@8d600000 { + reg = <0x0 0x8d600000 0x0 0x1200000>; + no-map; + }; + + wcnss_fw_mem: wcnss@8e800000 { + reg = <0x0 0x8e800000 0x0 0x700000>; + no-map; + }; + + ramoops@9ff00000 { + compatible = "ramoops"; + reg = <0x0 0x9ff00000 0x0 0x100000>; + record-size = <0x1000>; + console-size = <0x80000>; + ftrace-size = <0x1000>; + pmsg-size = <0x8000>; + }; + }; + + /* + * We bitbang on &i2c_4 because BLSP is protected by TZ as sensors are + * normally proxied via ADSP firmware. GPIOs aren't protected. + */ + i2c-sensors { + compatible = "i2c-gpio"; + sda-gpios = <&tlmm 14 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; + scl-gpios = <&tlmm 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; + i2c-gpio,delay-us = <2>; /* ~100 kHz */ + #address-cells = <1>; + #size-cells = <0>; + + imu@6a { + compatible = "st,lsm6dsl"; + reg = <0x6a>; + vdd-supply = <&pm8953_l10>; + vddio-supply = <&pm8953_l6>; + mount-matrix = "1", "0", "0", + "0", "-1", "0", + "0", "0", "1"; + }; + }; + + vph_pwr: vph-pwr-regulator { + compatible = "regulator-fixed"; + regulator-name = "vph_pwr"; + regulator-always-on; + regulator-boot-on; + }; +}; + +&hsusb_phy { + vdd-supply = <&pm8953_l3>; + vdda-pll-supply = <&pm8953_l7>; + vdda-phy-dpdm-supply = <&pm8953_l13>; + + status = "okay"; +}; + +&i2c_2 { + status = "okay"; + + led-controller@45 { + compatible = "awinic,aw2013"; + reg = <0x45>; + + vcc-supply = <&pm8953_l10>; + + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + led-max-microamp = <5000>; + function = LED_FUNCTION_INDICATOR; + color = ; + }; + }; +}; + +&i2c_3 { + status = "okay"; + + touchscreen@20 { + reg = <0x20>; + compatible = "syna,rmi4-i2c"; + interrupts-parent = <&tlmm>; + interrupts-extended = <&tlmm 65 IRQ_TYPE_EDGE_FALLING>; + + #address-cells = <1>; + #size-cells = <0>; + + vdd-supply = <&pm8953_l10>; + vio-supply = <&pm8953_l6>; + + pinctrl-names = "init", "suspend"; + pinctrl-0 = <&ts_reset_active &ts_int_active>; + pinctrl-1 = <&ts_reset_suspend &ts_int_suspend>; + syna,reset-delay-ms = <200>; + syna,startup-delay-ms = <500>; + + rmi4-f01@1 { + reg = <0x01>; + syna,nosleep-mode = <1>; + }; + + rmi4-f12@12 { + reg = <0x12>; + syna,rezero-wait-ms = <20>; + syna,sensor-type = <1>; + touchscreen-x-mm = <68>; + touchscreen-y-mm = <122>; + }; + }; +}; + +&pm8953_resin { + linux,code = ; + status = "okay"; +}; + +&pmi8950_wled { + qcom,current-limit-microamp = <20000>; + qcom,ovp-millivolt = <29600>; + qcom,num-strings = <2>; + qcom,external-pfet; + qcom,cabc; + + status = "okay"; +}; + +&rpm_requests { + regulators { + compatible = "qcom,rpm-pm8953-regulators"; + vdd_s1-supply = <&vph_pwr>; + vdd_s2-supply = <&vph_pwr>; + vdd_s3-supply = <&vph_pwr>; + vdd_s4-supply = <&vph_pwr>; + vdd_s5-supply = <&vph_pwr>; + vdd_s6-supply = <&vph_pwr>; + vdd_s7-supply = <&vph_pwr>; + vdd_l1-supply = <&pm8953_s3>; + vdd_l2_l3-supply = <&pm8953_s3>; + vdd_l4_l5_l6_l7_l16_l19-supply = <&pm8953_s4>; + vdd_l8_l11_l12_l13_l14_l15-supply = <&vph_pwr>; + vdd_l9_l10_l17_l18_l22-supply = <&vph_pwr>; + + pm8953_s1: s1 { + regulator-min-microvolt = <870000>; + regulator-max-microvolt = <1156000>; + }; + + pm8953_s3: s3 { + regulator-min-microvolt = <984000>; + regulator-max-microvolt = <1224000>; + }; + + pm8953_s4: s4 { + regulator-min-microvolt = <1900000>; + regulator-max-microvolt = <2050000>; + }; + + pm8953_l1: l1 { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1100000>; + }; + + pm8953_l2: l2 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1225000>; + }; + + pm8953_l3: l3 { + regulator-min-microvolt = <925000>; + regulator-max-microvolt = <925000>; + }; + + pm8953_l5: l5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8953_l6: l6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8953_l7: l7 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1900000>; + }; + + pm8953_l8: l8 { + regulator-min-microvolt = <2900000>; + regulator-max-microvolt = <2900000>; + }; + + pm8953_l9: l9 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + }; + + pm8953_l10: l10 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + pm8953_l11: l11 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + }; + + pm8953_l12: l12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + pm8953_l13: l13 { + regulator-min-microvolt = <3125000>; + regulator-max-microvolt = <3125000>; + }; + + pm8953_l16: l16 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8953_l17: l17 { + regulator-min-microvolt = <2750000>; + regulator-max-microvolt = <2850000>; + }; + + pm8953_l19: l19 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1380000>; + }; + + pm8953_l22: l22 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + }; + + pm8953_l23: l23 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1225000>; + }; + }; +}; + +&sdhc_1 { + vmmc-supply = <&pm8953_l8>; + vqmmc-supply = <&pm8953_l5>; + + status = "okay"; +}; + +&sdhc_2 { + vmmc-supply = <&pm8953_l11>; + vqmmc-supply = <&pm8953_l12>; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; + pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; + + status = "okay"; +}; + +&tlmm { + gpio-reserved-ranges = <0 4>, <16 4>, <135 4>; + + ts_reset_active: ts-reset-active-state { + pins = "gpio64"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; + + ts_reset_suspend: ts-reset-suspend-state { + pins = "gpio64"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + + ts_int_active: ts-int-active-state { + pins = "gpio65"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; + + ts_int_suspend: ts-int-suspend-state { + pins = "gpio65"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; +}; + +&uart_0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart_console_active>; + + status = "okay"; +}; + +&usb3 { + status = "okay"; +}; + +&usb3_dwc3 { + dr_mode = "peripheral"; +}; From patchwork Wed Dec 7 18:30:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 30986 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp345223wrr; Wed, 7 Dec 2022 10:35:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf7yp50Wkx8bQ2Uom3mn8fxMO5Zpq+qWXM7oe1/DixN5LEMcg+JPF7EF57ANrpBwieKLJ8eP X-Received: by 2002:a62:17c1:0:b0:577:482:8a4c with SMTP id 184-20020a6217c1000000b0057704828a4cmr14103106pfx.29.1670438103688; Wed, 07 Dec 2022 10:35:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670438103; cv=none; d=google.com; s=arc-20160816; b=Gp0zpJVv+3fZj+rFYjTyPhllpMkUfhRv8flS5sp6vcpe+dXttkJd4Oj9iLBm4xUUfW 2mnMAsFGiFLuO2rPEUrbsSjE76kaB6FqnycjcYSsWIvZk75CDqYv114sj3xGodXI1Iw5 peOx1aQjMHDon6m6bSgxn+jXWcan/ORA2pO5UFOH+6+v6qssMBRbAxG/bqWTtJDiLCKC LxfoLmLwiKWzV93vfv8hz1HCTOcSa6FLolc3fF9/LxjXW4iNR/I0RUfWbLQpYr3CLkBJ 7rmjp80bhG+TVLjzgMHcIQMjL6/oxSfOYjh6IWZvo2aqwGwvgw/T0bLzxvuZ8GiC6Itv XoQg== 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=99E3gknyIyLzeAerT1haEncraNCC39lKkWatnuLTUYI=; b=uwZAj8RgFjDJEGm/fxtV/QEo5rd89LIFEmEsO3JurYDvpVSydQKXXPrwPYg6bq5s5D ScwJoFOZ+NmDYRpVhO9r0btuMD65MYWnNi0uNrTPIa6zLKPgLnB583Agtt2bwUwulWEz eBnonVDyVl5VrnINHKH5rJcr9rcbpxGpCkxkT7wC2oJkONhhFv3eabTyEp7Jh4UYphnC n+ITZYzL6BQ+W/A7KslqJO1elBf7bPbyLRCwg3Kbrx+B7iHA2j/K4YdIzyBvgo4zHvGj tMLBMhffWVFaDUcwlYugNMjohB2mCtxNw1M4BIh2sLvSQlOuQjoedqhWXjLPMuiAsoTe J6Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=NitHY5mm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j1-20020a056a00130100b0054116441045si21932751pfu.281.2022.12.07.10.34.51; Wed, 07 Dec 2022 10:35:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=NitHY5mm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229819AbiLGScE (ORCPT + 99 others); Wed, 7 Dec 2022 13:32:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229759AbiLGSbf (ORCPT ); Wed, 7 Dec 2022 13:31:35 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D65BF6E57A; Wed, 7 Dec 2022 10:31:34 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 992B2CA474; Wed, 7 Dec 2022 18:31:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1670437862; bh=S3rdsnAd+EN2Xrpqco5hkvF1iY6KBSEemrYqRZ09QIY=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=NitHY5mmigiSLN0KzddnI4U8I1P+e/GPwsuiYMVvUk3fgQHv2oAU5qaTWWRJhGw62 kID9XpLQGuOI4EcYDoSYj5TJzs++KjAhX7DD8UpPFOlUBWtH597lonc0VPUAzLJm36 yD1qDaCtAWZ5WiyVqAV84LYQe0TpUr1dL1VWaxLI= From: Luca Weiss Date: Wed, 07 Dec 2022 19:30:46 +0100 Subject: [PATCH v3 9/9] arm64: dts: qcom: sdm632: Add device tree for Motorola G7 Power MIME-Version: 1.0 Message-Id: <20221207-msm8953-6-1-next-dtbs-v3-v3-9-a64b3b0af0eb@z3ntu.xyz> References: <20221207-msm8953-6-1-next-dtbs-v3-v3-0-a64b3b0af0eb@z3ntu.xyz> In-Reply-To: <20221207-msm8953-6-1-next-dtbs-v3-v3-0-a64b3b0af0eb@z3ntu.xyz> To: Krzysztof Kozlowski , Rob Herring , Konrad Dybcio , Kees Cook , "Guilherme G. Piccoli" , Andy Gross , Bjorn Andersson , Tony Luck Cc: Gabriela David , Eugene Lepshy , linux-hardening@vger.kernel.org, Anton Bambura , Krzysztof Kozlowski , Luca Weiss , Adam Skladowski , ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, Danila Tikhonov , Gianluca Boiano , Sireesh Kodali , Vladimir Lypak , Julian Braha , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Alejandro Tafalla X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=7685; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=9S+RsrnSlN1BSxEP9zi4JIArpOHnf7x58PHkAZu4K3Q=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBjkNvhL9fP9Ci+H+fvhrD9iSucX4ZnGxU5W4r4UJf1 j3su3nmJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY5Db4QAKCRBy2EO4nU3XVua6D/ 9b6T+4I5jNQ1mqGef+/ce+CAx10lgbDZWvaulXM8gPe/vDVcWNX3xShsfn1BZVGFNnUmJTh+LHG1CU megwbI7ioJrxizo1PVSuSH89NEwHVrLlO0laLzr6XFEidUVVhI8mHN4XLgNer5jyCB7X71x/px6rmi MyuilswLTL061Fn90DBFBmv+mnE+E5wZC04FKirXKIYSYjTp8unJb5eSf4PT3d/Gs+EW3peEIriw3j 1Q5hJvAo4XNVGwWpFgsAtFNe0+sCvLVVT8LwRyJRvsjQoA8oXNlGPI5MkaM2barcRoOAQ+QOPGfFlk Aawm2dj5nteV3b1RB+nP1awti7BFZsM1za8rByzfO+l1fPCjBhLcWn7/pHLVYqh53H3Hq+KPay+T60 pf7jpKfQ1Y8Yp/geS7dU+QPOMl7j+4fmU8TtA67A+BMabdTKwn4IoKDQOnOhDvqIKshzdphUxP9c6O 8FfHn8OjTveGG7o3q0palzkYySHPeAICm7QjE2WWXJp9Ier0gvuW1jP2Vq587/u1/QmzdgxjqKV5RH sfH517Wef+BoxEDof3i5UIN0sT5OaBeZyEQ56z/lQMobRwqo1dZWNwsBgcLNVoLJOSOlGbxZCJ5wX6 sj3K/g1ynCN6VOjuAJV+uC66jwqDd30TfNZmPVWLeaH6X5JwhOUTK0b3LwXg== 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,FROM_SUSPICIOUS_NTLD, SPF_HELO_NONE,SPF_PASS,T_PDS_OTHER_BAD_TLD 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751581305133082098?= X-GMAIL-MSGID: =?utf-8?q?1751581305133082098?= From: Gabriela David Add device tree for the Motorola G7 Power (ocean) smartphone. This device is based on Snapdragon 632 (sdm632) SoC which is a variant of MSM8953. Signed-off-by: Gabriela David Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/sdm632-motorola-ocean.dts | 291 +++++++++++++++++++++ 2 files changed, 292 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 995973d3960a..21fd4aae31bc 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -138,6 +138,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sdm630-sony-xperia-nile-discovery.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm630-sony-xperia-nile-pioneer.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm630-sony-xperia-nile-voyager.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm632-fairphone-fp3.dtb +dtb-$(CONFIG_ARCH_QCOM) += sdm632-motorola-ocean.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm636-sony-xperia-ganges-mermaid.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm660-xiaomi-lavender.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm670-google-sargo.dtb diff --git a/arch/arm64/boot/dts/qcom/sdm632-motorola-ocean.dts b/arch/arm64/boot/dts/qcom/sdm632-motorola-ocean.dts new file mode 100644 index 000000000000..c82d6e628d2c --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm632-motorola-ocean.dts @@ -0,0 +1,291 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, Gabriela David + */ +/dts-v1/; + +#include "sdm632.dtsi" +#include "pm8953.dtsi" +#include + +/delete-node/ &cont_splash_mem; +/delete-node/ &qseecom_mem; + +/ { + model = "Motorola G7 Power"; + compatible = "motorola,ocean", "qcom,sdm632"; + chassis-type = "handset"; + qcom,msm-id = <349 0>; + qcom,board-id = <0x141 0xc100>; + qcom,pmic-id = <0x10016 0x25 0x00 0x00>; + + backlight: backlight { + compatible = "led-backlight"; + leds = <&led>; + }; + + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + framebuffer@90001000 { + compatible = "simple-framebuffer"; + reg = <0 0x90001000 0 (720 * 1520 * 3)>; + + width = <720>; + height = <1520>; + stride = <(720 * 3)>; + format = "r8g8b8"; + + power-domains = <&gcc MDSS_GDSC>; + + clocks = <&gcc GCC_MDSS_AHB_CLK>, + <&gcc GCC_MDSS_AXI_CLK>, + <&gcc GCC_MDSS_VSYNC_CLK>, + <&gcc GCC_MDSS_MDP_CLK>, + <&gcc GCC_MDSS_BYTE0_CLK>, + <&gcc GCC_MDSS_PCLK0_CLK>, + <&gcc GCC_MDSS_ESC0_CLK>; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio_key_default>; + + key-volume-up { + label = "Volume Up"; + gpios = <&tlmm 85 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + reserved-memory { + qseecom_mem: qseecom@84300000 { + reg = <0x0 0x84300000 0x0 0x2000000>; + no-map; + }; + + cont_splash_mem: cont-splash@90001000 { + reg = <0x0 0x90001000 0x0 (720 * 1520 * 3)>; + no-map; + }; + + reserved@eefa1800 { + reg = <0x00 0xeefa1800 0x00 0x5e800>; + no-map; + }; + + ramoops@ef000000 { + compatible = "ramoops"; + reg = <0x0 0xef000000 0x0 0xbf800>; + console-size = <0x40000>; + pmsg-size = <0x40000>; + record-size = <0x3f800>; + }; + }; + + vph_pwr: vph-pwr-regulator { + compatible = "regulator-fixed"; + regulator-name = "vph_pwr"; + regulator-always-on; + regulator-boot-on; + }; +}; + +&hsusb_phy { + vdd-supply = <&pm8953_l3>; + vdda-pll-supply = <&pm8953_l7>; + vdda-phy-dpdm-supply = <&pm8953_l13>; + + status = "okay"; +}; + +&i2c_3 { + status = "okay"; + + touchscreen@41 { + compatible = "ilitek,ili2117"; + reg = <0x41>; + + interrupt-parent = <&tlmm>; + interrupts = <65 IRQ_TYPE_EDGE_FALLING>; + + touchscreen-inverted-x; + }; +}; + +&i2c_5 { + status = "okay"; + + led-controller@36 { + compatible = "ti,lm3697"; + reg = <0x36>; + + #address-cells = <1>; + #size-cells = <0>; + + led: led@1 { + reg = <1>; + default-trigger = "backlight"; + function = LED_FUNCTION_BACKLIGHT; + led-sources = <0 1 2>; + }; + }; +}; + +&pm8953_resin { + linux,code = ; + status = "okay"; +}; + +&rpm_requests { + regulators { + compatible = "qcom,rpm-pm8953-regulators"; + + vdd_l1-supply = <&pm8953_s3>; + vdd_l2_l3-supply = <&pm8953_s3>; + vdd_l4_l5_l6_l7_l16_l19-supply = <&pm8953_s4>; + vdd_l8_l11_l12_l13_l14_l15-supply = <&vph_pwr>; + vdd_l9_l10_l17_l18_l22-supply = <&vph_pwr>; + + pm8953_s3: s3 { + regulator-min-microvolt = <984000>; + regulator-max-microvolt = <1240000>; + }; + + pm8953_s4: s4 { + regulator-min-microvolt = <1036000>; + regulator-max-microvolt = <2040000>; + }; + + pm8953_l1: l1 { + regulator-min-microvolt = <975000>; + regulator-max-microvolt = <1050000>; + }; + + pm8953_l2: l2 { + regulator-min-microvolt = <975000>; + regulator-max-microvolt = <1175000>; + }; + + pm8953_l3: l3 { + regulator-min-microvolt = <925000>; + regulator-max-microvolt = <925000>; + regulator-allow-set-load; + }; + + pm8953_l5: l5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8953_l6: l6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + pm8953_l7: l7 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1900000>; + }; + + pm8953_l8: l8 { + regulator-min-microvolt = <2900000>; + regulator-max-microvolt = <2900000>; + }; + + pm8953_l9: l9 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + }; + + pm8953_l10: l10 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <3000000>; + }; + + pm8953_l11: l11 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + }; + + pm8953_l12: l12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + pm8953_l13: l13 { + regulator-min-microvolt = <3125000>; + regulator-max-microvolt = <3125000>; + }; + + pm8953_l16: l16 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8953_l17: l17 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + pm8953_l18: l18 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2700000>; + regulator-always-on; + regulator-boot-on; + }; + + pm8953_l19: l19 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1350000>; + }; + + pm8953_l22: l22 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + pm8953_l23: l23 { + regulator-min-microvolt = <975000>; + regulator-max-microvolt = <1225000>; + }; + }; +}; + +&sdhc_1 { + vmmc-supply = <&pm8953_l8>; + vqmmc-supply = <&pm8953_l5>; + + status = "okay"; +}; + +&sdhc_2 { + vmmc-supply = <&pm8953_l11>; + vqmmc-supply = <&pm8953_l12>; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; + pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; + + status = "okay"; +}; + +&tlmm { + gpio-reserved-ranges = <96 4>; +}; + +&usb3 { + status = "okay"; +}; + +&usb3_dwc3 { + dr_mode = "peripheral"; +};