Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4457263rdb; Mon, 11 Dec 2023 22:52:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IHDj+3IfABov3pyQR9O5EcwqQ//P8rXc/ZEgYnplLSC32RPASe7Pqgss/Q7sOhBikFYewwd X-Received: by 2002:a05:620a:2204:b0:77e:fba3:a20c with SMTP id m4-20020a05620a220400b0077efba3a20cmr5845169qkh.102.1702363962240; Mon, 11 Dec 2023 22:52:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702363962; cv=none; d=google.com; s=arc-20160816; b=mG6a1jfQIA1NWHP76JQ2uF5k9RxxdMYJj2PJ7eXdb+iAQuEL1HeeOBL/r/v5H98SWc yD/g7qutB0i1+OfcYS9LKR8X3yf92rY/A19pvzs5to9r7xQ+yh0C0XKHgkWz8I1Xztuz eSx+HFbrvgsmVRTY2jjN76nSvsDuFjE/fxRhNLUIJJBQv1vpWv46yIVgMAZiYHrrseg1 siARv1xtLgxxqyTQftq013nyMcddck+Lcy+JyRSawG0togLhFtTpxFWTVM+enJ8QoJFY xPl6Q/DoGxGlhQeOJutwUvnlNWwrSWtROMNZjc3aTGt2Fo8isRXcJz+c/hSEqc/N/Gw2 x9zg== 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 Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id pf3-20020a17090b1d8300b0028675b3e8a1si7415103pjb.75.2023.12.11.22.52.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 22:52:42 -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 B28DF80560D7; Mon, 11 Dec 2023 22:52:38 -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 Content-Transfer-Encoding: 8bit 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:38 -0800 (PST) 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"; -- 2.25.1