Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2653DC636CC for ; Mon, 13 Feb 2023 09:17:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230267AbjBMJRE (ORCPT ); Mon, 13 Feb 2023 04:17:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229604AbjBMJRC (ORCPT ); Mon, 13 Feb 2023 04:17:02 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFEAD14480 for ; Mon, 13 Feb 2023 01:16:57 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id bu23so11363573wrb.8 for ; Mon, 13 Feb 2023 01:16:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=h74cDQbgTdYncRWX3Uv32ARg+TAO4xNXRfIu6VensXg=; b=PB29dGCSLCehErz5UeBpdIOyvUGN56QP4ynMmbXeBxyEGhFJ7uSuTgA/Rlw71C66OZ f00/AxjW5MnvGhuwbFF7LycdMP0seIbtfJUYw1xhsLRwMcKrkhIPjiKTtTMjkuvc2q1s kF8Iq9c1/x8WltmS0xjbdYk9PaKhnq2cVegZs6nx7Dl2Zb1g+VXnWEYBwWO1WJD+/N99 2BpFoHBkfPkwUZRuRyjtevZuMLz5YlzE0A6zv0KoZ2hL9MQ8tuwZtHh5Itn7ARaCUvXF QlX8FQZiFvP4NfpbawPmAAQRyYCZp+s25aUrHEY7P9EBzoh3+twL+vbkBFtMEmTndU81 ndUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=h74cDQbgTdYncRWX3Uv32ARg+TAO4xNXRfIu6VensXg=; b=zbt3yuQfhicvWYJiKCx4+kBfxI9P2a+vo230U3xnOWS/6wHLPpN4VCNHeTeZLI2WC+ ZXJetO3JIitbytdn7M4CPQO9KTSa9JTjiaHCl5TglbrXkcIrJmOQlF7cZ7AnY3s0qSM6 /v7+neAZhFxEmKy9K4l0Iq6DyA7EjE0zO7feUn+i89L3CfeDmk+D60HZ1tLk/5XK+q+n GA5ftE5sb+kU0/v84RBKk/sNYm3wkOL0NbDN62S59q0Kw3op5g3gf9DxBUnKemwtsl8H t2pdArl9eCVY8g/Saqf7SMqGI6c3QDfpYAd358BKaZdpeCvTeGUN7Fkcwa1e/V8jmEt9 rY3Q== X-Gm-Message-State: AO0yUKXaiKv5KoLr2rT0nc++m53AmY8nDd+LxgSlsj7o8gKdbYieiVhN bk1Th30dv1GY2SLIS2wy/Ou4dA== X-Google-Smtp-Source: AK7set+IshfpqoWnvctuQzvDvkpgdvAbbagtzROSYTvPetRlM7bQOGDBLySLCCSZsdmI7Nz/eTh+Kg== X-Received: by 2002:adf:cd84:0:b0:2c3:dafd:c729 with SMTP id q4-20020adfcd84000000b002c3dafdc729mr20385856wrj.47.1676279816339; Mon, 13 Feb 2023 01:16:56 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id v14-20020adfe28e000000b0027cb20605e3sm9983692wri.105.2023.02.13.01.16.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Feb 2023 01:16:56 -0800 (PST) Message-ID: <0000e9d1-7876-0830-4ec3-dadc69f8c54d@linaro.org> Date: Mon, 13 Feb 2023 10:16:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v5 04/12] dt-bindings: arm: mediatek: sgmiisys: add MT7981 SoC Content-Language: en-US To: Daniel Golle , devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Russell King , Heiner Kallweit , Lorenzo Bianconi , Mark Lee , John Crispin , Felix Fietkau , AngeloGioacchino Del Regno , Matthias Brugger , DENG Qingfang , Landen Chao , Sean Wang , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn Cc: Jianhui Zhao , =?UTF-8?Q?Bj=c3=b8rn_Mork?= References: <7273678366079b93ee19c4c6f6ea9bc13cd8dcfb.1676128246.git.daniel@makrotopia.org> From: Krzysztof Kozlowski In-Reply-To: <7273678366079b93ee19c4c6f6ea9bc13cd8dcfb.1676128246.git.daniel@makrotopia.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/02/2023 17:02, Daniel Golle wrote: > Add mediatek,pnswap boolean property as well as an example for the > MediaTek MT7981 SoC making use of that new property. > > Signed-off-by: Daniel Golle > --- > .../arm/mediatek/mediatek,sgmiisys.yaml | 22 +++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,sgmiisys.yaml b/Documentation/devicetree/bindings/arm/mediatek/mediatek,sgmiisys.yaml > index 99ceb08ad7c0..97d4ab70e541 100644 > --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,sgmiisys.yaml > +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,sgmiisys.yaml > @@ -23,6 +23,8 @@ properties: > - enum: > - mediatek,mt7622-sgmiisys > - mediatek,mt7629-sgmiisys > + - mediatek,mt7981-sgmiisys_0 > + - mediatek,mt7981-sgmiisys_1 > - mediatek,mt7986-sgmiisys_0 > - mediatek,mt7986-sgmiisys_1 > - const: syscon > @@ -33,6 +35,10 @@ properties: > '#clock-cells': > const: 1 > > + mediatek,pnswap: > + description: Invert polarity of the SGMII data lanes > + type: boolean > + > required: > - compatible > - reg > @@ -51,3 +57,19 @@ examples: > #clock-cells = <1>; > }; > }; > + - | > + soc { > + #address-cells = <2>; > + #size-cells = <2>; > + sgmiisys0: syscon@10060000 { > + compatible = "mediatek,mt7981-sgmiisys_0", "syscon"; > + reg = <0 0x10060000 0 0x1000>; > + mediatek,pnswap; No really need for three almost the same nodes. Just choose one - with or without pnswap. Best regards, Krzysztof