From patchwork Fri Dec 29 07:45:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Liu X-Patchwork-Id: 183863 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp2433421dyb; Thu, 28 Dec 2023 23:46:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmWZCbfD1/7QMjKiQfKZT+aNFbXjG3Pr7KupfBlYrlb2G/h9Wv+rHtsbFm/spC1v2z4LFh X-Received: by 2002:a05:6a20:9388:b0:196:60d8:187e with SMTP id x8-20020a056a20938800b0019660d8187emr1965417pzh.57.1703836018351; Thu, 28 Dec 2023 23:46:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703836018; cv=none; d=google.com; s=arc-20160816; b=crQQMkDerAM1o6bFqM7DwlYX+8+IpA8x1P+1NUz2JE1wcV+8i5tcaG9LLsx952i1kt kl3EwI6AUW54JfUJqvs7t5LSkCAIQr8NESkQjMCZiJSSrs6OfqVanuxRUR5size/dgXZ At9ePlvn29o3GsVdl72sYsusyCqFQGp2EG12+C6YZMJPG15hX3W10o5KHhGAtOsXOnkV HfoFoAJJrXxTSVWbSkaB6eCEDUrd0qfgGSo2y5OiufJA+E+tK2Kwy4ObuI5LCScdUx1C 2k4848r5gcr1WJm4Y0MUt5+KknKzzDypGMSyTqIBRn2ZkwqhBDCsdnU1hB7s9hMj6z7P bD5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=raM42T0EIL2NcFESOuJEj10hSihrJvgpKQH+cdOXtTI=; fh=UOUFIXaP3V3zbDDCQj9JBBA8zvknbSKb3cqjJ0SiGkQ=; b=0giuL5Mr3aS+uZWsFsq+0JVtyyKdazzi4pmRy972gaImdv8Z0F5MsqSPNBR0qY3wed uqW23+2qe0a+ZPoW2vI79ltJWGlEflPnrML+qajL+d75vRjJU0S+UOb6a/PZB14vHi/j yyEVpdqJ7pp2EZmEzaFipSlyKMLiAcZa1DToUdCDEJGfwvc2wFDSHr4X3X3L4Ewtzvxw emRG47VYn072IME2BKH2DOUcYcq/j3MRNQ2VMAN6bwQG5Ye+jzphohqPRVJR3ujKDyx1 FtgLL7AXa6gjo1kWo4kejvr2QRajTJ2LnsuzlcJ430b+HFDuBkJeCwxAAwOl7Bf9yLV+ 6gnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HETnAPdD; spf=pass (google.com: domain of linux-kernel+bounces-12973-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12973-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bz9-20020a056a02060900b005cdc5c70fd5si14014536pgb.531.2023.12.28.23.46.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 23:46:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12973-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HETnAPdD; spf=pass (google.com: domain of linux-kernel+bounces-12973-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12973-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B92B5284DEC for ; Fri, 29 Dec 2023 07:46:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8113B64D; Fri, 29 Dec 2023 07:45:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HETnAPdD" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 039068F51; Fri, 29 Dec 2023 07:45:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-f43.google.com with SMTP id 46e09a7af769-6dc07ce2a30so1055332a34.0; Thu, 28 Dec 2023 23:45:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703835935; x=1704440735; 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=raM42T0EIL2NcFESOuJEj10hSihrJvgpKQH+cdOXtTI=; b=HETnAPdD/HilQP/nDTHprZRI5XLfXARlU9rECZySe2j1eTJoNs1TGIQO2qEUXvqiwj G13eqFgxaJdp2MBQYBKQcoZzTH+qv3gT+nz1CWO50Rt8oJ1XTFoFmW8ChFUL9gvRydw5 W8YHylfWOXbUQNmAiALgShpqk/TgaImrGNBvZLn/rv8rBSDYd/WDPz6+Kop9pZ7OWmRz 4cY+9eEDhQcVecvFt0+qxSXLIH+fqGL8T1br3RegImZkBA+6U6yCPdsPdpvqLwcui1FC xnkrwt3MYeZF8mKGKMUATgsYK7ffO9gNOZN3StyfuQi8IJzxZOBVXPn2dll7UZX5zmFN Jeng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703835935; x=1704440735; 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=raM42T0EIL2NcFESOuJEj10hSihrJvgpKQH+cdOXtTI=; b=xLA4v3iFHzEfSlDtqn9P3cfoZRnrImhHuf+JIdBmVLgcnWZlRU3fl/ETKOhotTGU5Q AFy++db3sfQ/D0qapn8qKnnfcw0I/4UPp05BWJEFZ+dq1h2z41/zkh2oeMU/m5sBRedj kkBiu4EiZdXy0NXJma3zynN6QY/f6dQgLqO2Bg5ubaGSa7t6pupwGtzKxYcYXCB74twy M1XIvtg+cKcM77FfJx/Um0Mc3OIrRFgsST8YAf/wsoZKxx3Tx8a46BwKYN9pfPjO+tnj zAe8LXWxJpMr3OKz/BwICFmOkvS5lvbL6+dIvHJ7bB2WJYwER2U5rBAiT4AX1o+ELEY8 QfuA== X-Gm-Message-State: AOJu0YxIpseCTtwKw/npQ9+7Ufs9uT2b31PXOqPpaShBb5nUVljkEunw yi8ea6+oDMSiw4mWXsfhecc= X-Received: by 2002:a9d:6e8b:0:b0:6db:af74:dacb with SMTP id a11-20020a9d6e8b000000b006dbaf74dacbmr7602885otr.67.1703835935085; Thu, 28 Dec 2023 23:45:35 -0800 (PST) Received: from localhost.localdomain ([1.200.140.173]) by smtp.gmail.com with ESMTPSA id s188-20020a6377c5000000b005c683937cc5sm10305186pgc.44.2023.12.28.23.45.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 23:45:34 -0800 (PST) From: jim.t90615@gmail.com X-Google-Original-From: JJLIU0@nuvoton.com To: JJLIU0@nuvoton.com, KWLIU@nuvoton.com, jim.t90615@gmail.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 v10 2/3] arm: dts: nuvoton: npcm: Add sgpio feature Date: Fri, 29 Dec 2023 15:45:07 +0800 Message-Id: <20231229074508.2709093-3-JJLIU0@nuvoton.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231229074508.2709093-1-JJLIU0@nuvoton.com> References: <20231229074508.2709093-1-JJLIU0@nuvoton.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786601557067408541 X-GMAIL-MSGID: 1786601557067408541 From: Jim Liu Add the SGPIO controller to the NPCM7xx devicetree Signed-off-by: Jim Liu --- Changes for v10: - no changed Changes for v9: - 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";