From patchwork Tue Jan 18 01:20:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 533002 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 2EA21C433FE for ; Tue, 18 Jan 2022 01:38:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244097AbiARBiP (ORCPT ); Mon, 17 Jan 2022 20:38:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243993AbiARBiN (ORCPT ); Mon, 17 Jan 2022 20:38:13 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23C7AC06161C; Mon, 17 Jan 2022 17:38:13 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id q25so72923522edb.2; Mon, 17 Jan 2022 17:38: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=T1aRqKg5tbRVk7Rr0Ygh/atd2LFDmFDftsLr9R4FVoI=; b=hwzFSgEjbkiG9V8Q5NQeqIIYNcCBHx75NrWdIOugJWHTs22pxVQ5IYg9nXMdez8huZ v03GhnxNRhYwBMYyQfYTsnN+Wmd+KORbgWed3addo5qP824NtLDkiVJ1qRs0Lzi1G8cn Pwu+kmrsj+tPJP/7oF9YrmwV7hY/Jm+YhpDnWfEvoHCeF6I/SJ1dQvQgYPO16Z9gvaCE mlHmtrVjtddR0hZGY2V3Fl51wjiBVPNwHhUyEBF8lL1H4ZIxMZUPKJUh8Y4whJyD1SNS xDZxVG4o0qg9nCucvFM+i9utiLS37/wpHk0WlExv1C+VwMszFYSW9Mp6lx/taz5ZdD83 XKtw== 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=T1aRqKg5tbRVk7Rr0Ygh/atd2LFDmFDftsLr9R4FVoI=; b=FPOdUrXahlJk6cMUPLEh9S/ivq8qib9CsDkehHRYdG3NKNmixV+/bYOCTfp8TETr3q s32nvuMy0je2QNgutRrGnSkpGM6s+F2ERlmzcBsBbQkAnI2EmTNeMYme6jYzlTPxOKc6 uh06Mi1cSwLGHdi4vPY2XPz02CMdwS1XVaZDrzFUm/Ah1ncXWChAZyIyJ14OtrPbUlwJ a2ZYB379xfoNRfVYz8Mn5RYbzgwhvOXg3gZAwcSWUug7lyhAOYQ2p4f2ed6K0Xh1k9zt /SuKlZF8tEkYXM2kMKa23fDQyM6JrK8HksYJ4tM6Ym+tFSmylL5NOJJqNwK67nUivrsx O4Mg== X-Gm-Message-State: AOAM5300O78jufGJcMU7aFJUWAd7NJT/VDfgdlO37q4nnjPaEo2JdPps zSNSaditce88w1Nz3hCUV/RZvQgiYJ0= X-Google-Smtp-Source: ABdhPJxPjdYSrtrdPbF6kwliSqu3kvuIqeEMvgqG+Ld2xRzznyfme2GmrGby1MQfYgjT54aT0ma1mA== X-Received: by 2002:a50:cd17:: with SMTP id z23mr23590587edi.287.1642469891562; Mon, 17 Jan 2022 17:38:11 -0800 (PST) Received: from localhost.localdomain (93-42-71-246.ip85.fastwebnet.it. [93.42.71.246]) by smtp.googlemail.com with ESMTPSA id kj18sm3990675ejc.139.2022.01.17.17.38.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jan 2022 17:38:11 -0800 (PST) From: Ansuel Smith To: Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ansuel Smith Subject: [PATCH 02/17] ARM: dts: qcom: add gsbi6 missing definition for ipq8064 Date: Tue, 18 Jan 2022 02:20:32 +0100 Message-Id: <20220118012051.21691-3-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220118012051.21691-1-ansuelsmth@gmail.com> References: <20220118012051.21691-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add gsbi6 missing definition for ipq8064. Signed-off-by: Ansuel Smith --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index cc6ca9013ab1..094125605bea 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -665,6 +665,33 @@ spi@1a280000 { }; }; + gsbi6: gsbi@16500000 { + status = "disabled"; + compatible = "qcom,gsbi-v1.0.0"; + cell-index = <6>; + reg = <0x16500000 0x100>; + clocks = <&gcc GSBI6_H_CLK>; + clock-names = "iface"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + syscon-tcsr = <&tcsr>; + + gsbi6_i2c: i2c@16580000 { + compatible = "qcom,i2c-qup-v1.1.1"; + reg = <0x16580000 0x1000>; + interrupts = ; + + clocks = <&gcc GSBI6_QUP_CLK>, <&gcc GSBI6_H_CLK>; + clock-names = "core", "iface"; + status = "disabled"; + + #address-cells = <1>; + #size-cells = <0>; + }; + }; + gsbi7: gsbi@16600000 { status = "disabled"; compatible = "qcom,gsbi-v1.0.0"; From patchwork Tue Jan 18 01:20:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 533001 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 91AF2C433EF for ; Tue, 18 Jan 2022 01:38:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244164AbiARBiR (ORCPT ); Mon, 17 Jan 2022 20:38:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243964AbiARBiQ (ORCPT ); Mon, 17 Jan 2022 20:38:16 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74978C061746; Mon, 17 Jan 2022 17:38:15 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id 30so72949879edv.3; Mon, 17 Jan 2022 17:38: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=pO6jjMkLEBcCoOmgC9LDz88H2s+NgQ4gFBtGRzesk0g=; b=HfOfzqM4ijFhaycW23EX38NybqOxBHFOu9eJu7IYVm4OTvvq7QsHQz90RKOElgPR+m 7Pte1TYyD/Eblg4g47Eiyaag21+//YpYT4NzNAmvHPN2Z8D09bH5vM6iCRSrYVE7FUad ktpvZwD60TO47jZlpM6MJcFaGMShaU9OOh0qYX0rM8JEafg9d1WgMOyFXei8esZndtS3 V30DRQwzfB4K+2R6/5UDjvFGYSWiXfdVKVTAzZi/u620d1EbrTf4MQbr5RMO2cNKByCY 6UyRKLckF5UVkyYtxIXUy+/SGjG0yqqykqhOuINRehTHxC3jRhMLY86O+/EQVXCO3bKO mU6Q== 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=pO6jjMkLEBcCoOmgC9LDz88H2s+NgQ4gFBtGRzesk0g=; b=gZLZxy+DVamlA/apvW06KQyMZAaGljtpSvQmLCE5dafAs2t7xCEhWIGAABXbNI/BRC DfKSDQT1vsVauLfWnXWEA2smevLHb7HK+2k8V0pRNxdpU8Hh6/Cd4lsL9bE7ApLDr9lP DVmuBG/VSzp9QmyW++nexpKk480jTpdCW8UTyXQjzkUrhRi0WiBZyORbwzWaVfuEO/oJ QwhKBFsKIHFaq12e9UDoHWCDKOzPnIOjeFXfjNxf94lJAnHaaVOrjfMfKqPdSMeNKnM9 8ewQWBr7iOCVKTzLQCUZuLaZSbnX1cmJWEuH6BRDx5Hyh+Csv62dN30I/4pAjQjjaw3o +pRQ== X-Gm-Message-State: AOAM531UGGnDh9cMcMSDXmlofuaIXdnGKx3Cm1JsHbT0CA7qc+5VpoIm lOk13Qin2JjbcIaN3g9M3p8= X-Google-Smtp-Source: ABdhPJyqVE7G77cwvD0P317WQv41iQixMutbq/IlypNgGfU/2jwvdSASRNh1Ms0wtrBVFQtahuc/YA== X-Received: by 2002:a17:906:6a1a:: with SMTP id qw26mr19020347ejc.46.1642469893964; Mon, 17 Jan 2022 17:38:13 -0800 (PST) Received: from localhost.localdomain (93-42-71-246.ip85.fastwebnet.it. [93.42.71.246]) by smtp.googlemail.com with ESMTPSA id kj18sm3990675ejc.139.2022.01.17.17.38.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jan 2022 17:38:13 -0800 (PST) From: Ansuel Smith To: Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ansuel Smith Subject: [PATCH 05/17] ARM: dts: qcom: enable usb phy by default for ipq8064 Date: Tue, 18 Jan 2022 02:20:35 +0100 Message-Id: <20220118012051.21691-6-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220118012051.21691-1-ansuelsmth@gmail.com> References: <20220118012051.21691-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Enable usb phy by default. When the usb phy were pushed, half of them were flagged as disabled by mistake. Fix this to correctly init dwc3 node on any ipq8064 based SoC. Signed-off-by: Ansuel Smith --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index 7cf85b4f6ec8..441309bb64c8 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -1161,8 +1161,6 @@ hs_phy_0: phy@100f8800 { clocks = <&gcc USB30_0_UTMI_CLK>; clock-names = "ref"; #phy-cells = <0>; - - status = "disabled"; }; ss_phy_0: phy@100f8830 { @@ -1171,8 +1169,6 @@ ss_phy_0: phy@100f8830 { clocks = <&gcc USB30_0_MASTER_CLK>; clock-names = "ref"; #phy-cells = <0>; - - status = "disabled"; }; usb3_0: usb3@100f8800 { From patchwork Tue Jan 18 01:20:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 533000 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 78076C4167B for ; Tue, 18 Jan 2022 01:38:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244199AbiARBiT (ORCPT ); Mon, 17 Jan 2022 20:38:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244052AbiARBiR (ORCPT ); Mon, 17 Jan 2022 20:38:17 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD080C061574; Mon, 17 Jan 2022 17:38:16 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id 15so39678607edx.9; Mon, 17 Jan 2022 17:38: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=g+sL8MJUVFSLlqzbEi0bJU0Ptqral5tkM/Cwy/Wus0w=; b=TqhRWDBXx1AJ0WLjQ2JwHldaVFPN2aV0Fc8CPWq/YoQrnz8dkZbqUuSvUIKhg00EQa 01/8YOxMwTK+8SqTvGEvxWIbYgrlPk8raumJJg8EiaWkxTUEkIpgXHtdI4i09hz/RtDi qJnyg6xoq0QCJCTuDipcieJZCFeyM9uuCUQMUjJLyy3mxIZq/HVjQ1/43NCrIEh6N4Rt rkA/fFG/r1a7t0k7r3iQ/yxcbNuiuChrDuVRrzhVl6vmgRfmbwIs+aK+/CWMTdfxrqEw jiz3B2usPGxvHaIuYAF6rnToKcOuJqwE41aKM7kvdrMrvpbEiPdeKztDVk5eD6HzADvz 0SpA== 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=g+sL8MJUVFSLlqzbEi0bJU0Ptqral5tkM/Cwy/Wus0w=; b=uuPPGDLtK9Fl/LPQRj8a1XWtrywpO1GMNbcdxdxRRh+NRaGcZnF1gtSmxUHCzdykgJ ZXeqwfAOVneNfuvAGTlsO64YhKuUEfz+qjUkWwofuKVTjHhC/0OKVtDpPEjvoC2AVdZW OtLYu4skPMxcOZRGyIbtwMeBsfk3nLiB6V9kxFsJ9DWDTmNLTTrk+H4qhmMnoG2nhJrH pYWnorRxq3/k4890lZnQU1KLoQSf/j/ObcynUGNfMz/m4dONezQc+eHKtndIWVwJC7J5 D6wrCG+HP8dz/qYJJdE6NyIXtNZCtCEbX0/l//Ou3EcnDAaAo6MJQ9w8Yy01uS4Nfdey Gr7Q== X-Gm-Message-State: AOAM533TAoHMY5avbogQJq0QXWKtE646kOGW5TkxceZ4AzFxN+WPf0Gp BcAZLxOXdwJ4/FNO8x/FUgE= X-Google-Smtp-Source: ABdhPJwVfOeRDyedDBCNhuYt2BfBiKHrYOzTXqbX6s+Vv5LXLMFaRHidceTn+jFhYLS33cXBKXqmPg== X-Received: by 2002:a17:906:c08c:: with SMTP id f12mr18458734ejz.419.1642469895160; Mon, 17 Jan 2022 17:38:15 -0800 (PST) Received: from localhost.localdomain (93-42-71-246.ip85.fastwebnet.it. [93.42.71.246]) by smtp.googlemail.com with ESMTPSA id kj18sm3990675ejc.139.2022.01.17.17.38.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jan 2022 17:38:14 -0800 (PST) From: Ansuel Smith To: Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ansuel Smith Subject: [PATCH 06/17] ARM: dts: qcom: reduce pci IO size to 64K for ipq8064 Date: Tue, 18 Jan 2022 02:20:36 +0100 Message-Id: <20220118012051.21691-7-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220118012051.21691-1-ansuelsmth@gmail.com> References: <20220118012051.21691-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The current value for pci IO is problematic for ath10k wifi card commonly connected to ipq8064 SoC. The current value is probably a typo and is actually uncommon to find 1MB IO space even on a x86 arch. Also with recent changes to the pci driver, pci1 and pci2 now fails to function as any connected device fails any reg read/write. Reduce this to 64K as it should be more than enough and 3 * 64K of total IO space doesn't exceed the IO_SPACE_LIMIT hardcoded for the ARM arch. Signed-off-by: Ansuel Smith --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index 441309bb64c8..c8763997e0f7 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -904,7 +904,7 @@ pcie0: pci@1b500000 { #address-cells = <3>; #size-cells = <2>; - ranges = <0x81000000 0 0x0fe00000 0x0fe00000 0 0x00100000 /* downstream I/O */ + ranges = <0x81000000 0 0x0fe00000 0x0fe00000 0 0x00010000 /* downstream I/O */ 0x82000000 0 0x08000000 0x08000000 0 0x07e00000>; /* non-prefetchable memory */ interrupts = ; @@ -955,7 +955,7 @@ pcie1: pci@1b700000 { #address-cells = <3>; #size-cells = <2>; - ranges = <0x81000000 0 0x31e00000 0x31e00000 0 0x00100000 /* downstream I/O */ + ranges = <0x81000000 0 0x31e00000 0x31e00000 0 0x00010000 /* downstream I/O */ 0x82000000 0 0x2e000000 0x2e000000 0 0x03e00000>; /* non-prefetchable memory */ interrupts = ; @@ -1006,7 +1006,7 @@ pcie2: pci@1b900000 { #address-cells = <3>; #size-cells = <2>; - ranges = <0x81000000 0 0x35e00000 0x35e00000 0 0x00100000 /* downstream I/O */ + ranges = <0x81000000 0 0x35e00000 0x35e00000 0 0x00010000 /* downstream I/O */ 0x82000000 0 0x32000000 0x32000000 0 0x03e00000>; /* non-prefetchable memory */ interrupts = ; From patchwork Tue Jan 18 01:20:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 532999 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 9868FC43217 for ; Tue, 18 Jan 2022 01:38:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244265AbiARBiY (ORCPT ); Mon, 17 Jan 2022 20:38:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244244AbiARBiV (ORCPT ); Mon, 17 Jan 2022 20:38:21 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44D0BC061748; Mon, 17 Jan 2022 17:38:19 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id z22so72914704edd.12; Mon, 17 Jan 2022 17:38:19 -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=edJsOhrgm9HIZp5+3GRACpTuHG3K0zpTiYemM14Um+8=; b=lh9lQiHB10MMb62y6e3Ow/KepDFvQZRvtjy0t9qWGCeWPnauPjUY1lCO6nEiPmNORZ g1jR2kSOvtGYmuq3XUh9lCcMKmCw9mijHuagsNzn8YhytGOr/aBhfq+TDDbkRPVIZjAg /xwx4WOgqsfWC8tXdbq9IaRyHrmb+DCuXDNCuBQd6eSpARYY52WSJlD2fzU6spvLb9v7 1n9mi7eyh+SCue43tA3sMa5E4X2GNc/OojTmj5o89L6NA4ZQKG1ps5XYsDv50+jrxdyI rMabTK1LrPnplSAzxVmX2dWyCVZCGdLSq/G5mFaN/DFtJUcXFiFze9BnrvYUhDXsVBbn PXzw== 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=edJsOhrgm9HIZp5+3GRACpTuHG3K0zpTiYemM14Um+8=; b=CpSBNs7XKGUlaQQNog3ahmAelDvWo7pBZ+QyKzKzeSkPK1NU0mLfxrh7bKzmnVwI7i G8yHVaz1M+fZM/UvroZWuxxw8MpcIhdpkLoE2dqNSoeh6NqtE73KysOg4MdV/kTufjU8 YN2pcYT2T3VXFI9NGp3eRuOSWK5gRBMqv+zLK+StdGMz7G6MZtKvAsrftLwKqKzoegrR 2DOucKMtbKV5v10Za92l28ccZPN+3wNcc9r1p1DnjE9L4Dyp2GTdJCosy2MvE1zfZDM/ v//an/AiMvbNrO/ubMMtkunAzhjAmpdhFIQnn17bzt8XV74/NSbFod6Yn4wqWsaPYrA0 LSqw== X-Gm-Message-State: AOAM531FRy+Gs8looiiTNHAk/VcwZHUiY4SOM2ExnnI8wwyiaX4Wuq+w ZWNeTMvmfexgFd2z1QltJNQd/f/jb4I= X-Google-Smtp-Source: ABdhPJwXgdvRlmx9Y0lfJqv3JsQo384p8eFhmVaCkHC4Fx14HwEUM/Wu6OVDZvWLCCasuCI3WPdFxw== X-Received: by 2002:a17:906:4c95:: with SMTP id q21mr18458051eju.173.1642469897671; Mon, 17 Jan 2022 17:38:17 -0800 (PST) Received: from localhost.localdomain (93-42-71-246.ip85.fastwebnet.it. [93.42.71.246]) by smtp.googlemail.com with ESMTPSA id kj18sm3990675ejc.139.2022.01.17.17.38.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jan 2022 17:38:17 -0800 (PST) From: Ansuel Smith To: Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ansuel Smith Subject: [PATCH 09/17] ARM: dts: qcom: add saw for l2 cache and kraitcc for ipq8064 Date: Tue, 18 Jan 2022 02:20:39 +0100 Message-Id: <20220118012051.21691-10-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220118012051.21691-1-ansuelsmth@gmail.com> References: <20220118012051.21691-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add saw compatible for l2 cache and kraitcc node for ipq8064 dtsi. Also declare clock-output-names for acc0 and acc1. Signed-off-by: Ansuel Smith --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index 8c2d4dac0ebd..a45e4c799b27 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -504,11 +504,13 @@ IRQ_TYPE_EDGE_RISING)>, acc0: clock-controller@2088000 { compatible = "qcom,kpss-acc-v1"; reg = <0x02088000 0x1000>, <0x02008000 0x1000>; + clock-output-names = "acpu0_aux"; }; acc1: clock-controller@2098000 { compatible = "qcom,kpss-acc-v1"; reg = <0x02098000 0x1000>, <0x02008000 0x1000>; + clock-output-names = "acpu1_aux"; }; adm_dma: dma-controller@18300000 { @@ -532,17 +534,23 @@ adm_dma: dma-controller@18300000 { }; saw0: regulator@2089000 { - compatible = "qcom,saw2"; + compatible = "qcom,saw2", "qcom,apq8064-saw2-v1.1-cpu", "syscon"; reg = <0x02089000 0x1000>, <0x02009000 0x1000>; regulator; }; saw1: regulator@2099000 { - compatible = "qcom,saw2"; + compatible = "qcom,saw2", "qcom,apq8064-saw2-v1.1-cpu", "syscon"; reg = <0x02099000 0x1000>, <0x02009000 0x1000>; regulator; }; + saw_l2: regulator@02012000 { + compatible = "qcom,saw2", "syscon"; + reg = <0x02012000 0x1000>; + regulator; + }; + gsbi2: gsbi@12480000 { compatible = "qcom,gsbi-v1.0.0"; cell-index = <2>; @@ -885,6 +893,11 @@ l2cc: clock-controller@2011000 { clock-output-names = "acpu_l2_aux"; }; + kraitcc: clock-controller { + compatible = "qcom,krait-cc-v1"; + #clock-cells = <1>; + }; + lcc: clock-controller@28000000 { compatible = "qcom,lcc-ipq8064"; reg = <0x28000000 0x1000>; From patchwork Tue Jan 18 01:20:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 532998 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 5BFC6C433EF for ; Tue, 18 Jan 2022 01:38:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244242AbiARBi0 (ORCPT ); Mon, 17 Jan 2022 20:38:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244247AbiARBiV (ORCPT ); Mon, 17 Jan 2022 20:38:21 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C5F6C06174E; Mon, 17 Jan 2022 17:38:20 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id k15so72768909edk.13; Mon, 17 Jan 2022 17:38:20 -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=FLS4CFc8OraobP2F69gl9kvDiXrI/Uu58GgwSlFhco8=; b=nPgrGFi+fwr4yzLPWf7V8wjTHEzYydNH2oc7GPtPjr8wSgzZHkaronGYrfjAwhMstg hlduukDzF7w3DWT8hGAhN2uq4Hod9ne3gpALarYb7IhnU6/zmFH7T5rRJ+iTgefZz0xD sa1FiWndYMf5GBQu/9j/IzrAvm2ZcxkMukdFWub66ii5TWwuZTQbPVdniWmOPeQmy8Uu QUfzmbMKPR2y/STKaPnts2fJ1EvPzHrohhHaOHrYOyqTZZjUiic2B4WnPx6ANMcEjx22 wfpAhtmlXsTngHAJIsGMi9Sj5k2Zs5c6xj0EW7yGGu5VglDNHM/TUWnpjsN4Yjjn+NJe GbzA== 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=FLS4CFc8OraobP2F69gl9kvDiXrI/Uu58GgwSlFhco8=; b=YO6TaLyIgyl7GmeLxW4RL6FhsKca1mIG46RsgvrCM8E/yFkYEsGZBtRDLx9lu6Aaus MDL36MkFaI9tgKXZFluVbn+skC/4HciHgFL/EQC2oN8IKKkxnkE0PkwWoGAE30ND5AEx eLICRkueV0j6VsxohLeS1L9AwMS1d6Q9EY2vjjKg8qNg5Noll/N8sOHDp4HfW5ZYWRtK 1iBFZ2kraIVsy7XtLRo+QrUXSs8vfWSZ1Yud+rCZqhNW/joOlokyV0Kywu8Gn3svJFOU iBJbdEXoo7XjX9FMvAwpqjrnZ6xJlt3v/8vbAv53Fn6ZMtb4TSxOl6vDG1CcWPHCgi82 Mo+A== X-Gm-Message-State: AOAM532bwgx0sFRsHTGLRLzQXS2BLSD52YZ8obI+/WoKbQpcm1cqQGsW 2IXzoG1oRG3CnDhh7hyzRY0= X-Google-Smtp-Source: ABdhPJx4eP7YafMvvOx4R2GUbSwa+vf6KqGoVup/EukwMmVL2LQfoplopdZYohzP9/lFxyd0Rd81ZQ== X-Received: by 2002:a05:6402:42ce:: with SMTP id i14mr23140657edc.126.1642469898690; Mon, 17 Jan 2022 17:38:18 -0800 (PST) Received: from localhost.localdomain (93-42-71-246.ip85.fastwebnet.it. [93.42.71.246]) by smtp.googlemail.com with ESMTPSA id kj18sm3990675ejc.139.2022.01.17.17.38.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jan 2022 17:38:18 -0800 (PST) From: Ansuel Smith To: Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ansuel Smith Subject: [PATCH 10/17] ARM: dts: qcom: add sic non secure node for ipq8064 Date: Tue, 18 Jan 2022 02:20:40 +0100 Message-Id: <20220118012051.21691-11-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220118012051.21691-1-ansuelsmth@gmail.com> References: <20220118012051.21691-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add missing sic non secure node for ipq8064. Signed-off-by: Ansuel Smith --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index a45e4c799b27..b82beb297291 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -551,6 +551,11 @@ saw_l2: regulator@02012000 { regulator; }; + sic_non_secure: sic-non-secure@12100000 { + compatible = "syscon"; + reg = <0x12100000 0x10000>; + }; + gsbi2: gsbi@12480000 { compatible = "qcom,gsbi-v1.0.0"; cell-index = <2>; From patchwork Tue Jan 18 01:20:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 532996 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 D73CBC43217 for ; Tue, 18 Jan 2022 01:38:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244306AbiARBia (ORCPT ); Mon, 17 Jan 2022 20:38:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244261AbiARBiY (ORCPT ); Mon, 17 Jan 2022 20:38:24 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F19DCC06161C; Mon, 17 Jan 2022 17:38:23 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id f21so15809271eds.11; Mon, 17 Jan 2022 17:38:23 -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=EcDDdaksgsJh2R/SSWza5ev8vdSQuzVQ92v0X8aH2rI=; b=RJ0XW74HeFyz/r2PQQBMzBBsmCjfjCYpIZMByJxEdgTe06Hlg6fnTORIAW7EX9Gg5C o+pY+spBiQuFHUvxOZ5n6bAnauuUYQADhBQ0/7I+Q7nnIz6rsBbgNAkwgzhKPeNiojXd X01Ryi0WGz2nW1XtZoFwxjB90yw+AjFWspH2rc964NfajyTbIq0uDDd8dHVH+d0Uy8G9 ZX39cc4uYy7KEJGQxJ1r/K4spnEoulP0ym24kIRKFNDVx/ffzUPwKTwjzS5Ke6i9W0Mu ekc7JnibNHJ3JePGuWpe1HDkjoXfSXBbMalUUDir3paH/eVlafb07zqlLeZvRfd3eh2c EYvA== 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=EcDDdaksgsJh2R/SSWza5ev8vdSQuzVQ92v0X8aH2rI=; b=Z1lvKLydFYWgQuocjY2gj7zHpW8G/h9nA5B5gpdTx0ZGbOLBJxMmEdQbHzv51AScjQ Gg94oLc/KK7gH7nIZsszENm26hBrAYvJ8T0JncUvi02oe1BNkzpT0CIUmkMhKBC7TzMc 9sNF+CN0pUjrwdxbFXADj2mg0ClC0KQKLF7wpHjC+ozoDbi4JewvTIdlXCCBHjWaU2DS 0PI79KVEB8gZ1L1eV2K4wq8QJnwgcHcyzWaC8yrVEaIn8CFStJeC4gLx74FqJqc+zM6N MpJTK/1zqX3ZECA1d/SSEdoVz1w9w4AFlenKr/q1UT5Sy/YrHFt5cYuXxdcPwGbQ5/bD hAmg== X-Gm-Message-State: AOAM531BR2biPkjRbESW/QkBsGKn4cpjgm7I25cs8ufwIHRj7rMiYyQT UJHLQ9sr00DeNAWQ8zO1gCuSJZftnSU= X-Google-Smtp-Source: ABdhPJwlpVI6SEP/goCToDRr42/yhnVVYFXwho0s9/eRylQR+pObuXCOWochDOH1XARUXL3MnBBJNQ== X-Received: by 2002:a05:6402:1cad:: with SMTP id cz13mr15922141edb.216.1642469902450; Mon, 17 Jan 2022 17:38:22 -0800 (PST) Received: from localhost.localdomain (93-42-71-246.ip85.fastwebnet.it. [93.42.71.246]) by smtp.googlemail.com with ESMTPSA id kj18sm3990675ejc.139.2022.01.17.17.38.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jan 2022 17:38:22 -0800 (PST) From: Ansuel Smith To: Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ansuel Smith Subject: [PATCH 13/17] ARM: dts: qcom: add speedbin efuse nvmem binding Date: Tue, 18 Jan 2022 02:20:44 +0100 Message-Id: <20220118012051.21691-15-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220118012051.21691-1-ansuelsmth@gmail.com> References: <20220118012051.21691-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add speedbin efuse nvmem binding needed for the opp table for the CPU freqs. Signed-off-by: Ansuel Smith --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index 1e6297d6f302..a1a809134d9e 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -956,6 +956,9 @@ tsens_calib: calib@400 { tsens_calib_backup: calib_backup@410 { reg = <0x410 0xb>; }; + speedbin_efuse: speedbin@0c0 { + reg = <0x0c0 0x4>; + }; }; gcc: clock-controller@900000 { From patchwork Tue Jan 18 01:20:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 532995 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 CC7B5C433EF for ; Tue, 18 Jan 2022 01:38:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244334AbiARBid (ORCPT ); Mon, 17 Jan 2022 20:38:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244285AbiARBi0 (ORCPT ); Mon, 17 Jan 2022 20:38:26 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A32DC06173F; Mon, 17 Jan 2022 17:38:26 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id a18so72931838edj.7; Mon, 17 Jan 2022 17:38:26 -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=VSVdYqZu+t7n9C8goCLOO4CRPlINCB2udmlWCoWNckw=; b=kUrB0NiJF2okvxJXJE/HMZ0OdonK9/RRyfs2mOtTvzO2KepiT/xNy7BilPxKWIqlPJ E27OmHbhC1Dtn08/OUYE8TfagzuShyG+c7qNBgVLpg7wHuGM28YAArZRIrE6WTLeVPpf +oP8xG8adc9/77MmkjCuUyEENcuC07/32JNNTJRw7le+vF9PD9nWl2VmBaakI7I7Tu8j h+/EJtxDeKPhIN9JXrTp25oxkANUlmT9JVP13R8LuiJvAOJau0DXI6Fk0cyNobFkUqEl OgsE2OrXsSzbAS8PykXmgqEyKo6vBMQNfSHahGkd1iIUkQOXEklzw9e2hwD4LWcBq9cC DpLg== 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=VSVdYqZu+t7n9C8goCLOO4CRPlINCB2udmlWCoWNckw=; b=t65F6OmrdxvSqQybWv831mu5qp0JEtcGW5FFZULvMcoKdZQVd9x5p05dckjMqbnvqe 9TL8ZGFlCQxVZwoUQA/eVQadBmoZ+6qx/M27FZU2MR6lgWmQuTLBjz7aXZf2/AIvPVqR kkzAhmP9NNfx+t4pYuoMaMOJxi37waNt3TfXeQjQ9Tb/aW3aYKvziJbY+UNHNvuavgjR qlxQSaZbA6VQd/H2NSo0dZRCBaiwmEjzUA2bT1rDEOWR1iNyF+KV7MI9vkOv6ioOeupL 7lu2oRJYCNEv1gij4i5jYc31DlAHKgPr2+YW2CIXBDL8DOifc90EdtRWSB3y9cKNmf0o 4YOg== X-Gm-Message-State: AOAM532kFgUNjZImaPPvlSHx+y20uG0naKplGUDgLmfvw76YbMAmZKc6 y0gmdbY92QlMjpsNijiJnY1KohbwoFU= X-Google-Smtp-Source: ABdhPJxaRYSx3oyiI+34N3/G8KsIL7E8AqUJarYhcoHiRDX/kQY/ElW6tcpNBFOtE1alpuyGPXEN9w== X-Received: by 2002:a05:6402:1003:: with SMTP id c3mr23624978edu.405.1642469904921; Mon, 17 Jan 2022 17:38:24 -0800 (PST) Received: from localhost.localdomain (93-42-71-246.ip85.fastwebnet.it. [93.42.71.246]) by smtp.googlemail.com with ESMTPSA id kj18sm3990675ejc.139.2022.01.17.17.38.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jan 2022 17:38:24 -0800 (PST) From: Ansuel Smith To: Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ansuel Smith Subject: [PATCH 15/16] ARM: dts: qcom: add ipq8064-v2.0 dtsi Date: Tue, 18 Jan 2022 02:20:47 +0100 Message-Id: <20220118012051.21691-18-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220118012051.21691-1-ansuelsmth@gmail.com> References: <20220118012051.21691-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Many devices are based on the v2.0 of the ipq8064 SoC. Main difference is a change in the pci compatible and different way to configre the usb phy. Signed-off-by: Ansuel Smith --- arch/arm/boot/dts/qcom-ipq8064-v2.0.dtsi | 70 ++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq8064-v2.0.dtsi diff --git a/arch/arm/boot/dts/qcom-ipq8064-v2.0.dtsi b/arch/arm/boot/dts/qcom-ipq8064-v2.0.dtsi new file mode 100644 index 000000000000..c082c3cd1a19 --- /dev/null +++ b/arch/arm/boot/dts/qcom-ipq8064-v2.0.dtsi @@ -0,0 +1,70 @@ +// SPDX-License-Identifier: GPL-2.0 +#include "qcom-ipq8064.dtsi" + +/ { + aliases { + serial0 = &gsbi4_serial; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + rsvd@41200000 { + reg = <0x41200000 0x300000>; + no-map; + }; + }; +}; + +&gsbi4 { + qcom,mode = ; + status = "okay"; + + serial@16340000 { + status = "okay"; + }; + /* + * The i2c device on gsbi4 should not be enabled. + * On ipq806x designs gsbi4 i2c is meant for exclusive + * RPM usage. Turning this on in kernel manifests as + * i2c failure for the RPM. + */ +}; + +&CPU_SPC { + status = "okay"; +}; + +&pcie0 { + compatible = "qcom,pcie-ipq8064-v2"; +}; + +&pcie1 { + compatible = "qcom,pcie-ipq8064-v2"; +}; + +&pcie2 { + compatible = "qcom,pcie-ipq8064-v2"; +}; + +&sata { + ports-implemented = <0x1>; +}; + +&ss_phy_0 { + qcom,rx-eq = <2>; + qcom,tx-deamp_3_5db = <32>; + qcom,mpll = <5>; +}; + +&ss_phy_1 { + qcom,rx-eq = <2>; + qcom,tx-deamp_3_5db = <32>; + qcom,mpll = <5>; +}; From patchwork Tue Jan 18 01:20:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 532993 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 112E4C433F5 for ; Tue, 18 Jan 2022 01:39:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244422AbiARBi6 (ORCPT ); Mon, 17 Jan 2022 20:38:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244293AbiARBi3 (ORCPT ); Mon, 17 Jan 2022 20:38:29 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F33AC06173F; Mon, 17 Jan 2022 17:38:29 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id 30so72951616edv.3; Mon, 17 Jan 2022 17:38:29 -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=yq6uO2vAiuohupuAuJSXxHBEg2PcebW3PTJtMbsfnEk=; b=I5joL5GXCAlVOdaciFwFpLYC6GKkAt0ZnSwGZKS1C8X2qEmhyf4QwWL0iY8ONOXFEB HJS8WCZuwYfajwqkBpbA3Hn5br8DSY4aSME6gJuiQfyqhPuwncAAbnELYhYEXHkPmtZZ IszVrBMm3HfihPjLOIKOsgmL6Njkjk1U29sRR1Ve9RPXmuw1NaaWvpDhLqyFeKG46s0Y Oo5tqG8nE7vY4MEyySrrXuxktw84RipmO3HpbVhWkafpPCEnsxpQOn/Z+IKB/l6Ry3/t AJ8ZpTKRERQOYvQXT20NIqJT4erLlk4X3/SqBiLtSM40ZffoO+ZSQQLTSqpvoNVoBFzb O28w== 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=yq6uO2vAiuohupuAuJSXxHBEg2PcebW3PTJtMbsfnEk=; b=qgdU7XsV/oV/5vjEiaztUvwpVxGkIRD4FUfyiitLAdAlz0tjBYLcugJ3aXXnF8QDQB jdHFAJx7icPjN/vV/ZHXmwaVL2Tl+cTG3ev2EmSHiEJ9rCBBFp+mAoZiRh/Q05ud49XA 42ctYoihaPiubZV9q9PR1SgUAddUbKe6lD9WStPb1om+Mp4MvOif5hkjll6mHT1tTTL2 c3LTddWxr6Jls+UWidqpW8ASM+a2fCf3RNnTlYbhfnqJGwskPPyy3+TGH1Yt0PVrrayl VKUvKagYUNTJnE4+5HWXWBH0KvionUpY5a52KyROv6kns0cozQDJnCcx8DAp3LFdDrVQ iinA== X-Gm-Message-State: AOAM533ALnQLG90dDQCjOqX0x9BY0RRZTHz3aiCOL4ZReC0xd+iB/5yK pyUfaXJls2LZ2QAhyxqu2no= X-Google-Smtp-Source: ABdhPJxFpMZkANvax5+ymg2Ulb7JFuSzMN8Vq/jQl0CoBy1CSb2Cl6R19w9J0onuZMf2JgGHZOnwhQ== X-Received: by 2002:a05:6402:43ca:: with SMTP id p10mr22254842edc.74.1642469907570; Mon, 17 Jan 2022 17:38:27 -0800 (PST) Received: from localhost.localdomain (93-42-71-246.ip85.fastwebnet.it. [93.42.71.246]) by smtp.googlemail.com with ESMTPSA id kj18sm3990675ejc.139.2022.01.17.17.38.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jan 2022 17:38:27 -0800 (PST) From: Ansuel Smith To: Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ansuel Smith Subject: [PATCH 16/16] ARM: dts: qcom: add ipq8065 dtsi Date: Tue, 18 Jan 2022 02:20:50 +0100 Message-Id: <20220118012051.21691-21-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220118012051.21691-1-ansuelsmth@gmail.com> References: <20220118012051.21691-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Many device are based on ipq8065 SoC. Ipq8065 is an evolution of the ipq8064 SoC (also named ipq8064-v3.0 from qsdk) that has all the improvement from ipq8064-v2.0 with the addition of a more powerful CPU that can now be clocked to 1.7Ghz, a quicker L2 cache that can be clocked to 1.4Ghz. It also shipped with more powerful regulators to provide the required voltage to the CPUs and L2. Signed-off-by: Ansuel Smith --- arch/arm/boot/dts/qcom-ipq8065.dtsi | 168 ++++++++++++++++++++++++++++ 1 file changed, 168 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq8065.dtsi diff --git a/arch/arm/boot/dts/qcom-ipq8065.dtsi b/arch/arm/boot/dts/qcom-ipq8065.dtsi new file mode 100644 index 000000000000..817d723b0c88 --- /dev/null +++ b/arch/arm/boot/dts/qcom-ipq8065.dtsi @@ -0,0 +1,168 @@ +// SPDX-License-Identifier: GPL-2.0 +#include "qcom-ipq8064.dtsi" + +/ { + model = "Qualcomm IPQ8065"; + compatible = "qcom,ipq8065", "qcom,ipq8064"; + + aliases { + serial0 = &gsbi4_serial; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + rsvd@41200000 { + reg = <0x41200000 0x300000>; + no-map; + }; + }; +}; + +&gsbi4 { + qcom,mode = ; + status = "okay"; + + serial@16340000 { + status = "okay"; + }; + /* + * The i2c device on gsbi4 should not be enabled. + * On ipq806x designs gsbi4 i2c is meant for exclusive + * RPM usage. Turning this on in kernel manifests as + * i2c failure for the RPM. + */ +}; + +&pcie0 { + compatible = "qcom,pcie-ipq8064-v2"; +}; + +&pcie1 { + compatible = "qcom,pcie-ipq8064-v2"; +}; + +&pcie2 { + compatible = "qcom,pcie-ipq8064-v2"; +}; + +&sata { + ports-implemented = <0x1>; +}; + +&smb208_s2a { + regulator-min-microvolt = <775000>; + regulator-max-microvolt = <1275000>; +}; + +&smb208_s2b { + regulator-min-microvolt = <775000>; + regulator-max-microvolt = <1275000>; +}; + +&ss_phy_0 { + qcom,rx-eq = <2>; + qcom,tx-deamp_3_5db = <32>; + qcom,mpll = <5>; +}; + +&ss_phy_1 { + qcom,rx-eq = <2>; + qcom,tx-deamp_3_5db = <32>; + qcom,mpll = <5>; +}; + +&opp_table_l2 { + /delete-node/opp-1200000000; + + opp-1400000000 { + opp-hz = /bits/ 64 <1400000000>; + opp-microvolt = <1150000>; + clock-latency-ns = <100000>; + opp-level = <2>; + }; +}; + +&opp_table0 { + /* + * On ipq8065 1.2 ghz freq is not present + * Remove it to make cpufreq work and not + * complain for missing definition + */ + + /delete-node/opp-1200000000; + + /* + * Voltage thresholds are + */ + opp-384000000 { + opp-microvolt-speed0-pvs0-v0 = <975000 926250 1023750>; + opp-microvolt-speed0-pvs1-v0 = <950000 902500 997500>; + opp-microvolt-speed0-pvs2-v0 = <925000 878750 971250>; + opp-microvolt-speed0-pvs3-v0 = <900000 855000 945000>; + opp-microvolt-speed0-pvs4-v0 = <875000 831250 918750>; + opp-microvolt-speed0-pvs5-v0 = <825000 783750 866250>; + opp-microvolt-speed0-pvs6-v0 = <775000 736250 813750>; + }; + + opp-600000000 { + opp-microvolt-speed0-pvs0-v0 = <1000000 950000 1050000>; + opp-microvolt-speed0-pvs1-v0 = <975000 926250 1023750>; + opp-microvolt-speed0-pvs2-v0 = <950000 902500 997500>; + opp-microvolt-speed0-pvs3-v0 = <925000 878750 971250>; + opp-microvolt-speed0-pvs4-v0 = <900000 855000 945000>; + opp-microvolt-speed0-pvs5-v0 = <850000 807500 892500>; + opp-microvolt-speed0-pvs6-v0 = <800000 760000 840000>; + }; + + opp-800000000 { + opp-microvolt-speed0-pvs0-v0 = <1050000 997500 1102500>; + opp-microvolt-speed0-pvs1-v0 = <1025000 973750 1076250>; + opp-microvolt-speed0-pvs2-v0 = <1000000 950000 1050000>; + opp-microvolt-speed0-pvs3-v0 = <975000 926250 1023750>; + opp-microvolt-speed0-pvs4-v0 = <950000 902500 997500>; + opp-microvolt-speed0-pvs5-v0 = <900000 855000 945000>; + opp-microvolt-speed0-pvs6-v0 = <850000 807500 892500>; + }; + + opp-1000000000 { + opp-microvolt-speed0-pvs0-v0 = <1100000 1045000 1155000>; + opp-microvolt-speed0-pvs1-v0 = <1075000 1021250 1128750>; + opp-microvolt-speed0-pvs2-v0 = <1050000 997500 1102500>; + opp-microvolt-speed0-pvs3-v0 = <1025000 973750 1076250>; + opp-microvolt-speed0-pvs4-v0 = <1000000 950000 1050000>; + opp-microvolt-speed0-pvs5-v0 = <950000 902500 997500>; + opp-microvolt-speed0-pvs6-v0 = <900000 855000 945000>; + }; + + opp-1400000000 { + opp-microvolt-speed0-pvs0-v0 = <1175000 1116250 1233750>; + opp-microvolt-speed0-pvs1-v0 = <1150000 1092500 1207500>; + opp-microvolt-speed0-pvs2-v0 = <1125000 1068750 1181250>; + opp-microvolt-speed0-pvs3-v0 = <1100000 1045000 1155000>; + opp-microvolt-speed0-pvs4-v0 = <1075000 1021250 1128750>; + opp-microvolt-speed0-pvs5-v0 = <1025000 973750 1076250>; + opp-microvolt-speed0-pvs6-v0 = <975000 926250 1023750>; + opp-level = <1>; + }; + + opp-1725000000 { + opp-hz = /bits/ 64 <1725000000>; + opp-microvolt-speed0-pvs0-v0 = <1262500 1199375 1325625>; + opp-microvolt-speed0-pvs1-v0 = <1225000 1163750 1286250>; + opp-microvolt-speed0-pvs2-v0 = <1200000 1140000 1260000>; + opp-microvolt-speed0-pvs3-v0 = <1175000 1116250 1233750>; + opp-microvolt-speed0-pvs4-v0 = <1150000 1092500 1207500>; + opp-microvolt-speed0-pvs5-v0 = <1100000 1045000 1155000>; + opp-microvolt-speed0-pvs6-v0 = <1050000 997500 1102500>; + opp-supported-hw = <0x1>; + clock-latency-ns = <100000>; + opp-level = <2>; + }; +};