From patchwork Thu Jul 7 01:09: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: 12908968 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 34D8DCCA47C for ; Thu, 7 Jul 2022 01:10:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231896AbiGGBKI (ORCPT ); Wed, 6 Jul 2022 21:10:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231599AbiGGBKH (ORCPT ); Wed, 6 Jul 2022 21:10:07 -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 2C8AA2D1DC; Wed, 6 Jul 2022 18:10:06 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id r21so1056198eju.0; Wed, 06 Jul 2022 18:10: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=zpXoMxo0aQKIkiKPZdmGA4JTiZjUpQr6v1L8PEccH18=; b=HRTWX4j7HkFX4uMlrzY2dzJzvkfSpZ2hSe14YKdvP1miavqePcCENEVt+YCOD90oqV d3T2A4C8gZzXvb/7OqaBitojU3D+uN3a55CPc39U2plt8SfFe+FM+BbMNc6DzyPcHRZv e0SOJe7TdJMOLtCM+Ia4t8GbWlh4g2hE/KkpgpaWC5DXrUUz6mzJhsSTnL0ZlOGfv6NY 1+oa/CK1ynWthaIipP1wokCE6Imgx2Ia6cDKjXaA5Yk62UOYfetuNNbubeHOnNOp4xiB 3T9XdekweVTOW9JEZxW0R1Idqzujuj+VSQg3NMS8d4f/UmCIKNoUNvtc64yCvGKzMMok RtQg== 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=zpXoMxo0aQKIkiKPZdmGA4JTiZjUpQr6v1L8PEccH18=; b=T1An1exRT/0dx7PT0k4QhAwZIKr8Du5Y+ZGRLJzdEvKZi1uthrkbEJFNrjWQEutVct M2y4jJkL1q7QOPc6Nt6tPPYKe6ShXiPwJh4OgH1YiJg8YiAw6OFtLyl7q41qfHsIyI64 R4drb8BW6Er8FN42HlrjmuQCIiGJGdbUWbWF9MxH6du5GlgtYME1A397myUJbTMIykOp jmAlTJAJI4OJ+siQ3Vvg5DuE5Tp2O/cSqVuydh6Kwrb72Sr9WG+oe31DOT/YOF/Y6NzV 1bhAXF+ObPmNcnNYElp2xsLBBUo44wYetLnnXnRdnttXbm0SLDAS3f8x2N60scR4Uo4n jpTA== X-Gm-Message-State: AJIora8MyEtVJyrZJDvRWU9C0xBaa5xIvHX3IEvaoCsOjgYkUxK8RyFK NYMmQI8rWlACuY65kcJAF1iZj35lPLE= X-Google-Smtp-Source: AGRyM1t9R4P4RR1EyyBS1sA+dL+RrIu7VFwViovZPip1seLvD5AZhI/SB/nk8AJ2gBNjn1pLIlC0wQ== X-Received: by 2002:a17:907:3e84:b0:6fe:8c5f:d552 with SMTP id hs4-20020a1709073e8400b006fe8c5fd552mr42214687ejc.710.1657156204617; Wed, 06 Jul 2022 18:10:04 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id u17-20020a056402111100b0043a6e807febsm6915464edv.46.2022.07.06.18.10.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 18:10:04 -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 v2 1/8] ARM: dts: qcom: add multiple missing pin definition for ipq8064 Date: Thu, 7 Jul 2022 03:09:35 +0200 Message-Id: <20220707010943.20857-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220707010943.20857-1-ansuelsmth@gmail.com> References: <20220707010943.20857-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. Drop i2c4_pins node from ipq8064-ap148 dts as it's now moved to ipq8064 dtsi. Drop mdio0_pins node from ipq8064-rb3011 dts as it's now moved to ipq8064 dtsi. Signed-off-by: Christian Marangi Tested-by: Jonathan McDowell --- arch/arm/boot/dts/qcom-ipq8064-ap148.dts | 6 ----- arch/arm/boot/dts/qcom-ipq8064-rb3011.dts | 9 ------- arch/arm/boot/dts/qcom-ipq8064.dtsi | 32 +++++++++++++++++++++++ 3 files changed, 32 insertions(+), 15 deletions(-) diff --git a/arch/arm/boot/dts/qcom-ipq8064-ap148.dts b/arch/arm/boot/dts/qcom-ipq8064-ap148.dts index b63d01d10189..a654d3c22c4f 100644 --- a/arch/arm/boot/dts/qcom-ipq8064-ap148.dts +++ b/arch/arm/boot/dts/qcom-ipq8064-ap148.dts @@ -7,12 +7,6 @@ / { soc { pinmux@800000 { - i2c4_pins: i2c4_pinmux { - pins = "gpio12", "gpio13"; - function = "gsbi4"; - bias-disable; - }; - buttons_pins: buttons_pins { mux { pins = "gpio54", "gpio65"; diff --git a/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts b/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts index 9034f00f2bd8..5a65cce2500c 100644 --- a/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts +++ b/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts @@ -307,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"; diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index 4b475d98343c..bc9987c841d0 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -382,6 +382,13 @@ mux { }; }; + i2c4_pins: i2c4-default { + pins = "gpio12", "gpio13"; + function = "gsbi4"; + drive-strength = <12>; + bias-disable; + }; + spi_pins: spi_pins { mux { pins = "gpio18", "gpio19", "gpio21"; @@ -424,6 +431,8 @@ mux { pullups { pins = "gpio39"; + function = "nand"; + drive-strength = <10>; bias-pull-up; }; @@ -431,9 +440,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 Thu Jul 7 01:09: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: 12908969 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 3B81FC43334 for ; Thu, 7 Jul 2022 01:10:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234056AbiGGBKJ (ORCPT ); Wed, 6 Jul 2022 21:10:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229869AbiGGBKI (ORCPT ); Wed, 6 Jul 2022 21:10:08 -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 3D3422D1DA; Wed, 6 Jul 2022 18:10:07 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id r21so1056243eju.0; Wed, 06 Jul 2022 18:10:07 -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=cVUxHoUX8S49LOf9UWwf0cng+gray0TrmHyVxYmOxlI=; b=H5Z5lKHYQ/ZOetroL0v1+dOEqnm7pS6bJu0pLT4lW0LJLKNcoUio/R4u3r3YuzgEw2 NVrHtGSZemNrfhR9rNr2zkghtu1c413krofOSO8JsMaxEcYTPgO5hzQe0xi5svYg7hJX jpWwN7HEXXESZJGfarmQNtWKUQsFnrkfcMHETkymbZUSeTgf7ZWRWWEXGGRafoSFcyUR 9uDrlAvNqNd3V1PdtvfsXSD9tWtOzlpomEygEAkfIFGM/p+lIYzD+UFnbhzQcWVyJBek ZKVYpgJHeQenXzTIknvDQ+WeHMCWl2xooXQb4GDcwyAWy/TGlo1dir6k38uynZHOj979 h5SA== 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=cVUxHoUX8S49LOf9UWwf0cng+gray0TrmHyVxYmOxlI=; b=jQf3NURmRBVzeZS2m5V4/hk3q0qfTDimYn1nr9sMXq+u3bxK9NcqkShQFzwq7TJ7hL ggb+a4yoi7wUlkD3d/+4RdR5/Xdw8okRLfTunmVKls+bcxPcsrHd9e0iwPaAIpZw0w2L stjVVabpzsDGzuMMkvO8oRkGRAdiesG9CjSrpx+XNV1anaGPG1mjfqQgVUc5tYJip+CR 33aeU26R/hir/xmJ7oc35C1rmCFiJmWaNRUBRcF973geFlt1bY8iKRSoTiL/5K7UeNPZ 2cuetVNVSxytKIcx9CkvRH6Dp59rN7ST2+ViBpRcuqVz2N1jIXep0G6uX22r8fIj0fAv BPAg== X-Gm-Message-State: AJIora8HGGI5NoT/6UHi5p0YjsQJTGMimxQA6CDAwPyttPRbTFtVX7X1 k/LqdpcvrHayhYk5qo6mF2Y= X-Google-Smtp-Source: AGRyM1vIVA0PE6FEJfr9ycB88tNJCB0tDlMJbE/OdArU4vcfDSCCyb4Rx2OyCLKSHrG7sgVV8+C3QQ== X-Received: by 2002:a17:906:7ac2:b0:726:38e0:4e7d with SMTP id k2-20020a1709067ac200b0072638e04e7dmr43503363ejo.236.1657156205761; Wed, 06 Jul 2022 18:10:05 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id u17-20020a056402111100b0043a6e807febsm6915464edv.46.2022.07.06.18.10.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 18:10:05 -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 v2 2/8] ARM: dts: qcom: add gsbi6 missing definition for ipq8064 Date: Thu, 7 Jul 2022 03:09:36 +0200 Message-Id: <20220707010943.20857-3-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220707010943.20857-1-ansuelsmth@gmail.com> References: <20220707010943.20857-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 | 43 +++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index bc9987c841d0..7cccfe99bf00 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -663,6 +663,49 @@ spi@1a280000 { }; }; + gsbi6: gsbi@16500000 { + compatible = "qcom,gsbi-v1.0.0"; + reg = <0x16500000 0x100>; + cell-index = <6>; + clocks = <&gcc GSBI6_H_CLK>; + clock-names = "iface"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + syscon-tcsr = <&tcsr>; + + status = "disabled"; + + 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"; + + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + + 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"; + + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + }; + gsbi7: gsbi@16600000 { status = "disabled"; compatible = "qcom,gsbi-v1.0.0"; From patchwork Thu Jul 7 01:09:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 12908971 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 9E479CCA480 for ; Thu, 7 Jul 2022 01:10:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234459AbiGGBKM (ORCPT ); Wed, 6 Jul 2022 21:10:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234150AbiGGBKJ (ORCPT ); Wed, 6 Jul 2022 21:10:09 -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 6389E2D1DC; Wed, 6 Jul 2022 18:10:08 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id d2so29904447ejy.1; Wed, 06 Jul 2022 18:10:08 -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=LtHOAiNlZopaglJkN3YZQP1ZzTvW1XNe+F16bbBv+9w=; b=DMdPnyk2HPEGpEfA7lK9rnaYMs8A5/OdCN+m1cpqJevumKvkbB8mcvooRjbN/QFrpj D8+8A++9ZJDPrPIsKLGqzxfC/dMT0yRy2isdp0YH0htSWKKILW5wuTMiUxJj14+V/wsp wL8OPLbWulNaamjwQsvKCaRcyCI5jK08I1HmswVVPzcQY8hMJ5S+ljR3HRmh2+e3/qwN Z3KXjUqCqpZW1T3OZvUjiUHPuLAJY3p6NaXoVrBB2qeYnoaCt+F7Li7pPj4GLoTx9hDd v0suJOy7RnK1AknSGXKndTsMc+oOIGZ0GEiOM+ulOYu1BRTUqpk/RT4zx3XQCOAxypav Zczw== 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=LtHOAiNlZopaglJkN3YZQP1ZzTvW1XNe+F16bbBv+9w=; b=iZlbfFHW9EEbGQNmuSN7XQPtqPtzOucVws3ejD1rY05PYeIXGlYYVeikz2LNpLWdEm STXjJ0B6ymIiP/X6COm4VJg/sOL27hdBKO1orrWBBb8UNbKQyTa+RxvvFkZdiWH8vlj1 lpoIuVdJ6XLeGqq4UpMtCx1WEt8GfeNUX5xHD2u0K65mGefxXwoi7e3xPKhzfmWqV6Et l0TQa/MAc5rxm/2ucYno4scoBXhVpq8kMsYvv2nIL/ecOi3KigrRKOzXwwCORmwTk34m Thx2IC85mNdCpb6IAe0Qema+ir4+4nI0btM379gIRQurpucqhJqFMY8cVvFwaGIGXj33 6tcQ== X-Gm-Message-State: AJIora8O15uW1k04t6PKQUw0JKgUTVxpEM1piG8I1x5YiaS2SrKzP9hm xMDb7v2clnDC6cDditoYV8w= X-Google-Smtp-Source: AGRyM1sLckaDEU8GiRvO1p2D2lOQb5keIcvvsdtCOpHtsNA6DmdSwcn4lwruXYOkKUqpaCn02nSi6A== X-Received: by 2002:a17:907:1b03:b0:6ff:78d4:c140 with SMTP id mp3-20020a1709071b0300b006ff78d4c140mr43610220ejc.554.1657156206858; Wed, 06 Jul 2022 18:10:06 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id u17-20020a056402111100b0043a6e807febsm6915464edv.46.2022.07.06.18.10.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 18:10:06 -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 v2 3/8] ARM: dts: qcom: add specific ipq8064 dtsi with smb208 rpm regulators Date: Thu, 7 Jul 2022 03:09:37 +0200 Message-Id: <20220707010943.20857-4-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220707010943.20857-1-ansuelsmth@gmail.com> References: <20220707010943.20857-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add specific ipq8064 dtsi with smb208 rpm regulators. Qcom advise to use this configuration but it's not mandatory and OEM can decide to implement their own regulators. smb208 regulators are used to scale CPU voltage, L2 cache voltage and Ubi32 cores. 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-smb208.dtsi | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq8064-smb208.dtsi diff --git a/arch/arm/boot/dts/qcom-ipq8064-smb208.dtsi b/arch/arm/boot/dts/qcom-ipq8064-smb208.dtsi new file mode 100644 index 000000000000..ac9c44f0c164 --- /dev/null +++ b/arch/arm/boot/dts/qcom-ipq8064-smb208.dtsi @@ -0,0 +1,37 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include "qcom-ipq8064.dtsi" + +&rpm { + smb208_regulators: regulators { + compatible = "qcom,rpm-smb208-regulators"; + + 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>; + }; + }; +}; From patchwork Thu Jul 7 01:09:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 12908970 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 C83F2CCA482 for ; Thu, 7 Jul 2022 01:10:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234491AbiGGBKN (ORCPT ); Wed, 6 Jul 2022 21:10:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234158AbiGGBKK (ORCPT ); Wed, 6 Jul 2022 21:10:10 -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 99CDB2D1DA; Wed, 6 Jul 2022 18:10:09 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id u12so29817208eja.8; Wed, 06 Jul 2022 18:10: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=w+jHWIY2YSdrFjsb7SITOmNywGPRwpwNzxjK0A4jYIk=; b=iITrxxZ3LPuYbfjO//m0evPxzVgZj99uSWjySaxBJlc+dVIHFa3gM7T8ePin1bYsSK oKvGTET1d7+XJs5noOSzZ5Yuaa5vU85ZdqkZ/Vyom+/wY5Ugh3Gq/0C64F1v5czSJ2O7 lRTzcwa6rr00TZwBPiQ18RBPeH8YpcLFaC1U37iazGpYZ4W/iUHuyaFmxF6px84J+2UJ 9Xq405MkuRHs0Smjg8ECOByAjn8H1u7f1T9zl5RPc5pFyTCiZCQ8JK57Hk+qjOpKtxZC TgyAAOb6LdyPrCMufQaXC7yJmMqGOWogspiGMpYEYYIMGxG0+otDFkBRXaiV78P9Csid M6Tw== 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=w+jHWIY2YSdrFjsb7SITOmNywGPRwpwNzxjK0A4jYIk=; b=gO3//+T10U8lZY2r3WZh8+yjnLBy64IIOpMHukRu5d3QeVmgrkSnzygC0Y5g3yCRsc tT5B5mI03olRsX931n2U+1SyONJ1qR4nLUYE9cjaoq4nGWElherK47lKxkKGM1kNlCxh 9+qejmAIu0uTz8NqXH8MmNmYKKcA+A8jXffzEm1CKfxizApvbNZ1dEINZ4qgY8QUGOMy odHRghIlf/tNbeIckzqWG3gpj7IHYwDz+uCIAbEUWaQh6OAQ3mO6y9IrVRIVHdzxt8BC nmgYNo3yygB18ci3qBVKTNAc7uQ75rqgaP3X21cbNF2b+OsixzF1WuETWa8R1yo6hay5 0xag== X-Gm-Message-State: AJIora8Q/INfb1/Rw1B0JWLq89dfqFELOG0JHS7NFtwa3P2njj7H6T1S aKVnIGdVh5B/LpMA9RndW+k= X-Google-Smtp-Source: AGRyM1sVZQM62n8HhzmQLeVMmbIfJmqtLwQxYymCef8hUd44AoMreg85GCIjWXcQ55iET2M8jInHeQ== X-Received: by 2002:a17:907:d18:b0:726:3172:2266 with SMTP id gn24-20020a1709070d1800b0072631722266mr42268550ejc.476.1657156208111; Wed, 06 Jul 2022 18:10:08 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id u17-20020a056402111100b0043a6e807febsm6915464edv.46.2022.07.06.18.10.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 18:10:07 -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 , Krzysztof Kozlowski Subject: [PATCH v2 4/8] ARM: dts: qcom: add missing snps,dwmac compatible for gmac ipq8064 Date: Thu, 7 Jul 2022 03:09:38 +0200 Message-Id: <20220707010943.20857-5-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220707010943.20857-1-ansuelsmth@gmail.com> References: <20220707010943.20857-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 7cccfe99bf00..a80090f5509e 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -1042,7 +1042,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"; @@ -1066,7 +1066,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"; @@ -1090,7 +1090,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"; @@ -1114,7 +1114,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 Thu Jul 7 01:09: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: 12908972 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 73DE2CCA481 for ; Thu, 7 Jul 2022 01:10:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234550AbiGGBKN (ORCPT ); Wed, 6 Jul 2022 21:10:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234162AbiGGBKK (ORCPT ); Wed, 6 Jul 2022 21:10:10 -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 A5B422D1DD; Wed, 6 Jul 2022 18:10:09 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id o25so29862147ejm.3; Wed, 06 Jul 2022 18:10: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=jDidFcTb8G4/KmS2QleAlSbeK0yWVDuk5V8OHae9RS8=; b=cTX/aupUeBT+1j3eSaDdpOTPluVFA82kTrBqKNR/+wKhWKOMDKOiSJ8Gjg6r6dLa+H 2WUph9cq5wsLw1xfoF/WmMss178lpgVha+jB7icPooKSEQFvisqGtS4CFjUzQtmqaTXc bhMo7vTtxJiFBUu54mjB4jLa1CroeSBFa3an4Sv1dDcP1bvbM8WKeeeGC6OGlPowKZNq hvQODXfrEJ19JzuEFjof5LoWY2+YNqY4Egm0srfeOniU+uQKjFFj+Bwso7fbOYz0Ls52 qmco6JL4ksu8jcVuaIxkwN8G4uetNN9HwVX6/aGxDFSGuUwiwC2oJ3mG3f09/VC9HBbe dEPw== 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=jDidFcTb8G4/KmS2QleAlSbeK0yWVDuk5V8OHae9RS8=; b=W82uVLJ3WK49SRSGr0/7A4HjWGzAwc4swNmqP2vwYkhWLv9F/YJD/Emr2Ie37J29KO +HoW1Yq812wN0lJc3SXTY8U7ff1IaTWMgyY5DiH+hEgejczC+kqQc8i0K8zgklKylorD IOlALDYZxYMKtQ+/U6Nm6a+Bd1E+w77for8c5Ix8lfG1bMBaOTUijT/eTMDwMSyiqqh0 T9/HWzz2NO8AaiVOipobb+IHVHYhPjoN7mKz7dghyQWZx4GTfjYGvoEx4Fway+n86qnQ sVolhwPASXJitVBIza7pXDxzVCbRWEZ1nN8mePQR5vO8EU5XnvoZEXCcpFXUd60qxyjP xziw== X-Gm-Message-State: AJIora8YR9qRHPf9LOqNt8iHZ6e8XGiwjrKnYBjEvkmdBPE8MxeBPAac ng/Gn97KK3QyVxXVqHT3TvI= X-Google-Smtp-Source: AGRyM1t12OhXDhTDdnPUoqGOvMOXFr07AtJNnmupd71kIXv7uhkz1mApBEY0SP+QrazvWnNN1RwhIQ== X-Received: by 2002:a17:906:604f:b0:718:e9e8:9d2a with SMTP id p15-20020a170906604f00b00718e9e89d2amr42017817ejj.315.1657156209155; Wed, 06 Jul 2022 18:10:09 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id u17-20020a056402111100b0043a6e807febsm6915464edv.46.2022.07.06.18.10.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 18:10:08 -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 Subject: [PATCH v2 5/8] ARM: dts: qcom: disable usb phy by default for ipq8064 Date: Thu, 7 Jul 2022 03:09:39 +0200 Message-Id: <20220707010943.20857-6-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220707010943.20857-1-ansuelsmth@gmail.com> References: <20220707010943.20857-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Disable usb phy by default. When the usb phy were pushed, half of them were flagged as disabled by mistake. Correctly disable all usb phy and enable them only if a device actually use them. Signed-off-by: Christian Marangi --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index a80090f5509e..e70167870476 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -1188,6 +1188,8 @@ hs_phy_1: phy@110f8800 { clocks = <&gcc USB30_1_UTMI_CLK>; clock-names = "ref"; #phy-cells = <0>; + + status = "disabled"; }; ss_phy_1: phy@110f8830 { @@ -1196,6 +1198,8 @@ ss_phy_1: phy@110f8830 { clocks = <&gcc USB30_1_MASTER_CLK>; clock-names = "ref"; #phy-cells = <0>; + + status = "disabled"; }; usb3_1: usb3@110f8800 { From patchwork Thu Jul 7 01:09: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: 12908973 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 D09AAC43334 for ; Thu, 7 Jul 2022 01:10:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234574AbiGGBKP (ORCPT ); Wed, 6 Jul 2022 21:10:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234473AbiGGBKM (ORCPT ); Wed, 6 Jul 2022 21:10:12 -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 F22212D1DC; Wed, 6 Jul 2022 18:10:11 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id n4so10570387ejz.10; Wed, 06 Jul 2022 18:10: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=I0G/BiU72KwKM2woTAXR6MpcLtEh9AufGx8sGvA9/7c=; b=LXDMyrsSAceV6GhJDjUvPGxBEudlH5lWRzEkoroV3EXxno84TmiHLsMDLoC5QY8rKl s9rVDtaTQwfhtHvE6Q/LwAFIxm2CZOJzLbVRdO7y20jasTqz095TQMoZGT0vRbiCaade tpxnk47uwPEMnSwTotIGeZ2vfINwu3J/PNy9gomTFbMeirQXR/+Q93D19A4dIb78FyFg CfXqky8Jom9DkiRJmAtL6WjSkNWnVw8rIojl7I5ZbRTFq6nRtMJ1UkQeWteAUQD3lkk6 0/4D1w4j99EVigz5RXAS+CjKe6nfQe7qnR1fr4ihcGV+cETkinT5FHIi90zT5eisnBLE AaTg== 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=I0G/BiU72KwKM2woTAXR6MpcLtEh9AufGx8sGvA9/7c=; b=Tjd7vU+T9+eXdfdzdPZT3UKHRHmcSNCrDzLNfyloSZhFs+263jQNEYG7GeT5XLIj6W gpDBoRiIZ+zR1ckPHd7LS7uPe/abTCkZregWY1RQBzhFM2nU0DgVAMIxfzc4nAwlIGog FMj5x55/W/Cro7Krx5w3DOWfIY0XX/RMnwzpwvAO4tX0o30J56Jw6OzSkSaHfuOA4WwN 86nMoLWW8sb6qXn3VCA32yDYOhcNfnbpWlD48mB28LwAUmZ4QjZPT+dMs9MA5gf9jP52 Jb+3BCJfNkHrhpbzpHUvz2z8gprkq2oTLsxiWXpf+DXHkQRNxmrmjKVAnR3XEzJeiIua pxpg== X-Gm-Message-State: AJIora9ysNfLP8NHh/70V/gCCbAad5BjKtgLSkURHPyJzKubbHqbxqjw j6IygzaWwFY9l6ei4qk1x5o= X-Google-Smtp-Source: AGRyM1tGnt8SFYij3k+Jnu5pkWJaF/nmkrZIP6b6IHnj3/ruCBe5CfFBvZ4zF3iZlT1EWPXE/l61SQ== X-Received: by 2002:a17:907:2814:b0:72a:3758:e948 with SMTP id eb20-20020a170907281400b0072a3758e948mr475058ejc.8.1657156210445; Wed, 06 Jul 2022 18:10:10 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id u17-20020a056402111100b0043a6e807febsm6915464edv.46.2022.07.06.18.10.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 18:10:09 -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 v2 6/8] ARM: dts: qcom: reduce pci IO size to 64K for ipq8064 Date: Thu, 7 Jul 2022 03:09:40 +0200 Message-Id: <20220707010943.20857-7-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220707010943.20857-1-ansuelsmth@gmail.com> References: <20220707010943.20857-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 e70167870476..8d2f7c8bf6ac 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -885,7 +885,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 = ; @@ -936,7 +936,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 = ; @@ -987,7 +987,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 Thu Jul 7 01:09:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 12908974 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 4BA7DCCA482 for ; Thu, 7 Jul 2022 01:10:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234606AbiGGBKP (ORCPT ); Wed, 6 Jul 2022 21:10:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234489AbiGGBKN (ORCPT ); Wed, 6 Jul 2022 21:10:13 -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 236702E683; Wed, 6 Jul 2022 18:10:12 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id o25so29862250ejm.3; Wed, 06 Jul 2022 18:10:12 -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=d740HDHVkVSMWNQkMas7UaJOTPQjPYncz2ZhstpS/S4=; b=qoRsjSMaBvY3qb2Uq0ydXg39J/+17zCQTU/2MELLEbWnPvku2pVOrSbupQJOi88xAV nzx1Uqv5p6URNan9VCwts7O/FfVrmqnyMbZIIBzRTALQ7jDJ2siAc+NKAp5nqFmBH6u6 ZnU9QSdEKrpE9Q+wXiC5wUN/JigmXlEGbLYKm3nPi6xwGKgkdC/IGl0QBJ93y3Zrj7A/ 0yLfqjJ4bzNBfAwHdPgsFLj+g0dJMwsgjHN/zC6aN4imkmrzNPAChOOc1wasByHSvusM bnANBeyKGbB/jn7e93r1ZTjK7jEehj5FwcINgxKsg8jE3fzjCvCUqsGRIoo1lMA4+M86 di4Q== 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=d740HDHVkVSMWNQkMas7UaJOTPQjPYncz2ZhstpS/S4=; b=b9wbza9HUlF96t7OycmNstn40xI1JWOSF9oP+g7EG4R/aMxrjXtmlSq4Z41wgNkzZ8 6pxtM0i/WRTMD1Z9T30UFL5vQWV2wjAXLjW+//f+GrOK2EZ7iVFXBYDhTycfGJJGLuAA 3C40TYOLdxTiiEGlcCVt0zjBsiE8Xypjj8qkWtDhpKlVzl4ID1RIgZpM+TPJBajSQds+ SOUL/PqfKcclI2fnjTyAU7KEC+QPrnJDwBnWVc0HfSt5i4/ffCTwcCqSu4gilhZ9ptcq ztxtgouEzWLmm+N4fzZB8Om8MYTy8Cm38xtkca7rGQNcWLwASi1hmGeEwj3+KQ+YvXV5 kfZg== X-Gm-Message-State: AJIora91le5xvb3lZIHxXCGo2GhKNneWWnM+y7XfFQ3Ybq1JmxmbGGXM 0m+40QZiZubXvNH+0HOD3X6h49k2DnU= X-Google-Smtp-Source: AGRyM1tfPONvctUYTbbD5sdNIH1yBLRzrg4/KKPhyYGAKrFbHSCfNSbi9lqF8908E4c+XLH0cagUxg== X-Received: by 2002:a17:907:2856:b0:72a:f13e:6c6c with SMTP id el22-20020a170907285600b0072af13e6c6cmr8393808ejc.642.1657156211629; Wed, 06 Jul 2022 18:10:11 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id u17-20020a056402111100b0043a6e807febsm6915464edv.46.2022.07.06.18.10.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 18:10:11 -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 v2 7/8] ARM: dts: qcom: fix and add some missing gsbi node for ipq8064 Date: Thu, 7 Jul 2022 03:09:41 +0200 Message-Id: <20220707010943.20857-8-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220707010943.20857-1-ansuelsmth@gmail.com> References: <20220707010943.20857-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 | 54 ++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index 8d2f7c8bf6ac..69cf664851c6 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -539,6 +539,44 @@ saw1: regulator@2099000 { regulator; }; + gsbi1: gsbi@12440000 { + compatible = "qcom,gsbi-v1.0.0"; + reg = <0x12440000 0x100>; + cell-index = <1>; + clocks = <&gcc GSBI1_H_CLK>; + clock-names = "iface"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + syscon-tcsr = <&tcsr>; + + status = "disabled"; + + 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>; @@ -562,7 +600,7 @@ gsbi2_serial: serial@12490000 { status = "disabled"; }; - i2c@124a0000 { + gsbi2_i2c: i2c@124a0000 { compatible = "qcom,i2c-qup-v1.1.1"; reg = <0x124a0000 0x1000>; interrupts = ; @@ -727,6 +765,20 @@ 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"; + + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; }; rng@1a500000 { From patchwork Thu Jul 7 01:09:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 12908975 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 B8A85CCA481 for ; Thu, 7 Jul 2022 01:10:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234632AbiGGBKQ (ORCPT ); Wed, 6 Jul 2022 21:10:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234580AbiGGBKP (ORCPT ); Wed, 6 Jul 2022 21:10:15 -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 321822E688; Wed, 6 Jul 2022 18:10:14 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id g1so13654267edb.12; Wed, 06 Jul 2022 18:10: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=exIUvdcMrz3EXTtvq/kRKUvZQY9WcfsGq3uCE1DFdFg=; b=SFAZ/sIXGWJxL9MgyYy7eFvqKm1je7Fa0XPwrVzjIHAbgULCjY6xXHngj1seGeYxm/ mWax23StT1P7b/wUJehpSvdzFTN8+qR9KcfV+s7Wnxb6KELmaID9hdz4fcEJqsQtt4zN Je5HBSM4VeXWhJT8mGWiwA9LxjG48dlns8V8ciIW80KAgVragEqQ0okygxaKNTlsySXI tRl8/5y25J9Iw/2nr2qMkF8u9QEQ1wB0yvt9ioOSJVNriB355cBZdrS5Bv/8n8KhO+EB 19yXqfKnquewkO0TQOv9WPYLg7GSvV0T2jxkTE7/ofIpRRotH9Ty9drUHy3dpDxcZUpR NFXw== 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=exIUvdcMrz3EXTtvq/kRKUvZQY9WcfsGq3uCE1DFdFg=; b=yXduTDD1lzgD+fBMMJcG9gA5MYoFlAKBwO9zUHe6CvL/M8MrUe3q4Rxa2E1+h8ts2S pj3AhxgsKDZuWqqhi2O7OPZ7apJGo7nnr+OpoqXyZ7IQLrG8RSKoP+Y7htq/7WQgRJXD yLWhGQfxRVOJpEwbV/Yk+kEZHAIMtB2EEPdn+5MQVETJKMy89xvZebrbZ7hTRppyQSWH +9iRESMIsY33TwP6POGvHGiKFoFWCG35EIzWY0V2s3WrWi6joZCXtNDdwwVPK954hzvG Jjjc3gZr1k54JeI9eyXnRy0+rVA4ORlHrPJASnyr0W1pE4XlHDoD1aW46II3ncTuLU8R kTBA== X-Gm-Message-State: AJIora/CsC92Q0IWhQ+kPbflQwAnmYoDxzBOuAlgwTh4PPYrmZWWBOFP 1Xb4VlIgL31M5ggXaFKE6qA= X-Google-Smtp-Source: AGRyM1vHcuVGZKILveCwTRG0HehlPnnwRiTwEYhhA00rcl4FyqM2OQtgL7VRvtJIHi81gaGW+4p+6w== X-Received: by 2002:a05:6402:4011:b0:43a:84de:26b1 with SMTP id d17-20020a056402401100b0043a84de26b1mr10117391eda.402.1657156212739; Wed, 06 Jul 2022 18:10:12 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id u17-20020a056402111100b0043a6e807febsm6915464edv.46.2022.07.06.18.10.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 18:10:12 -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 v2 8/8] ARM: dts: qcom: add speedbin efuse nvmem binding Date: Thu, 7 Jul 2022 03:09:42 +0200 Message-Id: <20220707010943.20857-9-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220707010943.20857-1-ansuelsmth@gmail.com> References: <20220707010943.20857-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 69cf664851c6..71572028bc36 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -854,6 +854,9 @@ qfprom: qfprom@700000 { reg = <0x00700000 0x1000>; #address-cells = <1>; #size-cells = <1>; + speedbin_efuse: speedbin@c0 { + reg = <0xc0 0x4>; + }; tsens_calib: calib@400 { reg = <0x400 0xb>; };