From patchwork Tue Jul 23 17:43:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 169555 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp9168943ilk; Tue, 23 Jul 2019 10:43:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNif01zxDOkLlhbKoe629wJe9Rfk6T0jNLrR1bdviCOHKJEBMJ3aaezjJB6zrT1nfxh6ps X-Received: by 2002:a62:cf07:: with SMTP id b7mr6978502pfg.217.1563903822246; Tue, 23 Jul 2019 10:43:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563903822; cv=none; d=google.com; s=arc-20160816; b=xKV/f9e5UY1OGbVrUpE7zSo9YZwrpIbDuWCultqDhiPVWehCWv3t2L6g6teUI3JTCD /EYKNfRkwOoGfbn+qr25rcy2TSf7esVq4qyBzgdziZv3tONHMma8Faar4i5H0k3x8Mu8 IUET69A7L+L/BZ+TYKzK71dKa/5mK1WhpfH3U0K3YvzbYYBqAjwaUYNzzO7QCJ55FLPI 9o1r4B045ouQLUCrMQgVjy2ygDlz24bDkTg4xnLo/3q9fYzOeilNcTYXD5jmcKYPou/d Fz8/U8/AdPVbDELzb6MVe7wVRfDOxXSLWfzP1gsik2XaraLJztt5r9PeGZ4GBDe3Nc8j Hiug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=QFTwoXxJunT2kH1Ot9eM9+cX7DrsPRtBTLu8N/TMz/U=; b=LgZdkubk6CYshEcr/1PLRk7s/mLmGJqGQ1QlUr2hu/SZY4icBYCbcHh5IveMOVIkeZ dqd5rDn+L1c/62xq/Ordv5ZUMYfgvWTPSCNOP5Le3O0cLAqmNhHv23ggQJLu5wFsneux Mo/FaekgXA/R3fNUIvphmQ2hVN2IMG52mB8jDQBZjaxKfCtjmuCX2RNqLyID1rOPtQdD 57RgzOIOtXstWwWhkq/lWQHr5yO3h9PSfJT5tsEPWXlextpcBVMjgjvuXxCVvOxVHA5t hkTQ6yCIxveZ1hGTkVYqvoicjUI12CZf7p67IJwnfTuDktM2VA2XgLseDtUdfXhxJdPj 17/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="eEWJN/qp"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 x1si24237441plb.28.2019.07.23.10.43.41; Tue, 23 Jul 2019 10:43:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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="eEWJN/qp"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S2391184AbfGWRnl (ORCPT + 8 others); Tue, 23 Jul 2019 13:43:41 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:36030 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388606AbfGWRnl (ORCPT ); Tue, 23 Jul 2019 13:43:41 -0400 Received: by mail-lf1-f65.google.com with SMTP id q26so29980551lfc.3 for ; Tue, 23 Jul 2019 10:43:39 -0700 (PDT) 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=QFTwoXxJunT2kH1Ot9eM9+cX7DrsPRtBTLu8N/TMz/U=; b=eEWJN/qpGbjQbRIR4evYZVPpITZL50hcxujFO284JFDN+o3or8Ykgaev/bDTqBYMLO FftCk6Gh8j/cq3c6CqHei6MWD+r+FFxRv+qL1ans9Hrl9BASeuwVTOpQdjCUEnI87171 5vj/zAmE13otAcjYNbvKgxwG9GjkSvDR5tpE/EBMgTDGgJTVxCJ3rqiACh0NcP5TW0iO CnrcSS58UKLgrPdijY5tHH4QdSvLbqMaArahKdXEIEC/bHdvqMdFy8K6WE7gyI8RhZCH N0+UKXtR3D3+5DTbSBhiaPoMOQZy3kZ5LRjVWJuiv0MYvsl612AvoHtkxIcK7mcLNWpH g2JA== 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:mime-version :content-transfer-encoding; bh=QFTwoXxJunT2kH1Ot9eM9+cX7DrsPRtBTLu8N/TMz/U=; b=RPpUQthZXxnV2GSCWduKdduMZeLMDrMybtg2XzOMvwX4b6YwplNDWQTo41vV8Df4o5 CQW/nRwMv+Gy9xzJDt8KpXk71pND9ZUU4VvVBC0NclKvaZvYY4LB8K6hNsa5tTxBeZ8r ZJxUPPz8Ignc2IVjllawolERgcCuzOrz38IYQujCQNHFZaPFZc516GGzQi3E70i2q+wf gldRh8XdBTrz2JUNYIepdFg9qFilzt2D7jkYsd95HWKAeZmcf5/5NfkVMGsKYce374yO knZ12qaN4MWwHNwn5Meeg1LLv+U0Gj5L66WglVE9Lwm34/B1FASN2mzuGlhYLnJ9FOsi izJQ== X-Gm-Message-State: APjAAAUjbvz3+4UgtPJXgJH7nJZx2rcWrtFGh+Hd/WydBU8BJyaHzR57 56Wo8qEGArE+j0WA9SfSFN2Amg== X-Received: by 2002:a19:e006:: with SMTP id x6mr35088127lfg.165.1563903819260; Tue, 23 Jul 2019 10:43:39 -0700 (PDT) Received: from linux.local (c-2ccd225c.014-348-6c756e10.bbcust.telenor.se. [92.34.205.44]) by smtp.gmail.com with ESMTPSA id j7sm9042247lji.27.2019.07.23.10.43.37 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 23 Jul 2019 10:43:38 -0700 (PDT) From: Linus Walleij To: MyungJoo Ham , Chanwoo Choi Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Mike Lockwood , Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH] extcon: fsa9480: Support the FSA880 variant Date: Tue, 23 Jul 2019 19:43:01 +0200 Message-Id: <20190723174301.31278-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The older compatible variant of this chip is called FSA880 and works the same way, if we need some quirks in the future, it is good to let it have its own compatible string. Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- Documentation/devicetree/bindings/extcon/extcon-fsa9480.txt | 4 +++- drivers/extcon/extcon-fsa9480.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) -- 2.21.0 diff --git a/Documentation/devicetree/bindings/extcon/extcon-fsa9480.txt b/Documentation/devicetree/bindings/extcon/extcon-fsa9480.txt index d592c21245f2..624bd76f468e 100644 --- a/Documentation/devicetree/bindings/extcon/extcon-fsa9480.txt +++ b/Documentation/devicetree/bindings/extcon/extcon-fsa9480.txt @@ -5,7 +5,9 @@ controlled using I2C and enables USB data, stereo and mono audio, video, microphone, and UART data to use a common connector port. Required properties: - - compatible : Must be "fcs,fsa9480" + - compatible : Must be one of + "fcs,fsa9480" + "fcs,fsa880" - reg : Specifies i2c slave address. Must be 0x25. - interrupts : Should contain one entry specifying interrupt signal of interrupt parent to which interrupt pin of the chip is connected. diff --git a/drivers/extcon/extcon-fsa9480.c b/drivers/extcon/extcon-fsa9480.c index 350fb34abfa0..8405512f5199 100644 --- a/drivers/extcon/extcon-fsa9480.c +++ b/drivers/extcon/extcon-fsa9480.c @@ -363,6 +363,7 @@ MODULE_DEVICE_TABLE(i2c, fsa9480_id); static const struct of_device_id fsa9480_of_match[] = { { .compatible = "fcs,fsa9480", }, + { .compatible = "fcs,fsa880", }, { }, }; MODULE_DEVICE_TABLE(of, fsa9480_of_match);