From patchwork Tue Jan 18 14:48:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 12716568 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 A4E5CC433EF for ; Tue, 18 Jan 2022 15:01:56 +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=Zo3cklMVFWOwwO4AaDCgmUkXgGXHlKxOls5lVtRfUto=; b=YhRkjrL/cc9XVZ RH0K1JM2545vqzrt8s3kw37WfNm0Q2uIa7m8yTzsVb8bo9kUwHNQbOjTjBT1thPZjsjVU90KhARFZ jA0Qk5X8kUTmUrHiNjX/In/5+dabMJ0dpTc7bu/K0A3NuL3rbABcRUrDEtr6GBgCwqXHalx0IFhI7 2c+jcA73mJgsxcgdQLdXRjwkMJn7JB+fz/7dQGW9rfJA6nPKLsz6/T9lf4VByxeQ1k6AiE9nED4Oy TWF6MlYaqcMWBrH87FUZ5lO4qHmVZII38+xaKrjkkpwrPbxNHe4BAWBR+afz7hxyqV47sn7AIyFOm 33FNALdZlX7ojeBvAHkA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9py9-001xLD-SZ; Tue, 18 Jan 2022 15:00:22 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9py5-001xJS-A3 for linux-arm-kernel@lists.infradead.org; Tue, 18 Jan 2022 15:00:19 +0000 Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20220118150014epoutp03353591fca90c7c820095f94daaaf0f92~LZW6jFzdE2034320343epoutp03d for ; Tue, 18 Jan 2022 15:00:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20220118150014epoutp03353591fca90c7c820095f94daaaf0f92~LZW6jFzdE2034320343epoutp03d DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1642518015; bh=Qx3gCAkpMFE3yWJlRYOzvvsdJehEpXNkVuWR2y56IY8=; h=From:To:Cc:Subject:Date:References:From; b=eUzWfycWmJqS7E8iP+iK4e/2VJ3pKFwphxEN/oN70xi3V9b+nnomSLcSa3qpnfQLK o5+kjx7JtH1Mfl2oAjVj405aT/pQJliZS+BEadvh06TaotFtlKBkNsZtUgaht5d0cc GeOM216oY9XxyIBOGi8PCjjld/GJCRgQdXrqphFk= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20220118150014epcas5p4e52e88693eca86d5e4e1f3574e4e7078~LZW6ECQyl2208322083epcas5p4-; Tue, 18 Jan 2022 15:00:14 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.178]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4JdX4m6PVrz4x9Pw; Tue, 18 Jan 2022 15:00:08 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id BE.F8.06423.8F5D6E16; Wed, 19 Jan 2022 00:00:08 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20220118150008epcas5p40d1c79616bb17797e79e1769f5e2c19c~LZW0RYB1C2208722087epcas5p4u; Tue, 18 Jan 2022 15:00:08 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220118150008epsmtrp2e04d3b60281e89c675ec1e9a513d85aa~LZW0QRA4k1935719357epsmtrp2y; Tue, 18 Jan 2022 15:00:08 +0000 (GMT) X-AuditID: b6c32a49-b01ff70000001917-e1-61e6d5f80bcc Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 89.91.29871.8F5D6E16; Wed, 19 Jan 2022 00:00:08 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220118150005epsmtip16dc6a4bf20208b65004d59959cf5b2fa~LZWyIH7f51211512115epsmtip1i; Tue, 18 Jan 2022 15:00:05 +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, Alim Akhtar Subject: [PATCH v2 00/16] Add support for Tesla Full Self-Driving (FSD) SoC Date: Tue, 18 Jan 2022 20:18:35 +0530 Message-Id: <20220118144851.69537-1-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHKsWRmVeSWpSXmKPExsWy7bCmuu6Pq88SDXa+1bN4MG8bm8XfScfY Ld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ZDdZ/+XPWLnDP877G9fdcmc bL4t2N6pxFKckWioxVxUnAgAWxIaSs0CAAA= X-CMS-MailID: 20220118150008epcas5p40d1c79616bb17797e79e1769f5e2c19c X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220118150008epcas5p40d1c79616bb17797e79e1769f5e2c19c References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220118_070017_724772_8937FBE1 X-CRM114-Status: GOOD ( 15.49 ) 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 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 * Reordered the patches * Dropped SPI, MCT and ADC from this series (to be posted in small sets) NOTE: These patches are based on next-20220118 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.txt | 1 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 8 + arch/arm64/Kconfig.platforms | 7 + 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 | 673 ++++++ arch/arm64/configs/defconfig | 1 + drivers/clk/samsung/Kconfig | 7 + drivers/clk/samsung/Makefile | 1 + drivers/clk/samsung/clk-fsd.c | 1801 +++++++++++++++++ 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 | 149 ++ 21 files changed, 3329 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: 6f59bc242877fcb9c9a5136ea62d383fce5615df