Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2504182pxb; Tue, 9 Mar 2021 04:21:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJz77P/BLCrUUTmAcqNaWYcfqOI4wGwUvjoVysT3Jv4GH0i4TVPBOKuD24qWgWQMgmJLRBaW X-Received: by 2002:a17:906:789:: with SMTP id l9mr19666710ejc.161.1615292519423; Tue, 09 Mar 2021 04:21:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615292519; cv=none; d=google.com; s=arc-20160816; b=HVQEiSDA6QOKQFlcxsU8sE9CMdar6Dou/4gMxlx/hbYhsXS0UNKUKOzcydNzvFCu5A QU7Xjvuul/AhGBu/Vryz/z9VN0HpTIkqcn9sYw56OwI3FCviVrI9QOeVhULfJRgNt83/ DVtV/SS91jx2R8fg3JFLahZ8FGKGXc5Sn2v059kR6PRCiQfPRi/XGVrJL065x1+A77Om s2zdGSifxQNXkJZHeHRuGEW/4J87FBYoa2xYZmycNQF4zNWg87Mtk/E8VUMNz34bnAFR NLm91+jdPplbNDYFIUH0Pn3eDk1wvOzM1DireQk2vnk+NooBVC+HkwPLU5dLXw/dAzTV FwxA== 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=PkyLU05s8kjoPg32T4CMPSqyJzOckBFkjAUWwX2gJIE=; b=1AIPZ9sgbWX4swzu3XV/7u2tmDDyD0lSsP3kbxSCCDjJPKJXxIqSg3YSVOO1QeDZIu YbYtV7A/GyxiDOOxBeqfuESvrmAfSB8D0PyOBDm4cY6ngsRqc/xDkLqmJbdYjEvCA/+6 OHP5dQjxcDCFH+tyycPUq6TtSW93fQg0WWWEOSTeUc/8+/r5ka2uMIOrBjM4CLXvOIK0 1PCgQU7x+2RKKZwIW3qt4CKPfHd7nF3AamDvcCIyZ/d0YOWZj6MeNEuK7t23WF8dGivu 1mXI0bxAO6fb/E+LjBjEWcYMmsstLFY/RwFLhX8gDTjUKINiMBX4Nf/oCK04azolMQ3S H4wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="RM+xs/ws"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j4si8860007ejm.600.2021.03.09.04.21.33; Tue, 09 Mar 2021 04:21:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="RM+xs/ws"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 S230215AbhCIMVA (ORCPT + 99 others); Tue, 9 Mar 2021 07:21:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:34180 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbhCIMUv (ORCPT ); Tue, 9 Mar 2021 07:20:51 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3AD4765268; Tue, 9 Mar 2021 12:20:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615292450; bh=6CKbaU16lYxYAdKwx8raAJYFk3RT75IbkduD7MuH2eQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RM+xs/wst3b8yCTd/b1sm27bTDW1+dxlsLb1xHhXKA8UeNgu4drBu1bwswo4D0RGl 4pi795xEmAyx2bg0xb8jsC5GmRu+lmm/XVzw+tyJakKFbX9Qeq82KB79dtse+N9G9l Jq0zqUd6ijGuFUGyEuaBNB1CAFTlVTCltPnTzCsSxBXbOfsF00/m4QghB22FiN+RCT 3ICld4gxVZJ/lHOSMCidnEUKjXeYVzILthq3Z/6osi19cxtsrELoCZAYeBPIfp8ACP qHqpvMypwzJ4Cz7xOADDcu8uZe4C/eviJG2R+bBnwdDHhdMQ3eKIdAuO6UmnsFt87V cntpRduhkALzA== Date: Tue, 9 Mar 2021 13:20:45 +0100 From: Lorenzo Bianconi To: Rob Herring Cc: nbd@nbd.name, linux-wireless@vger.kernel.org, lorenzo.bianconi@redhat.com, sean.wang@mediatek.com, ryder.lee@mediatek.com, devicetree@vger.kernel.org Subject: Re: [PATCH] dt-bindings:net:wireless:mediatek,mt76: txt to yaml conversion Message-ID: References: <20210308230810.GA3111033@robh.at.kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fH0x3Q43UYus4Dt/" Content-Disposition: inline In-Reply-To: <20210308230810.GA3111033@robh.at.kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --fH0x3Q43UYus4Dt/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > On Sun, Mar 07, 2021 at 10:20:44PM +0100, Lorenzo Bianconi wrote: > > Convert mt76 dts bindings from .txt to .yaml [...] Hi Rob, thx for the review. > > + reg: > > + maxItems: 1 > > + description: > > + Address and length of the register set for the device >=20 > That's every reg, drop. ack, I will fix it in v2 >=20 > > + > > + interrupts: > > + maxItems: 1 > > + description: > > + Main device interrupt >=20 > Are there others besides 'main'? If not, drop description. right. I will fix it in v2 >=20 > > + > > + power-domains: > > + $ref: /schemas/types.yaml#/definitions/phandle-array >=20 > Don't need a type for common properties. ack, I will fix it in v2 >=20 > > + description: > > + Phandle to the power domain that the WMAC is part of. >=20 > That's every 'power-domains'. Just need to define how many: 'maxItems: 1' ack, I will fix it in v2 >=20 > > + This property is MT7622 specific >=20 > This can be a schema. Can you please specify what you mean here? >=20 > > + > > + mediatek,infracfg: > > + $ref: /schemas/types.yaml#/definitions/phandle > > + description: > > + Phandle to the infrastructure bus fabric syscon node. > > + This property is MT7622 specific > > + > > + ieee80211-freq-limit: > > + maxItems: 1 >=20 > Just make sure, only 1 freq supported? here we can convert ieee80211.txt in ieee80211.yaml and just refer to it, right? >=20 > > + description: > > + List of supported frequency ranges in KHz > > + > > + mediatek,mtd-eeprom: > > + $ref: /schemas/types.yaml#/definitions/phandle-array > > + description: > > + Phandle to a MTD partition + offset containing EEPROM data > > + > > + big-endian: > > + type: boolean > > + description: > > + Specify if the radio eeprom partition is written in big-endian > > + > > + mediatek,eeprom-merge-otp: > > + type: boolean > > + description: > > + Merge EEPROM data with OTP data. Can be used on boards where the= flash > > + calibration data is generic and specific calibration data should= be > > + pulled from the OTP ROM > > + > > + led: > > + type: object > > + properties: > > + led-sources: > > + $ref: /schemas/types.yaml#/definitions/uint32-array >=20 > No constraints for how many array entries? ack, I will fix in v2. Regards, Lorenzo >=20 > > + description: > > + List of device current outputs the LED is connected to > > + > > +required: > > + - compatible > > + - reg > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + pcie0 { > > + #address-cells =3D <3>; > > + #size-cells =3D <2>; > > + wifi@0,0 { > > + compatible =3D "mediatek,mt76"; > > + reg =3D <0x0000 0 0 0 0>; > > + ieee80211-freq-limit =3D <5000000 6000000>; > > + mediatek,mtd-eeprom =3D <&factory 0x8000>; > > + big-endian; > > + > > + led { > > + led-sources =3D <2>; > > + }; > > + }; > > + }; > > + > > + - | > > + wmac: wmac@10300000 { > > + compatible =3D "mediatek,mt7628-wmac"; > > + reg =3D <0x10300000 0x100000>; > > + > > + interrupt-parent =3D <&cpuintc>; > > + interrupts =3D <6>; > > + > > + mediatek,mtd-eeprom =3D <&factory 0x0>; > > + }; > > + > > + - | > > + wlmac: wmac@18000000 { > > + compatible =3D "mediatek,mt7622-wmac"; > > + reg =3D <0x10300000 0x100000>; > > + interrupts =3D <0 211 8>; > > + > > + mediatek,infracfg =3D <&infracfg>; > > + > > + power-domains =3D <&scpsys 3>; > > + }; > > --=20 > > 2.29.2 > >=20 --fH0x3Q43UYus4Dt/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCYEdoGwAKCRA6cBh0uS2t rApBAP4gyKFIt6ugl7qbZFasfnRVzxi7t0hzIaJZj0U7rVNFfAD/T3KpHRH+QLXH 3H8obr2Uwy83FLJPS0qVCCYx8+rk3wU= =9Lav -----END PGP SIGNATURE----- --fH0x3Q43UYus4Dt/--