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: 880370 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-i2c-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="cvxaiO0R"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3zt2cb6HKMz9sWV for ; Fri, 2 Mar 2018 19:33:03 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422917AbeCBIc1 (ORCPT ); Fri, 2 Mar 2018 03:32:27 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:40795 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422948AbeCBIbg (ORCPT ); Fri, 2 Mar 2018 03:31:36 -0500 Received: by mail-wm0-f66.google.com with SMTP id t6so1530291wmt.5 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=ug76dJ7Y9ZIpPPrNwfGZKWhu/ypeW8eTbWdwU0tp96jhFdhS1QVtcJgR8wwTMviUMd UMfOI5mfiqmZPO3na+xIww7wnZgH/N1pT58sQWF7N/p1ZySrz2WD1/eVpnxXxJK0gHYB Gn0LTDQhpPGXD2RVr1bzZBpKrx9ASlRQKk5pMjN/H3etEi0jr/Kpmw1l+GNoOSUGXmkV kHyTJpB9fUQlgZRwQAirplnziXGORebbTvdIooVJryQSwCSGs3Dqe47JN2mDJa36QJGb 4Jt/rLrObuYoAltu2F5qC5abg0jBw2TgWwYiKOHbFHcN04mRtvN9jTyfxuYTJS1rIcH/ i+JA== X-Gm-Message-State: AElRT7FJJOyKgZKN02KRi72KOkvIFeulKFIravpMKUxDSGOzmi7MeIsf 0Iqez1c8ezWmdCDW4mbjvnSPbQ== X-Google-Smtp-Source: AG47ELtXFUpehtOxN5sgeW2UV/WEZBXT1clwMt5kjJobacCvvlCV1tYy9WwjtR0VmQH+/YSZ2VYhng== 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-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@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