Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1185100iob; Wed, 4 May 2022 16:54:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYTmPdB8dozYMJWWUL2PjQGhSaT51FLzMiHinTlCXi4lRo2JqWcECRkGgRYUTg+L7Na/18 X-Received: by 2002:a05:6402:cb6:b0:425:f2e0:3644 with SMTP id cn22-20020a0564020cb600b00425f2e03644mr25843847edb.301.1651708465690; Wed, 04 May 2022 16:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651708465; cv=none; d=google.com; s=arc-20160816; b=ZHzZ51oM4ArV0yST57d5f2+9U+Ufcrs1qwAux2GITAR6fSlAWL6F0NaoCntZ6YgIMv cxwjsj2xT+TEKVxvHhy6/8eAvsTQg+sNJcAoCTKN3x/mc/cG5LCWNGjMtSugdPAGTaFe ajJ2Mfn2T63pFNaSjDWCpUnWw2djaq9xkrUOQdQ8Qen3F6P922mHuusxH3q7WVYmReD4 ryaCqprVyQcVn8WqOuYOrad8xFy1zzCOG6MGE4oD5EKoJcT1yTfvzBfMzczUJE6I9v0B zS/guMFT8VsusPBLp/LIXxwjmb4H0KM7+Nhhx26J69K/Wx7WBJNcMRRbHJVg9CKdui+W /Zwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=cDOk25/RnzvpMlR1XeGM1YdGyH6P//mosNWBwa+h7uM=; b=rWBbKSz5oyEhBUSPwZMB+DAXw7xctaS/OJFnRs+sQAzKR6st8nSHylRKUJc21/rSdM fCeJ0COVmVnLonKt1LTqd4vISVrf7A/ra0A3uyU6MuoHCQAXlgCJpx0XclBGfJYrJ4b5 sH4BrNZr/Co/evlnVpyhuaDbWOB5vFWPLgtNdWwzy9j3o7xoWIdQ0WqXhUaXyuo3Y/c9 5aKq/EvtkMoKlAM8aTgVmyeHG/64NSykVaaun7n1ZoDSJ33YSM2nQc/DUMj0uaQQBFmd Yobv6nvrTxu/6+RUZeCpP5xX9soLVPRinS+p+xSppe3EqiBUpmFmV2b/eX5EqoM/Csgw UNMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jxTTz++i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u20-20020a17090617d400b006f37d187707si439593eje.41.2022.05.04.16.54.02; Wed, 04 May 2022 16:54:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jxTTz++i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354179AbiEDSJ5 (ORCPT + 99 others); Wed, 4 May 2022 14:09:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377152AbiEDSJS (ORCPT ); Wed, 4 May 2022 14:09:18 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C64F5A08F; Wed, 4 May 2022 10:25:11 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id qe3-20020a17090b4f8300b001dc24e4da73so4039659pjb.1; Wed, 04 May 2022 10:25:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cDOk25/RnzvpMlR1XeGM1YdGyH6P//mosNWBwa+h7uM=; b=jxTTz++iwQNoh0+k+5pH/mXQf/2Y595qewvSJ6w+4c0UQN9HYm/Zqcvr0ZtZutf+kX 1Slrx3gM8oljrdRhY1TBBmUMFgbJdF99iMIuV8ExnL9mK2V8EaJgVNPbaePQ3f6nMaj8 0geSNvNsp1Vp7kp1Bm1BMvdnM54EiDJ4GVTDq0X9IMsim7UqBYzsVmcTSyyCE5myk6lS FnXeEI8UhQfUVohijp1weu6PPjFajnLQz5GFow2PyhVjzhyZx/tGcVdSc3omMGNq/+tW 0aqlQWWvln9KCc10wIy6mxxsar71tLKJpR53XZI93sz12a5eMeAivGdxTx5UlS/G7FGf h5HA== 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:in-reply-to :references; bh=cDOk25/RnzvpMlR1XeGM1YdGyH6P//mosNWBwa+h7uM=; b=lW64ylKe/Pq000FedfIJbVVU/JAAuU6rfQGprjXVuiSo0ZQ+n+7D1X57UBSFTKrfwK rlQXXGog14eVj/Ln+nbfh3VrhhlPnGKphaztSLGX7W5YP0bgQvy7ULSvZuBs8vTt5ccz nDFhfihIk+0En+rfKdjSQoVzpejKgVcRpytHzKCPMenBhQZXW9EmA5FmExJHctaqskzH P/JheFNOnyoDCtesmOlcCqskrwa0Gkids0d+wOZxvdLhs5TzwGN8b2+gFfp+N3Ll299V fpeyHYjZolvV+G/s+TZpt0tHucAmNl2+P7QI1cEIcuDL8b3U2tZ2o0Ynl64LRh1Ul8NL izGg== X-Gm-Message-State: AOAM533Ol3F9cBeDezeI92TuYtL7BbcAyXM/hS4brC30nJzXWAUYTu6M bt6eETJp2FIaNJDrbOqv++A= X-Received: by 2002:a17:902:f70c:b0:14e:f1a4:d894 with SMTP id h12-20020a170902f70c00b0014ef1a4d894mr22863739plo.65.1651685109888; Wed, 04 May 2022 10:25:09 -0700 (PDT) Received: from stbirv-lnx-2.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id s21-20020aa78295000000b0050dc76281b7sm8772104pfm.145.2022.05.04.10.25.08 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 May 2022 10:25:09 -0700 (PDT) From: Justin Chen To: linus.walleij@linaro.org, brgl@bgdev.pl, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, f.fainelli@gmail.com, Justin Chen Subject: [PATCH 1/2] gpio: pca953xx: Add support for pca6408 Date: Wed, 4 May 2022 10:24:59 -0700 Message-Id: <1651685100-44687-2-git-send-email-justinpopo6@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1651685100-44687-1-git-send-email-justinpopo6@gmail.com> References: <1651685100-44687-1-git-send-email-justinpopo6@gmail.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for pca6408 which is the 8-bit version of the pca6416. https://www.nxp.com/docs/en/data-sheet/PCA6408A.pdf Signed-off-by: Justin Chen --- drivers/gpio/gpio-pca953x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index d2fe76f..2d0b080 100644 --- a/drivers/gpio/gpio-pca953x.c +++ b/drivers/gpio/gpio-pca953x.c @@ -71,6 +71,7 @@ #define PCA_CHIP_TYPE(x) ((x) & PCA_TYPE_MASK) static const struct i2c_device_id pca953x_id[] = { + { "pca6408", 8 | PCA953x_TYPE | PCA_INT, }, { "pca6416", 16 | PCA953X_TYPE | PCA_INT, }, { "pca9505", 40 | PCA953X_TYPE | PCA_INT, }, { "pca9506", 40 | PCA953X_TYPE | PCA_INT, }, @@ -1198,6 +1199,7 @@ static int pca953x_resume(struct device *dev) #define OF_957X(__nrgpio, __int) (void *)(__nrgpio | PCA957X_TYPE | __int) static const struct of_device_id pca953x_dt_ids[] = { + { .compatible = "nxp,pca6408", .data = OF_953X(8, PCA_INT), }, { .compatible = "nxp,pca6416", .data = OF_953X(16, PCA_INT), }, { .compatible = "nxp,pca9505", .data = OF_953X(40, PCA_INT), }, { .compatible = "nxp,pca9506", .data = OF_953X(40, PCA_INT), }, -- 2.7.4