Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1590640rwd; Thu, 18 May 2023 14:22:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4wust+E0d5n23PSO/H77YP87V3Rvdjuit9O4a/fz9wdxPFY8FdGWrzskYQcZlHAE4pW1a6 X-Received: by 2002:a05:6a00:2288:b0:643:aa8d:8cd7 with SMTP id f8-20020a056a00228800b00643aa8d8cd7mr155387pfe.32.1684444935686; Thu, 18 May 2023 14:22:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684444935; cv=none; d=google.com; s=arc-20160816; b=q4ZSRS7ZVz/n66l4doRUc57EvotpEeyz4xHPvH16QS4gveZHLcVuBxS4aDUYFHEtXP v94FywvZJ0g1bTtjrR2AOeZonW6V50ub5xKJiV7KVefml5miaaal6bPBLxGVy20Jyijk ASa1d7YdZ6fmaXxXjjSGq2seQ1i1MQJMJCeIXbyKpWuLz8tJJbb0kVui78Ouc+vfSikd oXJZ1aZgkRvwxa2CLQwke7ZGCxMO++IomKWo8Bz/cZl2n04UGAyx8y8+i9KbiwgUP+e/ zGobSPOSRfhmDXXUrsudqkfy2JkKS2xpWfFTwJnqqE0sj3Ho7DRTCBhvCRjHpDRso9bM Hp+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=bu5NnQtxBtUL1eQMIiPqDmEd23ZIsvWGEf1iVHwFYYs=; b=lxZmH0KUsctRyptnVqCxdIv5KhzOp5FW28A+LiqdwgHdwtZdzEiXbbnqe/mishc2Vp 0XJp93Yr6FPJ6zNVvb5klJxCyyLRDCJy+cZAJ/z1rbAP73EZ6Efd7R3iVumqXYCHZpL1 eoEFgSUkIps8PXbtd2Np+gTWXStglc+trMYxT9CX7+4HfCt6lX812H+UcalB9i7exgfX UoOTqE2pZnDuaEmjnWo8xX8M8nbNgaT5+kh+UzG/FrQH88yc399NC/JJ4x184ocbG1o1 DcGGnb80MAUjyrviseLHEK0LEwy5LSDJvFPJy/J+FLbzNlyStnc/svM1aFRku3AHfDo2 ND6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LnfsM4wA; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h28-20020aa796dc000000b0063b72afb4cdsi2664996pfq.5.2023.05.18.14.22.03; Thu, 18 May 2023 14:22:15 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=LnfsM4wA; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229832AbjERVCN (ORCPT + 99 others); Thu, 18 May 2023 17:02:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229622AbjERVCM (ORCPT ); Thu, 18 May 2023 17:02:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD84E115; Thu, 18 May 2023 14:02:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6153565224; Thu, 18 May 2023 21:02:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACD91C433D2; Thu, 18 May 2023 21:02:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684443730; bh=dG9KGkwnVBL2/+dISO9tPB3QBs7KKkNCCeDRptlnaxQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LnfsM4wAfszJ/tjCSKiARr2+tU525tH8OXmB69pIGnIJ2pPTcTojqfySF5eH17DkH 41uWVG6fYdY5Tw3xhjGsKm1F79PRCH0JA6sqx0owU/IKQ4pfTI0KukrA6WcRhdo6Mc hCnRKEOb4nlIlEumZ34MbbxnRGH+iEcWt6l42dB4pUjwRTGOH3gs2TM7gE+bp2YJZU 5XZuAnb+0syhVsBUSIR8mfrGdFTVlL+DCy5aWsu4Tvmdhzey5nXGPzbjx0rEjq6oEA 660HJuZV/3yQDDUTDOWVkzRMNIpJvMSGIw5jQLr1/1a2ludLFLS+belE65vsUjJ4KV 6E9Jku6fJNxlQ== Date: Thu, 18 May 2023 22:02:05 +0100 From: Conor Dooley To: Jisheng Zhang Cc: Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Albert Ou , Guo Ren , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Yangtao Li , Wei Fu , Icenowy Zheng Subject: Re: [PATCH v2 6/9] riscv: dts: add initial T-HEAD TH1520 SoC device tree Message-ID: <20230518-slider-pointless-14c1e653cc1c@spud> References: <20230518184541.2627-1-jszhang@kernel.org> <20230518184541.2627-7-jszhang@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aofeKfy/KZUnV2RS" Content-Disposition: inline In-Reply-To: <20230518184541.2627-7-jszhang@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 --aofeKfy/KZUnV2RS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, May 19, 2023 at 02:45:38AM +0800, Jisheng Zhang wrote: > + cpu-map { > + cluster0 { > + core0 { > + cpu = <&c910_0>; > + }; > + > + core1 { > + cpu = <&c910_1>; > + }; > + > + core2 { > + cpu = <&c910_2>; > + }; > + > + core3 { > + cpu = <&c910_3>; > + }; > + }; > + }; We actually don't need to add these anymore, I fixed our topology detection :) No harm to keep it though! > + cpurst: cpurst { > + compatible = "thead,reset-th1520"; > + entry-reg = <0xff 0xff019050>; > + entry-cnt = <4>; > + control-reg = <0xff 0xff015004>; > + control-val = <0x1c>; > + csr-copy = <0x7f3 0x7c0 0x7c1 0x7c2 0x7c3 0x7c5 0x7cc>; > + }; I figure this will be no surprise to you: arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dtb: soc: cpurst: {'compatible': ['thead,reset-th1520'], 'entry-reg': [[1099494953040]], 'entry-cnt': [[4]], 'control-reg': [[255, 4278276100]], 'control-val': [[28]], 'csr-copy': [[2035, 1984, 1985, 1986, 1987, 1989, 1996]]} should not be valid under {'type': 'object'} arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dtb: cpurst: control-reg:0: [255, 4278276100] is too long > + dmac0: dma-controller@ffefc00000 { > + compatible = "snps,axi-dma-1.01a"; > + reg = <0xff 0xefc00000 0x0 0x1000>; > + interrupts = <27 IRQ_TYPE_LEVEL_HIGH>; > + clocks = <&apb_clk>, <&apb_clk>; > + clock-names = "core-clk", "cfgr-clk"; > + #dma-cells = <1>; > + dma-channels = <4>; > + snps,block-size = <65536 65536 65536 65536>; > + snps,priority = <0 1 2 3>; > + snps,dma-masters = <1>; > + snps,data-width = <4>; > + snps,axi-max-burst-len = <16>; > + status = "disabled"; ^^^^^^^^^^^^^^^^^^^^^^^ These are spaces :( > + }; Cheers, Conor. --aofeKfy/KZUnV2RS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZGaSTQAKCRB4tDGHoIJi 0uMoAQCBw0zNKchg9GvcORqcH1KUqfPdzjJFZkl1FjcZJuZKzgEA0Uni0Kk00pQ7 Uo5y1A3imHMXoThfyp/695rWmPg+5g8= =Ppsm -----END PGP SIGNATURE----- --aofeKfy/KZUnV2RS--