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: 495153 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp4885486jap; Wed, 11 Aug 2021 04:48:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZ3yRWvmC3jUGrl3PRJ/Fq1ArUa1OK4i/sIPdDq8h+Q2PRflVhtvliGk84mEJSbhAomeXp X-Received: by 2002:a05:6638:3889:: with SMTP id b9mr31517817jav.83.1628682512534; Wed, 11 Aug 2021 04:48:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628682512; cv=none; d=google.com; s=arc-20160816; b=i9aIhPY7lOXaiPwZ6jI7nNP+uC3+tUKKKw2rvjgatBNAOI8P6VJHswRFit6SJgE1AI iOpOtcdYZGPFfHNk85eeaLzHYcLwPRTderrHmN5DhUDSWJ4R/t/dr0A5s7OncJxhaMUV j/7KWvB0YbAhSe15vXK0BTqs2yHOPMVNAijJHZlBswnQMBnYudcMJkum9Cvr/0CD8KIU kn5dLxp5m+YbNBtuPozAlqZstlmXef7nARj+jFJndBS6Tav00lLuilZQtjlB0Sl3tMTK Mr6GCZ1YR17jO0XQyA6Vo3YO0Sl79g02uw+gKP9Qd14R+QdODoiYPpuq/XoAW6LMM6Nq MSdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=YxayS6Buf73tv3W4stt0EXlqaddKxMlyi9Xug6Snj2I=; b=RQRnKMkrqoan4M/b/D+Tgyju0+sg/q4lgCgxyHnfjqniCZCyA9jtJ9jPmFg/IBhcUN gVxq7XotfJB0S1WRJeGN2s4nF54kIvVaQZ8xQRlmCdQAhTESXRMNadKf1/7ZWSST6tQw 6K9TTcbig8tdkHIUbxSZpqFjmBDPdOTmZb52zdlRofRo/045xjxg9ZTY89Jlcby7x4rB EEctoIgY9pakvIm3f8BIWeiTN4R5GA6q4srEcajT2TC/Pa+pqVkIEWIv5y7Q2IK4Dp3b JouyDFIZgnC6Z0LuU2gptjTbTs1ZMB5zy65uIj9YnY7auyu3zk8PYZGy31FXC+DG0FXt P7iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=loysSsRw; spf=pass (google.com: domain of linux-serial-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si24920061ios.63.2021.08.11.04.48.32; Wed, 11 Aug 2021 04:48:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-serial-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=loysSsRw; spf=pass (google.com: domain of linux-serial-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237382AbhHKLsz (ORCPT + 2 others); Wed, 11 Aug 2021 07:48:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236314AbhHKLsy (ORCPT ); Wed, 11 Aug 2021 07:48:54 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0BBBC0613D5 for ; Wed, 11 Aug 2021 04:48:30 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id y7so3301303eda.5 for ; Wed, 11 Aug 2021 04:48:30 -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=B2CUqX6XZcDOckCCJhlQwJX4edvQ/t75YQSzTQMsm+bfurTtC6/yoAU6PjJ2z16k0C 0RsxFjdQeNTTabTpQ33icv2SEJlTJOmelT/hvxY9exRbGb91BF6368bcCN+jY1J2c45e R3iue+kyrZfMCmW2679HIhf0qdJVFYRnWx71TrPKQU4md5t97Z0JpskoTQaQu/8+kZRX YNaN0OOMD6Y3Bkl3WFAennJvutAe5EpOTf76EWSNPlH+vth5l6Qz/dbACH8uv6W3AlaA 7vguE6EhZi5ASJtDTMW3XtPXNN+R32XHmxr1D5lYmXE+CGBCvlwjsTpw4rThCcrR9jbM k/dQ== X-Gm-Message-State: AOAM531tqSatlBk3El8cHVt0bp5gaX5Ay6YTBY0B24prws2+cI7WSIuX H7xXckYqQNrj0aiMPpzrObMyQg== 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-serial@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 -- 2.30.2