From patchwork Sun Nov 27 17:08:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 629622 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D1C6C47088 for ; Sun, 27 Nov 2022 17:09:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229450AbiK0RJV (ORCPT ); Sun, 27 Nov 2022 12:09:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbiK0RJU (ORCPT ); Sun, 27 Nov 2022 12:09:20 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D91D8DFDA; Sun, 27 Nov 2022 09:09:18 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id r66-20020a1c4445000000b003d05a3775d4so442264wma.3; Sun, 27 Nov 2022 09:09:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HpkxZ5cltPLYU9mAjuP/FsJ8XLT5RTiCRGescyBtpOw=; b=B5dDfdV91VED5P1pDZ665aPGBGjNhFi0Ss96gkPHCCzzkd1nhm9d6beey+Lq1eFX1N 4qTYqJsx681BhpW9bwOwZ82G9oRYkhhYLxvDQLx5dLfzXgklJyD0u3o1U7qzKtRMoKmH BZaHoA/14R0u+wMg70LwDILeC3OwYYI6I6z1C3MJ7B77A84f0yKFWlhSu8hgVrLvq7jC DD8QFUPP5rF6MScySpUoGZZVRS6fHsnba5t9gPOOWCywoFqvwGAQksQf7W/i/8OAmnZh IBygzhFkLVqsnvz2XJ+lmJhqA99fGwYgswXNLuhp1XlArvelHeiWfz8jygsMHfLd90YS eJvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version: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=HpkxZ5cltPLYU9mAjuP/FsJ8XLT5RTiCRGescyBtpOw=; b=SkkcBf57pTg270pLxP4BSKP0QT9sH8oXUmtUEzD2DQJgCa0vMwNewC0yYIOxPxR5Od FQzHn0I8KioebUVXfQ+jxvAFgqc+vSy3ggzMyDy4DBW2jWYetunYIubl1fIJIeJsGXXz VhVQK26uBccZZO56NO/cEKABMS1aP2ppoWqy2I3fIyZRG7g7QY6AnMaHd14LTNBNjeBC c45GU8VDixRn9nyu/2slu1i//9Mdg0GbnNR56xma4k624b23NOtOXsMOk6E79u0ZTRby 3wwtm8duZHZ/V8DYGApIGPa5v1wBFRVRlQrP6ix19M1j+AwAUV33u/VFwb/4x66m76QM bGPg== X-Gm-Message-State: ANoB5pmdlWdqlX+5M7ZNpi9R0mQOaq1tU49+YdsiWChAGd+yc9M0Hc3u Skev5jSE2HxHo2TzBIcECx9J0YoRnDVBmIVd9ZQ= X-Google-Smtp-Source: AA0mqf45n5K24cLu0CZz7VR9g1qsINXM6LaSbftjTh2q8+/gCwoeintCFdU+jOnwNhbZ88eLfTHGAQ== X-Received: by 2002:a05:600c:46cd:b0:3cf:88c3:d010 with SMTP id q13-20020a05600c46cd00b003cf88c3d010mr38367362wmo.180.1669568957417; Sun, 27 Nov 2022 09:09:17 -0800 (PST) Received: from david-ryuzu.fritz.box (ipbcc3aba7.dynamic.kabel-deutschland.de. [188.195.171.167]) by smtp.googlemail.com with ESMTPSA id h17-20020a05600c315100b003cf483ee8e0sm17759967wmo.24.2022.11.27.09.09.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Nov 2022 09:09:17 -0800 (PST) From: David Wronek To: linux-kernel@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Richard Cochran , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, David Wronek Subject: [PATCH 1/3] dt-bindings: arm: qcom: Document Lenovo Xiaoxin Pad Pro 2021 Date: Sun, 27 Nov 2022 18:08:56 +0100 Message-Id: <20221127170858.440040-2-davidwronek@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221127170858.440040-1-davidwronek@gmail.com> References: <20221127170858.440040-1-davidwronek@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Document the compatible for the Lenovo Xiaoxin Pad Pro 2021 Android tablet. Signed-off-by: David Wronek --- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index 463509f0f23a..588ac7f12a81 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -796,6 +796,7 @@ properties: - items: - enum: + - lenovo,j716f - qcom,qrb5165-rb5 - qcom,sm8250-hdk - qcom,sm8250-mtp From patchwork Sun Nov 27 17:08:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 629621 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF081C47088 for ; Sun, 27 Nov 2022 17:09:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229595AbiK0RJY (ORCPT ); Sun, 27 Nov 2022 12:09:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbiK0RJX (ORCPT ); Sun, 27 Nov 2022 12:09:23 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7492DFE7; Sun, 27 Nov 2022 09:09:20 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id g12so13446439wrs.10; Sun, 27 Nov 2022 09:09:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TGSQX0JA1Dj7aJ3NLBb+m3Irrmyp4VM9fK5lkOB9S1E=; b=YBk4JmanTAJ5kWkteCZyJ0IOegtNjlcsEL0+ZOFqdHerNZCebiHqDipEF1tViPfUtU TFWuuR6RurZ36qoqtViDSILo9rfZhdVTvPGzf3i+Gl5OiWhTDN57LSDr5LyPI5i9BO4l BX512FGyjuXPO4P8BG3kPHt8i/mXJKZCNkpQPU19DEqjjcUGLSy29cJJen9yRawM3ntk iQ4S/j/UdEpYQewrbAicsntB6gVWY4jGYIZ+e2kuWqrai14e9NkFjEglnsD6ufJJAtTy 4m0WpMpW8nwQ22isd+65bqRh4FuQV2D5FsVpvzPJV0ooJnBsUqQxj8kWgweXFRiMGdkK uZAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version: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=TGSQX0JA1Dj7aJ3NLBb+m3Irrmyp4VM9fK5lkOB9S1E=; b=PLdjOHw4x0gtC0aT+4kBulp8/A6Wl2LTDObu4R6kSEHS0bKvQ+TrHxLxzOKuOPA0hb Q00k9jksQshrAhsMiYIpBhC21YOl93TIwOluy8j5psosw+fsg6mj6G88rwOQEcU8LQOM BCOz+QSpT0TdwEVngR/yi1n67HD/qPw8abWgTYMwJWI9JORgHO2PQA3FCSMUVEkXZJ8l 1UK5BvlM1wTQuL/uVRmOvqLmpeWnyvQdRfpjeLCpKX97x9pMfBUyBKCDib6+1sfUEJ3U mdsVuHtLLl3M0DHZpwi34XkqmmM2hear5+de31ahizQeWX8O07V7cwBNqXwcqrhjCKBF FoqQ== X-Gm-Message-State: ANoB5pmju1ENT6BxsRDjppZOHxoplz2+UmTb8V439SVRhBjVO7JiKBEP ye57O86YJrvflaPkREIwmDOt2huQ+JK8zpK04sY= X-Google-Smtp-Source: AA0mqf51geNFKMvf/d4E2xfFczDLgk5R9O/eZdZGglxtcZAKCe15C62WEi+8jccvRl6keHhBLOOCBw== X-Received: by 2002:adf:ed08:0:b0:241:cd8b:46eb with SMTP id a8-20020adfed08000000b00241cd8b46ebmr22696156wro.503.1669568959273; Sun, 27 Nov 2022 09:09:19 -0800 (PST) Received: from david-ryuzu.fritz.box (ipbcc3aba7.dynamic.kabel-deutschland.de. [188.195.171.167]) by smtp.googlemail.com with ESMTPSA id h17-20020a05600c315100b003cf483ee8e0sm17759967wmo.24.2022.11.27.09.09.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Nov 2022 09:09:19 -0800 (PST) From: David Wronek To: linux-kernel@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Richard Cochran , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, David Wronek Subject: [PATCH 2/3] arm64: dts: qcom: sm8250-lenovo-j716f: Add initial device tree Date: Sun, 27 Nov 2022 18:08:57 +0100 Message-Id: <20221127170858.440040-3-davidwronek@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221127170858.440040-1-davidwronek@gmail.com> References: <20221127170858.440040-1-davidwronek@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the initial device tree for Lenovo Xiaoxin Pad Pro 2021 based on Qualcomm SM8250 with the following features: - SimpleFB - GPIO keys - Regulators - I2C - UFS - USB Signed-off-by: David Wronek --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/sm8250-lenovo-j716f.dts | 561 ++++++++++++++++++ 2 files changed, 562 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sm8250-lenovo-j716f.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index afe496a93f94..c002f78144b6 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -158,6 +158,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sm8150-mtp.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8150-sony-xperia-kumano-bahamut.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8150-sony-xperia-kumano-griffin.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8250-hdk.dtb +dtb-$(CONFIG_ARCH_QCOM) += sm8250-lenovo-j716f.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8250-mtp.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8250-sony-xperia-edo-pdx203.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8250-sony-xperia-edo-pdx206.dtb diff --git a/arch/arm64/boot/dts/qcom/sm8250-lenovo-j716f.dts b/arch/arm64/boot/dts/qcom/sm8250-lenovo-j716f.dts new file mode 100644 index 000000000000..c493721ef664 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sm8250-lenovo-j716f.dts @@ -0,0 +1,561 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, David Wronek + */ + +/dts-v1/; + +#include +#include +#include "sm8250.dtsi" +#include "pm8150.dtsi" +#include "pm8150b.dtsi" +#include "pm8150l.dtsi" +#include "pm8009.dtsi" + +/ { + model = "Lenovo Xiaoxin Pad Pro 2021"; + compatible = "lenovo,j716f", "qcom,sm8250"; + classis-type = "tablet"; + + qcom,msm-id = <0x164 0x20001>; + qcom,board-id = <0x2010008 0>; + + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + bootargs = "fw_devlink=permissive clk_ignore_unused pd_ignore_unused"; + stdout-path = "framebuffer0"; + + framebuffer0: framebuffer@9c000000 { + compatible = "simple-framebuffer"; + reg = <0 0x9c000000 0 0x2300000>; + width = <2560>; + height = <1600>; + stride = <(2560 * 4)>; + format = "a8r8g8b8"; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + key-vol-up { + label = "Volume Up"; + linux,code = ; + gpios = <&pm8150_gpios 6 GPIO_ACTIVE_LOW>; + debounce-interval = <15>; + }; + }; + + reserved-memory { + cont_splash_mem: memory@9c000000 { + reg = <0x0 0x9c000000 0x0 0x2300000>; + no-map; + }; + }; + + vph_pwr: vph-pwr-regulator { + compatible = "regulator-fixed"; + regulator-name = "vph_pwr"; + regulator-min-microvolt = <3700000>; + regulator-max-microvolt = <3700000>; + }; + + /* S6c is really ebi.lvl but it's there for supply map completeness sake. */ + vreg_s6c_0p88: smpc6-regulator { + compatible = "regulator-fixed"; + regulator-name = "vreg_s6c_0p88"; + + regulator-min-microvolt = <880000>; + regulator-max-microvolt = <880000>; + regulator-always-on; + vin-supply = <&vph_pwr>; + }; +}; + +&apps_rsc { + pm8150-rpmh-regulators { + compatible = "qcom,pm8150-rpmh-regulators"; + qcom,pmic-id = "a"; + + 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-s8-supply = <&vph_pwr>; + vdd-s9-supply = <&vph_pwr>; + vdd-s10-supply = <&vph_pwr>; + vdd-l1-l8-l11-supply = <&vreg_s6c_0p88>; + vdd-l2-l10-supply = <&vreg_bob>; + vdd-l3-l4-l5-l18-supply = <&vreg_s6a_0p95>; + vdd-l6-l9-supply = <&vreg_s8c_1p35>; + vdd-l7-l12-l14-l15-supply = <&vreg_s5a_1p9>; + vdd-l13-l16-l17-supply = <&vreg_bob>; + + /* (S1+S2+S3) - cx.lvl (ARC) */ + + vreg_s4a_1p8: smps4 { + regulator-name = "vreg_s4a_1p8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1920000>; + regulator-initial-mode = ; + }; + + vreg_s5a_1p9: smps5 { + regulator-name = "vreg_s5a_1p9"; + regulator-min-microvolt = <1900000>; + regulator-max-microvolt = <2040000>; + regulator-initial-mode = ; + }; + + vreg_s6a_0p95: smps6 { + regulator-name = "vreg_s6a_0p95"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1128000>; + regulator-initial-mode = ; + }; + + vreg_l2a_3p1: ldo2 { + regulator-name = "vreg_l2a_3p1"; + regulator-min-microvolt = <3072000>; + regulator-max-microvolt = <3072000>; + regulator-initial-mode = ; + }; + + vreg_l3a_0p93: ldo3 { + regulator-name = "vreg_l3a_0p93"; + regulator-min-microvolt = <928000>; + regulator-max-microvolt = <932000>; + regulator-initial-mode = ; + }; + + /* L4 - lmx.lvl (ARC) */ + + vreg_l5a_0p88: ldo5 { + regulator-name = "vreg_l5a_0p88"; + regulator-min-microvolt = <880000>; + regulator-max-microvolt = <880000>; + regulator-initial-mode = ; + }; + + vreg_l6a_1p2: ldo6 { + regulator-name = "vreg_l6a_1p2"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-initial-mode = ; + }; + + vreg_l7a_1p7: ldo7 { + regulator-name = "vreg_l7a_1p7"; + regulator-min-microvolt = <1704000>; + regulator-max-microvolt = <1800000>; + regulator-initial-mode = ; + }; + + vreg_l9a_1p2: ldo9 { + regulator-name = "vreg_l9a_1p2"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-initial-mode = ; + }; + + vreg_l10a_1p8: ldo10 { + regulator-name = "vreg_l10a_1p8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2960000>; + regulator-initial-mode = ; + }; + + /* L11 - lcx.lvl (ARC) */ + + vreg_l12a_1p8: ldo12 { + regulator-name = "vreg_l12a_1p8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-initial-mode = ; + }; + + vreg_l13a_3p0: ldo13 { + regulator-name = "vreg_l13a_3p0"; + regulator-min-microvolt = <3008000>; + regulator-max-microvolt = <3008000>; + regulator-initial-mode = ; + }; + + vreg_l14a_1p8: ldo14 { + regulator-name = "vreg_l14a_1p8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1880000>; + regulator-initial-mode = ; + }; + + vreg_l15a_1p8: ldo15 { + regulator-name = "vreg_l15a_1p8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-initial-mode = ; + }; + + vreg_l16a_3p0: ldo16 { + regulator-name = "vreg_l16a_3p0"; + regulator-min-microvolt = <3024000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + + vreg_l17a_2p5: ldo17 { + regulator-name = "vreg_l17a_2p5"; + regulator-min-microvolt = <2496000>; + regulator-max-microvolt = <3008000>; + regulator-initial-mode = ; + }; + + vreg_l18a_0p8: ldo18 { + regulator-name = "vreg_l18a_0p8"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <920000>; + regulator-initial-mode = ; + }; + }; + + /* + * Remaining regulators that are not yet supported: + * OLEDB: 4925000-8100000 + * ab: 4600000-6100000 + * ibb: 800000-5400000 + */ + + pm8150l-rpmh-regulators { + compatible = "qcom,pm8150l-rpmh-regulators"; + qcom,pmic-id = "c"; + + 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-s8-supply = <&vph_pwr>; + vdd-l1-l8-supply = <&vreg_s4a_1p8>; + vdd-l2-l3-supply = <&vreg_s8c_1p35>; + vdd-l4-l5-l6-supply = <&vreg_bob>; + vdd-l7-l11-supply = <&vreg_bob>; + vdd-l9-l10-supply = <&vreg_bob>; + vdd-bob-supply = <&vph_pwr>; + + vreg_bob: bob { + regulator-name = "vreg_bob"; + regulator-min-microvolt = <3008000>; + regulator-max-microvolt = <3960000>; + regulator-initial-mode = ; + }; + + /* + * S1-S6 are ARCs: + * (S1+S2) - gfx.lvl, + * S3 - mx.lvl, + * (S4+S5) - mmcx.lvl, + * S6 - ebi.lvl + */ + + vreg_s7c_0p35: smps7 { + regulator-name = "vreg_s7c_0p35"; + regulator-min-microvolt = <348000>; + regulator-max-microvolt = <1000000>; + regulator-initial-mode = ; + }; + + vreg_s8c_1p35: smps8 { + regulator-name = "vreg_s8c_1p4"; + regulator-min-microvolt = <1350000>; + regulator-max-microvolt = <1400000>; + regulator-initial-mode = ; + }; + + vreg_l1c_1p8: ldo1 { + regulator-name = "vreg_l1c_1p8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-initial-mode = ; + }; + + vreg_l2c_1p2: ldo2 { + regulator-name = "vreg_l2c_1p2"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1304000>; + regulator-initial-mode = ; + }; + + vreg_l3c_0p8: ldo3 { + regulator-name = "vreg_l3c_0p8"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1200000>; + regulator-initial-mode = ; + }; + + vreg_l4c_1p8: ldo4 { + regulator-name = "vreg_l4c_1p8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2800000>; + regulator-initial-mode = ; + }; + + vreg_l5c_1p8: ldo5 { + regulator-name = "vreg_l5c_1p8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2800000>; + regulator-initial-mode = ; + }; + + vreg_l6c_2p9: ldo6 { + regulator-name = "vreg_l6c_2p9"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2960000>; + regulator-initial-mode = ; + regulator-allow-set-load; + }; + + vreg_l7c_2p9: ldo7 { + regulator-name = "vreg_l7c_2p9"; + regulator-min-microvolt = <2856000>; + regulator-max-microvolt = <3104000>; + regulator-initial-mode = ; + }; + + vreg_l8c_1p8: ldo8 { + regulator-name = "vreg_l8c_1p8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-initial-mode = ; + }; + + vreg_l9c_2p7: ldo9 { + regulator-name = "vreg_l9c_2p7"; + regulator-min-microvolt = <2704000>; + regulator-max-microvolt = <2960000>; + regulator-initial-mode = ; + regulator-allow-set-load; + }; + + vreg_l10c_3p0: ldo10 { + regulator-name = "vreg_l10c_3p0"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3312000>; + regulator-initial-mode = ; + }; + + vreg_l11c_3p1: ldo11 { + regulator-name = "vreg_l11c_3p1"; + regulator-min-microvolt = <3104000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + }; + + pm8009-rpmh-regulators { + compatible = "qcom,pm8009-rpmh-regulators"; + qcom,pmic-id = "f"; + + vdd-s1-supply = <&vph_pwr>; + vdd-s2-supply = <&vreg_bob>; + vdd-l2-supply = <&vreg_s8c_1p35>; + vdd-l5-l6-supply = <&vreg_bob>; + vdd-l7-supply = <&vreg_s4a_1p8>; + + vreg_s1f_1p2: smps1 { + regulator-name = "vreg_s1f_1p2"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-initial-mode = ; + }; + + vreg_s2f_0p5: smps2 { + regulator-name = "vreg_s2f_0p5"; + regulator-min-microvolt = <512000>; + regulator-max-microvolt = <1100000>; + regulator-initial-mode = ; + }; + + vreg_l1f_1p1: ldo1 { + regulator-name = "vreg_l1f_1p1"; + regulator-min-microvolt = <1104000>; + regulator-max-microvolt = <1200000>; + regulator-initial-mode = ; + }; + + vreg_l2f_1p2: ldo2 { + regulator-name = "vreg_l2f_1p2"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-initial-mode = ; + }; + + vreg_l3f_1p1: ldo3 { + regulator-name = "vreg_l3f_1p1"; + regulator-min-microvolt = <1056000>; + regulator-max-microvolt = <1200000>; + regulator-initial-mode = ; + }; + + vreg_l4f_1p1: ldo4 { + regulator-name = "vreg_l4f_1p1"; + regulator-min-microvolt = <1096000>; + regulator-max-microvolt = <1304000>; + regulator-initial-mode = ; + }; + + vreg_l5f_2p8: ldo5 { + regulator-name = "vreg_l5f_2p8"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <3000000>; + regulator-initial-mode = ; + }; + + vreg_l6f_2p8: ldo6 { + regulator-name = "vreg_l6f_2p8"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <3000000>; + regulator-initial-mode = ; + }; + + vreg_l7f_1p8: ldo7 { + regulator-name = "vreg_l7f_1p8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-initial-mode = ; + }; + }; +}; + +&gpi_dma0 { + status = "okay"; +}; + +&gpi_dma1 { + status = "okay"; +}; + +&gpi_dma2 { + status = "okay"; +}; + +&i2c1 { + status = "okay"; + clock-frequency = <1000000>; + + /* hid-over-i2c ptp @ 60 */ +}; + +&i2c3 { + status = "okay"; + clock-frequency = <400000>; + + bq27541@55 { + compatible = "ti,bq27541"; + reg = <0x55>; + }; +}; + +&i2c4 { + status = "okay"; + clock-frequency = <400000>; + + /* onnn,redriver (DP out) @ 19 */ + /* Cirrus CS35L41 (Speaker 1) @ 40 */ + /* Cirrus CS35L41 (Speaker 2) @ 41 */ + /* Cirrus CS35L41 (Speaker 3) @ 42 */ + /* Cirrus CS35L41 (Speaker 4) @ 43 */ + /* hid-over-i2c keyboard @ 61 */ +}; + +&i2c13 { + status = "okay"; + clock-frequency = <400000>; + + /* goodix,gt738x (Touchscreen) @ 5d */ +}; + +&i2c15 { + status = "okay"; + clock-frequency = <400000>; + + /* Qcom SMB1390 @ 10 */ + /* HALO HL6111R Qi charger @ 25 */ + /* Everest-semi ES7210 4-ch ADC @ 40 */ + /* Qcom FSA4480 USB-C audio switch @ 43 */ + /* Richwave RTC6226 FM Radio Receiver @ 64 */ +}; + +&pon_pwrkey { + status = "okay"; +}; + +&pon_resin { + status = "okay"; + + linux,code = ; +}; + +&qupv3_id_0 { + status = "okay"; +}; + +&qupv3_id_1 { + status = "okay"; +}; + +&qupv3_id_2 { + status = "okay"; +}; + +&tlmm { + gpio-reserved-ranges = <40 4>; +}; + +&ufs_mem_hc { + status = "okay"; + + vcc-supply = <&vreg_l17a_2p5>; + vcc-max-microamp = <800000>; + vccq-supply = <&vreg_l6a_1p2>; + vccq-max-microamp = <800000>; + vccq2-supply = <&vreg_s4a_1p8>; + vccq2-max-microamp = <800000>; +}; + +&ufs_mem_phy { + status = "okay"; + + vdda-phy-supply = <&vreg_l5a_0p88>; + vdda-pll-supply = <&vreg_l9a_1p2>; +}; + +&usb_1 { + status = "okay"; +}; + +&usb_1_dwc3 { + dr_mode = "peripheral"; +}; + +&usb_1_hsphy { + status = "okay"; + + vdda-pll-supply = <&vreg_l5a_0p88>; + vdda18-supply = <&vreg_l12a_1p8>; + vdda33-supply = <&vreg_l2a_3p1>; +}; + +&usb_1_qmpphy { + status = "okay"; + + vdda-phy-supply = <&vreg_l9a_1p2>; + vdda-pll-supply = <&vreg_l18a_0p8>; +}; From patchwork Sun Nov 27 17:08:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 628875 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F12A5C47089 for ; Sun, 27 Nov 2022 17:09:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229538AbiK0RJX (ORCPT ); Sun, 27 Nov 2022 12:09:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbiK0RJX (ORCPT ); Sun, 27 Nov 2022 12:09:23 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28E04DFC8; Sun, 27 Nov 2022 09:09:21 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id b12so13493390wrn.2; Sun, 27 Nov 2022 09:09:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZuxgIdp0xqTuRzzoLY4mlfDBUIEbIXvI9sh1okauOJY=; b=pWIVrtE+bZyK95xZII6HnM1QCqdBwq+IIG8jf0RMxy9mIlPtKE2E26sGU86z8OWZTK A27ibDJKYn3VrYLJ12uLLTyujcIaOmWRxhe/AmW60EQmPi9dDEhpT97dblIR70xmp4pn L5D7+iIl2VI+BS/a1BmOAXiWPzkxlKfuvvBrI9wN9hO3NzatGcLeFAmL4z8xuNBsKhpz V08pHbFLUPS7fRY/oCGRf8jlvaVusCUcGWebidmdyui3zfgBK5GoJR3V5wLtr5N+vJzY 8i3U0bhY6NyoZuvq8Q0RnHE611BpbcspaXR6TiZAM3NrpV6Fd2nxuEKjrMo5lsMbhdTT s6Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version: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=ZuxgIdp0xqTuRzzoLY4mlfDBUIEbIXvI9sh1okauOJY=; b=XSRkoZqWJrIsxGgFDlic1wCt+10lS3e2Y5Dj6SSFm8SpZqVI/lryrJoBV9KkX0iIC0 V5ybW7MEGbdfOX1pfuRosUXKAm0eWmDaZy3z2KyrT9RYkDzYRE6BXtAKoswFw8AGDO4n +atbzWyv1WuAD3nAXlUoPLbYuDU53Mxa4V2Tn6MJ/GAKjMcoLNlZkNhicwHQTxBsmvsW j5Z/+WC1o6DnI9EboXhXb1DgY91nm1NT5W/hXyHORnvUahUm2nk/zW2H1OXdbDe/iJNs ed5f1tc82ToRlmTYiwWFtQSzJ/5xW+AXXsuPD0CFny6UX+8DFqk+OqQD5n9lCYTPqeex l+Pg== X-Gm-Message-State: ANoB5pmAAmRJtnwwCXIKBxoa9sdEyVmGDtxUixI0sq/CdzRSh8PW7nmf y0ISesUXKdxh8qOrXvKQfa9gQnra3JTDl6WKNJg= X-Google-Smtp-Source: AA0mqf7+EiB7WO98d0txKip1y+2BqXjm3rTbhRGEd5/7rOcytRv8lxYyKcy8CxKK2672BJ5eyZLDIA== X-Received: by 2002:a5d:4d8b:0:b0:241:bf7b:db5b with SMTP id b11-20020a5d4d8b000000b00241bf7bdb5bmr26740939wru.267.1669568960696; Sun, 27 Nov 2022 09:09:20 -0800 (PST) Received: from david-ryuzu.fritz.box (ipbcc3aba7.dynamic.kabel-deutschland.de. [188.195.171.167]) by smtp.googlemail.com with ESMTPSA id h17-20020a05600c315100b003cf483ee8e0sm17759967wmo.24.2022.11.27.09.09.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Nov 2022 09:09:20 -0800 (PST) From: David Wronek To: linux-kernel@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Richard Cochran , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, David Wronek Subject: [PATCH 3/3] arm64: dts: qcom: sm8250-lenovo-j716f: Enable ADSP/CDSP/SLPI Date: Sun, 27 Nov 2022 18:08:58 +0100 Message-Id: <20221127170858.440040-4-davidwronek@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221127170858.440040-1-davidwronek@gmail.com> References: <20221127170858.440040-1-davidwronek@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Enabled the ADSP, CDSP and SLPI remoteprocs with a simple "okay". Firmware needs to be provided by the Linux distribution, as it's signed and needs to come from stock Android. Signed-off-by: David Wronek --- arch/arm64/boot/dts/qcom/sm8250-lenovo-j716f.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250-lenovo-j716f.dts b/arch/arm64/boot/dts/qcom/sm8250-lenovo-j716f.dts index c493721ef664..33edeb6f3ef4 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-lenovo-j716f.dts +++ b/arch/arm64/boot/dts/qcom/sm8250-lenovo-j716f.dts @@ -76,6 +76,11 @@ vreg_s6c_0p88: smpc6-regulator { }; }; +&adsp { + status = "okay"; + firmware-name = "qcom/sm8250/j716f/adsp.mbn"; +}; + &apps_rsc { pm8150-rpmh-regulators { compatible = "qcom,pm8150-rpmh-regulators"; @@ -434,6 +439,11 @@ vreg_l7f_1p8: ldo7 { }; }; +&cdsp { + status = "okay"; + firmware-name = "qcom/sm8250/j716f/cdsp.mbn"; +}; + &gpi_dma0 { status = "okay"; }; @@ -515,6 +525,11 @@ &qupv3_id_2 { status = "okay"; }; +&slpi { + status = "okay"; + firmware-name = "qcom/sm8250/j716f/slpi.mbn"; +}; + &tlmm { gpio-reserved-ranges = <40 4>; };