From patchwork Fri Mar 2 08:31:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 130489 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1021857lja; Fri, 2 Mar 2018 00:32:37 -0800 (PST) X-Google-Smtp-Source: AG47ELuHVThXBNCKT0jVKS3iUG3X/9fr/SKDB6+JBwmZMj9WR4am903sgl86bVqdftKV29Z/j/KY X-Received: by 2002:a17:902:b117:: with SMTP id q23-v6mr4614539plr.58.1519979556864; Fri, 02 Mar 2018 00:32:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519979556; cv=none; d=google.com; s=arc-20160816; b=cRcLs7OGN8o8FsQMxucQ9x8fYlGCnmgps8jO4b+IG20sDy2X9laPkJbtdXLHp1fJ3Q wFq98WSHpD7BAonYHEAyqIblm85OSDgYtiEnavEVaHQxEL9XZNF3V9dwaWzMT3HpKZCs QGQhFR3duWYQXFf51uhBVp9SkAn2WZ5Sqvo/CC0bPFDYU00NKfehA0UJysyP2Mn+nu1a Mwfwg/g+T5OGAqKbjHnCKy7N+xt3vOs5DKPp+MKiv2HMvp56YcZm9ibnFniLuIclSUU3 rTIMglyM5Jt//ge7nmyeZp3mKfffKzFzJEkoWoiNPKAO8s5e1S662jKBZYnJzSNcF1ux 9YQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=gAwkC7WLdQ0j6uaHSmKQ95Q6yUcyuA/79jmupmulZsY=; b=TupLJkG/R2WMIBQH4H9je1bHAen+stERTu4J7oMdL16aUnZ+BJdJzSjoHX5F1lnKKS E9/Jccg77TnPjeoETYiMmcgxECt1FZciCmJB79JBVCwoMkbwmmMCg3iHjTNL62YSiRQd InCfXTqo6T3v/mhN/mZo8jN6GfuYc7HOHoTeg14gOZPtoNXpnAplBDK2DiDAf+cYYHsd TmtkIAud/0dlqooqEKQzTLyEoQyf73WDG6FotTXeSk4WDGFmOpcJlcEa8IyEh/Z/Dz6B maD/4r6QcER4aGnD8wQ/ZoIIOWgfk/gKNY4FnOUBe88Z8wEAI2bmy2Kw+zh2Fs5Ex4jG akgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cvxaiO0R; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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. [209.132.180.67]) by mx.google.com with ESMTP id i3-v6si4488780pli.804.2018.03.02.00.32.36; Fri, 02 Mar 2018 00:32:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cvxaiO0R; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1423016AbeCBIcc (ORCPT + 28 others); Fri, 2 Mar 2018 03:32:32 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:38649 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422949AbeCBIbg (ORCPT ); Fri, 2 Mar 2018 03:31:36 -0500 Received: by mail-wm0-f66.google.com with SMTP id z9so1526147wmb.3 for ; Fri, 02 Mar 2018 00:31:35 -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; bh=gAwkC7WLdQ0j6uaHSmKQ95Q6yUcyuA/79jmupmulZsY=; b=cvxaiO0Rbm1dAxQFSAfcP6SyF59zZbB7y63pUiCgDGGbN6pB/sz6FK+4fGqeS4FEpK 6NZBzLA7GWQyZgoMgjR/rwJN+ta8MT98pDX4huOrGUTtd1wEta8AzBt1+O6cTO8k1rw7 J18fjyartPqNU7R92geCrM/z1c1WPZoKwMoKY= 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; bh=gAwkC7WLdQ0j6uaHSmKQ95Q6yUcyuA/79jmupmulZsY=; b=Gu5AS3A5uCEUeRwcBk4SbJP7KcexBXXtVNjM2XCye61rWssYXp9hhOG5MAhm7MJGjn 3YT6iOkKGZi6qebXPDdHAaCcp8fbzp7m+NFXOhgzOfZCBQNnDZeANvyW8VL1LO4RaRU5 IAFZ6uj0INk9BSzSPYp6EEQn07FxJFEt4vnp6PmviswSWEX6EH79rxEHF9FP6oUgbr7I aTBRyEvE/0EZ/FhQkNG/TP4rSpyU60RpyTtNwsZJOzAhe3tCmAsyDKRntBREGHP9s8zp zl+qjVgbwQ9vTRBut2hw4wWH5aRbU8EHLOj8Rnl9f7p0hH3oG7SAxp+PgIdpI3HZxfG3 gJ0g== X-Gm-Message-State: AElRT7FRFQWGZZ6mMHHynk7MynLZEkxIWVNCKywYBF03qBHRcDRR9nCO vxroOvgl0Ea1RzbDKpzqvadUsA== X-Received: by 10.28.63.23 with SMTP id m23mr893810wma.69.1519979494572; Fri, 02 Mar 2018 00:31:34 -0800 (PST) Received: from localhost.localdomain ([196.71.216.221]) by smtp.gmail.com with ESMTPSA id 43sm6157171wru.40.2018.03.02.00.31.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Mar 2018 00:31:33 -0800 (PST) From: Ard Biesheuvel To: wsa@the-dreams.de, robh+dt@kernel.org, mark.rutland@arm.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jassisinghbrar@gmail.com, andy.shevchenko@gmail.com, Ard Biesheuvel Subject: [PATCH v5 0/2] add support for Socionext SynQuacer I2C controller Date: Fri, 2 Mar 2018 08:31:21 +0000 Message-Id: <20180302083123.7259-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a binding and a driver for the I2C IP found in the Socionext SynQuacer SoC, which is essentially a rebranded version of the Fujitsu F_I2C controller. I think this is good to go now. Wolfram? v5: - add Rob's ack to #1 - drop unnecessary 'platform_set_drvdata(pdev, NULL)' in remove path (#2) v4: - clarify binding that only a single interrupt specifier is expected (#1) - check return value of clk_prepare_enable() on probe path (#2) - add Andy's R-b to patch #2 v3: - incorporate more of Andy's review comments (#2), especially regarding the bus speed and clock source handling for ACPI - patch #1 unchanged. v2: - incorporate Andy's review comments (#2) - patch #1 unchanged. Ard Biesheuvel (2): dt-bindings: i2c: add binding for Socionext SynQuacer I2C i2c: add support for Socionext SynQuacer I2C controller Documentation/devicetree/bindings/i2c/i2c-synquacer.txt | 29 + drivers/i2c/busses/Kconfig | 10 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-synquacer.c | 791 ++++++++++++++++++++ 4 files changed, 831 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-synquacer.txt create mode 100644 drivers/i2c/busses/i2c-synquacer.c -- 2.11.0