From patchwork Tue Dec 12 06:51:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Liu X-Patchwork-Id: 177107 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp7549209vqy; Mon, 11 Dec 2023 22:52:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFIOS9Kjw82OPfr7Jva8Edy/PUYS9fpwT3bRvglwPG4QsyR8h38pGi9yjOLkvJmWH+bnZGp X-Received: by 2002:a05:6870:c14f:b0:1fb:75b:2fbc with SMTP id g15-20020a056870c14f00b001fb075b2fbcmr7398286oad.83.1702363957646; Mon, 11 Dec 2023 22:52:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702363957; cv=none; d=google.com; s=arc-20160816; b=lPokiulrewko334idH0eOVXy5wu8F2KyNroPrhC3nFNGbbaJgwQzeZybN90fPNrZoH gJj6TdpJVbLe0LME70SldPLV/uxLnaBoBSdOk7D6kRp6toS4NV0yDwCrgGu9Ta0ZbOXP IMKjBJDXVkJ6NPp/Xq4QNVf8a/p7OQGud+tvqg6SQM/N+QP2HIXQcpxWgthZTWj8x/i1 3HqdV4CeDXxpMpFOb4XjBembVycHwEkYHqL8ZPVrM1fomJ5W6LyHBimTksKu037m/mcg a9gJ2wSAleRsiCSDIwAtXXYhQTptBJegFvzXBItjTctTcXkybDKIm3m0G7N9jrLpCzFz fTXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=49MMQvIGuWmN6Zs24tkY7bheyel2kIquMFgVb7inNTI=; fh=c7uYJg4ItXuxUI2L7kaN94XHCDKWJ37ZMZtdSzuEeW0=; b=p2WM4VD1oRMGVEd7xiQy2a/1L36r7NYGL7tK6Ukkn/AwXBzsH8ZOujxxBoqAbkAmyv +7wOsrAwkZdyrUKNvVWb0M0F/BiGM6MDwsGxLrvz+SOtRPlQWVzphIwQhDsMzHERgdNC KCQfVq1wBqClq8UAtWizgD2rCK9o3nKePsgwTf3oub4cChniStTr2PjGtLFvIJ/Pr3Ty MMHC4mt3RQpvJ2dye72mhR+NcADE4aPjguk4XPiABsUczAP5afh0qSczvCPtdAHbJq8c Btzr09emYGlm0ZdLlmRlIfrLZTDKI6b0azF1aRJ0nIgwSbJI/N74rEVMrpnkqysps80F tJ6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MwAPwwzk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id x20-20020a631714000000b005c6b59c91bcsi7279332pgl.651.2023.12.11.22.52.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 22:52:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MwAPwwzk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 4F7B680560CC; Mon, 11 Dec 2023 22:52:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230503AbjLLGwY (ORCPT + 99 others); Tue, 12 Dec 2023 01:52:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230458AbjLLGwQ (ORCPT ); Tue, 12 Dec 2023 01:52:16 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43919BF; Mon, 11 Dec 2023 22:52:23 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1d30b544b35so9962025ad.2; Mon, 11 Dec 2023 22:52:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702363943; x=1702968743; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=49MMQvIGuWmN6Zs24tkY7bheyel2kIquMFgVb7inNTI=; b=MwAPwwzk18/XpFExx87YDBWwAfhm9uEpKFqEjFnLQvN4AbQeMjO5Ge4XU+XteSJwKa w5hPG4CMMptDYobAKzzOnfSR+PZHNFmR0rSLu/kjvUI4SZRh9LfcLWDNNAjaNkZM2OX5 PizVGljV3yToICzZZLmV6ikJ5zC6G8px0gZyAvM5snfcZigvTPpaxF8iOqlZIVh+OiEI MMMReUFPj1pBZGgb8rqBI5DTT4rFNFq9PKWZZkEvYFg3HIE/IMTnLvSnl29m7fbvfwfS FEepb+GXVML2GmPN3wcSkfIgCebtZSsBgV9R3/88gC1nHTAY2W7vfkTd2jHIASAlgfXy J+dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702363943; x=1702968743; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=49MMQvIGuWmN6Zs24tkY7bheyel2kIquMFgVb7inNTI=; b=tCaIDRyc92O37iyID2D9psMmPzSyCxSCk6iWlHZCfyh9d5sadSrk9JmLdaOc3X5z4N 3nbCLaZvml6lV/lsahyeBS/4qafPLMaGcl+10EBne9wxf8NTkazalIdCkeX6QetcbA7E 9IxN6SuTkSwB0BurZbLP1jSnd4L5ZUJfv0k3vtrp0C3b9T2GE506D8fwnHW7o8DRfdxM q0oTyEJoBnaBGIbgjkKsynTaG2ghk0KUMFNa417fME0KjU2L0IfdBpJS31BuSgrX9TD7 ZAPMVsZkTf7jcmMMFV/Yn/cXYwTNW4NXMJFKzIDWwwvo2nn18LuPeCBP8RgIAwsKIVjo zvnw== X-Gm-Message-State: AOJu0YziJK/0c5pq/l/H2fV1zmq2aRURyu9X8yA3vCOIeUzVI2BtqmPI KxAU6KYuOPGIwZyugb/KHNU= X-Received: by 2002:a17:902:db0c:b0:1d0:69d9:f391 with SMTP id m12-20020a170902db0c00b001d069d9f391mr3161808plx.40.1702363942681; Mon, 11 Dec 2023 22:52:22 -0800 (PST) Received: from localhost.localdomain ([1.200.151.130]) by smtp.gmail.com with ESMTPSA id z3-20020a170903018300b001d0c4869725sm7855221plg.97.2023.12.11.22.52.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 22:52:22 -0800 (PST) From: Jim Liu To: jim.t90615@gmail.com, JJLIU0@nuvoton.com, KWLIU@nuvoton.com, linus.walleij@linaro.org, brgl@bgdev.pl, andy@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org Subject: [PATCH v9 2/3] arm: dts: nuvoton: npcm: Add sgpio feature Date: Tue, 12 Dec 2023 14:51:46 +0800 Message-Id: <20231212065147.3475413-3-jim.t90615@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231212065147.3475413-1-jim.t90615@gmail.com> References: <20231212065147.3475413-1-jim.t90615@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=2.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 11 Dec 2023 22:52:35 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785057989040783812 X-GMAIL-MSGID: 1785057989040783812 Add the SGPIO controller to the NPCM7xx devicetree Signed-off-by: Jim Liu --- Changes for v9: - no changed Changes for v8: - no changed Changes for v7: - no changed --- .../dts/nuvoton/nuvoton-common-npcm7xx.dtsi | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/nuvoton/nuvoton-common-npcm7xx.dtsi b/arch/arm/boot/dts/nuvoton/nuvoton-common-npcm7xx.dtsi index 868454ae6bde..df91517a4842 100644 --- a/arch/arm/boot/dts/nuvoton/nuvoton-common-npcm7xx.dtsi +++ b/arch/arm/boot/dts/nuvoton/nuvoton-common-npcm7xx.dtsi @@ -372,6 +372,30 @@ &fanin12_pins &fanin13_pins status = "disabled"; }; + gpio8: gpio@101000 { + compatible = "nuvoton,npcm750-sgpio"; + reg = <0x101000 0x200>; + clocks = <&clk NPCM7XX_CLK_APB3>; + interrupts = ; + gpio-controller; + #gpio-cells = <2>; + nuvoton,input-ngpios = <64>; + nuvoton,output-ngpios = <64>; + status = "disabled"; + }; + + gpio9: gpio@102000 { + compatible = "nuvoton,npcm750-sgpio"; + reg = <0x102000 0x200>; + clocks = <&clk NPCM7XX_CLK_APB3>; + interrupts = ; + gpio-controller; + #gpio-cells = <2>; + nuvoton,input-ngpios = <64>; + nuvoton,output-ngpios = <64>; + status = "disabled"; + }; + i2c0: i2c@80000 { reg = <0x80000 0x1000>; compatible = "nuvoton,npcm750-i2c";