From patchwork Wed Dec 1 19:04:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 519955 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 DC3E8C433FE for ; Wed, 1 Dec 2021 19:05:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245002AbhLATIU (ORCPT ); Wed, 1 Dec 2021 14:08:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244476AbhLATIU (ORCPT ); Wed, 1 Dec 2021 14:08:20 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA110C061748 for ; Wed, 1 Dec 2021 11:04:58 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id l22so65431115lfg.7 for ; Wed, 01 Dec 2021 11:04:58 -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:mime-version :content-transfer-encoding; bh=2S6hx0MV4TxSsUYQQR+njxfOFM+b7JLj1PpbrKzlUg0=; b=mLisBxqhY2tHpta2ymGhdyh3ACjOQoYQx0GwkeYnH/Gc7J68rGxhcSRLtW+zHehdqz uOVim29pwUIijDYo8e8dbiOmy7Yfz1yZgr0W+kvFLLIhv3t9obn18aSknPdLUYPsUmU4 ShhDvBub9Wf64wFHeegAxi4SKiyLdJ8OtC/1mTzHh0YowUj6qeYrogRav6UzVM+l/rqU Et1FVjy9ftZkBgrTBBbp4RrN6sEc8jqHTiYTQ2psyX3bGeRxm6Z6cooxjRsw98Sl4lcY VzLz+WtwsA2FqLg6AjqEQUrBk5rzRuKkcu5y4oBu9p681e3HbXF9bsWbj1cIW09bizzI a8wA== 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:mime-version :content-transfer-encoding; bh=2S6hx0MV4TxSsUYQQR+njxfOFM+b7JLj1PpbrKzlUg0=; b=O9cNdMLDqux8fK4JvMT3cYim9VS1qGAQ3ZrSWYfQ+If03wtlSqWQlRKQkk8enA81R0 dji5gjxvt6OJFfr5upR45FEykcP1IjPozVibqLOTjWeNnD9veJ4VzreH8+FsTf9PDPPs Uh28RPNrH9w9Y6Kd8JyOkFcSE9LUhn2wyj5vk7sNn/o5snh7t1/nghDqdUmxsNNLRYAr gK4mQfkKch6f6dbEW5T9vrkhkcSphDePy4WpsVqlJAMNSEWGQdkhaB/mNpRyE5+DrlJ8 +dKrfx24fAuPoZufPT+5xQvu1EOMVJWGdVOrRjTNwEfZmTTR1hDTdqQ6hfeg326zbvh7 oh9Q== X-Gm-Message-State: AOAM533syJkN17Gx5JB2yB6C8LeH2KpQ1LYi81rk6PXd/RKQ67tEmbM8 Y0nbSLdbw+dzbSkOTp4sojsKcQ== X-Google-Smtp-Source: ABdhPJyP1ERY1EI8D9ikdeJS5WWuST1ZEZPWU6aaPu3mbArN+6Dgoz1u7yoccdF54uUzaY2q3qi22w== X-Received: by 2002:a05:6512:3d90:: with SMTP id k16mr7616729lfv.361.1638385497034; Wed, 01 Dec 2021 11:04:57 -0800 (PST) Received: from localhost ([31.134.121.151]) by smtp.gmail.com with ESMTPSA id g36sm73610lfv.16.2021.12.01.11.04.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 11:04:56 -0800 (PST) From: Sam Protsenko To: Krzysztof Kozlowski , Rob Herring Cc: Jaewon Kim , Chanho Park , David Virag , Youngmin Nam , Wolfram Sang , Arnd Bergmann , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 0/6] i2c: exynos5: Add support for modern Exynos SoCs Date: Wed, 1 Dec 2021 21:04:49 +0200 Message-Id: <20211201190455.31646-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-i2c@vger.kernel.org Modern ARM64 Samsung Exynos SoCs (like Exynos Auto V9 and Exynos850) use pretty much the same High-Speed I2C controller supported in i2c-exynos5 driver ("samsung,exynos7-hsi2c" variant), but with some differences: - timings are now calculated and configured a bit differently - two clocks are now provided to HSI2C controller (and must be asserted during I2C operation and register access) This patch series implements these changes, making it possible to use HSI2C driver on modern Exynos SoCs. Another change in mentioned SoCs is that HSI2C controller is now a part of USIv2 IP-core. But no USI modifications are needed in HSI2C driver, as all USI related configuration is done in USI driver independently. USI driver is added in [1] series (or its later revision, if available). To make HSI2C functional, both patch series (this one and [1]) have to be applied, but those can be applied independently. [1] https://patchwork.kernel.org/project/linux-samsung-soc/cover/20211130111325.29328-1-semen.protsenko@linaro.org/ Jaewon Kim (2): dt-bindings: i2c: exynos5: Add exynosautov9-hsi2c compatible i2c: exynos5: Add support for ExynosAutoV9 SoC Sam Protsenko (4): dt-bindings: i2c: exynos5: Convert to dtschema dt-bindings: i2c: exynos5: Add bus clock i2c: exynos5: Add bus clock support i2c: exynos5: Mention Exynos850 and ExynosAutoV9 in Kconfig .../devicetree/bindings/i2c/i2c-exynos5.txt | 53 --------- .../devicetree/bindings/i2c/i2c-exynos5.yaml | 91 +++++++++++++++ drivers/i2c/busses/Kconfig | 2 +- drivers/i2c/busses/i2c-exynos5.c | 108 +++++++++++++++--- 4 files changed, 183 insertions(+), 71 deletions(-) delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-exynos5.txt create mode 100644 Documentation/devicetree/bindings/i2c/i2c-exynos5.yaml