From patchwork Wed Aug 11 11:48:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 496386 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B857FC4320E for ; Wed, 11 Aug 2021 11:48:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9020060FC3 for ; Wed, 11 Aug 2021 11:48:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237397AbhHKLsz (ORCPT ); Wed, 11 Aug 2021 07:48:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237371AbhHKLsy (ORCPT ); Wed, 11 Aug 2021 07:48:54 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47D74C061798 for ; Wed, 11 Aug 2021 04:48:31 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id bo19so3258067edb.9 for ; Wed, 11 Aug 2021 04:48:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YxayS6Buf73tv3W4stt0EXlqaddKxMlyi9Xug6Snj2I=; b=loysSsRwzb1MyGQ25d/g4sLOBOWXfOWM5v8QQ/qlivnFJCpOyuqXy7OF/Mg+b4EK3p ttVxPlPIZZjpplsvj6+hRGePyBYIhXAPUDn1vvq+zrUhT9WPxRpewyeTbUB53f9Hm9nb cPAPA9P7QD+Y4cHdnVQoHfpYclsKc3OEDIKjjjKombZirgCh+r+KZYCk/QGbmBtNeQ8d xgJamKCDMAs7pdAumsK+i9ULQ61sb0Fx9KF25am1ZFEOGQ+u+EIFDqsvqYS2IX0xwTIH 4b/9V9pV9f1wSrs68EPyu1tPf59TnOUJqcN1ro0TPiyctZrslcLO0cSxO97+O5Voma2T qwOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YxayS6Buf73tv3W4stt0EXlqaddKxMlyi9Xug6Snj2I=; b=Ztgo4mj9mapn6IgueOpdSktI1kuieOLOA0JSiU0vPy69tBQGIH3Ocqj/zPNXv+ujE0 SccKn5WzbJYbDwV9ck7JF6dXbkND3qW5FS8uFiJUf/RjSuHdpkKYoRYkM0RmuThTKlet CIcNUBh0JRpQ85jenvGzEKVTI7YnWYz/1Hs5T3QFx50/yLIKrUZkQBEt0B78eM8fUNJv ViRsRIBi4JGWmBwo5PXCyCiUm5kCclvnyTUkwUtEWtWUWs/X5YT8Kth3wPoCrtIauhqC SvRFirABuqSEX0eenNKwvCU/0ygrcksDPBz0xV585Sy8Cl/HsmTpZpNKWYjajwcditRz qxsQ== X-Gm-Message-State: AOAM5328zPU3yUJmKJyl1mWdr9e4l1Hp2Vpq+TrLs2DfL0/5J163p33B bGoLJYzufaXAaXnpEZb/FXhgDA== X-Google-Smtp-Source: ABdhPJxho73WzOVrYw9NK76kUVvDzKorlN5ePOWM7MnSaI8LdBh6S7aHNtX2d0X3hINOjcqhrEzptw== X-Received: by 2002:aa7:d757:: with SMTP id a23mr10907031eds.29.1628682509410; Wed, 11 Aug 2021 04:48:29 -0700 (PDT) Received: from localhost ([31.134.121.151]) by smtp.gmail.com with ESMTPSA id a22sm8094458ejk.35.2021.08.11.04.48.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 04:48:28 -0700 (PDT) From: Sam Protsenko To: Krzysztof Kozlowski , Sylwester Nawrocki , =?utf-8?q?Pawe=C5=82_Chmiel?= , Chanwoo Choi Cc: Linus Walleij , Tomasz Figa , Marc Zyngier , Rob Herring , Stephen Boyd , Michael Turquette , Jiri Slaby , Greg Kroah-Hartman , Charles Keepax , Ryu Euiyoul , Tom Gall , Sumit Semwal , John Stultz , Amit Pundir , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v3 0/7] Add minimal support for Exynos850 SoC Date: Wed, 11 Aug 2021 14:48:20 +0300 Message-Id: <20210811114827.27322-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org This patch series adds initial platform support for Samsung Exynos850 SoC [1]. With this patchset it's possible to run the kernel with BusyBox rootfs as a RAM disk. More advanced platform support (like MMC driver additions) will be added later. The idea is to keep the first submission minimal to ease the review, and then build up on top of that. [1] https://www.samsung.com/semiconductor/minisite/exynos/products/mobileprocessor/exynos-850/ Changes in v3: * Removed the stub clock driver; uart clock is modeled as generic fixed clock in dts for now * See also changes in each particular patch Changes in v2: * Rebased on top of current linux-mainline * Removed patch ("pinctrl: samsung: Fix pinctrl bank pin count"); it was sent separately, as it's an independent fix * Made the patch ("dt-bindings: pinctrl: samsung: Add Exynos850 doc") to be the first in series * Removed patch ("MAINTAINERS: Changes in v2"); will add that later, when proper clock driver is implemented * Removed patch ("dt-bindings: clock: Add bindings for Exynos850 clock controller"); will add clock bindings later, when proper clock driver is implemented * Removed patch ("dt-bindings: interrupt-controller: Add IRQ constants for Exynos850"), and used hard-coded IRQ numbers in dts instead * See also changes in each particular patch Sam Protsenko (7): dt-bindings: pinctrl: samsung: Add Exynos850 doc pinctrl: samsung: Add Exynos850 SoC specific data dt-bindings: serial: samsung: Add Exynos850 doc tty: serial: samsung: Init USI to keep clocks running tty: serial: samsung: Fix driver data macros style tty: serial: samsung: Add Exynos850 SoC data arm64: dts: exynos: Add Exynos850 SoC support .../bindings/pinctrl/samsung-pinctrl.txt | 1 + .../bindings/serial/samsung_uart.yaml | 1 + .../boot/dts/exynos/exynos850-pinctrl.dtsi | 748 ++++++++++++++++++ arch/arm64/boot/dts/exynos/exynos850.dtsi | 261 ++++++ .../pinctrl/samsung/pinctrl-exynos-arm64.c | 116 +++ drivers/pinctrl/samsung/pinctrl-exynos.h | 29 + drivers/pinctrl/samsung/pinctrl-samsung.c | 2 + drivers/pinctrl/samsung/pinctrl-samsung.h | 1 + drivers/tty/serial/samsung_tty.c | 49 +- include/linux/serial_s3c.h | 9 + 10 files changed, 1214 insertions(+), 3 deletions(-) create mode 100644 arch/arm64/boot/dts/exynos/exynos850-pinctrl.dtsi create mode 100644 arch/arm64/boot/dts/exynos/exynos850.dtsi