Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp80990pxm; Fri, 4 Mar 2022 16:36:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwaGIOR2fGMqMkrvM0VjvRmSi5JVN5kVktTTQ9adcwKQMA4YaVH1ln4xNNfa6lb/k3lfPPf X-Received: by 2002:a17:906:c259:b0:6ce:a165:cd0d with SMTP id bl25-20020a170906c25900b006cea165cd0dmr1025484ejb.270.1646440585437; Fri, 04 Mar 2022 16:36:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646440585; cv=none; d=google.com; s=arc-20160816; b=w3+FKO6kM2C65sKZ+voEGH3/7PxAfls0SiP38FXrdSF1rk+dagzUYSXOs6N2QbQVds REyXiAybGBDhcBhVHS03VVDJBDH4Gic7qmPMYFj65fR5rKIaVeIcrpIt5Bluzyt5V9bu 3tbHwWguXMBKYyvh+X+iqOIpFiWxoD2m5O8ck80vmD90y0us09P8ycaypESd2DGre/0U AEC5BdXBT6CiHJcTWPicRtNoWF943vnjVaVf4+ulfLDkHrmvkLGyp3ZafEcqBBzZnnPK l17/LM1NcejD5llmDH1/eYOjOcINpwSsmFs66GIAeuG4/DLWNkgHcqNhJfzZr++ZKvCN RxBA== 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 :dkim-signature; bh=fxyVp388ZZAckImYsUY/zoaCsraZlDAH5EkOxtghYFg=; b=s3ufIBYSOy8BZJZWYCAgKT3W9XfzM3M8Ho4Ragx2HFbmOPltB/mn7N69VplR/cu80Z OnntNt4/XLH604clI60FjBRuOkX9AwWVwJ5HILZaGPlIV6riwnW/K/BB+jS6lfEgQbVG +uKVvWIy9cYUQHF7r020iGWrN8kiwi2mkJ4jO63s7sz8Kb/omaKIEBe3QRkMtTiHnPhi XwSCLru98GxVS/3Oy0LblPctZpDEaxx3iKlEL9vfJdNicL5z6/f4pMRCdKJtEddzGepK GWYNITOdPPyBAl+U1z7D3wFZ0/vAx/jB5uehnFN8BmBFulxc25uG3ScD4tANYmFXeYCN AcGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uCBwUfqY; 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 m11-20020a056402430b00b00415b1ae8ca9si5288822edc.285.2022.03.04.16.36.02; Fri, 04 Mar 2022 16:36:25 -0800 (PST) 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=uCBwUfqY; 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 S229778AbiCDXiT (ORCPT + 99 others); Fri, 4 Mar 2022 18:38:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbiCDXiR (ORCPT ); Fri, 4 Mar 2022 18:38:17 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FFF611B; Fri, 4 Mar 2022 15:37:27 -0800 (PST) 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 1C2CB61F1E; Fri, 4 Mar 2022 23:37:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84BCBC340F6; Fri, 4 Mar 2022 23:37:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646437046; bh=vYW2Inc1gofPuL2v43VLkLxzmzCwQMyJPz0gOoV+3UI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=uCBwUfqYPO14kQFStyCPuYAY65dVziFIDvjAEG7SAjtkLay1Cnlwpgmrnoy3IBmj9 2VwFzs5h0xty6dEF9K0mtUbloSRgzfr0uKTzZ3HcTzkHBcpYURHts2OndxLUe8mmXT 3UzA9s97Whx5U4PnMclmZTKrkPvZLErB7ZnH47JgEc7ntpN63XRSqYk26Q8YUc32ZK VQ0ggKVqquIPRkPi3MsKr0juutUzr/3Jh5813ep8emmgUDXk/Rwwl/+mj0H/5Xadvc H8tRzXdD5aDw8xvhBaYm45hmnJicWs7ZKfs0jlG+neTFi6LgyaaZWBgBYda6d+mVrC xKl7rlaHRF52g== Received: by mail-ej1-f42.google.com with SMTP id qx21so20436743ejb.13; Fri, 04 Mar 2022 15:37:26 -0800 (PST) X-Gm-Message-State: AOAM532Y/WILcgUykrZLhkuC5GJeLHDOUiyXvqiTx8O+YS1CocTwJ8hO svfY1CfBO2fQAhGMhTVI4qDEq+2coRQZxFC37A== X-Received: by 2002:a17:906:9913:b0:6d6:dc48:5d49 with SMTP id zl19-20020a170906991300b006d6dc485d49mr895534ejb.325.1646437044625; Fri, 04 Mar 2022 15:37:24 -0800 (PST) MIME-Version: 1.0 References: <20220301152421.57281-1-linux@fw-web.de> <20220301152421.57281-2-linux@fw-web.de> In-Reply-To: From: Rob Herring Date: Fri, 4 Mar 2022 17:37:11 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Re: [PATCH v4 1/5] dt-bindings: Convert ahci-platform DT bindings to yaml To: Frank Wunderlich Cc: Frank Wunderlich , devicetree@vger.kernel.org, Damien Le Moal , Krzysztof Kozlowski , Hans de Goede , Jens Axboe , "open list:LIBATA SUBSYSTEM (Serial and Parallel ATA drivers)" , "linux-kernel@vger.kernel.org" , Heiko Stuebner , Peter Geis , Michael Riesch , linux-arm-kernel , "open list:ARM/Rockchip SoC..." , Ray Jui , Scott Branden , "maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.5 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 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 On Thu, Mar 3, 2022 at 1:04 AM Frank Wunderlich w= rote: > > Hi Rob, > > thanks for review, > > have prepared the changes based on yours and krzysztof comments > > https://github.com/frank-w/BPI-R2-4.14/commits/5.17-next-20220225 > > (just ignore the top 2 commits) i thought i had a size-cells-error, but d= id not get them again after reverting this part, seems they are fixed by in= clusion of the sata-common binding > > > Gesendet: Mittwoch, 02. M=C3=A4rz 2022 um 19:14 Uhr > > Von: "Rob Herring" > > An: "Frank Wunderlich" > > > On Tue, Mar 01, 2022 at 04:24:17PM +0100, Frank Wunderlich wrote: > > > From: Frank Wunderlich > > > > diff --git a/Documentation/devicetree/bindings/ata/ahci-platform.yaml= b/Documentation/devicetree/bindings/ata/ahci-platform.yaml > > > new file mode 100644 > > > index 000000000000..cf67ddfc6afb > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/ata/ahci-platform.yaml > > > @@ -0,0 +1,162 @@ > > > +# SPDX-License-Identifier: GPL-2.0 > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/ata/ahci-platform.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: AHCI SATA Controller > > > > blank line. > > done > > > > +description: > > > + SATA nodes are defined to describe on-chip Serial ATA controllers. > > > + Each SATA controller should have its own node. > > > + > > > + It is possible, but not required, to represent each port as a sub-= node. > > > + It allows to enable each port independently when dealing with mult= iple > > > + PHYs. > > > > You need a '|' after 'description' if you want to maintain the > > paragraphs. > > ok added | to all multiline descriptions > > > > + > > > +maintainers: > > > + - Hans de Goede > > > + - Jens Axboe > > > + > > > +allOf: > > > +- $ref: "sata-common.yaml#" > > > + > > > +properties: > > > + compatible: > > > + oneOf: > > > + - items: > > > + - enum: > > > + - brcm,iproc-ahci > > > + - marvell,armada-8k-ahci > > > + - marvell,berlin2q-ahci > > > + - const: generic-ahci > > > + - enum: > > > + - brcm,iproc-ahci > > > + - cavium,octeon-7130-ahci > > > + - hisilicon,hisi-ahci > > > + - ibm,476gtr-ahci > > > + - marvell,armada-3700-ahci > > > + - marvell,armada-380-ahci > > > + - snps,dwc-ahci > > > + - snps,spear-ahci > > > > Install yamllint and run 'make dt_binding_check'. It's going to > > complain about the indentation. > > you're right, i had no yamllint installed, so i have not seen these inden= tion errors > > > > + ahci-supply: > > > + description: > > > + regulator for AHCI controller > > > + > > > + clock-names: > > > > Group with 'clocks' > > ok, already done in my tree because of krzysztofs comment > > > > + ports-implemented: > > > + $ref: '/schemas/types.yaml#/definitions/uint32' > > > + description: > > > + Mask that indicates which ports that the HBA supports > > > + are available for software to use. Useful if PORTS_IMPL > > > + is not programmed by the BIOS, which is true with > > > + some embedded SoCs. > > > + maxItems: 1 > > > > A uint32 is only ever 1 item. Drop. > > > > IIRC, isn't the max here 0xff? Add constraints. > > i've found it only set to 0x1 so i have currently set the maximum to 0x1,= is this ok? > If some higher value is needed binding needs to be touched... There's a spec for it, so no need to look at what's used. Calxeda AHCI had 5 ports IIRC. > > > + reg-names: > > > + maxItems: 1 > > > > Group with 'reg'. > > ok > > > > +patternProperties: > > > + "^sata-port@[0-9a-f]+$": > > > + type: object > > > > additionalProperties: false > > ok added to my tree > > and needed to add phy-names because some marvell boards using this > > arch/arm64/boot/dts/marvell/armada-8040-mcbin-singleshot.dt.yaml: sata@54= 0000: sata-port@1: 'phy-names' does not match any of the regexes: 'pinctrl-= [0-9]+' > > now i have only the marvell-errors about incomplete sata-port subnode (wi= thout phy/target-supply) like i mention in the patch...how to proceed with = this? So the child nodes are incomplete? They should be disabled then (status =3D "disabled") and that turns off required properties checks. Rob