From patchwork Fri Feb 10 23:37:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 55644 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1235429wrn; Fri, 10 Feb 2023 15:41:39 -0800 (PST) X-Google-Smtp-Source: AK7set/JYm2R3rf62TkWuE3brA5ZBRV1npQOvfa1Sv6/VrP7fcnqZwRCtMAplhlfbduTzrM2hyfc X-Received: by 2002:a17:906:7097:b0:885:fee4:69ee with SMTP id b23-20020a170906709700b00885fee469eemr17715991ejk.59.1676072498992; Fri, 10 Feb 2023 15:41:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676072498; cv=none; d=google.com; s=arc-20160816; b=ty1bMumoy7FzkmXJsWtdu5w9HNASqtMM5D9ZQ0RVlPx7ApesnmMS2ruJoKiYkyXmp9 Egc1Z6yZeA8BqTVGssksU0fmbrxvO31Ialu1hUXBR2usStikTNiuLNCHfILrCgg7VWvn WSbHkz7hY395Vatuws2fF0qe0g1MR+0YocyZeB92puTVdn9s68I7UAMgQXCdEjqAA3tu DSDIMxHFvxD3Q4favOqQfh6UZiM+xtt/a8W025pIVD9l+tjJHFFmVwWNQ57eoOw+1utT wdJuK3M+5/jrGcOIf07wT090sRLy5a6dlWOB0TCLQtJ7CrjY8JlKCXNbrIPBVIoJxPT6 B1Rw== 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=qTt0rTt6JBPv80rALLBHl6novGrMSop28q9CDeX/zQzVrwTeV5BQSV8Q3kOWUlvR/v oqomMY8DdngutCuWkQIFwFf5JOUvdmdyGDcRiQoXiQbzxbDSTdKMZdi9CduUryO0OExo n/qksCgnxL5kVGocmrZjsSqvJ38gBYIYLCvWrXMPJIi6c9uBryNZ9FVzqdGGKqo+fhWb N/IIeBhCn7jZ0TnIKkdX/qAh8USryBBLFAb6lW5uVlFomYavwgo5Hh3rfgIj5m6WInZ3 DiLG2qVqyXQSfqcpm+UHeRzyZXM6SnkTRU4xz9ddiPHJ0XHye9b1x47asay2vZmcvGKM 6wZA== 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 ui3-20020a170907c90300b007ae10525573si5639557ejc.671.2023.02.10.15.41.15; Fri, 10 Feb 2023 15:41:38 -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 S229886AbjBJXjW (ORCPT + 99 others); Fri, 10 Feb 2023 18:39:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229787AbjBJXjU (ORCPT ); Fri, 10 Feb 2023 18:39:20 -0500 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEBBE3C788; Fri, 10 Feb 2023 15:38:44 -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 1pQcyY-0004BF-1F; Sat, 11 Feb 2023 00:38:42 +0100 Date: Fri, 10 Feb 2023 23:37:05 +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 v4 04/12] dt-bindings: arm: mediatek: sgmiisys: add MT7981 SoC Message-ID: <7273678366079b93ee19c4c6f6ea9bc13cd8dcfb.1676071508.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?1757489396871224392?= X-GMAIL-MSGID: =?utf-8?q?1757489396871224392?= 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>; + }; + };