From patchwork Mon Oct 10 12:04:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Padmanabhan Rajanbabu X-Patchwork-Id: 13002578 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 E198FC433F5 for ; Mon, 10 Oct 2022 12:55:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231629AbiJJMzK (ORCPT ); Mon, 10 Oct 2022 08:55:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231545AbiJJMzA (ORCPT ); Mon, 10 Oct 2022 08:55:00 -0400 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E946D167FE for ; Mon, 10 Oct 2022 05:54:45 -0700 (PDT) Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20221010125436epoutp03c31299b042b4d5beb891f997cb3604f5~ctl3a920k0600506005epoutp03k for ; Mon, 10 Oct 2022 12:54:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20221010125436epoutp03c31299b042b4d5beb891f997cb3604f5~ctl3a920k0600506005epoutp03k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1665406476; bh=uhZUqSHM1OkD2STn6iiHOS3OrMAeke5u19oEvKdXy7A=; h=From:To:Cc:Subject:Date:References:From; b=di2vtfSAtJIheXgHifaVlV0jVTo+8/5/AYqOd4F9vmPF13RbUw7WLNI8GQvNILfVM iPqPUzhvun1s7iPWGvpET8VYXmrBTWCQXM0cSaDd5YD6o0I1VqiWClgQN45J/76YR2 fTfmWhtpk8G0hQkQq/sW2+QOWulpVPG/ChpOh6lw= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20221010125434epcas5p3c17bca9f9f70cc8a05bc487c8f41e42c~ctl2C-dL_0513405134epcas5p3Y; Mon, 10 Oct 2022 12:54:34 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.179]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4MmJlW082pz4x9Pq; Mon, 10 Oct 2022 12:54:31 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id D4.67.26992.60614436; Mon, 10 Oct 2022 21:54:30 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20221010123120epcas5p3ba947a3a982bc6a78310472c2a65ebfe~ctRjnLaGX1905819058epcas5p3t; Mon, 10 Oct 2022 12:31:20 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20221010123120epsmtrp111ed3f91492b7f843e5178a4c2702a0c~ctRjmTHB30109301093epsmtrp1L; Mon, 10 Oct 2022 12:31:20 +0000 (GMT) X-AuditID: b6c32a49-0c7ff70000016970-b3-634416060b51 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 90.AF.18644.89014436; Mon, 10 Oct 2022 21:31:20 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20221010123118epsmtip16f4638aee7e30ed55157c944a9120248~ctRh3qoMg1939519395epsmtip1h; Mon, 10 Oct 2022 12:31:18 +0000 (GMT) From: Padmanabhan Rajanbabu To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, alim.akhtar@samsung.com, chanho61.park@samsung.com, linus.walleij@linaro.org, pankaj.dubey@samsung.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Padmanabhan Rajanbabu Subject: [PATCH] arm64: dts: fix drive strength macros as per FSD HW UM Date: Mon, 10 Oct 2022 17:34:37 +0530 Message-Id: <20221010120438.80680-1-p.rajanbabu@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFKsWRmVeSWpSXmKPExsWy7bCmpi6bmEuywfHr5hYP5m1js7i8X9ti /pFzrBZ9Lx4yW0z5s5zJ4vKuOWwWM87vY7I4ujHYYtHWL+wWrXuPsDtweWxa1cnmcefaHjaP vi2rGD0+b5ILYInKtslITUxJLVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLx CdB1y8wBOkdJoSwxpxQoFJBYXKykb2dTlF9akqqQkV9cYquUWpCSU2BSoFecmFtcmpeul5da YmVoYGBkClSYkJ3RMFG3oEunYseF1SwNjDNVuhg5OSQETCRO71/DCGILCexmlFj3Q7CLkQvI /sQocWnyVUYI5zOjxKL551lgOm4d6maFSOxilNh89g5UVSuTxJLO62wgVWwCphKr5jSCVYkI LGWU+P9pEVgVs8AURomt226AbRQWcJfYeukXK4jNIqAq8efxCeYuRg4OXgEbiW1bRCHWyUus 3nCAGaRXQmAXu0Tn5C6oO1wkHm7sYYOwhSVeHd/CDmFLSbzsb4Oy8yWmfWyGqqmQaPu4gQnC tpc4cGUOC8guZgFNifW79CHCshJTT60DK2EW4JPo/f0EqpxXYsc8GFtVYv3yTYwQtrTEvut7 GUHGSAh4SNy6zwMJx1iJr+9vMk1glJ2FsGABI+MqRsnUguLc9NRi0wLDvNRyeDwl5+duYgQn Mi3PHYx3H3zQO8TIxMF4iFGCg1lJhJdxvlOyEG9KYmVValF+fFFpTmrxIUZTYIhN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v9279c3n2/J/yWjuqVFkOl32y/razrZ7r Y9Dfm5NeLg90+nAh4sAb9RdhM9cFauzf5W3368XxUg6Grdd/s2uFTTo8sVnFVqNusuW22MSt zVLSbMxvvNafcpfTf1/jMV+ijqXjqH7CW5Xr1Qb/tt5Y7LzQ81yP0v38dItdq63N1KfHb+mI tvOpuLTHhaEr56ZLVqOXXYjIFguXU7FMM5irpkWs1poq81XEIDhQ9LXpCnaWhEnTNG9cu5Kh kl65TomlOCPRUIu5qDgRAHaQ/b6ZAgAA X-CMS-MailID: 20221010123120epcas5p3ba947a3a982bc6a78310472c2a65ebfe X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221010123120epcas5p3ba947a3a982bc6a78310472c2a65ebfe References: Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org In FSD pinctrl implementation, the pinctrl driver is using drive strength MACROs, which are deviating from the actual values specified in FSD HW UM This patch adds the right pinctrl drive strength values for FSD SoC. This patch also ensures that the peripherals are using right drive strength MACROs in-order to function as expected Signed-off-by: Padmanabhan Rajanbabu --- arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi | 34 +++++++++++----------- arch/arm64/boot/dts/tesla/fsd-pinctrl.h | 6 ++-- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi b/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi index d0abb9aa0e9e..e3852c946352 100644 --- a/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi +++ b/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi @@ -55,14 +55,14 @@ samsung,pins = "gpf5-0"; samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = ; + samsung,pin-drv = ; }; ufs_refclk_out: ufs-refclk-out-pins { samsung,pins = "gpf5-1"; samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = ; + samsung,pin-drv = ; }; }; @@ -239,105 +239,105 @@ samsung,pins = "gpb6-1"; samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = ; + samsung,pin-drv = ; }; pwm1_out: pwm1-out-pins { samsung,pins = "gpb6-5"; samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = ; + samsung,pin-drv = ; }; hs_i2c0_bus: hs-i2c0-bus-pins { samsung,pins = "gpb0-0", "gpb0-1"; samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = ; + samsung,pin-drv = ; }; hs_i2c1_bus: hs-i2c1-bus-pins { samsung,pins = "gpb0-2", "gpb0-3"; samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = ; + samsung,pin-drv = ; }; hs_i2c2_bus: hs-i2c2-bus-pins { samsung,pins = "gpb0-4", "gpb0-5"; samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = ; + samsung,pin-drv = ; }; hs_i2c3_bus: hs-i2c3-bus-pins { samsung,pins = "gpb0-6", "gpb0-7"; samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = ; + samsung,pin-drv = ; }; hs_i2c4_bus: hs-i2c4-bus-pins { samsung,pins = "gpb1-0", "gpb1-1"; samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = ; + samsung,pin-drv = ; }; hs_i2c5_bus: hs-i2c5-bus-pins { samsung,pins = "gpb1-2", "gpb1-3"; samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = ; + samsung,pin-drv = ; }; hs_i2c6_bus: hs-i2c6-bus-pins { samsung,pins = "gpb1-4", "gpb1-5"; samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = ; + samsung,pin-drv = ; }; hs_i2c7_bus: hs-i2c7-bus-pins { samsung,pins = "gpb1-6", "gpb1-7"; samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = ; + samsung,pin-drv = ; }; uart0_data: uart0-data-pins { samsung,pins = "gpb7-0", "gpb7-1"; samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = ; + samsung,pin-drv = ; }; uart1_data: uart1-data-pins { samsung,pins = "gpb7-4", "gpb7-5"; samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = ; + samsung,pin-drv = ; }; spi0_bus: spi0-bus-pins { samsung,pins = "gpb4-0", "gpb4-2", "gpb4-3"; samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = ; + samsung,pin-drv = ; }; spi1_bus: spi1-bus-pins { samsung,pins = "gpb4-4", "gpb4-6", "gpb4-7"; samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = ; + samsung,pin-drv = ; }; spi2_bus: spi2-bus-pins { samsung,pins = "gpb5-0", "gpb5-2", "gpb5-3"; samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = ; + samsung,pin-drv = ; }; }; diff --git a/arch/arm64/boot/dts/tesla/fsd-pinctrl.h b/arch/arm64/boot/dts/tesla/fsd-pinctrl.h index 6ffbda362493..c397d02208a0 100644 --- a/arch/arm64/boot/dts/tesla/fsd-pinctrl.h +++ b/arch/arm64/boot/dts/tesla/fsd-pinctrl.h @@ -16,9 +16,9 @@ #define FSD_PIN_PULL_UP 3 #define FSD_PIN_DRV_LV1 0 -#define FSD_PIN_DRV_LV2 2 -#define FSD_PIN_DRV_LV3 1 -#define FSD_PIN_DRV_LV4 3 +#define FSD_PIN_DRV_LV2 1 +#define FSD_PIN_DRV_LV4 2 +#define FSD_PIN_DRV_LV6 3 #define FSD_PIN_FUNC_INPUT 0 #define FSD_PIN_FUNC_OUTPUT 1