From patchwork Sat Nov 27 22:32:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 12642549 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1EFEC433EF for ; Sat, 27 Nov 2021 22:36:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356505AbhK0WkL (ORCPT ); Sat, 27 Nov 2021 17:40:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352456AbhK0WiL (ORCPT ); Sat, 27 Nov 2021 17:38:11 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4C86C06175B for ; Sat, 27 Nov 2021 14:32:57 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id v11so27247953wrw.10 for ; Sat, 27 Nov 2021 14:32:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8NdHBjQVRIYGsKW2yKV0OuAhmnZpLbolKeCpmly7RWg=; b=l4yZmcmZTr7edwfbUcKL115b0MYsPssmDPCQRsyDw5bHhQmV6ar6pK4jAxrDUMK30L DhI/JggGzkpZLmknG0AUgMB3oDQ8doG8ujlkjNdlxeJUm/nPpXoFDJXqO1rmQJrTfCzB 2sPgGDOXV+Jr0yHhAsZ+zJbOQYVOUnJppTaAmjTQUHkQA7HOJCXiDbuCGCezUhVy1dgp KeA9+zZ3EKSGbINZGPTVNbsa1MuM3LAZHRj1MEhzDNYGM/KHsV8kd+dpqxs8vEnuqs2C thVZHM91MdLG4lWx/cfTcnpHev4yB/26XYz6xouUDmRTaMeXRQ4VmWKen96INpBdT+Kr O0Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8NdHBjQVRIYGsKW2yKV0OuAhmnZpLbolKeCpmly7RWg=; b=1x8sW6ZgHfxG8x5AU7Nhnt671ffiuoUpCwkxcxAytDu8KOzrp0kuLX70gLPTCRpZZh R7bbk/TuBbU2XhMGIUEaTPSQbizCDKQ7aKh7JPI/clO22rTDCPt5oRCQJayJsd19sc3Y 2sGs/LzhirtzNgITlU7ibfP+aYhalumG3ntJn4dmJYEBjLYkM7L59TvMlhkqVylwIKoF vnQ2aPALUsIIgnnwXd/tmGqetO2dXBL3O12lN7d1gwlgklGrL5EwWiSuu0zBh5mZCY3Y KgZwyFdEmssdx+e7rhMHVsMpBbbd6+ejh1FW0Yh4Qx3KgzHdvYSyU4Qu08PysYslQiFK zhaA== X-Gm-Message-State: AOAM533tEuvfHo0J2cb1z3W3/M32jDxRN1cPTS4S9YBhQVK5IkytW6wn m8N1EoW/Hde5Sdm8CzygLtdm4A== X-Google-Smtp-Source: ABdhPJxdLlhFGvAhG6wOiBarzCyE+9iYgVuhsqXhujvzcBgC7mGFjVW53Xkg0QseOIg6FsybsHzQUg== X-Received: by 2002:a5d:4107:: with SMTP id l7mr23094058wrp.209.1638052376446; Sat, 27 Nov 2021 14:32:56 -0800 (PST) Received: from localhost ([31.134.121.151]) by smtp.gmail.com with ESMTPSA id y142sm10355694wmc.40.2021.11.27.14.32.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Nov 2021 14:32:56 -0800 (PST) From: Sam Protsenko To: Krzysztof Kozlowski , Rob Herring , Mark Brown , Greg Kroah-Hartman Cc: Jaewon Kim , Chanho Park , David Virag , Youngmin Nam , devicetree@vger.kernel.org, linux-spi@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-i2c@vger.kernel.org Subject: [PATCH 1/8] dt-bindings: soc: samsung: Add Exynos USIv2 bindings Date: Sun, 28 Nov 2021 00:32:46 +0200 Message-Id: <20211127223253.19098-2-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211127223253.19098-1-semen.protsenko@linaro.org> References: <20211127223253.19098-1-semen.protsenko@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org Add constants for choosing USIv2 configuration mode in device tree. Those are further used in USIv2 driver to figure out which value to write into SW_CONF register. Signed-off-by: Sam Protsenko --- include/dt-bindings/soc/samsung,exynos-usi-v2.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/dt-bindings/soc/samsung,exynos-usi-v2.h diff --git a/include/dt-bindings/soc/samsung,exynos-usi-v2.h b/include/dt-bindings/soc/samsung,exynos-usi-v2.h new file mode 100644 index 000000000000..b406c6f6f89e --- /dev/null +++ b/include/dt-bindings/soc/samsung,exynos-usi-v2.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Copyright (C) 2021 Linaro Ltd. + * Author: Sam Protsenko + * + * Device Tree bindings for Samsung Exynos USI v2 (Universal Serial Interface). + */ + +#ifndef __DT_BINDINGS_SAMSUNG_EXYNOS_USI_V2_H +#define __DT_BINDINGS_SAMSUNG_EXYNOS_USI_V2_H + +#define USI_V2_UART 0 +#define USI_V2_SPI 1 +#define USI_V2_I2C 2 + +#endif /* __DT_BINDINGS_SAMSUNG_EXYNOS_USI_V2_H */