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: 11494003 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 01027174A 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 DD65120857 for ; Fri, 17 Apr 2020 01:28:38 +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 S1727857AbgDQB2i (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: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Minnekhanov X-Patchwork-Id: 11494005 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8F9CF14B4 for ; Fri, 17 Apr 2020 01:29:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6EF7E221F4 for ; Fri, 17 Apr 2020 01:29:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="i3EnZsmT" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728018AbgDQB3A (ORCPT ); Thu, 16 Apr 2020 21:29:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725858AbgDQB27 (ORCPT ); Thu, 16 Apr 2020 21:28:59 -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 A8EAFC061A0C; Thu, 16 Apr 2020 18:28:57 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id q19so321064ljp.9; Thu, 16 Apr 2020 18:28:57 -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=kegUU5VgkjtYREF8L3IaadE8MfOPhRXWgi4ROwBjgt0=; b=i3EnZsmT8zqHAOJZPfGcH23ykDWCWUYabeS40LevqCRUjZsn9esnSqZM5UZQRjk844 ZJ4adEYYA9xEdIALUjk9oQ8JFgBEn1jOR1qd4wPVg2WF+YkCT8ZENonPgF1vy7/UrQ/Z 6I9ScsM8Yk0VF9dAvRAfFvfFry16jZw1jo8KVDifajprwxNvg1HMXaVtqwk2jAnreSoh 9ZyvWpvKqwtAsoXR7x45EoRAaazVirt8d1hzKyto3McOk7RJA4lACCQIfOIWUUUqjp/0 Wu1Xfose1mA4XRtv+pONS98w/1vZHcKLD4k/+dgCasjPFO5D0yH8Wf23GsiYvFiupYfV cP7A== 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=kegUU5VgkjtYREF8L3IaadE8MfOPhRXWgi4ROwBjgt0=; b=ic6yovKMWpMArd9XPWbPZU5V416cxuP1B9KyGQuCx5/fieHESO4XUmVJCk/IjHr0zu LVwaEYjJ4fbaYtn7lvVjvV1ukj+vxe+lLzcFnm03SW0mPMPh5jHs/kJRnnuKP36Gn9L/ kZ0dNXqX5yor2vzSVAeaqktj9fJXKRRwYvAkmCByGb/55Cbky0HmLfcH8J68cvKlh7mp Lu12+XRiljFwZVfKN/Ytlj8tEkuG34+NjFzri2cTc/MSBgpDs1/MsaG2jKyxQAYrh4wO RxlT1xts4Zp9y/L+OkeC1mdlKV08JJsP4sloCP0apV6WQOushMz2uVRlCdH6H8UQbtaJ 7AJw== X-Gm-Message-State: AGi0PuaEmdELojV9QOAvMD5tyiiwV/3B1yPQhwJ9S2JfpOK6eq66Qt2F gNH11sxu/ACjoxySExv4yr0= X-Google-Smtp-Source: APiQypJ60S7NBfzmnWrEMKfDVyZQG9TO35qmmIva1YpKJtkYKVGClhewWP8kIq/2l45QV6y4aW8vdw== X-Received: by 2002:a2e:9bc4:: with SMTP id w4mr570263ljj.178.1587086936110; Thu, 16 Apr 2020 18:28:56 -0700 (PDT) Received: from localhost.localdomain ([94.229.111.13]) by smtp.gmail.com with ESMTPSA id w25sm14644650ljo.78.2020.04.16.18.28.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Apr 2020 18:28:55 -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 , Craig Tatlor , Alexey Minnekhanov Subject: [PATCH v2 2/3] arm64: dts: qcom: Add SDM660 SoC support Date: Fri, 17 Apr 2020 04:26:29 +0300 Message-Id: <20200417012630.222352-3-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: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Craig Tatlor Initial device tree support for Qualcomm SDM660 SoC. SDM660 is based off MSM8998 and uses some of its drivers. SDM630/636 are based off SDM660 SoC and they are pin and software compatible. The device tree is based on the CAF 4.4 kernel tree. Features: * CPU nodes * Timer nodes * Interrupt controller * Global Clock Controller * Top Level Mode Multiplexer (pin controller) * UART node This is inspired by and based on the work of Craig Tatlor in https://patchwork.kernel.org/patch/10563667/ Signed-off-by: Craig Tatlor Signed-off-by: Alexey Minnekhanov --- arch/arm64/boot/dts/qcom/sdm660.dtsi | 372 +++++++++++++++++++++++++++ 1 file changed, 372 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm660.dtsi b/arch/arm64/boot/dts/qcom/sdm660.dtsi new file mode 100644 index 000000000000..4abbdd03d1e7 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm660.dtsi @@ -0,0 +1,372 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (c) 2018, Craig Tatlor. + * Copyright (c) 2020, Alexey Minnekhanov + */ + +#include +#include + +/ { + interrupt-parent = <&intc>; + + #address-cells = <2>; + #size-cells = <2>; + + chosen { }; + + clocks { + xo_board: xo_board { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <19200000>; + clock-output-names = "xo_board"; + }; + + sleep_clk: sleep_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32764>; + clock-output-names = "sleep_clk"; + }; + }; + + cpus { + #address-cells = <2>; + #size-cells = <0>; + + CPU0: cpu@100 { + device_type = "cpu"; + compatible = "qcom,kryo260"; + reg = <0x0 0x100>; + enable-method = "psci"; + capacity-dmips-mhz = <1024>; + next-level-cache = <&L2_1>; + L2_1: l2-cache { + compatible = "cache"; + cache-level = <2>; + }; + L1_I_100: l1-icache { + compatible = "cache"; + }; + L1_D_100: l1-dcache { + compatible = "cache"; + }; + }; + + CPU1: cpu@101 { + device_type = "cpu"; + compatible = "qcom,kryo260"; + reg = <0x0 0x101>; + enable-method = "psci"; + capacity-dmips-mhz = <1024>; + next-level-cache = <&L2_1>; + L1_I_101: l1-icache { + compatible = "cache"; + }; + L1_D_101: l1-dcache { + compatible = "cache"; + }; + }; + + CPU2: cpu@102 { + device_type = "cpu"; + compatible = "qcom,kryo260"; + reg = <0x0 0x102>; + enable-method = "psci"; + capacity-dmips-mhz = <1024>; + next-level-cache = <&L2_1>; + L1_I_102: l1-icache { + compatible = "cache"; + }; + L1_D_102: l1-dcache { + compatible = "cache"; + }; + }; + + CPU3: cpu@103 { + device_type = "cpu"; + compatible = "qcom,kryo260"; + reg = <0x0 0x103>; + enable-method = "psci"; + capacity-dmips-mhz = <1024>; + next-level-cache = <&L2_1>; + L1_I_103: l1-icache { + compatible = "cache"; + }; + L1_D_103: l1-dcache { + compatible = "cache"; + }; + }; + + CPU4: cpu@0 { + device_type = "cpu"; + compatible = "qcom,kryo260"; + reg = <0x0 0x0>; + enable-method = "psci"; + capacity-dmips-mhz = <640>; + next-level-cache = <&L2_0>; + L2_0: l2-cache { + compatible = "cache"; + cache-level = <2>; + }; + L1_I_0: l1-icache { + compatible = "cache"; + }; + L1_D_0: l1-dcache { + compatible = "cache"; + }; + }; + + CPU5: cpu@1 { + device_type = "cpu"; + compatible = "qcom,kryo260"; + reg = <0x0 0x1>; + enable-method = "psci"; + capacity-dmips-mhz = <640>; + next-level-cache = <&L2_0>; + L1_I_1: l1-icache { + compatible = "cache"; + }; + L1_D_1: l1-dcache { + compatible = "cache"; + }; + }; + + CPU6: cpu@2 { + device_type = "cpu"; + compatible = "qcom,kryo260"; + reg = <0x0 0x2>; + enable-method = "psci"; + capacity-dmips-mhz = <640>; + next-level-cache = <&L2_0>; + L1_I_2: l1-icache { + compatible = "cache"; + }; + L1_D_2: l1-dcache { + compatible = "cache"; + }; + }; + + CPU7: cpu@3 { + device_type = "cpu"; + compatible = "qcom,kryo260"; + reg = <0x0 0x3>; + enable-method = "psci"; + capacity-dmips-mhz = <640>; + next-level-cache = <&L2_0>; + L1_I_3: l1-icache { + compatible = "cache"; + }; + L1_D_3: l1-dcache { + compatible = "cache"; + }; + }; + + cpu-map { + cluster0 { + core0 { + cpu = <&CPU4>; + }; + + core1 { + cpu = <&CPU5>; + }; + + core2 { + cpu = <&CPU6>; + }; + + core3 { + cpu = <&CPU7>; + }; + }; + + cluster1 { + core0 { + cpu = <&CPU0>; + }; + + core1 { + cpu = <&CPU1>; + }; + + core2 { + cpu = <&CPU2>; + }; + + core3 { + cpu = <&CPU3>; + }; + }; + }; + }; + + firmware { + scm { + compatible = "qcom,scm"; + }; + }; + + memory { + device_type = "memory"; + /* We expect the bootloader to fill in the reg */ + reg = <0 0 0 0>; + }; + + psci { + compatible = "arm,psci-1.0"; + method = "smc"; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + }; + + soc: soc { + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0 0 0xffffffff>; + compatible = "simple-bus"; + + gcc: clock-controller@100000 { + compatible = "qcom,gcc-sdm660"; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + reg = <0x00100000 0x94000>; + }; + + tlmm: pinctrl@3100000 { + compatible = "qcom,sdm660-pinctrl"; + reg = <0x03100000 0x400000>, + <0x03500000 0x400000>, + <0x03900000 0x400000>; + reg-names = "south", "center", "north"; + interrupts = ; + gpio-controller; + gpio-ranges = <&tlmm 0 0 114>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + + uart_console_active: uart_console_active { + pinmux { + pins = "gpio4", "gpio5"; + function = "blsp_uart2"; + }; + + pinconf { + pins = "gpio4", "gpio5"; + drive-strength = <2>; + bias-disable; + }; + }; + }; + + spmi_bus: spmi@800f000 { + compatible = "qcom,spmi-pmic-arb"; + reg = <0x0800f000 0x1000>, + <0x08400000 0x1000000>, + <0x09400000 0x1000000>, + <0x0a400000 0x220000>, + <0x0800a000 0x3000>; + reg-names = "core", "chnls", "obsrvr", "intr", "cnfg"; + interrupt-names = "periph_irq"; + interrupts = ; + qcom,ee = <0>; + qcom,channel = <0>; + #address-cells = <2>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <4>; + cell-index = <0>; + }; + + blsp1_uart2: serial@c170000 { + compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; + reg = <0x0c170000 0x1000>; + interrupts = ; + clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + status = "disabled"; + }; + + timer@17920000 { + #address-cells = <1>; + #size-cells = <1>; + ranges; + compatible = "arm,armv7-timer-mem"; + reg = <0x17920000 0x1000>; + + frame@17921000 { + frame-number = <0>; + interrupts = , + ; + reg = <0x17921000 0x1000>, + <0x17922000 0x1000>; + }; + + frame@17923000 { + frame-number = <1>; + interrupts = ; + reg = <0x17923000 0x1000>; + status = "disabled"; + }; + + frame@17924000 { + frame-number = <2>; + interrupts = ; + reg = <0x17924000 0x1000>; + status = "disabled"; + }; + + frame@17925000 { + frame-number = <3>; + interrupts = ; + reg = <0x17925000 0x1000>; + status = "disabled"; + }; + + frame@17926000 { + frame-number = <4>; + interrupts = ; + reg = <0x17926000 0x1000>; + status = "disabled"; + }; + + frame@17927000 { + frame-number = <5>; + interrupts = ; + reg = <0x17927000 0x1000>; + status = "disabled"; + }; + + frame@17928000 { + frame-number = <6>; + interrupts = ; + reg = <0x17928000 0x1000>; + status = "disabled"; + }; + }; + + intc: interrupt-controller@17a00000 { + compatible = "arm,gic-v3"; + reg = <0x17a00000 0x10000>, + <0x17b00000 0x100000>; + #interrupt-cells = <3>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + interrupt-controller; + #redistributor-regions = <1>; + redistributor-stride = <0x0 0x20000>; + interrupts = ; + }; + }; +}; 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: 11494007 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EE38414B4 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 D6B68221EB 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 S1728123AbgDQB3Y (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: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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>; +};