From patchwork Tue Jul 5 13:39:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 587476 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 D93CBC433EF for ; Tue, 5 Jul 2022 14:13:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233257AbiGEONL (ORCPT ); Tue, 5 Jul 2022 10:13:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233631AbiGEOMt (ORCPT ); Tue, 5 Jul 2022 10:12:49 -0400 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 5E167224; Tue, 5 Jul 2022 07:06:53 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id v12so2819515edc.10; Tue, 05 Jul 2022 07:06:53 -0700 (PDT) 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=DJh4STxYhKUEdraBnGSkmRWu6LkfaJesDml9XVRAwQw=; b=aqpKnA0LluE6mfA7TyX0qzY8QE0PGCn+o16kqXdgrFPx/DhkX0vwWX01d3hy1QNf9m 5J++U1i4qZg9GmJrFDu8tnI1nhn8/n493naSE3N8sDEkwr930uGtw5m5JVBRgOHBosB7 4PJWulrZpQ3IB38IPZXoaj+LwrG5pA1v/Ru6D+plMhCU7GKhv9yosHd/pCXatp+KHK6H ymraVk1VgDKe11AHSdSA0qhClVD3EIJQgEscCHHhB2WPLgraWp8cTe3DfpQNNR0AcyMf LOGcq45XbBTOUMc0yFxviEOlPPGGteu3QxkljRA2+yzZq6PisH4yFA5lUeddzLglet0f 3u0w== 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=DJh4STxYhKUEdraBnGSkmRWu6LkfaJesDml9XVRAwQw=; b=aIwKo1K0xoIV7O5zWS+x/5IDE7BIQmmfNrbuDVX3juINt6OWQa08LIvJAaL8FjK6M5 uDy1QkZW2JutkZGJrcIs5xhrRc5A80I/g0A9RZRn1lWOvSOLl1inGIkVCPmxecjzaPQt CWzZK4yKvmZMbC+b395N7/cuZrVuBFsLn/EZjax7Vr9Fh2zXuSKDhWs/SWwXL1Md3irk ybh4OBC5bs88FcdPXcRSQROhgvQkSciYk0Ds9L8kn6r+5jzFsAzZB5bcGpnOCmZz8Cr9 YXDOnJ+Wy3ur8bkh1wLnoyK2ZTMiJruEzpXo6mvHp+xQ7iDIvimGEj3w4Ex9f+7tb0Iu joWA== X-Gm-Message-State: AJIora/wfBY2xYqv+t9s6kQPF4lktpIM8ua5y7iu/ytTtC++RFPHdIE7 Ud2tVX35MrOQ9DFQfS2E+lk= X-Google-Smtp-Source: AGRyM1tuacpWYvPb/hyoC/y1SFKvtm5cVxdA1/xO6dVUtiBeR6SdWTfOMyv32xXIh1XAmACH/A5cHQ== X-Received: by 2002:a05:6402:3307:b0:43a:826c:d8b4 with SMTP id e7-20020a056402330700b0043a826cd8b4mr9603eda.32.1657029989172; Tue, 05 Jul 2022 07:06:29 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id ku5-20020a170907788500b0072aee605e0esm399709ejc.60.2022.07.05.07.06.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 07:06:28 -0700 (PDT) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi , Jonathan McDowell Subject: [PATCH 01/13] ARM: dts: qcom: add multiple missing pin definition for ipq8064 Date: Tue, 5 Jul 2022 15:39:05 +0200 Message-Id: <20220705133917.8405-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220705133917.8405-1-ansuelsmth@gmail.com> References: <20220705133917.8405-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add missing definition for mdio0 pins used for gpio-bitbang driver,i2c4 pins and rgmii2 pins for ipq8064. Signed-off-by: Christian Marangi Tested-by: Jonathan McDowell --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index 4b475d98343c..f06a17bd915a 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -382,6 +382,15 @@ mux { }; }; + i2c4_pins: i2c4_pinmux { + mux { + pins = "gpio12", "gpio13"; + function = "gsbi4"; + drive-strength = <12>; + bias-disable; + }; + }; + spi_pins: spi_pins { mux { pins = "gpio18", "gpio19", "gpio21"; @@ -424,6 +433,8 @@ mux { pullups { pins = "gpio39"; + function = "nand"; + drive-strength = <10>; bias-pull-up; }; @@ -431,9 +442,32 @@ hold { pins = "gpio40", "gpio41", "gpio42", "gpio43", "gpio44", "gpio45", "gpio46", "gpio47"; + function = "nand"; + drive-strength = <10>; bias-bus-hold; }; }; + + mdio0_pins: mdio0_pins { + mux { + pins = "gpio0", "gpio1"; + function = "mdio"; + drive-strength = <8>; + bias-disable; + }; + }; + + rgmii2_pins: rgmii2_pins { + mux { + pins = "gpio27", "gpio28", "gpio29", + "gpio30", "gpio31", "gpio32", + "gpio51", "gpio52", "gpio59", + "gpio60", "gpio61", "gpio62"; + function = "rgmii2"; + drive-strength = <8>; + bias-disable; + }; + }; }; intc: interrupt-controller@2000000 { From patchwork Tue Jul 5 13:39:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 587477 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 8708CC43334 for ; Tue, 5 Jul 2022 14:13:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233096AbiGEONJ (ORCPT ); Tue, 5 Jul 2022 10:13:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233621AbiGEOMs (ORCPT ); Tue, 5 Jul 2022 10:12:48 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD5E419031; Tue, 5 Jul 2022 07:06:53 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id o25so21859873ejm.3; Tue, 05 Jul 2022 07:06:53 -0700 (PDT) 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=gWGjhMMyDD2J/KSaIxx6EOkxe1O8SSLj6I85d3AHdqM=; b=qT8BwhgCTMo7B27iNjgdrfJ5tnRiktq1I+h5LkxYg7iwrmlgoLxgRtSeBppKV56NcH DLak/zokDqL1XHwoY1Y2rMh/BoYmkiJSPIEDSUFZrr03plJWO0wNxweoNYFB6frNuSsN a3fRlCblTu69fEZ6pDnwVAxr9fK96HJLYiiLeE2CPgV/EPyYbkPyZzRc7ieML8am1IXj YSPoB0jv8Fn9VyAD8NjX9W+9QWu7zjNFCx0/VK8iMIHawjqj4vsRx/mjzPBj3hGFmcrO raupujfrbin8FD8iKQffa+/Ypv7SxeF6DS9lg8t3ZUGJO7rhIgzxor4d3c3cppYtncMx SX1A== 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=gWGjhMMyDD2J/KSaIxx6EOkxe1O8SSLj6I85d3AHdqM=; b=k6EsdF1G8a25jozJyRVLSF7xLtXemOmt+OzzgcrzM6z0kKxbkJxVXZgg1inuH+yoip puMofobn9aWN5yKW/lzqiK9JDC7Nk5yLEIScM/NTradl99/ykkou8V1srzTsLhK3vpc0 0kdoZaX8x2wagZSak6DJGPBzmK2lQiSuxd4DTNVCCyqkgGU9Fe4q1BVWik/50geivkhf XVuM1fb2Js+AmjAyCLYnqvgjVn9QzfiUrxz++ruZxOfujBhX+IhWY6Ov7Nh2odVQ8KDe Qyt9oqvSYtctm2LU5HmdRZQU9qUA44wcgCicuX6vLhznGzmVWrVZqYdKRWHmFT/GkH6C JDNA== X-Gm-Message-State: AJIora8kTtIM+jz5yuwJZBr/lRP1t3HS7RjTRmu2gpfxEFUAm/d9RBXD RUnwaOO0hU/t3maNDqnjCvk= X-Google-Smtp-Source: AGRyM1vk72GZQ1yky3V+ahW4/9/6LVi4c/yoXtPzU4CMDl5irCeiZmStJKsU+tw11n+U5wHF7S8bOg== X-Received: by 2002:a17:907:d19:b0:726:c8a0:c9ef with SMTP id gn25-20020a1709070d1900b00726c8a0c9efmr34432434ejc.435.1657029990216; Tue, 05 Jul 2022 07:06:30 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id ku5-20020a170907788500b0072aee605e0esm399709ejc.60.2022.07.05.07.06.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 07:06:29 -0700 (PDT) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi , Jonathan McDowell Subject: [PATCH 02/13] ARM: dts: qcom: add gsbi6 missing definition for ipq8064 Date: Tue, 5 Jul 2022 15:39:06 +0200 Message-Id: <20220705133917.8405-3-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220705133917.8405-1-ansuelsmth@gmail.com> References: <20220705133917.8405-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add gsbi6 missing definition for ipq8064. Signed-off-by: Christian Marangi Tested-by: Jonathan McDowell --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index f06a17bd915a..1b4b72723ead 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -665,6 +665,46 @@ 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>; + }; + + gsbi6_spi: spi@16580000 { + compatible = "qcom,spi-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 Jul 5 13:39:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 587827 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 D8617CCA47F for ; Tue, 5 Jul 2022 14:13:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233212AbiGEONK (ORCPT ); Tue, 5 Jul 2022 10:13:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233630AbiGEOMt (ORCPT ); Tue, 5 Jul 2022 10:12:49 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D89A1C8; Tue, 5 Jul 2022 07:06:56 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id q6so21771466eji.13; Tue, 05 Jul 2022 07:06:56 -0700 (PDT) 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=iotBaBGSGm6mxJVJOGjmsDN+mBAOX2RyhBgobPBYyEU=; b=VBPk+93kdFLZe8UHyRnMTrggReTPNxIkWEWCBr23bReXa8Z+HfJTAXlKpIGXUqBGUN nM9RnBEBQ4Qw5kB48SRBaxKEKDfia+P8hzKcF3PavOBZqaIgNWAVKR+z2XOLK57vVqFG lfvzPYTb/3180YaP0QKb6xHRwzyeRgufvZ0PJQoJsW1mtK+64CqkCSwUXBFmDLuK1Rq4 YRMozqXbXTd18icrTl82udc5txIMKxR0DSPuNn/xNdd5tUYKnG8XXk+o8KCN9m4eNYfB bvxLpqHx8axkQwjzxOb+st+kP3wbFf7OCiXnWNwlyC+EOpfxOgOCM+gywzkSPhKT8t2f znmA== 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=iotBaBGSGm6mxJVJOGjmsDN+mBAOX2RyhBgobPBYyEU=; b=yyrv/KV9sHrHG77x4J+x51SenPtpAvHkwMiHiODNdc+UOrnUVKSgTTd+caPe7UI1Wi usLLpZJrYuAib+MBvam9e1AyDGhv95bvVqdQTZpDP3tkPhgB9XeBBv2TsQblgh4Jh3L8 WbG9HgBOBirwmmuSDSwyuojPFWPMK5nmrqf4nO2Ef5f7Crh74ZqwD2IrOdColXhTXw8C teZabIXlLzUlI3iZtL+ektVXd2nmyuoqLsVcROpoRIjBbOjQevtxoeSa6r8IN/+nHQi/ 7FVYGMV2C4pWUr7U5OyNpRdaE2qDaqF11tIMjzI9ZTjD7htaf7OYQxZhqnIB8cQx/NRU hmcQ== X-Gm-Message-State: AJIora9+xWj5WSMixdVlRAzT3GW+03uxFgW8vihpjEMIiG2q4vwzm20K Px6XgRTBOK7lok9QK/rB74g= X-Google-Smtp-Source: AGRyM1taYYdZTeYZFs9uU69Pls+aCryjLMCNzxn06WWd/CQZarw5vW1FnIZNx8zOYBq900QFjdAOXA== X-Received: by 2002:a17:906:7a0b:b0:722:dac6:a8ff with SMTP id d11-20020a1709067a0b00b00722dac6a8ffmr34185611ejo.593.1657029991286; Tue, 05 Jul 2022 07:06:31 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id ku5-20020a170907788500b0072aee605e0esm399709ejc.60.2022.07.05.07.06.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 07:06:30 -0700 (PDT) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi , Jonathan McDowell Subject: [PATCH 03/13] ARM: dts: qcom: add missing rpm regulators and cells for ipq8064 Date: Tue, 5 Jul 2022 15:39:07 +0200 Message-Id: <20220705133917.8405-4-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220705133917.8405-1-ansuelsmth@gmail.com> References: <20220705133917.8405-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add cells definition for rpm node and add missing regulators for the 4 regulator present on ipq8064. There regulators are controlled by rpm and to correctly works gsbi4_i2c require to be NEVER disabled or rpm will reject any regulator change request. Signed-off-by: Christian Marangi Tested-by: Jonathan McDowell --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index 1b4b72723ead..c0b05d2a2d6d 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -844,10 +844,46 @@ rpm: rpm@108000 { clocks = <&gcc RPM_MSG_RAM_H_CLK>; clock-names = "ram"; + #address-cells = <1>; + #size-cells = <0>; + rpmcc: clock-controller { compatible = "qcom,rpmcc-ipq806x", "qcom,rpmcc"; #clock-cells = <1>; }; + + smb208_regulators: regulators { + compatible = "qcom,rpm-smb208-regulators"; + status = "okay"; + + smb208_s1a: s1a { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1150000>; + + qcom,switch-mode-frequency = <1200000>; + }; + + smb208_s1b: s1b { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1150000>; + + qcom,switch-mode-frequency = <1200000>; + }; + + smb208_s2a: s2a { + regulator-min-microvolt = < 800000>; + regulator-max-microvolt = <1250000>; + + qcom,switch-mode-frequency = <1200000>; + }; + + smb208_s2b: s2b { + regulator-min-microvolt = < 800000>; + regulator-max-microvolt = <1250000>; + + qcom,switch-mode-frequency = <1200000>; + }; + }; }; tcsr: syscon@1a400000 { From patchwork Tue Jul 5 13:39:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 587475 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 385CFC43334 for ; Tue, 5 Jul 2022 14:13:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233318AbiGEONN (ORCPT ); Tue, 5 Jul 2022 10:13:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233672AbiGEOMw (ORCPT ); Tue, 5 Jul 2022 10:12:52 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37BAD21241; Tue, 5 Jul 2022 07:07:06 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id d2so21893482ejy.1; Tue, 05 Jul 2022 07:07:06 -0700 (PDT) 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=P8POPGOoalJEDoVB7FyeJm3aaNudn+ZEBs/q1mdYbxo=; b=dBl3IeRm8p+6yFyU/KO66pMGGN3AvwjxO9U3ySsBl9VzQVOqKVjThdEdGaoI9Wn8sX 8TYfGquDfN9ZnPV1gxFpaKJe5ihkOaSCiYErwf6SnG/wDSMTSTWE0j3CG5KKpsLy2VVK Las1HeM/i+4DI66FegpBArF+XUl+FuJJd/bJOrW1wUIHumx2mu8KK0GDhJJKx9bRQDMi J0twGMvsr4HWnotGH9afDf9fIeOZXU1YdJYv8w+FD15u+QrbHQJsueoYWDz2YpzCC4kN 6bP6T2PbExFUQf8b51vdPGpobE+YhAzxqKQAqR8n8V8Rqi8bIniFNFJr4wHaTsvABgoA 8+Zw== 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=P8POPGOoalJEDoVB7FyeJm3aaNudn+ZEBs/q1mdYbxo=; b=XJH/ulyGqSIz+phOmfFTcKK1FPhrfFC4qlgbKpkSi5fhUaQ9Y70dl40BmKm6QpCDRx tMci7mBB47AZpOuCEwyXbOxgLdV7KmvvNI8F0Z/TaMVj7cqadAbNd+XbVm3NQDMQO3u6 JDTtM3z8GLKaePUH0SJ3CN2fV8orsM8y13/PRP2XsVBKjTVG55NRfesipe6SbqL1xMzU OztkW3oX9SgJUa4QB0Dt8PzySk689opW4aL6jetOJ3sx4kRIHch4lbxc63a0SA25kOLJ NI5Gke6UKhzIB0HCBqZ6xnvERZvoAQWqbsv06VYLzN+RDmFyXOcnneSsdflstjsXHEE3 SWow== X-Gm-Message-State: AJIora9EupA6d0Tge4Eg0WyNipj70AHnXuPJ1hj735HQxSDW3vx+Qv50 MpEFb7byWyLB74oVXaxZals= X-Google-Smtp-Source: AGRyM1uYu3lz97knSinfL+8eoA6sbRTTd21mV21TDnA7+5qVm50KcAEbrDSiyK4zU5SdIeS1MhFgrQ== X-Received: by 2002:a17:907:2d09:b0:722:f0bf:ac26 with SMTP id gs9-20020a1709072d0900b00722f0bfac26mr34532638ejc.77.1657029992760; Tue, 05 Jul 2022 07:06:32 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id ku5-20020a170907788500b0072aee605e0esm399709ejc.60.2022.07.05.07.06.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 07:06:31 -0700 (PDT) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi , Jonathan McDowell Subject: [PATCH 04/13] ARM: dts: qcom: disable smb208 regulators for ipq8064-rb3011 Date: Tue, 5 Jul 2022 15:39:08 +0200 Message-Id: <20220705133917.8405-5-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220705133917.8405-1-ansuelsmth@gmail.com> References: <20220705133917.8405-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Mikrotik RB3011 have a special configuration where the regulators are not the common smb208 controlled by RPM but they use a TPS563900 controlled via i2c. Disable the smb208 for this specific device. Signed-off-by: Christian Marangi Reviewed-by: Jonathan McDowell Tested-by: Jonathan McDowell --- arch/arm/boot/dts/qcom-ipq8064-rb3011.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts b/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts index 9034f00f2bd8..f651e813d75a 100644 --- a/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts +++ b/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts @@ -218,6 +218,10 @@ led@7 { }; }; +&smb208_regulators { + status = "disabled"; +}; + &adm_dma { status = "okay"; }; From patchwork Tue Jul 5 13:39:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 587825 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 A26D7CCA47B for ; Tue, 5 Jul 2022 14:13:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233324AbiGEONO (ORCPT ); Tue, 5 Jul 2022 10:13:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233684AbiGEOMx (ORCPT ); Tue, 5 Jul 2022 10:12:53 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAEFFC56; Tue, 5 Jul 2022 07:07:09 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id z19so15395884edb.11; Tue, 05 Jul 2022 07:07:09 -0700 (PDT) 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=TPe6ZT7qToz7oy62Ap1sHdRiXhnpHBlrej3RJOUEXl4=; b=cgZTxP3I0MP9sE6cOtTi718x5FDH28XnPFRT3JDPLGP9o+ix6lW6KHkrUALYcp24ku GGtgSfa2nOmkfAvmwBh1VgyF0uqPxrtzrk/SC3+0wjo+SVJMSo4tiKDhVYKThB2tgBUn UgisdAzM7S8pVV9HErfx2/TuDKUOfKFk6Ys6VpGrJes/fZ0agiWN43rqzvnU9NkhWSFq +DP/ldLDgMjbmEafjdU12QcREwLXRV6OzJGDt7S5CfT3RnMYsiR8QxS1AECRR9hCeYoM B2oo3mJpeTC3KkHOne4FPMYN1RRpIP8lB/aWcsZ0GQZHkPdyPos6f9GoWDQOqXU0VLBK kq+g== 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=TPe6ZT7qToz7oy62Ap1sHdRiXhnpHBlrej3RJOUEXl4=; b=8D6x8V45fgz/ihJZLCZu3t2I3tV+Kq7vZfjtfo1VP2/3rYms6Z2hSQaT8d3rPNLCrh J/DqZKczZcZ3VKAbRafJwZmRxpFTn0l8V9DADJD7p+rz7I3ocn5sBK2BbeKCHdwbhMVs VJKknz5EyNrLyh1dBGEtfaL33vLUuzNKRRJBWrfcjpi+3ADfRqCLr+o7up/oWc0BD9ar ntogzWGYqTkZ4ix/sYD/qO7M8UHUAtPmVPN/y1wKL/ZThDf6BuHNPvN9WyxYfpCG35ru GffhVOOpn9k5G8PkmEuPUw9acO7EcitPeAJ3LKvv+dHMtu9xwPJh5Zez3MvrpHe59piI MKTg== X-Gm-Message-State: AJIora/V+NJjuIZ/SWOxWqs8mTk2wQAnxqm8jLIdekA6LJ3HodrgBnYQ UrPpyzl4i8GieImsJwuMHbcdVLsN2YE= X-Google-Smtp-Source: AGRyM1swQG9fMazVqk90G7pkKzG+/2L16Pn+23dPoPAcjPtP9/808+mOwgeWEyr1FpDUqOcNGc09nA== X-Received: by 2002:a05:6402:2816:b0:434:ed38:16f3 with SMTP id h22-20020a056402281600b00434ed3816f3mr47212140ede.116.1657029993822; Tue, 05 Jul 2022 07:06:33 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id ku5-20020a170907788500b0072aee605e0esm399709ejc.60.2022.07.05.07.06.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 07:06:33 -0700 (PDT) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi , Jonathan McDowell Subject: [PATCH 05/13] ARM: dts: qcom: add missing snps,dwmac compatible for gmac ipq8064 Date: Tue, 5 Jul 2022 15:39:09 +0200 Message-Id: <20220705133917.8405-6-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220705133917.8405-1-ansuelsmth@gmail.com> References: <20220705133917.8405-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add missing snps,dwmac compatible for gmac ipq8064 dtsi. Signed-off-by: Christian Marangi Tested-by: Jonathan McDowell Reviewed-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index c0b05d2a2d6d..b2faa4a067e9 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -1077,7 +1077,7 @@ stmmac_axi_setup: stmmac-axi-config { gmac0: ethernet@37000000 { device_type = "network"; - compatible = "qcom,ipq806x-gmac"; + compatible = "qcom,ipq806x-gmac", "snps,dwmac"; reg = <0x37000000 0x200000>; interrupts = ; interrupt-names = "macirq"; @@ -1101,7 +1101,7 @@ gmac0: ethernet@37000000 { gmac1: ethernet@37200000 { device_type = "network"; - compatible = "qcom,ipq806x-gmac"; + compatible = "qcom,ipq806x-gmac", "snps,dwmac"; reg = <0x37200000 0x200000>; interrupts = ; interrupt-names = "macirq"; @@ -1125,7 +1125,7 @@ gmac1: ethernet@37200000 { gmac2: ethernet@37400000 { device_type = "network"; - compatible = "qcom,ipq806x-gmac"; + compatible = "qcom,ipq806x-gmac", "snps,dwmac"; reg = <0x37400000 0x200000>; interrupts = ; interrupt-names = "macirq"; @@ -1149,7 +1149,7 @@ gmac2: ethernet@37400000 { gmac3: ethernet@37600000 { device_type = "network"; - compatible = "qcom,ipq806x-gmac"; + compatible = "qcom,ipq806x-gmac", "snps,dwmac"; reg = <0x37600000 0x200000>; interrupts = ; interrupt-names = "macirq"; From patchwork Tue Jul 5 13:39:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 587474 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 DCE10C433EF for ; Tue, 5 Jul 2022 14:13:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233350AbiGEONP (ORCPT ); Tue, 5 Jul 2022 10:13:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233681AbiGEOMx (ORCPT ); Tue, 5 Jul 2022 10:12:53 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A8B5D46; Tue, 5 Jul 2022 07:07:11 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id d2so21893646ejy.1; Tue, 05 Jul 2022 07:07:11 -0700 (PDT) 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=5OS8iU7ckkLSHaqIlbeZBVviyMeZBZWBd3YMMJ6ry8s=; b=ITXSjr6Hx9JXRQKMyllhYYZzuJ1REHHD90EP3obKhtLGFRZNWMWQqZnLw2JnLRQT4A /QHKlHBp1arBKI+k172O52LKDqCh0oUesKoY2gcpTkRjPbn9hUUL6wEkhkpwrNU+lrFO G4erj7vXKZ7rb755akVNGI29habKFdPXpESfvubP7iEchUUE2JmiNzZ7X9ADxMsLd9Dq Ts2CPmITFPNmnFz+8ogLP1dpUYJND72e0jx9gSYWGwD3k5fG/H0DeUKtpMfcMzS4lR0E I1DdLgeBcjGs7KYNRI53e1U6EwA8e+YfFp8geR2/zn3pR8jgny22nyMKBhlSatYCjNv5 KEaQ== 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=5OS8iU7ckkLSHaqIlbeZBVviyMeZBZWBd3YMMJ6ry8s=; b=LW9vZXj878s7ZKUGADc/f5cM02qKOnjZ2hcn4hRfV430oAioZmbaiJvLkjZQxlNmL1 8/84NgyUUSxzfAfduPum/v6ayqA4CGqwpfOaWEjCTSKfISmDWr2VRLx7SiUk9Mv6o607 nLIMgiKy0MWk2W3eQd1PB76lsol18KIiDGWafuGRcDJm+6u+510nTeoa/ip6gvkTrGvR SXOFc7QXXzxbWBnRhOE+xb1aidUGJVewFBju06Ev/ZYNRDYEId1Qz1quP1QqizC05uIs XqDx+f7zsFpTyosS0rvQRngzznvzXAnk0r8qHEPdKeeGwzhXI6VnlVGVVIh38/8dPCnx neLg== X-Gm-Message-State: AJIora+TDNOgHAhsZGet14FAjw47aFayL/CTjELeLVBfRQpsUKvRtmxN E6/5Iw6Vqah2gUYukcUyRR8= X-Google-Smtp-Source: AGRyM1uzISHMsdteQlV7VGJjOxdRKXpM0QKKYgz7fqjdlytM0Og1nfnajqac+KlDbo0HDg/rrQyM9A== X-Received: by 2002:a17:907:6d92:b0:726:cbdd:465e with SMTP id sb18-20020a1709076d9200b00726cbdd465emr35238204ejc.155.1657029994799; Tue, 05 Jul 2022 07:06:34 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id ku5-20020a170907788500b0072aee605e0esm399709ejc.60.2022.07.05.07.06.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 07:06:34 -0700 (PDT) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi , Jonathan McDowell Subject: [PATCH 06/13] ARM: dts: qcom: enable usb phy by default for ipq8064 Date: Tue, 5 Jul 2022 15:39:10 +0200 Message-Id: <20220705133917.8405-7-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220705133917.8405-1-ansuelsmth@gmail.com> References: <20220705133917.8405-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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: Christian Marangi Tested-by: Jonathan McDowell Reviewed-by: Krzysztof Kozlowski --- 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 b2faa4a067e9..9c32c637ea46 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -1177,8 +1177,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 { @@ -1187,8 +1185,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 Jul 5 13:39:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 587473 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 12489C433EF for ; Tue, 5 Jul 2022 14:13:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233367AbiGEONU (ORCPT ); Tue, 5 Jul 2022 10:13:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233703AbiGEOMy (ORCPT ); Tue, 5 Jul 2022 10:12:54 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 658F262D4; Tue, 5 Jul 2022 07:07:13 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id fi2so21822083ejb.9; Tue, 05 Jul 2022 07:07:13 -0700 (PDT) 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=5pW+LGdGa+yB3l9T441GO4AwfhNQkGODHFHNmvhWdCw=; b=GUD5kprOgvBu+70ifTcthe9/sGCv1EyOjHGHaJoOyLB92Jmu3d5Plf9g1tvDxBUoB4 UfU1wqe8idKTEpEMExXnq1KavRSD6UJG+0SmFgPhbzh3p7jduUSZDxgPtKKbWNV8EXd6 PxzrdldpNmMsaThH17YCFWyGjDc7n3n9IYHGGyAYGERL7gflZc5Qt1u7QXYXvSLI+8Hn 0h8eUko3xR0qaUR5H7D+2F6ulTL80/XKrzQZha3oskIdfdaWxq6/r5DX115MQjnOIu+T xzxAij57+8zj554oSxqtVOztH3OjpDK/xUztXgZaGaRxJZkslhRDt5Kow5+T0i/SZyFw w7vg== 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=5pW+LGdGa+yB3l9T441GO4AwfhNQkGODHFHNmvhWdCw=; b=fynSVSymRSqbabPCnleQ+WWm2Sum8nut6SVXlynVPSVJxoK4OzLGBJ/w37/9YUqH+O Xkr0IqW5h/m/AB6qI2lP6GP8/gqumFW2elcrWLcqofWTDAhT6+LeMN1ZxT9oclWdNB5x JOXTaYdZfWvVkZXo6rxPqk+4O8suiJIZzHLBOwxLwMgahgeOLG3IHC/5NltQbccB7pT0 3rzRhRv6xS93mgE+ylKasUzTFvGTWph6Gwpn0hFzIa781avXzyS0RNVPo6U6bdA0QzaE tSvHy0alyZljoWhnlhAwYkpoXaZWcNUjoBBzRzfY6HySoOFqcdWLRC51P7ZbWX1gz9DB YvlA== X-Gm-Message-State: AJIora9eTshpzDEEz01LGdzWdytnB0kT6n1UK0GK3zLx/rGgeEvBdHYl k8n61j8MW4WvJbY1Zw+GSJxCFHTuKBw= X-Google-Smtp-Source: AGRyM1vqq2PL3EbJksOAZryk7Y0FMKL7AXkrFYo9BXh/a1QCqer1yjviwO824JWR2rtbwkgh0Zx+cg== X-Received: by 2002:a17:906:3f02:b0:718:bdf7:790d with SMTP id c2-20020a1709063f0200b00718bdf7790dmr35335560ejj.479.1657029995894; Tue, 05 Jul 2022 07:06:35 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id ku5-20020a170907788500b0072aee605e0esm399709ejc.60.2022.07.05.07.06.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 07:06:35 -0700 (PDT) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi , Jonathan McDowell Subject: [PATCH 07/13] ARM: dts: qcom: reduce pci IO size to 64K for ipq8064 Date: Tue, 5 Jul 2022 15:39:11 +0200 Message-Id: <20220705133917.8405-8-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220705133917.8405-1-ansuelsmth@gmail.com> References: <20220705133917.8405-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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: Christian Marangi Tested-by: Jonathan McDowell --- 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 9c32c637ea46..e13f6ae92e05 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -920,7 +920,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 = ; @@ -971,7 +971,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 = ; @@ -1022,7 +1022,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 Jul 5 13:39:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 587472 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 3C0FCCCA483 for ; Tue, 5 Jul 2022 14:13:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233409AbiGEON0 (ORCPT ); Tue, 5 Jul 2022 10:13:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233746AbiGEOMz (ORCPT ); Tue, 5 Jul 2022 10:12:55 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0CD2F8; Tue, 5 Jul 2022 07:07:14 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id lw20so21864179ejb.4; Tue, 05 Jul 2022 07:07:14 -0700 (PDT) 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=6L8UfFjo10Ytj/Vnf3NYMNU4nswAMDcGGzfbLleINo4=; b=dVcIeVTR2JUcsz0ANwKoL7CTHQocQNkIkUN0Imi8/XAArzODsyI/HYKEW/TFWEQEmj lVlZLEKpb/JSvNo4ik3Vt/xIHn83QKQiIEDITjxZ49V5/vnSErKFpvwun4T7otGV0qT6 7ov8ZdArIn0INofy+CoWBU9g0/9rUM43r0l7Q6keaDAJ5KsWXvqagO1V3VoYGHDQAItO 36MtK7O8kQoJHXMffIUvWhMkQYN8327fMFmHH5/gW7v8czJAf0QgkSHqoqZq9TCgc/hf Hasvwbi/nNHn9VP/p3CrZy8SRA8bIfGhGFDj+WfXw7JxIjkjc9frX+bqzcO3lDcthmGY Lg+w== 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=6L8UfFjo10Ytj/Vnf3NYMNU4nswAMDcGGzfbLleINo4=; b=ZG62z9Gdgt/Y/EXynlttzopvyQKJYc0z7RwClR6i8DbYJrq3te15aThtkdMvlYsKlA bkI4Svsjfm6zbT103wmRCrBG1hHqWPeKfmAxxOPGzTf865Z9Nov7AAoiuR0MnWd8FHEl ss8VANaSHDIQIlp5/Xl3yHxbZXweeg7CmdwCE/XUI9XMEKauGvNWozDRn8VyraP7w+td vvpx7tCf1Sb3VfIgjVdjTM28ON5U8c8AOubMhZaAl8I8OYu+mnpIG55vj790Q4CjC7Mq MGmNSI747Mxuv+15Gq5itjxcvIMF0+VFFt9rLtwSMYCH4D9YP7789AHxgFMwoYVhK0rB Cvyg== X-Gm-Message-State: AJIora+kch2iNmKzKwxnmJ4OsbIQHWcM1BVd+CeVm0v1YYEK1dludtYB BZe+ENb+1qgioKlbQymtOt56FuIm1H4= X-Google-Smtp-Source: AGRyM1uMalPW+lwEU2G98wsYFw0/UoTRS6FpUTta8Z5JyPRwgd8MRIrdhTi14h+QX1xRjNahhSu9Ng== X-Received: by 2002:a17:907:a079:b0:72a:b46b:529a with SMTP id ia25-20020a170907a07900b0072ab46b529amr15883098ejc.313.1657029996992; Tue, 05 Jul 2022 07:06:36 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id ku5-20020a170907788500b0072aee605e0esm399709ejc.60.2022.07.05.07.06.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 07:06:36 -0700 (PDT) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi , Jonathan McDowell Subject: [PATCH 08/13] ARM: dts: qcom: fix dtc warning for missing #address-cells for ipq8064 Date: Tue, 5 Jul 2022 15:39:12 +0200 Message-Id: <20220705133917.8405-9-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220705133917.8405-1-ansuelsmth@gmail.com> References: <20220705133917.8405-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix dtc warning for missing #address-cells for ipq8064. Signed-off-by: Christian Marangi Tested-by: Jonathan McDowell --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index e13f6ae92e05..b5aede3d7ccf 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -352,6 +352,7 @@ qcom_pinmux: pinmux@800000 { gpio-ranges = <&qcom_pinmux 0 0 69>; #gpio-cells = <2>; interrupt-controller; + #address-cells = <0>; #interrupt-cells = <2>; interrupts = ; @@ -473,6 +474,7 @@ mux { intc: interrupt-controller@2000000 { compatible = "qcom,msm-qgic2"; interrupt-controller; + #address-cells = <0>; #interrupt-cells = <3>; reg = <0x02000000 0x1000>, <0x02002000 0x1000>; From patchwork Tue Jul 5 13:39:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 587823 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 B0AA1C43334 for ; Tue, 5 Jul 2022 14:13:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233396AbiGEONX (ORCPT ); Tue, 5 Jul 2022 10:13:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233737AbiGEOMz (ORCPT ); Tue, 5 Jul 2022 10:12:55 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44E952B5; Tue, 5 Jul 2022 07:07:17 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id ay16so21853685ejb.6; Tue, 05 Jul 2022 07:07:17 -0700 (PDT) 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=A1dzDVO7k14VN/LYcA75166IOI46MQb45gCsMGBsNGE=; b=OMT/O1LSzr85LlbnPmDY3YiZH3VDRtT/qq8L4O9p01DlF4/ADyW2mt5NDn3SnQM2db MX90HP6qxS9NCKeBSUSxYiXrrml/6EFGRjaAdelTKZdCHDrwWNVtmiX75jlJ5cHMlAPP df2t9JHECIcPRAD7cgUm8PbtZZVt6go0GZ8lPVutQjZoFeFa1CaU6JGjKzWmxrVAlJkt oirfMq0G4JM6PNaFMwopZKyHmNHQrgPJqfa/LGJriDhfwxHgt20KIOcbev5+yVQrFNoG y3bBVineqbPL6SaR9+COW/7OxY1QTG62MLa/heKQKslSDjYaVyBRzi2v33m9xw5mRTLD fjng== 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=A1dzDVO7k14VN/LYcA75166IOI46MQb45gCsMGBsNGE=; b=FqvZESfIIDRA+pUFzrFPN6SeRVjyW0GwedtD0MAnKcz3bHBTyuvOtdRA/PZ/rViaJp +eboX9JDDr0QSVrYd4C3akP9oryrAX4bYhxwuEu41VvoUAQFY/vwANsfK22b6wH4AJVe eeIawkBWmUDRMEaEY6D1HF0NR6WjgOAa64j1q79NvPPBJLskM18cHshJHyHvyxDExFvI m6uN5VVP2c2cGRAcoLrZW7pEUcnypLDdg2F3cBje5j/g8Lozu+KSGbW0zNkDW+qa4oLO bMMeT/sMt2BHy8H8RlY6AIk6POg6MfdKhxb8eK8FGlV/bBCjmUn8ayA5Hgxghnamr9e3 YIWA== X-Gm-Message-State: AJIora9oIfiygzUMlgLFGFQi/ZS0fPNnFvuznbY6K92zTPpIWSb3GfT/ WdnCb9FnUw3iJDWjCcFUItPZgguAGhU= X-Google-Smtp-Source: AGRyM1tZH3ruOukgfMZm1JWfDUvhMfwhk/8vCT1JWTKMOt5NeF1nHVr8FqKmZJxehOKsYSBRTRfiiQ== X-Received: by 2002:a17:907:7da7:b0:728:1c89:129e with SMTP id oz39-20020a1709077da700b007281c89129emr34989225ejc.637.1657029998046; Tue, 05 Jul 2022 07:06:38 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id ku5-20020a170907788500b0072aee605e0esm399709ejc.60.2022.07.05.07.06.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 07:06:37 -0700 (PDT) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi , Jonathan McDowell Subject: [PATCH 09/13] ARM: dts: qcom: add smem node for ipq8064 Date: Tue, 5 Jul 2022 15:39:13 +0200 Message-Id: <20220705133917.8405-10-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220705133917.8405-1-ansuelsmth@gmail.com> References: <20220705133917.8405-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add missing smem node for ipq8064. Signed-off-by: Christian Marangi Tested-by: Jonathan McDowell --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index b5aede3d7ccf..98527a7d885e 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -908,6 +908,11 @@ lcc: clock-controller@28000000 { #reset-cells = <1>; }; + sfpb_mutex_block: syscon@1200600 { + compatible = "syscon"; + reg = <0x01200600 0x100>; + }; + pcie0: pci@1b500000 { compatible = "qcom,pcie-ipq8064"; reg = <0x1b500000 0x1000 @@ -1332,4 +1337,17 @@ sdcc3: mmc@12180000 { }; }; }; + + sfpb_mutex: sfpb-mutex { + compatible = "qcom,sfpb-mutex"; + syscon = <&sfpb_mutex_block 4 4>; + + #hwlock-cells = <1>; + }; + + smem { + compatible = "qcom,smem"; + memory-region = <&smem>; + hwlocks = <&sfpb_mutex 3>; + }; }; From patchwork Tue Jul 5 13:39:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 587824 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 BD4D6CCA47B for ; Tue, 5 Jul 2022 14:13:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229925AbiGEONT (ORCPT ); Tue, 5 Jul 2022 10:13:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233727AbiGEOMz (ORCPT ); Tue, 5 Jul 2022 10:12:55 -0400 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 0853033E; Tue, 5 Jul 2022 07:07:19 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id y8so9686373eda.3; Tue, 05 Jul 2022 07:07:18 -0700 (PDT) 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=ALHV+/iLZs2nffxTGCRHNUI4guHcb4svQkIg5UgcKsU=; b=E8GtxnKvapahRH8ZdterhezeDhj8eFddVxsqIudi0MEay+93aHzm1wmC6VNTKW8uc+ pKk2vyflaLfbmDPEqVMga9C99UFaeFGxumtQgKgy9nO04UOnf6UUmmvS3WHKmBem3QIK 63OQoJgPtA4Z5p6Fdmr6/rg12o8UYDhXWrM/g/N6zBmobd+DKiH5npSTqJKM4WUy21yc nusZ0+U7dOchyoPi7tKc8STaQtFkYu/yhYbBQLxD3oSCap1qKH6ikyj/U6rEq7P7QpHJ 2oji9+7g+iUm9md3t90uPAUMq6762E5fi3fxCdta//pDEHXIkLZHVbTIhcWqO1zVqHcT VloA== 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=ALHV+/iLZs2nffxTGCRHNUI4guHcb4svQkIg5UgcKsU=; b=whEhBSCYxIux5dl4EYoKnNjxavlXP0niStNdB4CbkEkFXsU2ocM1qges9US4x6NE5L 7uvYqnp3glvSnkyYfLe2jS8bp4OnoM5drdxrcWKmzIblVLPUwxhq2EPJCw4VyMv91yIm ojaANMUBtjxIvylEODSoePlxED5F6LkcxPpHBQSe79jbqiS4xP/YWOWg372F+CxgsAef m2Js4JgxTd6qBG+Y9fgrmxm49lhKp+FRFsH7qQ9AQnePNXsKQ27lIXNrnR9CWaEipiUE KysNavmsLNj/kb7SVyigt6PtLF0L4h4wFifHDcGH/VXhO4d7cp8ELgN1iH1Y28A+l8ql fTSQ== X-Gm-Message-State: AJIora+VUOK2RQVqF+ygYwSjTlXx9+idBTRIoZXzt9W/DpXLfQOQcOmu /MLlTAFqf20rwXYlJAH6XZk= X-Google-Smtp-Source: AGRyM1twU8jHFfh4rNoYRNv0V9m04ao+wqd/FGotl5G6g3iluwWfoRQVCmH6fQB7QqA2MrNZn65lzA== X-Received: by 2002:a50:fc9a:0:b0:43a:5475:8916 with SMTP id f26-20020a50fc9a000000b0043a54758916mr14768594edq.155.1657029999391; Tue, 05 Jul 2022 07:06:39 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id ku5-20020a170907788500b0072aee605e0esm399709ejc.60.2022.07.05.07.06.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 07:06:38 -0700 (PDT) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi , Jonathan McDowell Subject: [PATCH 10/13] ARM: dts: qcom: add sic non secure node for ipq8064 Date: Tue, 5 Jul 2022 15:39:14 +0200 Message-Id: <20220705133917.8405-11-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220705133917.8405-1-ansuelsmth@gmail.com> References: <20220705133917.8405-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add missing sic non secure node for ipq8064. Signed-off-by: Christian Marangi Tested-by: Jonathan McDowell --- 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 98527a7d885e..ef8faee6dfd4 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -543,6 +543,11 @@ saw1: regulator@2099000 { 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 Jul 5 13:39:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 587822 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 615AECCA47F for ; Tue, 5 Jul 2022 14:13:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233403AbiGEONZ (ORCPT ); Tue, 5 Jul 2022 10:13:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233736AbiGEOMz (ORCPT ); Tue, 5 Jul 2022 10:12:55 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DAF7B62; Tue, 5 Jul 2022 07:07:24 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id q6so21772238eji.13; Tue, 05 Jul 2022 07:07:24 -0700 (PDT) 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=zXxdTzLtVzA6nQfdAGvX6tJEz3Yjxo/s4geT8TfRcGo=; b=SZfVB+1zzI1T+iXrP4WmNZWTmn75otUK6q11/R9OnEwPjnfUnFcMF+yr7GaYasyDTi jsEW9WW+Edgz9RkipF2ox0LXxFS7aOuTNQY3aai0IbdmPRMg2ueqQWF8seGz6EMZozzw GgV2+6BhTpMggFeBoD1wZamWj4lWldFv9YiOP9C70QjQUlqqjBUsIyfKu4uaMMwnRm13 uvxt1FP94O3/WDRFLf09wCtmYa0KjYus3raB8X51t5+cal9xO7Vd/mww4ZSXgeo4BbBg K73+TbSmctzs9MzxnSdgAzLHcPo7de+8HytkCKYK1hFNMrZ1R+6OTX9rj23AWP8UF3TZ BIGg== 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=zXxdTzLtVzA6nQfdAGvX6tJEz3Yjxo/s4geT8TfRcGo=; b=qbICOG2CfoblrH1ejX899lB+yoDip+xSuXNcjz+vjK5SseJ7LjgppATgtwZOWftaUa LhMKIy51HMeZkJVB2FCKtAbRVtuG9p2uNvfJtuOSGBgAqw3tFPbgXkueGt+QGNs0HMiM 0hltwfbRTSYqGWxlwjEOhY4HG1ikoDheE62+igFti7UZs0QWOyCO/YjMkZl5YZdsi1bO EU2HXmwcYPwRRVNK5+VmcJlLJ3AdTLChUZ5+ryc/GsZONWm1Zl46boOlMRSz1XTxcc75 ScvEg7D50otKuie++mTYDbSEsncQQzZdFSzF65UDUnHWNEYOltkbWwwdTLNYO43p8/yW gwzg== X-Gm-Message-State: AJIora+ksUKBgayj3Ib6KTYHBunfv+Dm4PAHz4L5gM3RcE0h43dp2aSA r15v8T1pj/XjroaWUE0AfTY= X-Google-Smtp-Source: AGRyM1sSOXlEUaSLfiV/NgRP5TX5QdjI6DQptupsYXmv01bFs1kUEzUsPeDYtHOseKOnIQd5kNyzvQ== X-Received: by 2002:a17:906:af12:b0:722:f9f0:cb75 with SMTP id lx18-20020a170906af1200b00722f9f0cb75mr34463221ejb.643.1657030000713; Tue, 05 Jul 2022 07:06:40 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id ku5-20020a170907788500b0072aee605e0esm399709ejc.60.2022.07.05.07.06.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 07:06:40 -0700 (PDT) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi , Jonathan McDowell Subject: [PATCH 11/13] ARM: dts: qcom: fix and add some missing gsbi node for ipq8064 Date: Tue, 5 Jul 2022 15:39:15 +0200 Message-Id: <20220705133917.8405-12-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220705133917.8405-1-ansuelsmth@gmail.com> References: <20220705133917.8405-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add some tag for gsbi to make them usable for ipq8064 SoC. Add missing gsbi7 i2c node and gsbi1 node. Signed-off-by: Christian Marangi Tested-by: Jonathan McDowell --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 50 ++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index ef8faee6dfd4..777851bed95a 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -548,6 +548,41 @@ sic_non_secure: sic-non-secure@12100000 { reg = <0x12100000 0x10000>; }; + gsbi1: gsbi@12440000 { + compatible = "qcom,gsbi-v1.0.0"; + cell-index = <1>; + reg = <0x12440000 0x100>; + clocks = <&gcc GSBI1_H_CLK>; + clock-names = "iface"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + status = "disabled"; + + syscon-tcsr = <&tcsr>; + + gsbi1_serial: serial@12450000 { + compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; + reg = <0x12450000 0x100>, + <0x12400000 0x03>; + interrupts = ; + clocks = <&gcc GSBI1_UART_CLK>, <&gcc GSBI1_H_CLK>; + clock-names = "core", "iface"; + status = "disabled"; + }; + + gsbi1_i2c: i2c@12460000 { + compatible = "qcom,i2c-qup-v1.1.1"; + reg = <0x12460000 0x1000>; + interrupts = ; + clocks = <&gcc GSBI1_QUP_CLK>, <&gcc GSBI1_H_CLK>; + clock-names = "core", "iface"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + }; + gsbi2: gsbi@12480000 { compatible = "qcom,gsbi-v1.0.0"; cell-index = <2>; @@ -571,7 +606,7 @@ gsbi2_serial: serial@12490000 { status = "disabled"; }; - i2c@124a0000 { + gsbi2_i2c: i2c@124a0000 { compatible = "qcom,i2c-qup-v1.1.1"; reg = <0x124a0000 0x1000>; interrupts = ; @@ -733,6 +768,19 @@ gsbi7_serial: serial@16640000 { clock-names = "core", "iface"; status = "disabled"; }; + + gsbi7_i2c: i2c@16680000 { + compatible = "qcom,i2c-qup-v1.1.1"; + reg = <0x16680000 0x1000>; + interrupts = ; + + clocks = <&gcc GSBI7_QUP_CLK>, <&gcc GSBI7_H_CLK>; + clock-names = "core", "iface"; + status = "disabled"; + + #address-cells = <1>; + #size-cells = <0>; + }; }; rng@1a500000 { From patchwork Tue Jul 5 13:39:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 587471 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 F1582C433EF for ; Tue, 5 Jul 2022 14:13:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233416AbiGEON1 (ORCPT ); Tue, 5 Jul 2022 10:13:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233749AbiGEOM4 (ORCPT ); Tue, 5 Jul 2022 10:12:56 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAA5DE48; Tue, 5 Jul 2022 07:07:29 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id lg18so2043138ejb.0; Tue, 05 Jul 2022 07:07:29 -0700 (PDT) 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=Z2qvagdvkgzEk1isMwjSllduix1zdSWNV4qccAdh7FU=; b=MHB5VmF3QPSByPVfjCgSZc56+o8mUHXfTuCp7kQtL/iPdihjtOvFZiYyQSIQ81RyZC FDiRmcaK6lUTZkEJvSVDyi0P0BXWRwBy4DLpMNUVakM8J4vvqC9Y58lu/6yTXZYXJlGl WxwMQTXcbgC8rztR8/4KRJn66HFBUu81BAnw9PZT1/O4yjQolLOF3fPM2vbvXAq7qxqi XGuIyFvKP92I5AE4zzq+Sn2CZ4FKgYlc1XhyVo1WBhpZGB2sWHCoaCj/mzHFphwj+mSA WtMTfzwMCuG3xh7wyZqj3GT+75gIrUXwMHQ4lBNAzeMQeH11fCueDQOny8IS5hDdVa1P X7/w== 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=Z2qvagdvkgzEk1isMwjSllduix1zdSWNV4qccAdh7FU=; b=ss+6ZW0jdnQ6Hfs27kcPWr22xJBH2Baqc8lWvi1YxfT6x1NP+otdOVTLLwIeAz/6RK NLY1PBepgvsVhjU3rDfdksCB14TVejRkoCWXob4L4SIDQWzEBwECRf2MfCqW0mK8azaE DsSw1xyQeX8MmWwUSAZVMjzCCO2q2LrpCNSSMTK6r3C5NIMP/g7F5wX4eQkdjSbWqf92 AACxv4a1dB+FaIUPI8+vB1/qA7/qyOBLmhghpBQxefH1hKhY+4WV+xYlC1IkYwuyaEp4 Qu+v39HlYwiec2BXTUvLm3BYqPWWti02eRXSpHsWwBoOR4klj4q62GTLYsauyfLhi5pm 3mEA== X-Gm-Message-State: AJIora8Kh+/dngi23OqG/BaaVB1tI/jwSFKb6or/q1eySgQKqeVfP2sT 4uaQ7oBus5YUlakVtIoSDqA= X-Google-Smtp-Source: AGRyM1uVnZt77Nz5XJHxfF/ncLPsn3z75y9uk+m/MH3SSnPAYLwmUFcI4OfzGa1ar5cQfNwXZohRGw== X-Received: by 2002:a17:906:6545:b0:722:7c99:1ad7 with SMTP id u5-20020a170906654500b007227c991ad7mr33843952ejn.325.1657030001845; Tue, 05 Jul 2022 07:06:41 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id ku5-20020a170907788500b0072aee605e0esm399709ejc.60.2022.07.05.07.06.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 07:06:41 -0700 (PDT) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi , Jonathan McDowell Subject: [PATCH 12/13] ARM: dts: qcom: add speedbin efuse nvmem binding Date: Tue, 5 Jul 2022 15:39:16 +0200 Message-Id: <20220705133917.8405-13-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220705133917.8405-1-ansuelsmth@gmail.com> References: <20220705133917.8405-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add speedbin efuse nvmem binding needed for the opp table for the CPU freqs. Signed-off-by: Christian Marangi Tested-by: Jonathan McDowell --- 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 777851bed95a..45e713387deb 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -862,6 +862,9 @@ tsens_calib: calib@400 { tsens_calib_backup: calib_backup@410 { reg = <0x410 0xb>; }; + speedbin_efuse: speedbin@c0 { + reg = <0xc0 0x4>; + }; }; gcc: clock-controller@900000 { From patchwork Tue Jul 5 13:39:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 587821 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 76047C433EF for ; Tue, 5 Jul 2022 14:13:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233528AbiGEONt (ORCPT ); Tue, 5 Jul 2022 10:13:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231937AbiGEOM6 (ORCPT ); Tue, 5 Jul 2022 10:12:58 -0400 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 E74752642; Tue, 5 Jul 2022 07:07:32 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id k30so7306263edk.8; Tue, 05 Jul 2022 07:07:32 -0700 (PDT) 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=0YFb5A6KdjvJhiop1gIwQqe0ydIC7Ymlf3Zqrt9/HXA=; b=SU+LiU3NRZL+0sL2EGyf10/HJgsg5tvOe6O6SDA8Xo1ffDE8wBYTQAINXTnFNB0pYc h/kUsE2obU4zwwQEv5H65vyvaGqxvGFkU5UGhqWPFTlbWC37/f6uXOHLq/rYDXHT3Pmi f/bbJJNEiihVgi6NwvTe/BCfU9d1PFtpe701QZcnSBN84B0dfzdJGLnHuQjcFuQ1NXm6 EiVSqPkXvkdGjxyi6DSsQCmFcXyMla38+u/Xh2ku5+sxZBZ+bekgvnF10ar5zZjjFGRR dPXdgWaa/ca4SxrB4ovBI0jQjla1CiA3w3Uby5X+K3GQlKN+EMWu0dlfMmxKMgMedsut ey2g== 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=0YFb5A6KdjvJhiop1gIwQqe0ydIC7Ymlf3Zqrt9/HXA=; b=ZVhYtX7UFUJw7PRfOL6P47LRmSbt+Ib2JndO9d++c2Pb+rx28dfl+WjEngkFnWuUim 8mOJRvyJ6MzAaLT4PX8C8l7+oXK0aT6VGQmVffJ7qNfzk8/P6Gt/s6Cj8yZjbGKFSWj5 jabuoQmhSTr32BRHBx/nDF8JNRoYeYGM9N8hlI00R5P0j7F8Jk+9YcOHQgkKDDXG6nVB HhepK/c7EKG+taLhAUXepso40bfCUHp2iGqmBDxfjr+MOIGZ6tb3aEUJD4EqoUzdF4KO o543tW+tri77fTbZVa1wU/Kxem0CJkgWOfH3qIMTR0rilu+ueVUpGBjvF7Oh3EzqQHOh GRQQ== X-Gm-Message-State: AJIora/yxgbMjKaZ4Oub1C+fRUcAck3c5bwN0JdNjn5UIEMYEwMIhX7L lcdSk0Qj0DnRK1snhs8Azmk= X-Google-Smtp-Source: AGRyM1tKmoWAWYt2kVH86I6/AKkp2X5hLoH+8fnhNUHsZ//MS7/G80GvkrJ1cxs2LmL1xDwu9fA7+A== X-Received: by 2002:a05:6402:2708:b0:435:da6f:3272 with SMTP id y8-20020a056402270800b00435da6f3272mr45458429edd.160.1657030003230; Tue, 05 Jul 2022 07:06:43 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id ku5-20020a170907788500b0072aee605e0esm399709ejc.60.2022.07.05.07.06.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 07:06:42 -0700 (PDT) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi , Jonathan McDowell Subject: [PATCH 13/13] ARM: dts: qcom: remove redundant binding from ipq8064 rb3011 dts Date: Tue, 5 Jul 2022 15:39:17 +0200 Message-Id: <20220705133917.8405-14-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220705133917.8405-1-ansuelsmth@gmail.com> References: <20220705133917.8405-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Mdio0_pins are now declared in ipq8064 dtsi. Usb phy are enabled by default. Signed-off-by: Christian Marangi Tested-by: Jonathan McDowell --- arch/arm/boot/dts/qcom-ipq8064-rb3011.dts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts b/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts index f651e813d75a..58893cd2bb5d 100644 --- a/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts +++ b/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts @@ -261,10 +261,6 @@ &gsbi7_serial { status = "okay"; }; -&hs_phy_1 { - status = "okay"; -}; - &nand { status = "okay"; @@ -311,15 +307,6 @@ mux { }; }; - mdio0_pins: mdio0_pins { - mux { - pins = "gpio0", "gpio1"; - function = "gpio"; - drive-strength = <8>; - bias-disable; - }; - }; - mdio1_pins: mdio1_pins { mux { pins = "gpio10", "gpio11"; @@ -360,10 +347,6 @@ mux { }; }; -&ss_phy_1 { - status = "okay"; -}; - &usb3_1 { pinctrl-0 = <&usb1_pwr_en_pins>; pinctrl-names = "default";