Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp686285rdb; Tue, 5 Dec 2023 17:47:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGstWZRDHDgd//shMaz0n+74uvmM2lCZCfnAhO4Ps+45sTv3WOUYqSUUwD+Jeg6jPMbmZvY X-Received: by 2002:a17:90b:4b0c:b0:286:975f:7e2e with SMTP id lx12-20020a17090b4b0c00b00286975f7e2emr101845pjb.35.1701827220735; Tue, 05 Dec 2023 17:47:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701827220; cv=none; d=google.com; s=arc-20160816; b=Y9FGDhqB+0KcwpnivpjN7qKoNr5P3TdPFJFoMXyCXSoNHL6I9MM//Cx3CRJ4DHQhoI GejQHAU44QIUOS7oMLyZK3DGAkWZurzxq8/Bx3gWhEeRtjJkJeqZGIEiUyJcfSCsxPyI KpWjZG5Ov1vTTHlMfYMsZ6wYOtgpLOcSIG9wzs6oA47P2CfltBfTqxfRUA/NbiarVM+v 62CbWvLkozneQHTKNeyy34QkNICYNdCgg9Jc8lEup8vDg5vYzMWfk0kjgBIkaUCuR7vU i6Mt0r1UadOJsln+QoRuyGDfUexGD3qi+CL/VtAlCgdLgLkn/qcszRB7srIBtGlxlQD0 mUyA== 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=6cnQl6rrS5sD2qm7iZDbkr4tzTgzBdd00wWO4ndD9wA=; fh=lKSWIbm60Rmc7Xe6HrD15tUfQGnI1b/mOqFZaP/0X9c=; b=FNchd3ka6R+KOkK7hc+jbU/ttWMwt+SsVXlh12ZrHc/AMaBoh+HKefUh4pQTRFOFaH lekz6eVKj8p1vsXCdkP1EFWvClmktg22ebIaTzYzfBoFQ3I9LQnhRgX/LUj3toKK1+mg KY1aD2b3tT+2l7E8e5Knr1GLK/NDVQUi3iuLTLqTL+iapA30mLpU3Fz+126FJuk1MlgU mQP5vpwZLadAlpJY1sluyRuNWRAPPRnKkOj2bhZP4TacXYkV23BulLCpbMrhJ28HzSJr dX4z81Duo66TDjo7rIHQJorTwX6us9f87p703txHo4GMLT2NFy0hAXT9CMaiMLsu8vJN MFVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NMqJL9ij; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id l6-20020a17090a408600b00286ef2fc253si1254354pjg.97.2023.12.05.17.47.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 17:47:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NMqJL9ij; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 13563802FBA6; Tue, 5 Dec 2023 17:46:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376616AbjLFBqn (ORCPT + 99 others); Tue, 5 Dec 2023 20:46:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235266AbjLFBqd (ORCPT ); Tue, 5 Dec 2023 20:46:33 -0500 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A58C310D2; Tue, 5 Dec 2023 17:46:25 -0800 (PST) Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-6ce93552cb5so13893b3a.3; Tue, 05 Dec 2023 17:46:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701827185; x=1702431985; 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=6cnQl6rrS5sD2qm7iZDbkr4tzTgzBdd00wWO4ndD9wA=; b=NMqJL9ijvtpDq2XsJRVd9HT8LlB0A1FyzhVTyG1b7vGGSjbP4hAJipT9iA9hi9N81T bauUBCm8RbpnvHtyvsbNruOfmUwblQFlEvVJRzx+3A55FJahRlJ+6mx6k4+hCcPzs0+O RthwNY+hpJiIvoC4uaeKj2EjpkeB+z7/1Bwa9sVyIS+McbRkAItF1nPfjj7aaLuMeeFj 2s4war9zckih0+UtJGmKmcJ/g0cmF8SzkRPZB165Uj1ycokt9T6VHB9+epJcLWjTkrax lAGZ5F2rYmOzoEZJcyNFjCFsHGfJcMVSJ88/+fS6QuMo/6cRBeccILb8ggq0X8V4QTmG kkkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701827185; x=1702431985; 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=6cnQl6rrS5sD2qm7iZDbkr4tzTgzBdd00wWO4ndD9wA=; b=SR9jBChRWynvIMusrEdaLg0dYPyj+CGiZTyt5vC9r0R4tm2iMaexDUi6RTUXOUDPhf dhIMuZ5vizbUQyFykRa0I34+TcP2RrjtDr9idtrf2IHYCowTFShJnRUjvrbzZnvYzlae lT0sj2iDTxFaXGsUBufYRz8zIrg4fPOJVVxI9ghJpdyLCiJ7ivYrs6JFcS9skJbMwFHs tWuIqqkMBCYMQeiFMefhLp/aI525gqfB/hfxeIyW5b/k5rrK1p2X9ZXeJ3Kvj9P5+VmL +ekOIEUVjnOnISFukhAnZdwwUs3jcD5wK+PHiQivbCcfBBFeUa/6CsxDRpry3zavib0U hyjQ== X-Gm-Message-State: AOJu0YxjlmFTreWoDznKDKj5tWSwpKu3xwIIb3k+A0pVkvq41H4yi7zj yH+/YQ0LLvsxy9UO97A5gdQ= X-Received: by 2002:a05:6a00:22cc:b0:6ce:5b63:3017 with SMTP id f12-20020a056a0022cc00b006ce5b633017mr63296pfj.53.1701827185024; Tue, 05 Dec 2023 17:46:25 -0800 (PST) Received: from localhost.localdomain ([112.78.94.69]) by smtp.gmail.com with ESMTPSA id g24-20020aa78758000000b006ce781f6f85sm1250956pfo.43.2023.12.05.17.46.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 17:46:24 -0800 (PST) From: Jim Liu To: JJLIU0@nuvoton.com, krzysztof.kozlowski+dt@linaro.org, linus.walleij@linaro.org, andy@kernel.org, robh+dt@kernel.org, conor+dt@kernel.org, KWLIU@nuvoton.com, jim.t90615@gmail.com Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org Subject: [PATCH v8 2/3] arm: dts: nuvoton: npcm: Add sgpio feature Date: Wed, 6 Dec 2023 09:45:29 +0800 Message-Id: <20231206014530.1600151-3-jim.t90615@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231206014530.1600151-1-jim.t90615@gmail.com> References: <20231206014530.1600151-1-jim.t90615@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 05 Dec 2023 17:46:59 -0800 (PST) Add the SGPIO controller to the NPCM7xx devicetree Signed-off-by: Jim Liu --- Changes for v8: - no changed Changes for v7: - no changed Changes for v6: - remove bus-frequency - check with dtbs_check --- .../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