From patchwork Tue Dec 20 08:01:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Liu X-Patchwork-Id: 34982 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp2833466wrn; Tue, 20 Dec 2022 00:03:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXv2viMSs9JkvIl0CCUoYVFDdpbAN6uLes1XX0Sh0FirOEQvIvxICRiEX8qkIp08SkUk0elj X-Received: by 2002:a05:6a21:3a41:b0:b0:4f70:b2b2 with SMTP id zu1-20020a056a213a4100b000b04f70b2b2mr8530673pzb.46.1671523417856; Tue, 20 Dec 2022 00:03:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671523417; cv=none; d=google.com; s=arc-20160816; b=a2/yHum7HGCB9i68qWxHL8BdyirvluH7EahMB8/dV+n6MR85BDxRMCULEmJ63rjDYt 4P4YaGxqC6sZ21FIfDPSfFwL4iOOwhm0dGX1w4qs7KjOpvfrwg3zWIQOPrLqCFmg3D4h zYAN/qgA9tr62zMu9huuat/J9CQ4xLoMbILhYa76W8aC/txnHKN9uN4/1UrBm9FU2T7B JcGuefRU6N1/KDxCPNl3VzDes0eNj7vRsSNew5GtwuY878V/xotBM8NcM58ZsfS3LHkL g9wn1nH34LIb99WUCjNm+524D5zhzUemQQUv2v586ujJgSgwau5+WqA+s8TXbQ+TnD1t 03OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=cn9sFYqIGbUunzJ/h1lkLLrsgoXDUwwaBnwYE/8qbO4=; b=a+xfx0+AneF8OFBZ0EVADkLRZlvqTfdaalRbSkQ/wbcF5OQDIMCdYR762vXVPazGaX tLhCW/zgdHaF2gcxO60cvsDqEgH5M/qK3Elv0/YnYKgQnGz7KeranqGJAjMEqzoFQweN eCCOT22VVxFtFfzS4Z2YrbFuN0FpPRPqF2L51ExueldCG2s0OxcxkpswKheNhvvC8Q4E miVUCXgL9OQxg4WimD9SrHz7gJpFQP0OcVfgg+CABXpiuinj2m64z/DCu6sHKc+oBDfv ypTeaf4sbOII+t/HTTz5YfU4PtTJO2UW6diFnaTHCObepF5mx9BJWHSVMPsieY7G60Ip XGKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=boQBueAK; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z14-20020a170903018e00b0017cc894c78esi14012554plg.447.2022.12.20.00.03.25; Tue, 20 Dec 2022 00:03:37 -0800 (PST) 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=boQBueAK; 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 S233423AbiLTICX (ORCPT + 99 others); Tue, 20 Dec 2022 03:02:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232633AbiLTIB7 (ORCPT ); Tue, 20 Dec 2022 03:01:59 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89A2813F95; Tue, 20 Dec 2022 00:01:58 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id t2so11514185ply.2; Tue, 20 Dec 2022 00:01:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=cn9sFYqIGbUunzJ/h1lkLLrsgoXDUwwaBnwYE/8qbO4=; b=boQBueAK+MllFRt+huvohf4L7VYUzk0TicrIJE5Yg+ZbwQQUNgVyjvgKrmojKPTadC 1mi7J+6CiEfWZhy+yFMfhkXHM1RoRXiWwLIzwzxRggB0a9o4jxmflAHR9KYHVsCKDPyL 8l6QEAgafhCll0i//bQJDQIg7b8EvNWtPtTkRSfM3SIHLQL9QnnLFSaIjCyIXXf3XfB0 3T65dSGI/b1UBTfGCaHp8co4AawmnAhT+6RQpERM8x7HHvIehx2qRNuyWLckt1BCcLm4 EwHHqWneU2SN3aWO9w5bxliWnT5Z5lFI3VvjMFknqgW8UcB16XkAYvJumtvurb9gEBVI RUDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=cn9sFYqIGbUunzJ/h1lkLLrsgoXDUwwaBnwYE/8qbO4=; b=TbMx3qrlFv8jrmeN7KyKihTyeZkNtuAGfXc5RHcuul3846vyl8y3dOkxkOyyOoq5FJ KoyDaf8bxdMO0+27AnGcq3hHlGDcqQRstp+PNemUbkFKCBXs+RSvZ9S7OroGR9TkUoyT hMIYkmmjZDZCq07USbnKlOtZ8v5i3wMTAfFkI45UrW59vhndYo4539W7c1TQwJNO5erv /NRLugQLOohtfT+XxWd7YcmQgEQP7M9tO/2UOJiKuIvTjxH7eXlg8F/UK4tuTZkU55ST WExt/OHXLEAkstXgHJgAhsxVS7uQH0lH0IbRRMjkD/6CtD6icNI/CzqCNHg93fHAIy+k 15MA== X-Gm-Message-State: AFqh2koLxNqbz3wdIUrd8GrT8uhTGTFzbcJBiNQFH26e11d/yyIi7t/D QAwiAAyyuNDVe27rnjhAf0c= X-Received: by 2002:a05:6a20:3d25:b0:af:953a:12b2 with SMTP id y37-20020a056a203d2500b000af953a12b2mr29479761pzi.43.1671523318093; Tue, 20 Dec 2022 00:01:58 -0800 (PST) Received: from localhost.localdomain ([180.217.146.214]) by smtp.gmail.com with ESMTPSA id u15-20020a65670f000000b00476d1385265sm7559179pgf.25.2022.12.20.00.01.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 00:01:57 -0800 (PST) From: Jim Liu X-Google-Original-From: Jim Liu To: JJLIU0@nuvoton.com, KWLIU@nuvoton.com, jim.t90615@gmail.com, linus.walleij@linaro.org, brgl@bgdev.pl, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org Subject: [PATCH v3 2/3] arm: dts: nuvoton: npcm7xx: Add sgpio feature Date: Tue, 20 Dec 2022 16:01:38 +0800 Message-Id: <20221220080139.1803-3-JJLIU0@nuvoton.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221220080139.1803-1-JJLIU0@nuvoton.com> References: <20221220080139.1803-1-JJLIU0@nuvoton.com> X-Spam-Status: No, score=-1.8 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 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752719339133784683?= X-GMAIL-MSGID: =?utf-8?q?1752719339133784683?= Add the SGPIO controller to the NPCM7xx devicetree Signed-off-by: Jim Liu --- Changes for v3: - modify node name - modify in/out property name Changes for v2: - modify dts node --- arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi b/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi index c7b5ef15b716..f780474a16ce 100644 --- a/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi +++ b/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi @@ -330,6 +330,36 @@ status = "disabled"; }; + gpio8: gpio@101000 { + compatible = "nuvoton,npcm750-sgpio"; + reg = <0x101000 0x200>; + clocks = <&clk NPCM7XX_CLK_APB3>; + interrupts = ; + bus-frequency = <16000000>; + gpio-controller; + #gpio-cells = <2>; + pinctrl-names = "default"; + pinctrl-0 = <&iox1_pins>; + 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 = ; + bus-frequency = <16000000>; + gpio-controller; + #gpio-cells = <2>; + pinctrl-names = "default"; + pinctrl-0 = <&iox2_pins>; + nuvoton,input-ngpios = <64>; + nuvoton,output-ngpios = <64>; + status = "disabled"; + }; + pwm_fan: pwm-fan-controller@103000 { #address-cells = <1>; #size-cells = <0>;