Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp295631rdb; Thu, 19 Oct 2023 05:02:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZCRmOtMuUEcJ5E6RUIXSM1eHC9kQyXQ9HZ9U3TYfEH8iLQxUeCZ+5TR/jzWdzjrGUHYn+ X-Received: by 2002:a17:90a:6588:b0:27d:427f:1bf4 with SMTP id k8-20020a17090a658800b0027d427f1bf4mr1942288pjj.19.1697716978293; Thu, 19 Oct 2023 05:02:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697716978; cv=pass; d=google.com; s=arc-20160816; b=Gk7MtBG59fgkKFaANd5kgxOlbep6Ct0j43qM0xrUo0JNUtr8xFcUZhsKloVCPscQ1X 8ZBZPebwOnTNSoqh6aCVNONynrPWNDiAzJyXM1e66vnPYduBe29hw8I1VQ0mcliPOPcq y5cmdWZj1M7Sg9FIfYPjNPjzWCEhs630WFrXk1FPpbqlvmJIDr81vaZ2pWf0VKOC0YhO JsAFMdkreJmMuWq++sKMKoMQ69LWGNvLiwCAiwFFz7oPLMLpcn+VGR4oQPctWofMmbxq 6/tEGW00xpe4IXYEHjIgIClfMMBld5SaT9ZNbU8d9XxGbs027BK7CKv7+gjUCI4qekNU LoFQ== 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=F6XOFQJPiLxuy13QHpCKBgOlZ/hyk3g/YfLEhZjDFZE=; fh=O3aZMcFvJuNLRFjMOFFIoOtZ9NbjnAT74q6cAdVKCGA=; b=t9haqXxP8BV6w+MilAYxOQ1bfH/+WkpErUfFr5lZsI5FfTsVtLTiEWTjJW4bvXthvK 4JawN9G2zVwuyPVxfxx5Tz/on4s/fkLBWpC8yt7vVfzeC1CvVQg62snKDVEEhjp34hEb zj6k9/3oSaHNQmCeG/2XLKgupJu9WNQQSKVLJ/ovtRQIYPEV7QAns82Pm6ekrqrJmevp Q/kOnWWknf7HEYsfRhijQTpcPDS5BbOpT5CT/89E8AzoeOBRRVRXpJAnzYE7ab1f9BZO FhROT385M4rR2sS5Xu6LCqbHDRy9CaT00KCQ7E10DAd+GY9SeR0G445kap9Q42Fn1tYY CyCw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=lZ4nuCWe; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id x189-20020a6386c6000000b005ac3b982d1asi4246416pgd.358.2023.10.19.05.02.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 05:02:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=lZ4nuCWe; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 781CA826EBBC; Thu, 19 Oct 2023 05:02:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345579AbjJSMCh (ORCPT + 99 others); Thu, 19 Oct 2023 08:02:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345563AbjJSMC2 (ORCPT ); Thu, 19 Oct 2023 08:02:28 -0400 Received: from IND01-BMX-obe.outbound.protection.outlook.com (mail-bmxind01olkn2054.outbound.protection.outlook.com [40.92.103.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3837B198; Thu, 19 Oct 2023 05:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G30Monmj6n9ov1cA0xG1FrgI3iKwd8m0MUStIrWzTbJLy4VuWwGwsBCPcblBbiJSeexQ7c2Ko5vqOYfNrwJ4UdLVDqjctl+3PjUnSkqGf10ZQHbcgmAcXeWdVbnQjfmNu1vPV1MlvoJYoq+YZ+OPYKcI871pcQ79cDdUJfr84hZBUxSfnFb5hOPXy+/sobjYVoCb61jwPCMkbMfM0PoT2DEGiJ7Zje44LkPvTUqOhHigZtvUhfEMONzw5FYToisOALptECJukulWu/lANgYwMEBVqZ0s8wZDaDgzO1Pd1SV2X5FGN6ZKys7xhjH7Cg+/WA20jWSSsW9zJEPtmAdLAw== 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=F6XOFQJPiLxuy13QHpCKBgOlZ/hyk3g/YfLEhZjDFZE=; b=avv7UXsMDneaMDP3MePTUpV74Rj7RiIg0gBsEiC8EPEbHJ+gINuwoABYh5ZH6/cFXHNma3m3J5e+R1LVXSvhkNBP1rTJ12qA0XhE00BTYvv3uSYQetCnn4LDLRY0LpRONrFnEl3p0kAT3DCWpq7ee+51L/loY5JPGDTfLWhDWe2ObZkhEmxkoIKqLKir4D64QOYI9pYVZKMSQT3BXge3EvEXTOkYFyu+3NZM8+UP0Sa2WwBlNBRMM/hzcHn+2BdfGY44IE1ndUmUAb0lnvaWqfg04ty7SMJ9+mkTi7tG8BEzn5c+b7gXZNfsce1TkI1IW1Jw2YIkPVsgReGui6do/w== 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=F6XOFQJPiLxuy13QHpCKBgOlZ/hyk3g/YfLEhZjDFZE=; b=lZ4nuCWeHfiqIk2hbhk0IQOGC9K1DTUB4tUN2t0rL6M23fVozCzjcMykwE2dL3nluJmy627SUv+HGgRvpreDNL5WIQZnRYUkRY5uHfmx9aJv6IV+CV3TnLqBCZ+esL1HorwjFb6BuX26y6qNBco3Vqhjs+qnl1hu10qn7XsCKzFNYYYQvgFtPL3hd4YjOgxoe+rIfyXN+C+F99y+G8UscQgjB3wP5sDZ47pP+q9y9Hms+eWlyszvpUmTRFr6dhF3ezyxmbufuxqQOFl1TbsityEAEm3/5RkeJ7C/tK2A42QITET6CPJ4CnoTfy1Qc+Ij9oRDB/fCQmEZiEiOp6T4uw== Received: from MA0P287MB0332.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:ab::5) by PN2P287MB0739.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:fa::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.24; Thu, 19 Oct 2023 12:02:19 +0000 Received: from MA0P287MB0332.INDP287.PROD.OUTLOOK.COM ([fe80::b66:61a1:8ed:cc6a]) by MA0P287MB0332.INDP287.PROD.OUTLOOK.COM ([fe80::b66:61a1:8ed:cc6a%6]) with mapi id 15.20.6907.025; Thu, 19 Oct 2023 12:02:19 +0000 Message-ID: Date: Thu, 19 Oct 2023 20:02:16 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 5/7] riscv: dts: sophgo: cv18xx: Add gpio devices To: Inochi Amaoto , Chao Wei , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Jisheng Zhang , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: From: Chen Wang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [fOxk78Ghb30hptZywXd4ak6Z6A/ZKpOu] X-ClientProxiedBy: SI1PR02CA0042.apcprd02.prod.outlook.com (2603:1096:4:1f6::17) 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_|PN2P287MB0739:EE_ X-MS-Office365-Filtering-Correlation-Id: 1f7fc00d-427d-416d-6482-08dbd09b3e3e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9CH59cMKqDk/I3uyAXGarV99hO/iA7c7pARrxkPCDrdfY37y7Q2OK0Z5jsRqyEh6HZc/O/60ECT6J6r4GSX4y5rFdTWq8+X6htQzhiigrHO7+uiN1gznHVhPSSaKEw6/HWLsPB6txYPaIn8AqDgVtAYQ7+GUSDZZGOfOZaj/PoO8A+sQD5ZzFDY+nhrlAJDgFLXH8yka5183pQRCMpsGkbdJu3WO+VG7CPE/YnDonUQvWEQz8EzqLz9CzRchvcVnVpiRxBA/CejpIbjolV9jz7wtx+AGMhk9LJcfXZQeHldTnJ3GCnjOunDbVIcjqkrg2dp4AxPXNga1pi1HqJafMiudn3yvNeY4MUD22WTc50BUho+EkFUyWeiUuiaNGW24Qb54KRl6FKupYqPnkEKUlh6TmPJuFNWxfI4M3rWoIOztkzOZUvA9uWP4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=?utf-8?Q?bLZjoIdNYZ6MKo8iZ++BKoFZOhk++qrr/TZUtA9GhJnY=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1f7fc00d-427d-416d-6482-08dbd09b3e3e X-MS-Exchange-CrossTenant-AuthSource: MA0P287MB0332.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2023 12:02:18.9966 (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: PN2P287MB0739 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 howler.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 (howler.vger.email [0.0.0.0]); Thu, 19 Oct 2023 05:02:53 -0700 (PDT) On 2023/10/19 7:18, Inochi Amaoto wrote: > Add common GPIO devices for the CV180x and CV181x soc. > > Signed-off-by: Inochi Amaoto > Reviewed-by: Jisheng Zhang LGTM. Acked-by: Chen Wang > --- > arch/riscv/boot/dts/sophgo/cv18xx.dtsi | 73 ++++++++++++++++++++++++++ > 1 file changed, 73 insertions(+) > > diff --git a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi > index 55d4bc84faa0..d415cc758def 100644 > --- a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi > +++ b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi > @@ -1,6 +1,7 @@ > // SPDX-License-Identifier: (GPL-2.0 OR MIT) > /* > * Copyright (C) 2023 Jisheng Zhang > + * Copyright (C) 2023 Inochi Amaoto > */ > > #include > @@ -53,6 +54,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>; > -- > 2.42.0 >