From patchwork Thu Feb 9 23:30:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 55129 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp636534wrn; Thu, 9 Feb 2023 15:35:17 -0800 (PST) X-Google-Smtp-Source: AK7set+6RLsyWEXqzoFiy2ZyTp71Rhuk035tf6Uwr4nc4xErNC5ZrZH4KH/AF2QywGRAwrii8xKu X-Received: by 2002:a17:902:f1c5:b0:199:538f:61e9 with SMTP id e5-20020a170902f1c500b00199538f61e9mr5004403plc.57.1675985717345; Thu, 09 Feb 2023 15:35:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675985717; cv=none; d=google.com; s=arc-20160816; b=IKZp7gMRvsZOIWDDTkpG9NZU1j+d0zXmvkXrGjq8Iem0AEwBymT/Sho4HI8HtAyLCz hj1zl7Q9+dRxMfnC0MvS6rsA0hdKAaewzbRXnUu0oquKc4V6emBh87MI/QWrKu8al72s MoV6OZL3ELn2nfpjx2r3cw9vieixuIXMQ3HIzRtRCq8Zu74ufXgfYIgwhJ0ELQtiA0K4 84SkMfle6xxNbhg/RYJB36mkAs4K8NKrDYtrNWCLY9Pv9PN1sQH3PzrAOCca3kH4hVbM E1Uo0JKqehXADyYYvtfRTUKqE8Y5Coy9g1Ep3pOwLYe3S2EkL++l/VK5jrPN73YuMhPW NcpQ== 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; bh=zG7Z079VGzm9fVuMaqkib6Sl09LYXi8uxS0GVydSlL8=; b=TIOkVxQbE81msozeI0U0X+lola2iXCOXEdgEQyKSd7xfF7Hc04VOWoHt4xs9rV4R2/ QYyo6n3TvzlObn2D1nqxtZyOQphtn6dy2ndjWpWuk5sM13sN4CTEe/BrumwEQGiYtIMA Z79QBlOcx6EhrtVdiiCofNVcEpTuXx/hoU4oW1C1hoGTqLZ5cLanJMK7c9IefjOHamjz KmIjOczQIFCFY4+GyxEr6VGOqnULQ0PH3NZBlVnxsHKnlWXtZFRDfQTCbkR9sIHdTpj7 Bx7q+mnJOeTUkGka55xrQGpprihE67mW68hYVTKRUVptpDuu3KlOtWQ6KZiAom2RYdIN vKiQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k71-20020a63844a000000b004de59d9ed81si3050483pgd.712.2023.02.09.15.35.04; Thu, 09 Feb 2023 15:35:17 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230425AbjBIXbu (ORCPT + 99 others); Thu, 9 Feb 2023 18:31:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230428AbjBIXbq (ORCPT ); Thu, 9 Feb 2023 18:31:46 -0500 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C161438007; Thu, 9 Feb 2023 15:31:41 -0800 (PST) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1pQGO9-0002F8-3B; Fri, 10 Feb 2023 00:31:38 +0100 Date: Thu, 9 Feb 2023 23:30:01 +0000 From: Daniel Golle To: 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 , =?iso-8859-1?q?Bj=F8rn?= Mork Subject: [PATCH v3 04/12] dt-bindings: arm: mediatek: sgmiisys: add MT7981 SoC Message-ID: <28168bb376d1a473eb748a5c1fd70ca6f94d08c9.1675984550.git.daniel@makrotopia.org> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757398399738100533?= X-GMAIL-MSGID: =?utf-8?q?1757398399738100533?= 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; + #clock-cells = <1>; + }; + sgmiisys1: syscon@10070000 { + compatible = "mediatek,mt7981-sgmiisys_1", "syscon"; + reg = <0 0x10070000 0 0x1000>; + #clock-cells = <1>; + }; + };