From patchwork Fri Apr 17 01:26:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Minnekhanov X-Patchwork-Id: 201907 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35350C352BE for ; Fri, 17 Apr 2020 01:28:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 15EED20857 for ; Fri, 17 Apr 2020 01:28:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GoCmbeVy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727933AbgDQB2i (ORCPT ); Thu, 16 Apr 2020 21:28:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725858AbgDQB2i (ORCPT ); Thu, 16 Apr 2020 21:28:38 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCB6AC061A0C; Thu, 16 Apr 2020 18:28:37 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id h25so317474lja.10; Thu, 16 Apr 2020 18:28:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Tas9+PJOq1SU5PaTRpFIGQLRtXsUd9SyfvUfOPfxID4=; b=GoCmbeVymW5kZTztq1FiOXPWi00IQUPCf4CzXN4kT60xQ3zXH62Q8O/MMqErEOKkcK l5aehNafYAptkqEA+Cs+vT2zsG0oOtn0ImM3hze7T4i7TPovxWU10ku1M/nDy1bhUp+K H6NuuVE+x469Qv9JV8rJ7SC8FI3nGMNtszZleKdX/YNImHqzWfTMGQrIi9PcoAmtricV w/ByhYAkAfzslAmLvpdoT6J5cOovuPwtK/+HCUgA/Rw9Ub/d2oTtlhRKX2XMrEytaT1I Ldwib76dMmj/2ka2dbpcfy4DkpcJP6AXTv+tM5Pd5Y9gfDzz8IVwZT1bCoGiFZPAiFy5 W8jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Tas9+PJOq1SU5PaTRpFIGQLRtXsUd9SyfvUfOPfxID4=; b=GEfn9QvzpDdjlqebpjcR3RZLBV2rRY6OGO4UJsc/YwTfmIVeSWrsQEYN8RgsZk8bw+ NpmzxOObxitwo8bBHj/fQPzgZ+MQgi4m8BUwW8ozyowTzLg+okX4CfwAei4Tfgwmgut4 y9bEhmOAgjDUngpobUF+JT0ir31uiy9V1WwrO1u4pcjZiUK19aMpK0s412PM6v2/H0Uj D9/oEsOUjWZeACvzE2M9DNYqMGJhbvZIIVAIbpItsQIK5B5Lc36agQ43ebl6YAfDeJND 1NJLz2vap5BMaShloZviLaGqbwEBkdsWorCxumjd3EWYqt5hiWq7F6f//JAVcxn/Onmg tr2Q== X-Gm-Message-State: AGi0PuYePWkJvV2Ew73MILMjgMG+ARkXsVShaz6IAKRtxZDprv/auidD Qrl8LSLmsyeAd7NAi9xgq8g= X-Google-Smtp-Source: APiQypJummCqAa3wVXH5AUSo4f8GMvUWYhhI06v/eHFOJqaiC6yDuyIjGLgCIqIvx2eE1PpsnPhj0Q== X-Received: by 2002:a05:651c:208:: with SMTP id y8mr508515ljn.280.1587086916322; Thu, 16 Apr 2020 18:28:36 -0700 (PDT) Received: from localhost.localdomain ([94.229.111.13]) by smtp.gmail.com with ESMTPSA id w25sm14644650ljo.78.2020.04.16.18.28.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Apr 2020 18:28:35 -0700 (PDT) From: Alexey Minnekhanov To: Andy Gross , Bjorn Andersson , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Cc: Alexey Minnekhanov , Alexey Minnekhanov Subject: [PATCH v2 1/3] dt-bindings: arm: qcom: Add sdm630 and sdm660 SoCs Date: Fri, 17 Apr 2020 04:26:28 +0300 Message-Id: <20200417012630.222352-2-alexey.min@gmail.com> X-Mailer: git-send-email 2.25.3 In-Reply-To: <20200417012630.222352-1-alexey.min@gmail.com> References: <20200417012630.222352-1-alexey.min@gmail.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add a SoC strings for the Qualcomm SDM630 and SDM660 SoCs. Also document the new xiaomi,lavender compatible used in a device tree binding. Signed-off-by: Alexey Minnekhanov --- Documentation/devicetree/bindings/arm/qcom.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index 64ddae3bd39f..6031aee0f5a8 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -37,6 +37,8 @@ description: | msm8994 msm8996 sc7180 + sdm630 + sdm660 sdm845 The 'board' element must be one of the following strings: @@ -153,6 +155,11 @@ properties: - qcom,sc7180-idp - const: qcom,sc7180 + - items: + - enum: + - xiaomi,lavender + - const: qcom,sdm660 + - items: - enum: - qcom,ipq6018-cp01-c1 From patchwork Fri Apr 17 01:26:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Minnekhanov X-Patchwork-Id: 201906 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BAC9DC2BA2B for ; Fri, 17 Apr 2020 01:29:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8FEC9206B9 for ; Fri, 17 Apr 2020 01:29:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bD+BrHKW" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728167AbgDQB3Y (ORCPT ); Thu, 16 Apr 2020 21:29:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725858AbgDQB3X (ORCPT ); Thu, 16 Apr 2020 21:29:23 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC60FC061A0C; Thu, 16 Apr 2020 18:29:21 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id z26so312884ljz.11; Thu, 16 Apr 2020 18:29:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K1Hzn/BJMd0rZNhmMM0WORg4+BlKP3lZ+87qqyTGVGI=; b=bD+BrHKWQCbi4Cov5cPm3m8VIPjV4RTOzjRv6XK+clbbcklw3QhvZ254LptzCx0m4A +OHKDMDSXKi6vOapkNq7MVzYgOIYQ2hl8uxiVOiC7KnRHSyeSS2h6pfVDbqlqqMZEicC foUhx4hRK99+fYaK495jgqnETQP18lwJV5G2MfbMaJU17AkNhPY0R1M3wx3ZvX+pIhYW SbqI96d6ND+6L+1GgYMNDW6HZMiWkT8OowdUZqRXKhAozSF7UhzA5e2BwrrougtSK74B tp//gwO4IJTzKS4JY11ytCb8L0gC7LyZDsgDcbp15+nCZaLGe+JwkST7OYQpRequuoUW rBKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=K1Hzn/BJMd0rZNhmMM0WORg4+BlKP3lZ+87qqyTGVGI=; b=L6K+PocdZYtIDvMe58yd+FrHWq9m+IO+ssYidDJZhldAUBS8r+Xbed5ioy42kQQPq4 PjoZ3LXxeRdKbdXQBYCutzgsjlG22dMzcBQlMzPSUuMFeoBhrCgmLcOnhXu4LR1c/Df8 vEBnolPJ5ItPov12HH4EJBY/uiM7W2T5Yh86GiQ2Wm+y8+3NSgV7dEPeG+comkG6R65d hS1JzQCejLVi2b7bEDOGovRGvPIpnAebRtJy4s3/sazO7O+8z/F+epYrDuQ1YotOlKk1 9Nw++Dc6s6z8M0QnoJTVU3Rw9z92jThRMp+tlnCVpWGS5/HHSQHcIjBzaM+4olRIQf+X kkwg== X-Gm-Message-State: AGi0PuYRsEQmCX60R/47tcrviJlsCiBxWhP2io6HsdKHMNudlPputRQp koC0R8ovIBHrGFAN4mt+B/4= X-Google-Smtp-Source: APiQypKSznxxFKKxYmll0N0ptqpUHhMrxB6TfVg5YPC9D8/p2/yBlhsdESVWguTz+aY/qiTUCljEoQ== X-Received: by 2002:a2e:89cb:: with SMTP id c11mr550755ljk.121.1587086960482; Thu, 16 Apr 2020 18:29:20 -0700 (PDT) Received: from localhost.localdomain ([94.229.111.13]) by smtp.gmail.com with ESMTPSA id w25sm14644650ljo.78.2020.04.16.18.29.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Apr 2020 18:29:19 -0700 (PDT) From: Alexey Minnekhanov To: Andy Gross , Bjorn Andersson , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Cc: Alexey Minnekhanov , Alexey Minnekhanov Subject: [PATCH v2 3/3] arm64: dts: qcom: Add Xiaomi Redmi Note 7 (lavender) Date: Fri, 17 Apr 2020 04:26:30 +0300 Message-Id: <20200417012630.222352-4-alexey.min@gmail.com> X-Mailer: git-send-email 2.25.3 In-Reply-To: <20200417012630.222352-1-alexey.min@gmail.com> References: <20200417012630.222352-1-alexey.min@gmail.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds the initial device tree support for Xiaomi Redmi Note 7 (codename lavender) phone. It is based on SDM660 SoC. Currently it can be booted into initrd with a shell over UART and you can also get kernel boot logs from a pstore-ramoops. Signed-off-by: Alexey Minnekhanov --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/sdm660-xiaomi-lavender.dts | 46 +++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index cc103f7020fd..0f2c33d611df 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -16,6 +16,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8998-hp-envy-x2.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8998-lenovo-miix-630.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8998-mtp.dtb dtb-$(CONFIG_ARCH_QCOM) += sc7180-idp.dtb +dtb-$(CONFIG_ARCH_QCOM) += sdm660-xiaomi-lavender.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r1.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r2.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r3.dtb diff --git a/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts b/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts new file mode 100644 index 000000000000..76533e8b2092 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts @@ -0,0 +1,46 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (c) 2020, Alexey Minnekhanov + */ + +/dts-v1/; + +#include "sdm660.dtsi" + +/ { + model = "Xiaomi Redmi Note 7"; + compatible = "xiaomi,lavender", "qcom,sdm660"; + + aliases { + serial0 = &blsp1_uart2; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + ramoops@a0000000 { + compatible = "ramoops"; + reg = <0x0 0xa0000000 0x0 0x400000>; + console-size = <0x20000>; + record-size = <0x20000>; + ftrace-size = <0x0>; + pmsg-size = <0x20000>; + }; + }; +}; + +&blsp1_uart2 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&uart_console_active>; +}; + +&tlmm { + gpio-reserved-ranges = <8 4>; +};