Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1485997iob; Thu, 5 May 2022 02:22:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrrV16o7J2hCastnFy6/vPPOgeu8/IFVr14O7d0JwMvXipTvSNzUmem3Uil2MMdU+lPvN5 X-Received: by 2002:a63:115b:0:b0:3c1:eb46:6f5 with SMTP id 27-20020a63115b000000b003c1eb4606f5mr19209843pgr.277.1651742579164; Thu, 05 May 2022 02:22:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651742579; cv=none; d=google.com; s=arc-20160816; b=rudHP7mMGmk4Nf8+f05oCQVee229ydFjWXfB1lmQyQ+M3rO+/Uky9SKqmyi0FQ+ahB MrRzabqnrV8uT2m0kuUvitd0uoB6JtTdMQJdBgcn8WibS1QEdfQIgVrDs1ztVRRaOE/s fn442oi+jeae4DFMsBz0HB8WzsDvuuCHFJPWxINyQi8r2/wzjWX3YQqKCReRxTJ0XUEs 3chq1XWSMmBaRX0GtoHM8QiRY9JKBhey5s961/oVhWm9OHEoZhUN547RE1iPiwQDGERN 7L/G8c2pGsqkXjopF/dEoKeyNtnGUFDDIMFbhskNBFy6/0phi0K2piKxl+diL/H4er86 QPTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qtj3kM23Q+DPPlGR5wpXCN7V8AfMLAVbykig0+rvwrQ=; b=ojR9x6/dSUoFUutcFW2X5SsIG1x8U2FStVuImLGtLrhOC0keUwSdOXtQTE8LRd8DwQ hYZerj/S+jAQ6Ph5LQh4fhmifuHEkFf15aaSxK0RB2vNU3Ppv0xd/0Sgp/lYKHUUIY9q 7U7S1gpIaozkCosDgpiutaK7bUT7tYwxjmEI5elfljB5NIHL+3sDOzLbK6mOAKbBP/bw HCWOlnn6XKSn95esn3yk2i74d4yXbokhWqjXDD6tB7zFni/U5UqdcphcjmdqGoK3yyvb woH9CaT6lPWXrgeOQZLIwc4SMsfuBsBBp1N2VJN9tqARkjsIzNVVuEJqBYijV8dpVndH sOkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UH6Ta6W4; 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 c2-20020a056a00248200b00510625a3267si1166528pfv.118.2022.05.05.02.22.45; Thu, 05 May 2022 02:22:59 -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=UH6Ta6W4; 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 S1377391AbiEDS7i (ORCPT + 99 others); Wed, 4 May 2022 14:59:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377500AbiEDS71 (ORCPT ); Wed, 4 May 2022 14:59:27 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAFF5205CD; Wed, 4 May 2022 11:55:50 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id kq17so4643389ejb.4; Wed, 04 May 2022 11:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qtj3kM23Q+DPPlGR5wpXCN7V8AfMLAVbykig0+rvwrQ=; b=UH6Ta6W44ExCTUoM11nmWUGcXNzNXr6eSMG6xgz/VLSDuxvHk4TxueHl5IojELPqZq Lt0MDCfaWL8yTjMlJGxbmloy9MPbnQwagScezzZVAoSaVJS32y7cnxqnr+CO51YBQMXZ a2Jy/I9JSm6Ym9Rq8MJ05Iz2Ib6QjEN4vrRl+guWsFneVGcTYF645Lay6TdkmNHXigU2 wgimM8GhKfY9N8UckyEqExMZoQzK7+/yp12vcFeyJVDs9UR4sXxbENLIY4mvml7W3sRx exQj7M2e0dMYQW3IOn9dTYDYZuOIB3EjhQyeVTTpDjWRVsEVkawL6JTPrd4pyf8xvuwF n0aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qtj3kM23Q+DPPlGR5wpXCN7V8AfMLAVbykig0+rvwrQ=; b=rmXGqopftbApLzgJE0IpkShi5eDMIIqsX5ZW3RMh5ThBmvD+x+bcCEZPBxoYlD+CXj JLSo4L48uupzvCoMYGTyQN6Jgr2c8hCS1UCvWdZ4zirlaNZWTP1PaD9iagkuxvJ8MfIZ pxb3GQIZsXJUQ7bxoU8nZYoOJcMetUU/A9aei/HJgjgc0yy6qiKZzy1704KVE+6kQfJ9 n4YuVgrhYLYKpYEvIuYbU5pfJrhKBlRihmSIm0BEyMOsL/IsdS2CMcEVq8+E6z2ulMJi OjvzAcgmoTk2drEpzx2fI9o3c+ZSr4ak5/cg9NQQxcdiNVLEt3DdIzf/8TjlM+j/Vs5V hTjA== X-Gm-Message-State: AOAM531HCBtHFRcw+DSeeOB0/115udXpzaNqKNPPIyGsdPoeyADfwU2V BY1HxC6RVrw/VbZgwLR1MfxN1iNvjaatXkS4ZIc= X-Received: by 2002:a17:907:1b1b:b0:6e4:7fac:6ce0 with SMTP id mp27-20020a1709071b1b00b006e47fac6ce0mr21594175ejc.617.1651690548672; Wed, 04 May 2022 11:55:48 -0700 (PDT) MIME-Version: 1.0 References: <1651685100-44687-1-git-send-email-justinpopo6@gmail.com> <1651685100-44687-2-git-send-email-justinpopo6@gmail.com> In-Reply-To: <1651685100-44687-2-git-send-email-justinpopo6@gmail.com> From: Justin Chen Date: Wed, 4 May 2022 11:55:37 -0700 Message-ID: Subject: Re: [PATCH 1/2] gpio: pca953xx: Add support for pca6408 To: Linus Walleij , brgl@bgdev.pl, Rob Herring , krzysztof.kozlowski+dt@linaro.org Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, f.fainelli@gmail.com Content-Type: text/plain; charset="UTF-8" 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 On Wed, May 4, 2022 at 10:25 AM Justin Chen wrote: > > 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, }, Apologies, typo here. Should be capital "x". Will send a v2. Justin > { "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 >