Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp347137rdb; Tue, 5 Dec 2023 07:08:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgbXvi6hRXUDin1xUyYWkutD6j5HcLpZvQtKfa3dBSfoDwByj164N2S1yzczv6pZEXA1sn X-Received: by 2002:a05:6a20:1604:b0:18f:97c:8247 with SMTP id l4-20020a056a20160400b0018f097c8247mr3715444pzj.81.1701788903471; Tue, 05 Dec 2023 07:08:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701788903; cv=none; d=google.com; s=arc-20160816; b=mtFeqaCydqr4GldyOUhcvsls/xfqnQTU6N1FC2Oqke7dv7fBsIejEmwRSsVzE5XXjx qCoLq3IUzaxIi2sAvFP7PoaY/xZu94i4cIQ68zI/IhSDV7Ofw/m9KUmU3Bm2UeTnruYb 9mn/i2gMdwKsdhQ07Nbd6hdvwIUNZkVyEDxJrf3wnOGC6VchPQijqgvfHXoLrGgCTADn hudPx5mx4j3un8OTN9l31TpwYCXqOpf2OjOGm11JjQ2rpOuGI4m/CLIUcvqA59Hq/+rL MDr9u3PMDsTlGqYJ6DEKiz0/fnhMh8xAkoF2OlqW787PYn0TwltJIj063rIPbCxX7i5I S1WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=dQxibN84ePeMtSbfza/XQf1bOA+klSEvOVxBDA39pmU=; fh=6qk/s6YAYay0b130LykxyAoOAE/u9I+4I5G6c3kcsko=; b=MeH7RyDGj/fELDBupQiHZD0QZ9ohVUHBICl7Op+SHhAzijqemeCEFfydh7Q/P1uCYY 5cD8FcstGeuRJKEZA2mgEwdAH3kaouKD4ZXHzIEvDgXKUnUCCZ6xdjZ3ewZow5kBk3Rl qEvOUfv0LxFL+lAAgTE5S2gPjyBRcgE1uYSligbCn7mygZyv8oOX7kMzG8rzNBzJ7saD ViexfxDjgbGf158JqNdB+eXhGk3zGDOyvw777iloOZuMVXxNUhz7w+D9420lrQPKgdCk TX2Vo3LjjSmEOtLDyaU4YuLD+8z2V/R4rF31TcDxyAvzTXP995bvh8IZF2si4ZBp4xje xOSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id bx26-20020a056a00429a00b006cc03f4e54bsi3369069pfb.393.2023.12.05.07.08.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 07:08:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 6CB8C8051620; Tue, 5 Dec 2023 07:08:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345813AbjLEPIC convert rfc822-to-8bit (ORCPT + 99 others); Tue, 5 Dec 2023 10:08:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232155AbjLEPIB (ORCPT ); Tue, 5 Dec 2023 10:08:01 -0500 Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69BC4B2; Tue, 5 Dec 2023 07:08:07 -0800 (PST) Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-daf7ed42ea6so4004130276.0; Tue, 05 Dec 2023 07:08:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701788886; x=1702393686; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MBiG9HxZoSdr8SoEZSK/a3wB0uDxAZ7A8FUVFW1eSbA=; b=jmaSdfBLnfanc+fvhAc727DyclHbcR+HhYT0BXD3ovjghZiqqHi3UAHZhHnH3CQ+XV CQ0MVThhZbCmV0H30kOUqmFElOVBeyOfzr900OpWkh9z5vtEO5W9/Z1Md7t9uOe2qoQv y6g5j1uFgvUS2xC/7vvv15Fzz0BDL2xR4ScA+6gP7neBlBFbvJtqdfGJH8kFFhnBd8KI khOmSCEH4MjBB3lSRmWQBrmQicdjcIpsdBZKOCxObLQ1CkEU7pqPgz/0JY6FR/H3ieN0 DnPuciBZjfSBf6+YZVQh0AzZ+mRHwj2HspJlgQ9YlExcBqtxso75/x4KwwbKTKsrosFf 7oXQ== X-Gm-Message-State: AOJu0Yx1d8HIuHkFyHDNlsL8Lc/+QXCYFsb7i3jh0cdVan5GiSZaS/X5 W+cr2pqL4oDreiUfrS9FWfetganM8vH6aA== X-Received: by 2002:a5b:4c1:0:b0:db7:dacf:61f0 with SMTP id u1-20020a5b04c1000000b00db7dacf61f0mr4341088ybp.66.1701788886420; Tue, 05 Dec 2023 07:08:06 -0800 (PST) Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com. [209.85.128.177]) by smtp.gmail.com with ESMTPSA id 64-20020a250d43000000b00da041da21e7sm3123981ybn.65.2023.12.05.07.08.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Dec 2023 07:08:04 -0800 (PST) Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-5d4f71f7e9fso45021387b3.0; Tue, 05 Dec 2023 07:08:04 -0800 (PST) X-Received: by 2002:a05:690c:b9a:b0:5d3:ec19:d067 with SMTP id ck26-20020a05690c0b9a00b005d3ec19d067mr3373868ywb.35.1701788884398; Tue, 05 Dec 2023 07:08:04 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Geert Uytterhoeven Date: Tue, 5 Dec 2023 16:07:53 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [DO NOT MERGE v5 24/37] dt-binding: sh: cpus: Add SH CPUs json-schema To: Yoshinori Sato Cc: linux-sh@vger.kernel.org, Damien Le Moal , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Michael Turquette , Stephen Boyd , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Thomas Gleixner , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Bjorn Helgaas , Greg Kroah-Hartman , Jiri Slaby , Magnus Damm , Daniel Lezcano , Rich Felker , John Paul Adrian Glaubitz , Lee Jones , Helge Deller , Heiko Stuebner , Jernej Skrabec , Chris Morgan , Linus Walleij , Randy Dunlap , Arnd Bergmann , Hyeonggon Yoo <42.hyeyoo@gmail.com>, David Rientjes , Vlastimil Babka , Baoquan He , Andrew Morton , Guenter Roeck , Stephen Rothwell , Guo Ren , Javier Martinez Canillas , Azeem Shaikh , Palmer Dabbelt , Bin Meng , Max Filippov , Tom Rix , Herve Codina , Jacky Huang , Lukas Bulwahn , Jonathan Corbet , Biju Das , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Sam Ravnborg , Michael Karcher , Sergey Shtylyov , Laurent Pinchart , linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pci@vger.kernel.org, linux-serial@vger.kernel.org, linux-fbdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Tue, 05 Dec 2023 07:08:20 -0800 (PST) Hi Sato-san, On Tue, Dec 5, 2023 at 10:46 AM Yoshinori Sato wrote: > Renesas SH series and compatible ISA CPUs. > > Signed-off-by: Yoshinori Sato Thanks for your patch! > --- /dev/null > +++ b/Documentation/devicetree/bindings/sh/cpus.yaml > @@ -0,0 +1,73 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sh/cpus.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Renesas SuperH CPUs > + > +maintainers: > + - Yoshinori Sato > + > +description: |+ > + The device tree allows to describe the layout of CPUs in a system through > + the "cpus" node, which in turn contains a number of subnodes (ie "cpu") > + defining properties for every cpu. > + > + Bindings for CPU nodes follow the Devicetree Specification, available from: > + > + https://www.devicetree.org/specifications/ > + > +properties: > + compatible: > + items: > + - enum: > + - renesas,sh2a > + - renesas,sh3 > + - renesas,sh4 > + - renesas,sh4a > + - jcore,j2 > + - const: renesas,sh2 Plain "renesas,sh2" should be accepted, too. > + > + clock-frequency: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: | > + CPU core clock freqency. frequency Although clocks below is more flexible. > + > + clocks: true maxItems: 1 > + > + clock-names: true > + > + reg: > + $ref: /schemas/types.yaml#/definitions/uint32 > + const: 0 Some SH systems are SMP, so non-zero values should be accepted. > + > + device_type: true > + > +required: > + - compatible > + - reg > + - device_type > + > +additionalProperties: true > + > +examples: > + - | > + #include fatal error: dt-bindings/clock/sh7750.h: No such file or directory sh7750-cpg.h > + cpus { > + #address-cells = <1>; > + #size-cells = <0>; > + > + cpu: cpu@0 { > + compatible = "renesas,sh4", "renesas,sh2"; > + device_type = "cpu"; > + reg = <0>; > + clocks = <&cpg SH7750_CPG_ICK>; > + clock-names = "ick"; > + icache-size = <16384>; > + icache-line-size = <32>; > + dcache-size = <32768>; > + dcache-line-size = <32>; > + }; > + }; > +... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds