Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp285700rdg; Thu, 12 Oct 2023 05:53:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZx3Vi/lZAuE+HlUNQdeP15S0u3SSizM4YEP69tAjxgIL6GJjnUsx867NxAzfVEdBgQ5jp X-Received: by 2002:a05:6358:2825:b0:143:9dcb:1d with SMTP id k37-20020a056358282500b001439dcb001dmr26662656rwb.21.1697115189706; Thu, 12 Oct 2023 05:53:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697115189; cv=pass; d=google.com; s=arc-20160816; b=S916VyHsaI/wuR4vQYmqgpxLYY8YCILaARXjvfD+EnoUzNgSgoikBwewKpLSbiE78L OWBkXeE3DbvHNO8sUQ/g/jpcyxok5EZ7+SpFygzWiKsOb474j6SLXP0XGydYnMiHJFfi iDeBMFIhAZ5dbmBZf2ItGdZZT6KjFiWCfeo46hQh+B6bNODdHwS3OczU/lHZd/qFoEUO hcN0N6ySSV092fR3aNiKM5An3moUP+gBOL7Ihea1fS8Vpjb/05YQ4EeffCZ8gjPQuJ1u 3iQob27KeoyySpCTe8OW51KZIjA+uSbR4MN3PNmXsRupVYVQLuNwn3y3b1W7oawLSz2N FJjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:subject:user-agent:date :message-id:dkim-signature; bh=+w5xCFJIaajxy6UwdviwE6atHVEyUROskUy6K9WxX5s=; fh=M1PslUX/OeJWBW2VgJm6Zks6HAeQJYTJm/ZPhlY+mJQ=; b=f4qLYHvMzKEOm8/yFIBbUpv8/55ZsEihwc4AG0uQZcLgYyyMJClhstWiRLDpoAldkh 2pYc2m0FdEy7vwEgzc+FVOjx1K7rK+RsI1NaHbm5Uk0k9JkvUvKDsidjf5KefQIuVABp h5HlC8buuf1h1XowDQEUx0ckUFinImAIeZiJbNNMSKF31E5xmS9sS42Svc+pDwCPe7BV 6H08GQxa2y76sjasGBENniVTnQcoRxpeu38gwv/0x5ds27uho/7Ey3wCbTrGtmy5GR1k Rsu7jsriIjrp7/yssO/OqcnVYfTNtnV6f0iSso57XU+FhUrlo4NzHpYIfoolXgA4tI8a jzSg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=lkFMtvc8; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id v189-20020a6389c6000000b0057828b85ae6si2237357pgd.281.2023.10.12.05.53.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 05:53:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=lkFMtvc8; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 98B70819705B; Thu, 12 Oct 2023 05:53:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343983AbjJLMw6 (ORCPT + 99 others); Thu, 12 Oct 2023 08:52:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343867AbjJLMw4 (ORCPT ); Thu, 12 Oct 2023 08:52:56 -0400 Received: from IND01-BMX-obe.outbound.protection.outlook.com (mail-bmxind01olkn2032.outbound.protection.outlook.com [40.92.103.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A884BA; Thu, 12 Oct 2023 05:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LGKlTsCoW9KqqBQ1yw/omFpEaY0dR6ETz+czfy8x/w8AxwApGUTc8n7XHAZ0vz4PR5yY1KQKqJi9c/aQbV2WO0h/Fbigi+OArL2f//GO1dLnaCY/CV9aauKq4DW0mtdKkRJi+66045hsyX9ktSxRBvexFqqZfG2s4QfdyEhA1I2L/2r5xT5oZ1Mwcv2GwFp2WJtPjD9ZA8svFrfCtRq49ioh9zTqMeYQsGdVrmGXI0LC9VHhxEIl241GCBkLZYiguare0PZJ52bfUNdE6hw215yooJV35nRw6ifw/raOHTcVNYJItjtOdR/S/3cl0C5S1QQJ5eVwWWqdmu5CwIg2LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+w5xCFJIaajxy6UwdviwE6atHVEyUROskUy6K9WxX5s=; b=G0xqA/ddrxq5+v3OW0QIalg7I5OXROgQiZs8lRthQqmGmAKQ5YlMEhG9fXsEfTtmIvvJxjjfiLZNQ/+aoXffh1m8+g6ORI1TQvRViy2nxJwEl9v3ThBdC8CjHAP1+KAtwAZdt68A/OBxw1hsPMuuw3zS88abE6PO4zr3T/PNWud2LspUT8BArJXx44VSVL6iwCt9sbjU2ifjTB0Fka9eOPO5xR0+2P3EXEUc/eBkuLUqjSW/N9SvrBcrz61wzhqegCS0lo+7+4NPHNEHHwdqVqreYVk7f6DD3ZfbdvqjrmC348i2h9PwT8oKgXO18ZIN5c5AfO+PSxG8KUbDqMn1bA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+w5xCFJIaajxy6UwdviwE6atHVEyUROskUy6K9WxX5s=; b=lkFMtvc8IJqWjOZyjQN7Mf2YOlhUV4i6qcm3grDprVmLMx1R1+ogLm1WdCLaqlCfa/Sr3FkDIDWb9P/UK1do3jDfzvWazR9sC3RT1YwE0CoXboZm8Y3/kKd/rLn/gZSzNiO3KGXfYY3fv3TfRSJSADrmBOZX4kbfICVhkCQ+M85PJV9Es+UjF3cvBGVaH6Tj45yhfHC82TfzbAKecnsj3F9nI7dEC073/zn/Qzv0I4aWYIiJBABRk7lWskFHvuu09B73SRfh/PBYWzHizP9BoYX+HED2xfMFH6pujy/TnEqHUmr2DhOQ4ZV1o5rwf35zAxJJdM8ZHX5HZ+lSoTCUlw== Received: from MA0P287MB0332.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:ab::5) by PN2P287MB1646.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:126::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.44; Thu, 12 Oct 2023 12:52:48 +0000 Received: from MA0P287MB0332.INDP287.PROD.OUTLOOK.COM ([fe80::efe9:8d54:281b:23f7]) by MA0P287MB0332.INDP287.PROD.OUTLOOK.COM ([fe80::efe9:8d54:281b:23f7%3]) with mapi id 15.20.6863.043; Thu, 12 Oct 2023 12:52:48 +0000 Message-ID: Date: Thu, 12 Oct 2023 20:52:43 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 5/7] riscv: dts: sophgo: cv180x: Add gpio devices To: Inochi Amaoto , Chao Wei , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Jisheng Zhang , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org References: <20231009112642.477337-1-inochiama@outlook.com> From: Chen Wang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [Fhik9GxzG5XapULgzlrNSyWkJKwteEQb] X-ClientProxiedBy: SI1PR02CA0044.apcprd02.prod.outlook.com (2603:1096:4:1f6::6) To MA0P287MB0332.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:ab::5) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MA0P287MB0332:EE_|PN2P287MB1646:EE_ X-MS-Office365-Filtering-Correlation-Id: c993cafc-8649-407a-da46-08dbcb2222af X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: i3ypDBZTpipS7Dz3XuZc9TL3gZbZ5GGiRZtPD5HPKd5HKCkPpO3KDFPuyzhGFDPXBXWD1ZOAZ7HmWDsBQ+5v5sYVDgwsD6Qpfi98D0ybNrp+FBCj2Hg4WmYkwGKIzgnIQ7NviMUrRHm/nM/IbBSPe76621q/BQpFcHoN6QzlZimckZxW2WI+sMvmpoFDi8DaQiIrlEqKKIdUGXvRVyEGBDqwSZQTXAykfCYkvyMmenZugmDf53RDx2bSgfCK5Dcq1VZQQ6UEy4pnnfzsQ/rbEDEokVbrmBjBx8aZT+8vONYGb3AuE5PMo7YRcEFzu+5W39fCLIVgHMVeBVzBCy5kdAKO21ZUJpwQ/dkpia/KmdhGRzRLg1adcamk5FVySHVdXNCPdvWXVdW8wIilYQWIX66GuKIIS5YGHIRAI9psimzS1jCiXSocBwA2cIlWQENiT9MshmZM1M9kY834SaWLxfC1Ieqm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yFbftYHKENi/TZKJZOpqFj06IRbWzPsB7U=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c993cafc-8649-407a-da46-08dbcb2222af X-MS-Exchange-CrossTenant-AuthSource: MA0P287MB0332.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2023 12:52:48.7052 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN2P287MB1646 X-Spam-Status: No, score=1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FORGED_MUA_MOZILLA,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 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]); Thu, 12 Oct 2023 05:53:05 -0700 (PDT) On 2023/10/9 19:26, Inochi Amaoto wrote: > Add common GPIO devices for the CV180x and CV181x soc. > > Signed-off-by: Inochi Amaoto > --- > arch/riscv/boot/dts/sophgo/cv180x.dtsi | 72 ++++++++++++++++++++++++++ > 1 file changed, 72 insertions(+) > > diff --git a/arch/riscv/boot/dts/sophgo/cv180x.dtsi b/arch/riscv/boot/dts/sophgo/cv180x.dtsi > index ffaf51724c98..64ffb23d3626 100644 > --- a/arch/riscv/boot/dts/sophgo/cv180x.dtsi > +++ b/arch/riscv/boot/dts/sophgo/cv180x.dtsi > @@ -53,6 +53,78 @@ soc { > dma-noncoherent; > ranges; > > + gpio0: gpio@3020000 { > + compatible = "snps,dw-apb-gpio"; > + reg = <0x3020000 0x1000>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + porta: gpio-controller@0 { > + compatible = "snps,dw-apb-gpio-port"; > + gpio-controller; > + #gpio-cells = <2>; > + ngpios = <32>; > + reg = <0>; > + interrupt-controller; > + #interrupt-cells = <2>; > + interrupts = <60 IRQ_TYPE_LEVEL_HIGH>; > + }; > + }; > + > + gpio1: gpio@3021000 { > + compatible = "snps,dw-apb-gpio"; > + reg = <0x3021000 0x1000>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + portb: gpio-controller@0 { > + compatible = "snps,dw-apb-gpio-port"; > + gpio-controller; > + #gpio-cells = <2>; > + ngpios = <32>; > + reg = <0>; > + interrupt-controller; > + #interrupt-cells = <2>; > + interrupts = <61 IRQ_TYPE_LEVEL_HIGH>; > + }; > + }; > + > + gpio2: gpio@3022000 { > + compatible = "snps,dw-apb-gpio"; > + reg = <0x3022000 0x1000>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + portc: gpio-controller@0 { > + compatible = "snps,dw-apb-gpio-port"; > + gpio-controller; > + #gpio-cells = <2>; > + ngpios = <32>; > + reg = <0>; > + interrupt-controller; > + #interrupt-cells = <2>; > + interrupts = <62 IRQ_TYPE_LEVEL_HIGH>; > + }; > + }; > + > + gpio3: gpio@3023000 { > + compatible = "snps,dw-apb-gpio"; > + reg = <0x3023000 0x1000>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + portd: gpio-controller@0 { > + compatible = "snps,dw-apb-gpio-port"; > + gpio-controller; > + #gpio-cells = <2>; > + ngpios = <32>; > + reg = <0>; > + interrupt-controller; > + #interrupt-cells = <2>; > + interrupts = <63 IRQ_TYPE_LEVEL_HIGH>; > + }; > + }; > + > uart0: serial@4140000 { > compatible = "snps,dw-apb-uart"; > reg = <0x04140000 0x100>; LGTM Acked-by: Chen Wang Thanks, Chen > -- > 2.42.0 >