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: 520120 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 B7A80C433F5 for ; Wed, 1 Dec 2021 19:05:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245036AbhLATIU (ORCPT ); Wed, 1 Dec 2021 14:08:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243469AbhLATIU (ORCPT ); Wed, 1 Dec 2021 14:08:20 -0500 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C398AC061574 for ; Wed, 1 Dec 2021 11:04:58 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id l22so65431119lfg.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=J4atUJ4XpqImTcHHv/wTs0kTlPvC47/+Q6OAF53ra+JEljIwYOXw690AgH+cpSKHax UVQJWjq9N8KhhleD+144YIDIaZbEOyN5Lwzs/ltn4ZjW/AQtdudkY75O6N2tXLYPuPB6 KR8fVBvn9zzJTqnp8AxkwiTwgMIro1qjr1oNyly6xqGWw/oqz8tIWZWKhGQnaGD2mkJ5 UD42zHv3T1rC6/k+gxCXOVafprJCL5IAB4u+JGtT5wPqJfxDRgQkvpW/C2MhiRg9h9s/ vO56M9p9eAZuDkSAhrQnPS2FE4vJ0i5KBxpekf8GL7gdk3Of+k84dFH0V+rIb58+qBHU ORFA== X-Gm-Message-State: AOAM531p76jIK3PR8NtBRGoMZv6Ju0W/+icw5Rf2KLNH7RKi0pIHIXVC zTm7wtl1NXKbUwiGhynkwxcETA== 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-samsung-soc@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