From patchwork Tue Nov 29 11:47:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Owen Yang X-Patchwork-Id: 27201 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp288087wrr; Tue, 29 Nov 2022 03:57:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf5J/4D85peoHTkiCfb/qrGONLo4tlKL20SRbqrMvz81mdt5rmQ1zMHIOrv8P67tS2i2bfm3 X-Received: by 2002:a17:906:37c7:b0:7c0:e15:9c4 with SMTP id o7-20020a17090637c700b007c00e1509c4mr7742285ejc.435.1669723059389; Tue, 29 Nov 2022 03:57:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669723059; cv=none; d=google.com; s=arc-20160816; b=EqtCfYrNUext/uppng9WxfIY5DvLeXDMpcIe5c8SyFL6hRRV/qpe3VI80zpcLw4/pw KK5EG8iofgF7cAVu83B0WvCtU5OkY8o1YSlEfIynrZ3SZ1eWYbUnU91fNsSUMVAuKijK AJEC8Vjn55F62bCxIwTahHyIrxnIZT5hZE/z9EJU2Ci3C+ylK96qtMZV1Kpbq3JaD8B/ BUjkrqFbCjY2PXoqVa0s9kqO8BBBEL4xYJKiQJF7bbYIjOauNcfaSdjDhTFEOtXW8J3F DZt5iq0u03jzaptzGg/yicG3s2v95ufTuc0rNWjbzI7RYKlzKHp32oL3ZGjqEH+VKp+3 J0fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=TN8un9HpKJ6jCwK6chNoIv5vh7+lXCbI1Cq9dR3jLDM=; b=RjH2mVmDHBDQciA4iDicjoWPB8iN3/S7zl/vHEqSOXIooEQkmGrkvdpEv4Mm3CCyJQ Yp+N2Rcw3Q6CvbOj0sGNFQLnDRSWi74C8S9P2NdUWxrdRKfz+AwoHPviBMXPsAbMlShJ 4JO/cRaOAENQ/8mOyKBnN7JupGY3cjg0PYJuGSKWFFM21etNXDDCaIRcsxbHpWKn2nUC gFWD5kCJHQab7eWPorRPfL6PP+qeZv5gYiORHIjAVq7+xnYlPOKpSjjrr/NUZlD5u7HL H8fZ8tZpfqydcBGYxkwKsI/a9kZcDAoClDfO30Y7mBkTvIaEO5DRZi957SpHHxETXNNS 20pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DgRPd3Hp; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb11-20020a1709071c8b00b007bc9d241106si10391482ejc.733.2022.11.29.03.57.15; Tue, 29 Nov 2022 03:57:39 -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=pass header.i=@gmail.com header.s=20210112 header.b=DgRPd3Hp; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232299AbiK2Lrr (ORCPT + 99 others); Tue, 29 Nov 2022 06:47:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbiK2Lrq (ORCPT ); Tue, 29 Nov 2022 06:47:46 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DB9323E99; Tue, 29 Nov 2022 03:47:44 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id q17-20020a17090aa01100b002194cba32e9so2197115pjp.1; Tue, 29 Nov 2022 03:47:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TN8un9HpKJ6jCwK6chNoIv5vh7+lXCbI1Cq9dR3jLDM=; b=DgRPd3HpHYjBqkpfMcOfAhhHhMOZuX09/9OZ+YU91yPvGPjeQHvqXvddZ95UM7kS9I IEHzmGqqUj1gYBSfYQWpJYJwDQQ83MdJXdi9gkdgwfqPmwO6EcGEwqOu5UayXtel2sf0 uxwnesNdx0jhMbLhQr1q/Rg65Ze75KJtY8E2BfCl1fKNZjcoz80/2+HWQ9Bik88C4XP3 CpwXFY4lTHCMnG4/7KMsSaUlIReUV2IMniUxfQ29scl5N9rxn3QXhOGOolfa99DfGFqW RR6cjkKzooQrIWC8df80WnwU5HtoJkNKHqU4Tqk6lxZXmWYhh9TtNiZNh+ps0AoOfpsD +/Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TN8un9HpKJ6jCwK6chNoIv5vh7+lXCbI1Cq9dR3jLDM=; b=8JlRKiUu1W/YUpsn3RUAzqIr+eCORr7y0r63S/aGzdtL8UZy0Uv3dGvczhkm3zN5cS XVx96A57T8HFoS6D0LGM9vEtHyNB72+6mNsVgTq66P5naRZabBuqbXPOJYsVgOP+mDK1 BGHG/TrIL+jnt0Cq+3KzRz2nN1KNZ6lMlI6xF4jUENuUgggM9DmeUj5nB5WnGzPNTBYz y1igwdTIxnD1BzssUsba0gULEGD4DYIxzBsUN9AUd9pBjCwV77wT8J+PDJLQo4ywl6/l xX1zSLQ2QFsRNDmVTIb5k0fQz0FW/52Pa9g91MBjEX0RJfq+EBtGJGSdaQ/8p66kOmNz qy/w== X-Gm-Message-State: ANoB5pl7EPqtBxSiM7Kmb9LURY2UNoDk/FkMfax5x55GIfIcrbHhi/pJ lUI0YMpQ1SUPQGNHBxwB4sf13HETpEk= X-Received: by 2002:a17:903:cc:b0:189:7441:1ada with SMTP id x12-20020a17090300cc00b0018974411adamr16644845plc.13.1669722463392; Tue, 29 Nov 2022 03:47:43 -0800 (PST) Received: from localhost.localdomain (2001-b400-e2d4-7fe5-5c2c-fa0a-e67b-3955.emome-ip6.hinet.net. [2001:b400:e2d4:7fe5:5c2c:fa0a:e67b:3955]) by smtp.gmail.com with ESMTPSA id f14-20020a170902684e00b001892af9472esm10560709pln.261.2022.11.29.03.47.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 03:47:42 -0800 (PST) From: Owen Yang To: LKML Cc: Matthias Kaehlcke , Abner Yen , Gavin Lee , Bob Moragues , Harvey , Stephen Boyd , Doug Anderson , Owen Yang , Andy Gross , Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v9 1/2] dt-bindings: arm: qcom: Add zombie Date: Tue, 29 Nov 2022 19:47:08 +0800 Message-Id: <20221129194620.v9.1.Idfcba5344b7995b44b7fa2e20f1aa4351defeca6@changeid> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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?1750831526607919309?= X-GMAIL-MSGID: =?utf-8?q?1750831526607919309?= Add entries in the device tree binding for sc7280-zombie. Signed-off-by: Owen Yang --- (no changes since v1) Documentation/devicetree/bindings/arm/qcom.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index 463509f0f23a..7ec6240311db 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -655,6 +655,16 @@ properties: - const: google,villager-sku512 - const: qcom,sc7280 + - description: Google Zombie (newest rev) + items: + - const: google,zombie + - const: qcom,sc7280 + + - description: Google Zombie with LTE (newest rev) + items: + - const: google,zombie-sku512 + - const: qcom,sc7280 + - items: - enum: - lenovo,flex-5g From patchwork Tue Nov 29 11:47:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Owen Yang X-Patchwork-Id: 27199 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp287448wrr; Tue, 29 Nov 2022 03:56:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf5BefULk48z7jZCunOd/6oEMYvN7OJt8XOfiwzT2lPPM+QAih9uSGJRLo2dwku6nESsdrN4 X-Received: by 2002:a17:906:198d:b0:7a5:f8a5:6f84 with SMTP id g13-20020a170906198d00b007a5f8a56f84mr29536600ejd.569.1669722967066; Tue, 29 Nov 2022 03:56:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669722967; cv=none; d=google.com; s=arc-20160816; b=tVBsaFsTahYF8byFgLPp3X2INWXOIxBX6GZFphErJWokixIb31QxJzSei1ezAL18SE 8qgSfl0fDGpL9xAiBuVpoTgteguQVvMmhFVV8IdBebR+rV8E+kU6MEK/mh68Y9ZRdHi5 IxgYRXWxKZh7AwgIv4QR6aTrB9nX0+cgn69neSN9IeoAkFwFP42RSiY3e5yjVO8JL9LU Uj7Z1Zz4y4v2XvG3k5K50HRxtfm7DvfcMhebkbSDtSjpN6vVnOUmNmD3JDAZ4+1z/yYH gZr/vZ3Pr7s0BZkHzfjJXQAuIAW1p1C8qxBtAW6ywF9p/CtlqCoov4nJg5s4A+2v6PPo cZvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=oY8Yb1KAidPneCJM9vJBfDnBk6VB6NmBs0aOAlbK3O4=; b=sVnpFC6HdkVeQWrptNu9Eqq+Lu/zKRwSNL5Imh/RVDwKJ/TXjgMF3NkpZ1QUlWGzt5 yvAHT5trrGbcwnwdKYE8ZoT9kBThNLtD4M/mA3W/kyWbzUXor/ZVrBk1Ljvxv27gFPmR hg+/GvVNuRMyHcSCswAvagswrIJwvm2YDEDQXcbZ50S4pLqBkxHZaeR9rCdYLYr7447A UKbHTPvLldORCQPPSY24Oo11v5S5QlY+yozKFEJOOmAt14Z6hXZOlA+BnCq4CyS9rjea rGiLJZCXNXt1RKtKBxmKt93Quac0L6YJ+GGJs0MdKD4ysyuhvya/R5b9ijcSQ+jMt8PF PJZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ia7zSmNP; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y8-20020a056402270800b0046aa75bee2dsi10891916edd.367.2022.11.29.03.55.42; Tue, 29 Nov 2022 03:56:07 -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=pass header.i=@gmail.com header.s=20210112 header.b=ia7zSmNP; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230410AbiK2Lr6 (ORCPT + 99 others); Tue, 29 Nov 2022 06:47:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbiK2Lrt (ORCPT ); Tue, 29 Nov 2022 06:47:49 -0500 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40B61286E2; Tue, 29 Nov 2022 03:47:48 -0800 (PST) Received: by mail-pj1-x1036.google.com with SMTP id e7-20020a17090a77c700b00216928a3917so17065251pjs.4; Tue, 29 Nov 2022 03:47:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=oY8Yb1KAidPneCJM9vJBfDnBk6VB6NmBs0aOAlbK3O4=; b=ia7zSmNPF2JkoCVze5+qEGcGTeo/HyN/maPGPQ4Dopk/JoHdZ7U8UX0qCaXyicpJgB zEHPEt8gsW+hpmcEQvCNLejrtXK2g40B526FqRWhrVtQiuCBQQ3/eKeKIz9sc4fxC305 7mUm6Pf5nEUf4FYCOmBvjESaFLju+ibkUkfpYy58L1MDrh/ftk55aroOlt96FbYu8LRd tqWCqMzrTvHqDc6YuaNWJ8+UD/AxBdu1vMNREkiZDI5TAwuSLU3i/b5HqjoXHYdIc7bL q4uxKnKERC3vnGcTMsSoPq6olHwfqkuWF+Up/seyGstMoIj8aALg+cIXHcslklkuyfuB rsZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oY8Yb1KAidPneCJM9vJBfDnBk6VB6NmBs0aOAlbK3O4=; b=Zq36mlO4xHiNASf+R50S04s1IBgGaE3uJjxDtnXHVPnHsR/NoIzYAzHxloDUxuM9nT ccfV3r9F9THPwf0rbI9mv6t4RFQa75vncnuttTrcVNu/d04qcbfXx5C+K6eZax6s+VPJ h+kFISVZlZfvFBZYctHz/2mtmRRANBZZ4s8Dsyj+WZKIY9fTBZ+aVz0W7emW+yPNubJt pOVq1ETtzaMdplpXm33mQpRT8sBrldGcqQWAvXT+HM1QsJJQggJfg5EKJ041NKZ+no0H lEqGTs6c8iL6isFSmzU+vxpl1H9rudZP4VptGu01KkGEBvQFOfr6I3FRB8QHAMlq3GmX zY6w== X-Gm-Message-State: ANoB5pmlibVC641wM8RNzQU/eSsVyRBiM5prugkG46owgRVpA9H7oCPD pJxgVbE9EnZSI3N2PyfczwvZiPA6L3M= X-Received: by 2002:a17:902:6a86:b0:187:722:f4db with SMTP id n6-20020a1709026a8600b001870722f4dbmr37799219plk.87.1669722467198; Tue, 29 Nov 2022 03:47:47 -0800 (PST) Received: from localhost.localdomain (2001-b400-e2d4-7fe5-5c2c-fa0a-e67b-3955.emome-ip6.hinet.net. [2001:b400:e2d4:7fe5:5c2c:fa0a:e67b:3955]) by smtp.gmail.com with ESMTPSA id f14-20020a170902684e00b001892af9472esm10560709pln.261.2022.11.29.03.47.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 03:47:46 -0800 (PST) From: Owen Yang To: LKML Cc: Matthias Kaehlcke , Abner Yen , Gavin Lee , Bob Moragues , Harvey , Stephen Boyd , Doug Anderson , Owen Yang , Andy Gross , Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v9 2/2] arm64: dts: qcom: sc7280: Add DT for sc7280-herobrine-zombie Date: Tue, 29 Nov 2022 19:47:09 +0800 Message-Id: <20221129194620.v9.2.I80aa32497bfd67bc8a372c1418ccc443ccf193e4@changeid> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221129194620.v9.1.Idfcba5344b7995b44b7fa2e20f1aa4351defeca6@changeid> References: <20221129194620.v9.1.Idfcba5344b7995b44b7fa2e20f1aa4351defeca6@changeid> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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?1750831430254336770?= X-GMAIL-MSGID: =?utf-8?q?1750831430254336770?= Add DT for sc7280-herobrine-zombie Tested-by: Owen Yang Signed-off-by: Owen Yang --- Changes in v9: - Update "Series-version" to right number "9". Changes in v8: - Change Patch 1 commit log description to "Add entries in the device tree binding for sc7280-zombie.". Changes in v7: - Add "Tested-by" in commit log. Changes in v6: - Set the PWM period to 200 microseconds (5kHz duty cycle). - Drop post-power-on-delay-ms = <100>. - Remove one of the lines after the line with "MOS_BLE_UART_RX" for matching amount of GPIO (174). Changes in v5: - Overwrite pm8350c_pwm_backlight setting in sc7280-herobrine-zombie.dtsi for chrome zombie. v5. - Dropping the redundant 'DT binding for' as requested by Krzysztof. v4. - Adding an empty line here before "/dts-v1/;" in "sc7280-herobrine-zombie-lte.dts", "sc7280-herobrine-zombie.dts" as requested by Matthias. v4. - Deleteing "/dts-v1/;" in "sc7280-herobrine-zombie.dtsi" as requested by Matthias. v4. - Droping changing file path in description. v3. as requested by Matthias. v3. - Changing Patch order, binding patch first and dt file second, as requested by Douglas. v2. - Adding "arm64: dts: qcom: sc7280:" in dt patch ${SUBJECT}, as requested by Douglas. v2. - Adding "dt-bindings: arm: qcom:" in bind patch ${SUBJECT}, as requested by Douglas. v2. - Adding '#include "sc7280-herobrine-wifi-sku.dtsi"' in sc7280-herobrine-zombie.dts, as requested by Douglas. v2. - Adding "(newest rev)" for zombie entry description in qcom.yaml, as requested by Douglas. v2. - Adding "post-power-on-delay-ms = <100>;" for trackpad in "sc7280-herobrine-zombie.dtsi". v2 - Changing "vcc-supply" to "vdd-supply" for trackpad in "sc7280-herobrine-zombie.dtsi", as requested by Douglas. v2. arch/arm64/boot/dts/qcom/Makefile | 2 + .../dts/qcom/sc7280-herobrine-zombie-lte.dts | 16 + .../boot/dts/qcom/sc7280-herobrine-zombie.dts | 16 + .../dts/qcom/sc7280-herobrine-zombie.dtsi | 311 ++++++++++++++++++ 4 files changed, 345 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sc7280-herobrine-zombie-lte.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7280-herobrine-zombie.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7280-herobrine-zombie.dtsi diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index afe496a93f94..7b0644a39062 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -114,6 +114,8 @@ dtb-$(CONFIG_ARCH_QCOM) += sc7280-herobrine-herobrine-r1.dtb dtb-$(CONFIG_ARCH_QCOM) += sc7280-herobrine-villager-r0.dtb dtb-$(CONFIG_ARCH_QCOM) += sc7280-herobrine-villager-r1.dtb dtb-$(CONFIG_ARCH_QCOM) += sc7280-herobrine-villager-r1-lte.dtb +dtb-$(CONFIG_ARCH_QCOM) += sc7280-herobrine-zombie.dtb +dtb-$(CONFIG_ARCH_QCOM) += sc7280-herobrine-zombie-lte.dtb dtb-$(CONFIG_ARCH_QCOM) += sc7280-idp.dtb dtb-$(CONFIG_ARCH_QCOM) += sc7280-idp2.dtb dtb-$(CONFIG_ARCH_QCOM) += sc7280-crd-r3.dtb diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-zombie-lte.dts b/arch/arm64/boot/dts/qcom/sc7280-herobrine-zombie-lte.dts new file mode 100644 index 000000000000..c9fe64529555 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-zombie-lte.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Google Zombie board device tree source + * + * Copyright 2022 Google LLC. + */ + +/dts-v1/; + +#include "sc7280-herobrine-zombie.dtsi" +#include "sc7280-herobrine-lte-sku.dtsi" + +/ { + model = "Google Zombie with LTE"; + compatible = "google,zombie-sku512", "qcom,sc7280"; +}; diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-zombie.dts b/arch/arm64/boot/dts/qcom/sc7280-herobrine-zombie.dts new file mode 100644 index 000000000000..0246c12b2f40 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-zombie.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Google Zombie board device tree source + * + * Copyright 2022 Google LLC. + */ + +/dts-v1/; + +#include "sc7280-herobrine-zombie.dtsi" +#include "sc7280-herobrine-wifi-sku.dtsi" + +/ { + model = "Google Zombie"; + compatible = "google,zombie", "qcom,sc7280"; +}; diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-zombie.dtsi b/arch/arm64/boot/dts/qcom/sc7280-herobrine-zombie.dtsi new file mode 100644 index 000000000000..21ac55fd63aa --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-zombie.dtsi @@ -0,0 +1,311 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Google Zombie board device tree source + * + * Copyright 2022 Google LLC. + */ + +#include "sc7280-herobrine.dtsi" +#include "sc7280-herobrine-audio-rt5682.dtsi" + +/* + * ADDITIONS TO FIXED REGULATORS DEFINED IN PARENT DEVICE TREE FILES + * + * Sort order matches the order in the parent files (parents before children). + */ + +&pp3300_codec { + status = "okay"; +}; + +/* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */ + +ap_tp_i2c: &i2c0 { + clock-frequency = <400000>; + status = "okay"; + + trackpad: trackpad@15 { + compatible = "hid-over-i2c"; + reg = <0x15>; + pinctrl-names = "default"; + pinctrl-0 = <&tp_int_odl>; + + interrupt-parent = <&tlmm>; + interrupts = <7 IRQ_TYPE_EDGE_FALLING>; + + hid-descr-addr = <0x01>; + vdd-supply = <&pp3300_z1>; + + wakeup-source; + }; +}; + +&ap_sar_sensor_i2c { + status = "okay"; +}; + +&ap_sar_sensor0 { + status = "okay"; +}; + +&ap_sar_sensor1 { + status = "okay"; +}; + +&mdss_edp { + status = "okay"; +}; + +&mdss_edp_phy { + status = "okay"; +}; + +/* For nvme */ +&pcie1 { + status = "okay"; +}; + +/* For nvme */ +&pcie1_phy { + status = "okay"; +}; + +&pm8350c_pwm_backlight{ + pwms = <&pm8350c_pwm 3 200000>; +}; + +&pwmleds { + status = "okay"; +}; + +/* For eMMC */ +&sdhc_1 { + status = "okay"; +}; + +/* PINCTRL - ADDITIONS TO NODES IN PARENT DEVICE TREE FILES */ + +&ts_rst_conn { + bias-disable; +}; + +/* PINCTRL - BOARD-SPECIFIC */ + +/* + * Methodology for gpio-line-names: + * - If a pin goes to herobrine board and is named it gets that name. + * - If a pin goes to herobrine board and is not named, it gets no name. + * - If a pin is totally internal to Qcard then it gets Qcard name. + * - If a pin is not hooked up on Qcard, it gets no name. + */ + +&pm8350c_gpios { + gpio-line-names = "FLASH_STROBE_1", /* 1 */ + "AP_SUSPEND", + "PM8008_1_RST_N", + "", + "", + "", + "PMIC_EDP_BL_EN", + "PMIC_EDP_BL_PWM", + ""; +}; + +&tlmm { + gpio-line-names = "AP_TP_I2C_SDA", /* 0 */ + "AP_TP_I2C_SCL", + "SSD_RST_L", + "PE_WAKE_ODL", + "AP_SAR_SDA", + "AP_SAR_SCL", + "PRB_SC_GPIO_6", + "TP_INT_ODL", + "HP_I2C_SDA", + "HP_I2C_SCL", + + "GNSS_L1_EN", /* 10 */ + "GNSS_L5_EN", + "SPI_AP_MOSI", + "SPI_AP_MISO", + "SPI_AP_CLK", + "SPI_AP_CS0_L", + /* + * AP_FLASH_WP is crossystem ABI. Schematics + * call it BIOS_FLASH_WP_OD. + */ + "AP_FLASH_WP", + "", + "AP_EC_INT_L", + "", + + "UF_CAM_RST_L", /* 20 */ + "WF_CAM_RST_L", + "UART_AP_TX_DBG_RX", + "UART_DBG_TX_AP_RX", + "", + "PM8008_IRQ_1", + "HOST2WLAN_SOL", + "WLAN2HOST_SOL", + "MOS_BT_UART_CTS", + "MOS_BT_UART_RFR", + + "MOS_BT_UART_TX", /* 30 */ + "MOS_BT_UART_RX", + "PRB_SC_GPIO_32", + "HUB_RST_L", + "", + "", + "AP_SPI_FP_MISO", + "AP_SPI_FP_MOSI", + "AP_SPI_FP_CLK", + "AP_SPI_FP_CS_L", + + "AP_EC_SPI_MISO", /* 40 */ + "AP_EC_SPI_MOSI", + "AP_EC_SPI_CLK", + "AP_EC_SPI_CS_L", + "LCM_RST_L", + "EARLY_EUD_N", + "", + "DP_HOT_PLUG_DET", + "IO_BRD_MLB_ID0", + "IO_BRD_MLB_ID1", + + "IO_BRD_MLB_ID2", /* 50 */ + "SSD_EN", + "TS_I2C_SDA_CONN", + "TS_I2C_CLK_CONN", + "TS_RST_CONN", + "TS_INT_CONN", + "AP_I2C_TPM_SDA", + "AP_I2C_TPM_SCL", + "PRB_SC_GPIO_58", + "PRB_SC_GPIO_59", + + "EDP_HOT_PLUG_DET_N", /* 60 */ + "FP_TO_AP_IRQ_L", + "", + "AMP_EN", + "CAM0_MCLK_GPIO_64", + "CAM1_MCLK_GPIO_65", + "WF_CAM_MCLK", + "PRB_SC_GPIO_67", + "FPMCU_BOOT0", + "UF_CAM_SDA", + + "UF_CAM_SCL", /* 70 */ + "", + "", + "WF_CAM_SDA", + "WF_CAM_SCL", + "", + "", + "EN_FP_RAILS", + "FP_RST_L", + "PCIE1_CLKREQ_ODL", + + "EN_PP3300_DX_EDP", /* 80 */ + "US_EURO_HS_SEL", + "FORCED_USB_BOOT", + "WCD_RESET_N", + "MOS_WLAN_EN", + "MOS_BT_EN", + "MOS_SW_CTRL", + "MOS_PCIE0_RST", + "MOS_PCIE0_CLKREQ_N", + "MOS_PCIE0_WAKE_N", + + "MOS_LAA_AS_EN", /* 90 */ + "SD_CD_ODL", + "", + "", + "MOS_BT_WLAN_SLIMBUS_CLK", + "MOS_BT_WLAN_SLIMBUS_DAT0", + "HP_MCLK", + "HP_BCLK", + "HP_DOUT", + "HP_DIN", + + "HP_LRCLK", /* 100 */ + "HP_IRQ", + "", + "", + "GSC_AP_INT_ODL", + "EN_PP3300_CODEC", + "AMP_BCLK", + "AMP_DIN", + "AMP_LRCLK", + "UIM1_DATA_GPIO_109", + + "UIM1_CLK_GPIO_110", /* 110 */ + "UIM1_RESET_GPIO_111", + "PRB_SC_GPIO_112", + "UIM0_DATA", + "UIM0_CLK", + "UIM0_RST", + "UIM0_PRESENT_ODL", + "SDM_RFFE0_CLK", + "SDM_RFFE0_DATA", + "WF_CAM_EN", + + "FASTBOOT_SEL_0", /* 120 */ + "SC_GPIO_121", + "FASTBOOT_SEL_1", + "SC_GPIO_123", + "FASTBOOT_SEL_2", + "SM_RFFE4_CLK_GRFC_8", + "SM_RFFE4_DATA_GRFC_9", + "WLAN_COEX_UART1_RX", + "WLAN_COEX_UART1_TX", + "PRB_SC_GPIO_129", + + "LCM_ID0", /* 130 */ + "LCM_ID1", + "", + "SDR_QLINK_REQ", + "SDR_QLINK_EN", + "QLINK0_WMSS_RESET_N", + "SMR526_QLINK1_REQ", + "SMR526_QLINK1_EN", + "SMR526_QLINK1_WMSS_RESET_N", + "PRB_SC_GPIO_139", + + "SAR1_IRQ_ODL", /* 140 */ + "SAR0_IRQ_ODL", + "PRB_SC_GPIO_142", + "", + "WCD_SWR_TX_CLK", + "WCD_SWR_TX_DATA0", + "WCD_SWR_TX_DATA1", + "WCD_SWR_RX_CLK", + "WCD_SWR_RX_DATA0", + "WCD_SWR_RX_DATA1", + + "DMIC01_CLK", /* 150 */ + "DMIC01_DATA", + "DMIC23_CLK", + "DMIC23_DATA", + "", + "", + "EC_IN_RW_ODL", + "HUB_EN", + "WCD_SWR_TX_DATA2", + "", + + "", /* 160 */ + "", + "", + "", + "", + "", + "", + "", + "", + "", + + "", /* 170 */ + "MOS_BLE_UART_TX", + "MOS_BLE_UART_RX", + "", + ""; +};