Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2790285rwr; Fri, 28 Apr 2023 16:21:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ67RcIo+kJUfGjv0lYhrW4t8LpnVGX3iYpO38MaLd7XJVsi1Mrwg4caeigsBBuc1kvQjdvk X-Received: by 2002:a17:902:ea10:b0:1a9:1b4:9fdd with SMTP id s16-20020a170902ea1000b001a901b49fddmr5026740plg.2.1682724088467; Fri, 28 Apr 2023 16:21:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682724088; cv=none; d=google.com; s=arc-20160816; b=YenEcsOjhO/ARn5aHCIzBErIBG4ixT4JT+is24O74deQGO9fEs2c4mOer9zVXjzeWO avWPdztSaMnHCv0cplxco/9q3foO1mPMjKECX5MfLP2IW5j0BxcJJu5Hzbqae9E3MV/O boLqSDeNPI5kZN3/gm4auA33Ql9KFoVLTRQ27hcPOMnTOTr7YeDDCSa0uUaivLAn73NG ORGwO2vrXMo3zNUljO5hzynOWqLDpalX9TjLlzmr+AzJSyk5Tp9+OBte1yGOYR8pcn4Y f71wFoKt59Pg3PgFdMOjFihkL0/UjmziW8KBRi6sCHfTyAeeOWkneqUrKwBXV1xyB02T OkoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=Yks5OefgD0tSyVHxRBNzCg22Ts0BzAmxTta2HAj3DVQ=; b=VsmsWpPBxN2PsN5EwIkKceO9iqzR80fQoCiW5FrGfsEztxOB4vzp0IDDvlKWkNXriA 1zpjRjFW7CizEwPf35y4y+jXPGJF8NdLMtVX6KPckn3eXr2+wtM4FeLfKmxH7Pm/Uqto nKEADpNNB7GOOUbuE50tJ/kXYxji8VEcOdgjpgji+a7oUIStDWZ0ETOCRNJgTeNhtbH6 S0xu+tby/uOsCAZj0TaHRCwPOEwASlVZ0OhV3pOjKRt//rUf+Qbr7a4/wKNCJMYTQLQ4 Fh/ujhbXbLv+r1gg5gQS0DVap94RfuPQoFwyHOe30G+yIgqy5/UxUPBo+Xdww3MZRrix gOSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VifBKT2R; 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 f17-20020a170902f39100b001a9b20ab024si5207959ple.410.2023.04.28.16.21.15; Fri, 28 Apr 2023 16:21:28 -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=VifBKT2R; 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 S1346877AbjD1XP1 (ORCPT + 99 others); Fri, 28 Apr 2023 19:15:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346782AbjD1XPU (ORCPT ); Fri, 28 Apr 2023 19:15:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 557D749DE; Fri, 28 Apr 2023 16:15:19 -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 DD5C860F91; Fri, 28 Apr 2023 23:15:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A674C4339B; Fri, 28 Apr 2023 23:15:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682723718; bh=V47hoZiyKH7rDpUH6NwYPJ7TotHzjSslW4RlKcVJpT4=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=VifBKT2RDFwmgKTgjLwymdT5T9+lRiUD0Jgc6ya20KneNUzUlolcuv6d8KdY+DQjk C/1TEAZieV4eTU+238Hi8KkI55t6+GS1tSOtqvMI4eHIKFk+5DWARtxmMA0v+QENcr QXhixuXifZc8HxRIFDLInH2c6EnOchvdaPpDYWZnh6vsOnKasVYP2ONeHInbQ7iHL7 REy5XL1VIYhsV3nReQElrrXqe5EoTlJu09glYLB2lSPEb+wR/SSR3BA3/KEM+HXSc7 myeXsIbv+LFBxSvN/HThCu4TNp5DwlFQgI9gtfPmKAn9DvLL8TyX34CN1CuOEchsyX JaLuRNqLS6+HQ== Message-ID: <3574700189bb35bba3ad6d79f3a799c9.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230424123522.18302-12-nikita.shubin@maquefel.me> References: <20230424123522.18302-1-nikita.shubin@maquefel.me> <20230424123522.18302-12-nikita.shubin@maquefel.me> Subject: Re: [PATCH 11/43] dt-bindings: clock: add DT bindings for Cirrus EP93xx From: Stephen Boyd Cc: Arnd Bergmann , Linus Walleij , Alexander Sverdlin , Rob Herring , Krzysztof Kozlowski , Michael Turquette , Hartley Sweeten , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org To: Nikita Shubin Date: Fri, 28 Apr 2023 16:15:16 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Quoting Nikita Shubin (2023-04-24 05:34:27) > This adds device tree bindings for the Cirrus Logic EP93xx > clock block used in these SoCs. >=20 > Signed-off-by: Nikita Shubin > --- > .../devicetree/bindings/arm/ep93xx.yaml | 102 ++++++++++++++++++ > .../dt-bindings/clock/cirrus,ep93xx-clock.h | 53 +++++++++ > 2 files changed, 155 insertions(+) > create mode 100644 Documentation/devicetree/bindings/arm/ep93xx.yaml > create mode 100644 include/dt-bindings/clock/cirrus,ep93xx-clock.h >=20 > diff --git a/Documentation/devicetree/bindings/arm/ep93xx.yaml b/Document= ation/devicetree/bindings/arm/ep93xx.yaml > new file mode 100644 > index 000000000000..de7020f4f356 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/ep93xx.yaml Why is this in arm/ directory? Isn't it a clock controller? > @@ -0,0 +1,102 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/arm/ep93xx.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Cirrus Logick EP93xx device tree bindings > + > +description: |+ > + The EP93xx SoC is a ARMv4T-based with 200 MHz ARM9 CPU. > + > +maintainers: > + - Hartley Sweeten > + - Alexander Sverdlin > + - Nikita Shubin > + > +properties: > + $nodename: > + const: '/' > + compatible: > + oneOf: > + - description: The TS-7250 is a compact, full-featured Single Boar= d Computer (SBC) > + based upon the Cirrus EP9302 ARM9 CPU. > + items: > + - const: technologic,ts7250 > + - const: liebherr,bk3 > + - const: cirrus,ep9301 > + - const: cirrus,edb9302 > + > + soc: > + type: object > + patternProperties: > + "^.*syscon@80930000$": > + type: object > + properties: > + compatible: > + items: > + - const: cirrus,ep9301-syscon > + - const: syscon > + - const: simple-mfd Is there a reason it needs to be a syscon? Or a simple-mfd? > + ep9301-reboot: > + type: object > + properties: > + compatible: > + const: cirrus,ep9301-reboot > + required: > + - compatible > + - reg > + - '#clock-cells' > + - ep9301-reboot > + > + "^.*timer@80810000$": > + type: object > + properties: > + compatible: > + const: cirrus,ep9301-timer > + > + required: > + - syscon@80930000 > + - timer@80810000 > + > +required: > + - compatible > + - soc > + > +additionalProperties: true > + > +examples: > + - | > + / { > + compatible =3D "technologic,ts7250", "cirrus,ep9301"; > + model =3D "TS-7250 SBC"; > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + soc { > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + ranges; > + compatible =3D "simple-bus"; > + > + syscon: syscon@80930000 { > + compatible =3D "cirrus,ep9301-syscon", > + "syscon", "simple-mfd"; > + reg =3D <0x80930000 0x1000>; > + #clock-cells =3D <1>; > + #reset-cells =3D <1>; > + > + ep9301-reboot { > + compatible =3D "cirrus,ep9301-reboot"; > + }; > + }; The example should only be the clock controller node. No soc node, or root node. > + > + timer: timer@80810000 { > + compatible =3D "cirrus,ep9301-timer"; > + reg =3D <0x80810000 0x100>; > + interrupt-parent =3D <&vic1>; > + interrupts =3D <19>; > + }; > + }; > + }; > + > +...