From patchwork Thu Jan 13 23:33:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 12713182 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 DAE6EC433F5 for ; Thu, 13 Jan 2022 23:34:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238225AbiAMXeO (ORCPT ); Thu, 13 Jan 2022 18:34:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230181AbiAMXeL (ORCPT ); Thu, 13 Jan 2022 18:34:11 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25D22C061574; Thu, 13 Jan 2022 15:34:11 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id s1so12867777wra.6; Thu, 13 Jan 2022 15:34:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TCO6Vi8mgWr9oxLizz6TAJIStLaTjVKYmUCn5e+EwX4=; b=hLaniOyWl6zgbRMR7fjtXKBnvsO7xdoxHQ/fQd9B1IBfc7FcUfxYaZBNv/j9sYgQly YdZHWQw3f74I+25nMR2jM5GJdWPpwRrUQb63u+r2JgkGzXss4Txud3amOvpZzRbUHVmR pyq63LGuIatElO25zmhno77Cw4SI7t+jYRx+zxmqmwEEqCVWHy2mZKymjGSOD9UQCOvR Jvn8ys2A3GSduADWxQecCsQGiSMBWaAc3KITSYZZfFtKbaM1B84YNmZ/EAPzryDOwzU2 HK8h9EWVtPUOaDkyglSjDtj/tRj6V0PoNSGzoB392XxY+Suc1ohJwOK8yrdAFVkNO8C/ LBww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TCO6Vi8mgWr9oxLizz6TAJIStLaTjVKYmUCn5e+EwX4=; b=vfE2uJb4SwAhYQg4V19J+12gQ+G+EY/DoKVg/rurHVuoST9dODuc4k33o45Febos7J AdBO77QrNJ/BwWmN66hsMi6EDx9JDpMJCqSsoMFQ1X8YyqHjHXBZLOXTeYBNyEAR4No2 EYOwHN7Jl3U9dlNrlTiQenLEpfALIFLbjRyXuS+fLHu0ghQkhXsOTvMT8aBMdAQl6dk6 imXug2iBWFg8yN267vEimJCO+aMdITbpVJME/ECLo9JgkEVvm6DGIFYey2hN88RQHeVg rC3yJwLpEJxlx7rEdTxxXQsf0ctfRJoEN8+xSs62l/nOZ0e4bRenf93FkuNDRHTLgPdw eAWg== X-Gm-Message-State: AOAM531UdmAwPAbARb6kfcflU+5ITM9i5GsMCxIQ1MOpAplYqtZHe2Qc 0Rli8PzC2MQGZdEhI8KbSMVqJkoNo5MDww== X-Google-Smtp-Source: ABdhPJwd0KrHMAm0RbStsNI4tg+jcg2SYxKKEw1KDqcSBaMgiIDkO7N24LwzSDGiPimxL+osAhh3qQ== X-Received: by 2002:adf:fac2:: with SMTP id a2mr5677040wrs.401.1642116849712; Thu, 13 Jan 2022 15:34:09 -0800 (PST) Received: from dell5510.arch.suse.de (gw1.ms-free.net. [185.243.124.10]) by smtp.gmail.com with ESMTPSA id u17sm3724748wrt.37.2022.01.13.15.34.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jan 2022 15:34:09 -0800 (PST) From: Petr Vorel To: linux-arm-msm@vger.kernel.org Cc: Jean THOMAS , Konrad Dybcio , Alexey Minnekhanov , Andy Gross , Bjorn Andersson , Ulf Hansson , Douglas Anderson , Taniya Das , linux-mmc@vger.kernel.org, Petr Vorel Subject: [PATCH 1/6] arm64: dts: qcom: msm8992-lg-bullhead: Place LG Bullhead generic code into a DTSI file Date: Fri, 14 Jan 2022 00:33:53 +0100 Message-Id: <20220113233358.17972-2-petr.vorel@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220113233358.17972-1-petr.vorel@gmail.com> References: <20220113233358.17972-1-petr.vorel@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Jean THOMAS This patch puts the generic code common across all hardware revisions into a DTSI file. It also prefixes the DTS filename with the vendor name, to follow the naming convention used by other DTS files. Reviewed-by: Petr Vorel Signed-off-by: Jean THOMAS [ pvorel: rebased on current qcom/for-next ] Signed-off-by: Petr Vorel --- arch/arm64/boot/dts/qcom/Makefile | 2 +- .../boot/dts/qcom/msm8992-lg-bullhead-rev-101.dts | 14 ++++++++++++++ ...llhead-rev-101.dts => msm8992-lg-bullhead.dtsi} | 2 -- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 arch/arm64/boot/dts/qcom/msm8992-lg-bullhead-rev-101.dts rename arch/arm64/boot/dts/qcom/{msm8992-bullhead-rev-101.dts => msm8992-lg-bullhead.dtsi} (98%) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index f7232052d286..ee8e81f1c449 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -18,7 +18,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a5u-eur.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) += msm8992-bullhead-rev-101.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8992-lg-bullhead-rev-101.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8992-msft-lumia-octagon-talkman.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8992-xiaomi-libra.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8994-angler-rev-101.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8992-lg-bullhead-rev-101.dts b/arch/arm64/boot/dts/qcom/msm8992-lg-bullhead-rev-101.dts new file mode 100644 index 000000000000..e6a5ebd30e2f --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8992-lg-bullhead-rev-101.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* Copyright (c) Jean Thomas + */ + +/dts-v1/; + +#include "msm8992-lg-bullhead.dtsi" + +/ { + model = "LG Nexus 5X rev 1.01"; + + /* required for bootloader to select correct board */ + qcom,board-id = <0xb64 0>; +}; diff --git a/arch/arm64/boot/dts/qcom/msm8992-bullhead-rev-101.dts b/arch/arm64/boot/dts/qcom/msm8992-lg-bullhead.dtsi similarity index 98% rename from arch/arm64/boot/dts/qcom/msm8992-bullhead-rev-101.dts rename to arch/arm64/boot/dts/qcom/msm8992-lg-bullhead.dtsi index 4da6c44bf532..3b0cc85d6674 100644 --- a/arch/arm64/boot/dts/qcom/msm8992-bullhead-rev-101.dts +++ b/arch/arm64/boot/dts/qcom/msm8992-lg-bullhead.dtsi @@ -18,9 +18,7 @@ / { compatible = "lg,bullhead", "qcom,msm8992"; chassis-type = "handset"; - /* required for bootloader to select correct board */ qcom,msm-id = <251 0>, <252 0>; - qcom,board-id = <0xb64 0>; qcom,pmic-id = <0x10009 0x1000A 0x0 0x0>; /* Bullhead firmware doesn't support PSCI */ From patchwork Thu Jan 13 23:33:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 12713181 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 45B4CC433FE for ; Thu, 13 Jan 2022 23:34:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238190AbiAMXeN (ORCPT ); Thu, 13 Jan 2022 18:34:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235609AbiAMXeM (ORCPT ); Thu, 13 Jan 2022 18:34:12 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D9E6C06173E; Thu, 13 Jan 2022 15:34:12 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id k18so12827754wrg.11; Thu, 13 Jan 2022 15:34:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8hqe6jXoXNhcyFzYzqsIs/6PsAukIAAN1Kbs4DiPAqs=; b=ZYasOc31Utvft2Xo85b7fC5CYIAi3krLwEYkNY/k/dWw4hBR8RxNuLeKP4yMtzbDgZ bzIs4tC0xcUZaEAjC/uDUNdcJQ09OyuayZiZi9jNRbBNmKHE6A9UiZTGHS8kc6FYVSGM 8KhngiutYRH2F1fg5gpwW+DwuaDvWCQUpF5t32+0uHjT3OxDrQovTh5b9yaBHb40JXZm mhklY10FXUGTDd0LmgjJwCbiCS2Si/P72hUDovRijU6tQAWW/uBJ1ZPMbIwp1KewA3Lc dG+OwDKvRYwuRPZQADaF0u+tWSKtNdX2sASvwEv3H8VLsK1QYt98IYcVuC7loMHYABKk Yoew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8hqe6jXoXNhcyFzYzqsIs/6PsAukIAAN1Kbs4DiPAqs=; b=BJlx8C6Q/FdikjkF9CdMPtlwWCgHy4tjBBnW10KtEA38DqiaJ+shY0bbbkPToZOIE8 +N2OIXKvyKfvmL0Ms+nCCiXk0DxcUccJQd6p4yXgrgPrkHUtbcEWcC6v/jfodOrKZ/mK wZrzEPk/EP0kUm2AxmkHx0rkaqeiK1URvqtmhc7sWW5S/VGajmWVH2bQnVJOxW3Pc+cr 67JYfno11hga0pZo5vt9Mng7/Vaoe9EaGMMAcjI8QpkGg3Vn4LCFDDFIiB61/v6XyGV5 xYIZ9V1tbEnzj+MsFEaYDo8YOBRXR0r04fRy1wAvDFnxuNhJ+lOyWS5YPVPgepEUcUPa dljw== X-Gm-Message-State: AOAM531LfiH/6FQ6jV0pC66cPwNOYJq/ZBwXLy+TdpkKn62lc1G4byCq IfxZSTPPE9mna96wDt0h2db6vHeM4+NGlg== X-Google-Smtp-Source: ABdhPJz/JWa3zbdIgZ3Pr7Qqc9tIZP9x5aF753Prn0vgF9MNfHnH71JQGi7u1t/csf+6bRdQVvsIrQ== X-Received: by 2002:a5d:4451:: with SMTP id x17mr852401wrr.505.1642116850813; Thu, 13 Jan 2022 15:34:10 -0800 (PST) Received: from dell5510.arch.suse.de (gw1.ms-free.net. [185.243.124.10]) by smtp.gmail.com with ESMTPSA id u17sm3724748wrt.37.2022.01.13.15.34.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jan 2022 15:34:10 -0800 (PST) From: Petr Vorel To: linux-arm-msm@vger.kernel.org Cc: Jean THOMAS , Konrad Dybcio , Alexey Minnekhanov , Andy Gross , Bjorn Andersson , Ulf Hansson , Douglas Anderson , Taniya Das , linux-mmc@vger.kernel.org, Petr Vorel Subject: [PATCH 2/6] arm64: dts: qcom: msm8992-lg-bullhead: Add support for LG Bullhead rev 1.0 Date: Fri, 14 Jan 2022 00:33:54 +0100 Message-Id: <20220113233358.17972-3-petr.vorel@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220113233358.17972-1-petr.vorel@gmail.com> References: <20220113233358.17972-1-petr.vorel@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Jean THOMAS This commit implements a DTS file for LG Bullhead (Nexus 5X) rev 1.0 with its matching "qcom,board-id" property. Reviewed-by: Petr Vorel Signed-off-by: Jean THOMAS [ pvorel: rebased on current qcom/for-next ] Signed-off-by: Petr Vorel --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/msm8992-lg-bullhead-rev-10.dts | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/msm8992-lg-bullhead-rev-10.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index ee8e81f1c449..0f983400d60c 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -18,6 +18,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a5u-eur.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) += msm8992-lg-bullhead-rev-10.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8992-lg-bullhead-rev-101.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8992-msft-lumia-octagon-talkman.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8992-xiaomi-libra.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8992-lg-bullhead-rev-10.dts b/arch/arm64/boot/dts/qcom/msm8992-lg-bullhead-rev-10.dts new file mode 100644 index 000000000000..7e6bce4af441 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8992-lg-bullhead-rev-10.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* Copyright (c) Jean Thomas + */ + +/dts-v1/; + +#include "msm8992-lg-bullhead.dtsi" + +/ { + model = "LG Nexus 5X rev 1.0"; + + /* required for bootloader to select correct board */ + qcom,board-id = <0xa64 0>; +}; From patchwork Thu Jan 13 23:33:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 12713183 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 0C7A2C4321E for ; Thu, 13 Jan 2022 23:34:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238228AbiAMXeO (ORCPT ); Thu, 13 Jan 2022 18:34:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235604AbiAMXeN (ORCPT ); Thu, 13 Jan 2022 18:34:13 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3666DC061574; Thu, 13 Jan 2022 15:34:13 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id q9-20020a7bce89000000b00349e697f2fbso5742867wmj.0; Thu, 13 Jan 2022 15:34:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6JT0FxS3j+AciZuFGJT8ttFeOimeOq4hkK9P3+VcTOM=; b=XWPxdTz1gxFG9TOul61/6gxPYHqs+v6UzPMHd84IDp5BQvVVD27uhuDQ5EAeyodG3x zCOc0hXgpDyyNuro5t6ei+yXbWxKy/c+qQl2fkNIlssQiQiMuSueyeCrBf84pTrQ9Jzz 8DING1ow8FMV6xkdE3qWRVW5G/4AGFX0wUAt4Hd0s9iB2Q/kuYrOpT5MYs1vMHlAXPBG KWRVJWtLDIgTYiH5+8agLnxKndFruMUr/sif1cUWAfV7Eh2kNUKfb8d7niUU1KE1bIA9 0BF1wE46HmGglxAhlZQc/CS0bWPJf/r70Gs5Hm8+8v4QvfN2XxT2DBUjo3DD5NIKHVly CluQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6JT0FxS3j+AciZuFGJT8ttFeOimeOq4hkK9P3+VcTOM=; b=CnL9OQHpqPF+7kBQ89QbZBGoMd1AmtRrjF51ApQpiG+gGWqUvx8rqPdf1m0HHb9UfL CkfNbP2lHkK2shaXcElTeWLBqiFQdXeiZCqHsenp2Dzmf+lgptU1xki3CpVcX1kViSbK 7WNjgs/3tVk9ebLJuRK7Qohp15J4n3nTo/iDgWEn48l1CHlvIkaXQKecVc0vTM9tbsdn qBKqFyqKBaH+CDNoYteN1DmxDTCpZJr9KVIEdQsUfS4FFk2Ypb33F88CGkGeHmc/Feck ez2N4vf0R9LQngJd0lJtNP2FY9GW8o3X954MWG/uUqRG/Sc+1M3tCkapYiMUQuvXtBlQ LuiA== X-Gm-Message-State: AOAM531AdYWyT8tF+vGNZBZw6Tc1ejWVkneMTdSbaTIgxeYveAM000A9 lGp1J3rhMVeUoeLC0EodndOqQg/+MUVq0g== X-Google-Smtp-Source: ABdhPJxehK/5hveQFvwlmo+q122NppKSe28BeOexxVp0JaLc/CEd92CZ66d2RT/+Wqg/FRqBQ3Gi0w== X-Received: by 2002:a05:600c:b50:: with SMTP id k16mr5858495wmr.85.1642116851837; Thu, 13 Jan 2022 15:34:11 -0800 (PST) Received: from dell5510.arch.suse.de (gw1.ms-free.net. [185.243.124.10]) by smtp.gmail.com with ESMTPSA id u17sm3724748wrt.37.2022.01.13.15.34.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jan 2022 15:34:11 -0800 (PST) From: Petr Vorel To: linux-arm-msm@vger.kernel.org Cc: Petr Vorel , Konrad Dybcio , Jean Thomas , Alexey Minnekhanov , Andy Gross , Bjorn Andersson , Ulf Hansson , Douglas Anderson , Taniya Das , linux-mmc@vger.kernel.org Subject: [PATCH 3/6] arm64: dts: qcom: msm8994: Provide missing "xo_board" and "sleep_clk" to GCC Date: Fri, 14 Jan 2022 00:33:55 +0100 Message-Id: <20220113233358.17972-4-petr.vorel@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220113233358.17972-1-petr.vorel@gmail.com> References: <20220113233358.17972-1-petr.vorel@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This is needed due changes in commit 0519d1d0bf33 ("clk: qcom: gcc-msm8994: Modernize the driver"), which removed struct clk_fixed_factor. Preparation for next commit for enabling SD/eMMC. Inspired by 2c2f64ae36d9. This is required for both msm8994-huawei-angler (sdhc1 will be enabled in next commit) and msm8992-lg-bullhead (where actually fixes sdhc1 - tested on bullhead rev 1.01). Fixes: 0519d1d0bf33 ("clk: qcom: gcc-msm8994: Modernize the driver") Signed-off-by: Petr Vorel --- arch/arm64/boot/dts/qcom/msm8994.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8994.dtsi b/arch/arm64/boot/dts/qcom/msm8994.dtsi index 5a9a5ed0565f..215f56daa26c 100644 --- a/arch/arm64/boot/dts/qcom/msm8994.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8994.dtsi @@ -713,6 +713,9 @@ gcc: clock-controller@fc400000 { #reset-cells = <1>; #power-domain-cells = <1>; reg = <0xfc400000 0x2000>; + + clock-names = "xo", "sleep_clk"; + clocks = <&xo_board>, <&sleep_clk>; }; rpm_msg_ram: sram@fc428000 { From patchwork Thu Jan 13 23:33:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 12713184 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 B26BCC4332F for ; Thu, 13 Jan 2022 23:34:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238218AbiAMXeP (ORCPT ); Thu, 13 Jan 2022 18:34:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238231AbiAMXeO (ORCPT ); Thu, 13 Jan 2022 18:34:14 -0500 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41B70C061574; Thu, 13 Jan 2022 15:34:14 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id h10so12894635wrb.1; Thu, 13 Jan 2022 15:34:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EQP/lIddQVg4DekanQ8K46jty3YAPGzLXeR/UA7EjUk=; b=oi86Ch8gk6Td/kTPAH/z1yPGnITfiT4sIuSmN7nsglZ5hu74BZO0JKEtX3pvItw3QM kfCvYLPBXbYI3RJdCVYQSF6FzEbZsbUGnpMXevg8YuTE0ffUr4xkN8ouhLVoXpuVShQy cm3YfS1DIX2CET5p66AXKApETUFgAwta9LUtDxXCwaXRaBcTt/fizOqQWwKGtYs5mhiZ urwM9v34OaMeSax9h50sBwI8+twm7KbelEFVCH1KoItgpempreBdQl5TPlSLl8LygXUB 65FOQapZ4oM3YdGBA0hoDTf3jnWGKwLzWLM6KGvG4dTohJg03sGj4Pmoxs3lP6lY3Wg7 xIAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EQP/lIddQVg4DekanQ8K46jty3YAPGzLXeR/UA7EjUk=; b=SqTNyy8Tob2pPnoyz9PZsDvyqcZQKdEqjvEYgwV2sket6GV9v5FrRxT8eQOHVusy+v Sa3rtCtTh+aI6zF3XhkaWgFNfInmpmLncOu5wwF6HcWB+/aNJn3K1rub8BzM3Da+33dk lZz9C9SLO9L7aJnmsYwxYBebSM8MCA80wmMHZLiNY03o9zTFVQk+JoILOLM/k7oUKjkc lIDhJxNK5SdvhlG5MSF4wRgqfHOY04J1e73vGly8EqXAdyal8vKxSVO8GLkPMX4jvpQr O6CF/kwaWXVgXtCan49fWm/OP1zbVxJRJAcp3bRZdTdV3BwZlLyYl7mzINJ0OvxMGrQa nCDg== X-Gm-Message-State: AOAM5329lFEFtgRo1DI5KFyMbcOId5BIqK4+jBymxW01Xv8uhiUOuXS3 sz+G+m2S0qunCqu+lc2oYxVwJuqtdcLdDg== X-Google-Smtp-Source: ABdhPJxyr8kpgIk3yD5on5Cmd6vcW5GNaiuGNj0/2hWCE1eC8Ykhx3rWCLiFr5V1r0YujWDoPOUJiQ== X-Received: by 2002:adf:ed4c:: with SMTP id u12mr5967853wro.587.1642116852903; Thu, 13 Jan 2022 15:34:12 -0800 (PST) Received: from dell5510.arch.suse.de (gw1.ms-free.net. [185.243.124.10]) by smtp.gmail.com with ESMTPSA id u17sm3724748wrt.37.2022.01.13.15.34.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jan 2022 15:34:12 -0800 (PST) From: Petr Vorel To: linux-arm-msm@vger.kernel.org Cc: Petr Vorel , Konrad Dybcio , Jean Thomas , Alexey Minnekhanov , Andy Gross , Bjorn Andersson , Ulf Hansson , Douglas Anderson , Taniya Das , linux-mmc@vger.kernel.org Subject: [PATCH 4/6] arm64: dts: qcom: msm8994-huawei-angler: Add vendor name huawei Date: Fri, 14 Jan 2022 00:33:56 +0100 Message-Id: <20220113233358.17972-5-petr.vorel@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220113233358.17972-1-petr.vorel@gmail.com> References: <20220113233358.17972-1-petr.vorel@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org to follow the naming convention used by other DTS files. Signed-off-by: Petr Vorel --- arch/arm64/boot/dts/qcom/Makefile | 2 +- ...994-angler-rev-101.dts => msm8994-huawei-angler-rev-101.dts} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename arch/arm64/boot/dts/qcom/{msm8994-angler-rev-101.dts => msm8994-huawei-angler-rev-101.dts} (100%) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 0f983400d60c..523fe9f63368 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -22,7 +22,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8992-lg-bullhead-rev-10.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8992-lg-bullhead-rev-101.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8992-msft-lumia-octagon-talkman.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8992-xiaomi-libra.dtb -dtb-$(CONFIG_ARCH_QCOM) += msm8994-angler-rev-101.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8994-huawei-angler-rev-101.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8994-msft-lumia-octagon-cityman.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8994-sony-xperia-kitakami-ivy.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8994-sony-xperia-kitakami-karin.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8994-angler-rev-101.dts b/arch/arm64/boot/dts/qcom/msm8994-huawei-angler-rev-101.dts similarity index 100% rename from arch/arm64/boot/dts/qcom/msm8994-angler-rev-101.dts rename to arch/arm64/boot/dts/qcom/msm8994-huawei-angler-rev-101.dts From patchwork Thu Jan 13 23:33:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 12713185 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 F2A18C41535 for ; Thu, 13 Jan 2022 23:34:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238242AbiAMXeQ (ORCPT ); Thu, 13 Jan 2022 18:34:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238239AbiAMXeP (ORCPT ); Thu, 13 Jan 2022 18:34:15 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F099C061574; Thu, 13 Jan 2022 15:34:15 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id s6-20020a7bc386000000b0034a89445406so2503324wmj.2; Thu, 13 Jan 2022 15:34:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cNUE6qjIIhx2cVTvoziZad/IzGyEzqBP8MCZHTLV9kI=; b=o/UF83v9qhHgfvpUSzK0F7nGg8/qwQMjPWozRw4029neSWKcZos7aosM4PEM99KqBW DbRbSYk/ZgjeaA8Zm7K2nEgnRGgUhgKoQ3pyKi2p2h/2CtAexC57UVsX+MBZME3ALcZM +xTi7kOaXCB+06VhK1OVjaU/Bm52s5nXS9AvvfQ4WfwBy7wPmwz11jJQwR0tLAXoSxs7 2lu7nP3w7NrJbe/TaWO0mJpgoSpfRXZd2Ux9tEo17U2OfWbyVNKcniK35ZraRanYUz1f NvOqIqc7wIYDooShbqOj+q3QzDUb8bzL/EBOKX6iAGT9G/3QNX9hIOqbaRCmbXFi0WK5 +ssA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cNUE6qjIIhx2cVTvoziZad/IzGyEzqBP8MCZHTLV9kI=; b=IR5zrzA3qMHt51g+JGKgcOvp9bNryxc9hsurvSgvncLE9KyIvLzoWlSAPFwejq+H3M S6Wjd+/3RG72eEFdOGQPH1FQrqWSdVSf/yCqxNxGE9XOFZ5yxqcQXhba/ob78y5uCAI5 0mF1+zboZ7cG3qeRBTU8RBEHZLYkd9tVxK6fz6rSyOCvfRRiQQ23oWp2pzpOrb3J/tTT sQh9E1k7qW/tLktpjkDcfxYoAT2JXPseVgMMu2w7nkwh2sUdJ6dJFaF2P//wxoMcvdcQ 2dz1MX/Ij4P2IVxyDOPicMd2rRJ3GfK3bS29VU7macC2hMYNzPDub20csjXNFRgFOoCr 0RpQ== X-Gm-Message-State: AOAM533SRyA4OaUteeAQLxZEqetVeKPDv6OpCk3xO6OYZ7EgdwEtgFk8 ucgcmI+B4hJFgEEZCCTShDxnhO/vjFvvbg== X-Google-Smtp-Source: ABdhPJxtjorXzNucDlCyuZ4QUtE34u3poMHzXBINIbNRI+wmHP0SeAGQWoArGGfhWvzmiT3jEBW1ag== X-Received: by 2002:a7b:c246:: with SMTP id b6mr12800108wmj.168.1642116853908; Thu, 13 Jan 2022 15:34:13 -0800 (PST) Received: from dell5510.arch.suse.de (gw1.ms-free.net. [185.243.124.10]) by smtp.gmail.com with ESMTPSA id u17sm3724748wrt.37.2022.01.13.15.34.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jan 2022 15:34:13 -0800 (PST) From: Petr Vorel To: linux-arm-msm@vger.kernel.org Cc: Petr Vorel , Konrad Dybcio , Jean Thomas , Alexey Minnekhanov , Andy Gross , Bjorn Andersson , Ulf Hansson , Douglas Anderson , Taniya Das , linux-mmc@vger.kernel.org Subject: [PATCH 5/6] arm64: dts: qcom: msm8994-huawei-angler: Add sdhc{1,2} definitions Date: Fri, 14 Jan 2022 00:33:57 +0100 Message-Id: <20220113233358.17972-6-petr.vorel@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220113233358.17972-1-petr.vorel@gmail.com> References: <20220113233358.17972-1-petr.vorel@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Although downstream supports HS400, there are overclocking warnings when using mmc-hs400-1_8v: mmc0: Card appears overclocked; req 200000000 Hz, actual 384000000 Hz mmc0: Card appears overclocked; req 200000000 Hz, actual 384000000 Hz mmc0: Card appears overclocked; req 200000000 Hz, actual 384000000 Hz mmc0: Card appears overclocked; req 400000000 Hz, actual 768000000 Hz mmc0: Card appears overclocked; req 400000000 Hz, actual 768000000 Hz mmc0: new HS400 MMC card at address 0001 Using HS200 (i.e. mmc-hs200-1_8v or mmc-ddr-1_8v) would reduce them: mmc0: Card appears overclocked; req 200000000 Hz, actual 384000000 Hz mmc0: Card appears overclocked; req 200000000 Hz, actual 384000000 Hz mmc0: new HS200 MMC card at address 0001 But as the problem is probably elsewhere (bullhead behaves the same), keep mmc-hs400-1_8v. Angler does not have SD card, thus explicitly disable sdhc2. Signed-off-by: Petr Vorel --- .../dts/qcom/msm8994-huawei-angler-rev-101.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8994-huawei-angler-rev-101.dts b/arch/arm64/boot/dts/qcom/msm8994-huawei-angler-rev-101.dts index 0e3dd48f0dbf..5ce3dc169bb4 100644 --- a/arch/arm64/boot/dts/qcom/msm8994-huawei-angler-rev-101.dts +++ b/arch/arm64/boot/dts/qcom/msm8994-huawei-angler-rev-101.dts @@ -7,6 +7,7 @@ /dts-v1/; #include "msm8994.dtsi" +#include /* Angler's firmware does not report where the memory is allocated */ /delete-node/ &cont_splash_mem; @@ -41,3 +42,18 @@ serial@f991e000 { &tlmm { gpio-reserved-ranges = <85 4>; }; + +/* + * Although downstream supports also HS400 there are fewer overclocking + * warnings when used DDR, also LK bootloader reports DDR mode. + */ +&sdhc1 { + status = "okay"; + + mmc-hs400-1_8v; +}; + +/* Angler does not have SD card */ +&sdhc2 { + status = "disabled"; +}; From patchwork Thu Jan 13 23:33:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 12713186 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 6E85BC2BA80 for ; Thu, 13 Jan 2022 23:34:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238231AbiAMXeR (ORCPT ); Thu, 13 Jan 2022 18:34:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238241AbiAMXeQ (ORCPT ); Thu, 13 Jan 2022 18:34:16 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A9C5C061574; Thu, 13 Jan 2022 15:34:16 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id l25so12809883wrb.13; Thu, 13 Jan 2022 15:34:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=z2dWmbxN5l71IvAym3ZDROYOKBKVIFCV45GVEsgDva0=; b=IaXu6NCEfRbEqpa4EeSiD/0Fsy1GRpllCFPdyGoeSVTuEzyVI0WS81lo3C1pMNh4Tw z6nYTIBuQKfs8v8EPcmfZdIUBHWcPfSabDD7+iC3RjQtLdak8e7iw8F6z53YzZ6rdt82 LPuQ9ZWPFj9L1GKn42ZVTCJYyJe4ffbqwGDLIajwUuX2dTAM7ZLXDJ412BzCaROVerlg J7FbyZpFZ1tq0hZvf+HHjm70S2cZPmKKmi2XovQb6GVBGPIWO4UHLVbJ8Y1I84ZByIXv 2GLkLFBVhJDCebFUqCCTt07QXHE0Z6bNqV0sgW4Jt6A3BFsuGh6PZTZNWdmfafqnjqKs 6aAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=z2dWmbxN5l71IvAym3ZDROYOKBKVIFCV45GVEsgDva0=; b=K2F+FzVjgwzmV1RfuELSb4mefLnikCibh4kf95adzZP5wh2+v2P+EUscz10bEZ0aNC GCu7zdNgHC9yt2aD1uy8bKBxFRuVd1ccuqhwN6AOCnwgpoPTNCayiZzw6XMafi/vWoU+ 76TIVqfQcZDKd/n/zCS0wkB/8bBkw2B/84UJ6HdMvuMKcESbjnlyzuAT5+qOrEbVmlhy G/vWUnsFR/M1LRoMfWnwmJyKFXnMML0pLwyyBhbjkJlRwz6NVsgRKTJNIDdJWi4ag/0g VLibeETXqc+s8nlJN8FjOvVmLVIhxEgMRng9I9gmgCkDidVWrsg3UTCr2Ko3ytOZOCi+ 59vA== X-Gm-Message-State: AOAM533hh6KFfh49RcDAAG6lNpwSMzD3Nq4vf3Siwroki5paZsW+3InI 4qk4deoarKIPHvBKpS/TLgonxDWx70J9Lg== X-Google-Smtp-Source: ABdhPJwm4TpKnSAyBh91aadWAxJIxTWh+1FZMNJrDYyujSKSKZbIud7PTaNxwc2KJ8GR+Ao5LQWslQ== X-Received: by 2002:a05:6000:c4:: with SMTP id q4mr6012838wrx.131.1642116854948; Thu, 13 Jan 2022 15:34:14 -0800 (PST) Received: from dell5510.arch.suse.de (gw1.ms-free.net. [185.243.124.10]) by smtp.gmail.com with ESMTPSA id u17sm3724748wrt.37.2022.01.13.15.34.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jan 2022 15:34:14 -0800 (PST) From: Petr Vorel To: linux-arm-msm@vger.kernel.org Cc: Petr Vorel , Konrad Dybcio , Jean Thomas , Alexey Minnekhanov , Andy Gross , Bjorn Andersson , Ulf Hansson , Douglas Anderson , Taniya Das , linux-mmc@vger.kernel.org Subject: [PATCH 6/6] arm64: dts: qcom: msm8992-lg-bullhead: Disable sdhc2 Date: Fri, 14 Jan 2022 00:33:58 +0100 Message-Id: <20220113233358.17972-7-petr.vorel@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220113233358.17972-1-petr.vorel@gmail.com> References: <20220113233358.17972-1-petr.vorel@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Bullhead does not have SD card, thus explicitly disable sdhc2. Signed-off-by: Petr Vorel --- arch/arm64/boot/dts/qcom/msm8992-lg-bullhead.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8992-lg-bullhead.dtsi b/arch/arm64/boot/dts/qcom/msm8992-lg-bullhead.dtsi index 3b0cc85d6674..b6633be30f68 100644 --- a/arch/arm64/boot/dts/qcom/msm8992-lg-bullhead.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8992-lg-bullhead.dtsi @@ -300,3 +300,8 @@ &sdhc1 { mmc-hs400-1_8v; }; + +/* Bullhead does not have SD card */ +&sdhc2 { + status = "disabled"; +};