From patchwork Fri Jan 21 17:28:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 12720036 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 3F95EC433F5 for ; Fri, 21 Jan 2022 17:42:44 +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=SfQvVFnZAgOxmr6dkUJKjhhIWQ9Ay9djU0ToYfu+aVE=; b=Ttz/cX+Zgj7ubY kDw9EEKZGIS9Su1pwrpcc3449GpL8QtVRK9O3LfHsCgvG6zaYJ8L5cN6jMShdVhDh2hkeLlN6hgqh 9PNWJNvNdyKTkO49PDf+ZI5gARBwSfQSezhr64gf10Hma23ROQnxtXmRBin4VJUve2NOxL+ak2sLX n1vX+cJbL9a+0HXpXZ6/923N8AfvKuHO52+FQVTnQDB1uNePSpkw8xIy/Gl3R4s664yoAeD6tooeV 2U5M4TSyeH91kjoE5qFaDFMoVDJxapYcNGvfpKGpYjjp3NYU5v8Yz9R9s6qXegpy40y1VgzGtQCns GyqIzCRg5d4pYoLqmZSA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nAxtt-00FiJP-0e; Fri, 21 Jan 2022 17:40:37 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nAxto-00FiHX-ND for linux-arm-kernel@lists.infradead.org; Fri, 21 Jan 2022 17:40:34 +0000 Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20220121174022epoutp017063936003a6cf1d027a0e9d69e302bd~MWelf4WXP0781207812epoutp01x for ; Fri, 21 Jan 2022 17:40:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20220121174022epoutp017063936003a6cf1d027a0e9d69e302bd~MWelf4WXP0781207812epoutp01x DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1642786822; bh=yEDZjvfFp+4i7/U7MjWMajMUtHtH/8TAa5UWrXpu5kc=; h=From:To:Cc:Subject:Date:References:From; b=vST/KwXwtWhsMDDXtcBg5u7xLKk7YFTm9CsZQUFXSN6EUJqPfMZf942nhFhCkBTbP 3tEzBxVaE7EYEDJEnZrLvoyofKc77UmPDooRaY6kkYe0+2zeAj6kpEQWhcZD6xst23 0+KSpmZHbYZW+VrFC6nYQCJe+iVDznUOtx1+URaI= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20220121174022epcas5p3b1faa21a077485920eb075eeb5e2a496~MWelBljcg2717827178epcas5p30; Fri, 21 Jan 2022 17:40:22 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.177]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4JgRV91pn3z4x9Pv; Fri, 21 Jan 2022 17:40:17 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 62.20.06423.100FAE16; Sat, 22 Jan 2022 02:40:17 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20220121174016epcas5p347510c17404c703f6b857bc43413ed2a~MWefryHkd2717827178epcas5p3o; Fri, 21 Jan 2022 17:40:16 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220121174016epsmtrp11c5ed766b29b877a5b93efbeb9a68894~MWefqzXcp2324623246epsmtrp1h; Fri, 21 Jan 2022 17:40:16 +0000 (GMT) X-AuditID: b6c32a49-b13ff70000001917-93-61eaf0018b23 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 4E.A7.08738.000FAE16; Sat, 22 Jan 2022 02:40:16 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220121174014epsmtip26d90cfad6dd3d9d86d851faf7cb5ccf1~MWedcFI2U0094500945epsmtip2q; Fri, 21 Jan 2022 17:40:14 +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 v3 00/16] Add support for Tesla Full Self-Driving (FSD) SoC Date: Fri, 21 Jan 2022 22:58:24 +0530 Message-Id: <20220121172840.12121-1-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA0VSe0xTVxjPube9vbh1uRYch7pJcyMJshRaabvL1qqJhZQghmUZS5a47obe tYy+0tuO6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fP9LreyydasyuxZb89RFrGVGXyY0n1bYqLHb 77nopIAlM5dLHc10UmIpzkg01GIuKk4EAKxI8L3TAgAA X-CMS-MailID: 20220121174016epcas5p347510c17404c703f6b857bc43413ed2a X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220121174016epcas5p347510c17404c703f6b857bc43413ed2a References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220121_094033_118417_C1D20643 X-CRM114-Status: GOOD ( 17.51 ) 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 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 next-20220120 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 | 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 | 673 ++++++ 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, 3332 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: 7fc5253f5a13271e9df35d6b936ff97b74540a59