From patchwork Mon Jan 24 14:16:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 12722201 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D6DE8C433FE for ; Mon, 24 Jan 2022 14:31:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: List-Owner; bh=Q78zII5wkdTh/rpWXMkwrF9svnxwMCps/mTBNSzLru0=; b=kQeaPRwDc0kafw Aq95aoz/YJQEqHAq3x/h+bAKrh5r+JJNvVfUI2wcnEVc3+qHi/J4BNlPL7WCtWV4cbLHBGY0Zm2ST NEijPg5OQt8lLkilcfpJTMfjlPX+efyrvkSq3tN6f1yxcuRjZaSmEo9imVoHyKiYmmSigpBXx4yDw wbWAxX3jU9vRvejuW/LzXryCcvYuZ8ZhIH5tL/VW8NP888oZ4Q0FVCMD4slmCphkRclH8Q5fWkHkH +3NHdNJWSovsnrmCrm0r0tYs2H8cCAJboOGOanZ25NG3QTJzRDCbl6HGVQHfSWyabqJ181o6ZPHcl 6Px+2sRL/1Pkp/JJOARg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nC0LE-003bUr-A5; Mon, 24 Jan 2022 14:29:08 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nC0L9-003bU5-Ov for linux-arm-kernel@lists.infradead.org; Mon, 24 Jan 2022 14:29:06 +0000 Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220124142857epoutp025237ade0e76f92a4c8717265a70ec922~NOzTlJ3bX3229932299epoutp02H for ; Mon, 24 Jan 2022 14:28:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220124142857epoutp025237ade0e76f92a4c8717265a70ec922~NOzTlJ3bX3229932299epoutp02H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1643034537; bh=zvqXmhfJv9oPDwsqSeEPwarbwPgiaKdElKpBH1a75iw=; h=From:To:Cc:Subject:Date:References:From; b=bf6nwojvLAdanKC4XqAApY1CvZn9yi59uvmp29NF4dlWDmo/d6dSAj8QbQp6R6Hya nuz1XWT4EQbhrZ6GTSCC1yS2GrqHSh73BVsDQtVS5E363yKOJe/4hDVO8S7LhrfbCF LHtA9j7vnQT6wlAAZhWRH2e960U6jbZFzROual6Q= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20220124142856epcas5p155f540b1eb172bc0c27b2412387e6a5b~NOzS_sVAw1531415314epcas5p1c; Mon, 24 Jan 2022 14:28:56 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.183]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4JjC5v28BNz4x9Px; Mon, 24 Jan 2022 14:28:51 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id F7.4D.46822.546BEE16; Mon, 24 Jan 2022 23:23:01 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20220124142850epcas5p2f82243b87386b3d49a9302c87e015d6b~NOzNftIyL1077210772epcas5p2D; Mon, 24 Jan 2022 14:28:50 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220124142850epsmtrp130d430356c45f010fefd6944622afc5d~NOzNeA1eG2824028240epsmtrp1l; Mon, 24 Jan 2022 14:28:50 +0000 (GMT) X-AuditID: b6c32a4a-dfbff7000000b6e6-df-61eeb6453c75 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id A8.AB.08738.2A7BEE16; Mon, 24 Jan 2022 23:28:50 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220124142848epsmtip15c1ccd3f647764a2e144c42813c91e00~NOzLVFEpk1062110621epsmtip1j; Mon, 24 Jan 2022 14:28:48 +0000 (GMT) From: Alim Akhtar To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: soc@kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, olof@lixom.net, arnd@arndb.de, linus.walleij@linaro.org, catalin.marinas@arm.com, robh+dt@kernel.org, krzysztof.kozlowski@canonical.com, s.nawrocki@samsung.com, linux-samsung-soc@vger.kernel.org, pankaj.dubey@samsung.com, sboyd@kernel.org, Alim Akhtar Subject: [PATCH v5 00/16] Add support for Tesla Full Self-Driving (FSD) SoC Date: Mon, 24 Jan 2022 19:46:28 +0530 Message-Id: <20220124141644.71052-1-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmk+LIzCtJLcpLzFFi42LZdlhTXdd127tEg6eLbCwezNvGZvF30jF2 i/fLeh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ZO39qt389nTciuinngfvpW3btW8aRslfzQb za9nUL4rsbSy+nvtPk8lluKMREMt5qLiRAB05XSG0gIAAA== X-CMS-MailID: 20220124142850epcas5p2f82243b87386b3d49a9302c87e015d6b X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220124142850epcas5p2f82243b87386b3d49a9302c87e015d6b References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220124_062904_193395_FC78D901 X-CRM114-Status: GOOD ( 16.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Adds basic support for the Tesla Full Self-Driving (FSD) SoC. This SoC contains three clusters of four Cortex-A72 CPUs, as well as several IPs. Patches 1 to 9 provide support for the clock controller (which is designed similarly to Exynos SoCs). The remaining changes provide pinmux support, initial device tree support. - Changes since v4 * fixed 'make dtbs_check' warnings on patch 14/16 - Changes since v3 * Addressed Stefen's review comments on patch 14/16 * Fixed kernel test robot warning on patch 04/16 * rebsaed this series on Krzysztof's pinmux new binding schema work [1] - Changes since v2 * Addressed Krzysztof's and Stephen's review comments * Added Reviewed-by and Acked-by tags * Rebased on next-20220120 - Changes since v1 * fixed make dt_binding_check error as pointed by Rob * Addressed Krzysztof's and Rob's review comments * Added Reviewed-by and Acked-by tags * Dropped SPI, MCT and ADC from this series (to be posted in small sets) NOTE: These patches are based on Krzysztof's pinmux for-next branch commit 832ae134ccc1 ("pinctrl: samsung: add support for Exynos850 and ExynosAutov9 wake-ups") [1] https://git.kernel.org/pub/scm/linux/kernel/git/pinctrl/samsung.git/log/?h=for-next Alim Akhtar (16): dt-bindings: add vendor prefix for Tesla dt-bindings: clock: Add bindings definitions for FSD CMU blocks dt-bindings: clock: Document FSD CMU bindings clk: samsung: fsd: Add initial clock support clk: samsung: fsd: Add cmu_peric block clock information clk: samsung: fsd: Add cmu_fsys0 clock information clk: samsung: fsd: Add cmu_fsys1 clock information clk: samsung: fsd: Add cmu_imem block clock information clk: samsung: fsd: Add cmu_mfc block clock information clk: samsung: fsd: Add cam_csi block clock information dt-bindings: pinctrl: samsung: Add compatible for Tesla FSD SoC pinctrl: samsung: add FSD SoC specific data dt-bindings: arm: add Tesla FSD ARM SoC arm64: dts: fsd: Add initial device tree support arm64: dts: fsd: Add initial pinctrl support arm64: defconfig: Enable Tesla FSD SoC .../devicetree/bindings/arm/tesla.yaml | 27 + .../bindings/clock/tesla,fsd-clock.yaml | 198 ++ .../bindings/pinctrl/samsung,pinctrl.yaml | 1 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 8 + arch/arm64/Kconfig.platforms | 6 + arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/tesla/Makefile | 3 + arch/arm64/boot/dts/tesla/fsd-evb.dts | 39 + arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi | 335 +++ arch/arm64/boot/dts/tesla/fsd.dtsi | 674 ++++++ arch/arm64/configs/defconfig | 1 + drivers/clk/samsung/Kconfig | 8 + drivers/clk/samsung/Makefile | 1 + drivers/clk/samsung/clk-fsd.c | 1803 +++++++++++++++++ drivers/clk/samsung/clk-pll.c | 1 + drivers/clk/samsung/clk-pll.h | 1 + .../pinctrl/samsung/pinctrl-exynos-arm64.c | 71 + drivers/pinctrl/samsung/pinctrl-samsung.c | 2 + drivers/pinctrl/samsung/pinctrl-samsung.h | 1 + include/dt-bindings/clock/fsd-clk.h | 150 ++ 21 files changed, 3333 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/tesla.yaml create mode 100644 Documentation/devicetree/bindings/clock/tesla,fsd-clock.yaml create mode 100644 arch/arm64/boot/dts/tesla/Makefile create mode 100644 arch/arm64/boot/dts/tesla/fsd-evb.dts create mode 100644 arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi create mode 100644 arch/arm64/boot/dts/tesla/fsd.dtsi create mode 100644 drivers/clk/samsung/clk-fsd.c create mode 100644 include/dt-bindings/clock/fsd-clk.h base-commit: 832ae134ccc1c78a2f5ec81b7010dd24c3c49535