From patchwork Sat Feb 11 16:02:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 55840 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1556425wrn; Sat, 11 Feb 2023 08:09:23 -0800 (PST) X-Google-Smtp-Source: AK7set+adQtNrwNWbgUF/SntCs9PlHVOI7me68879L/HVjX4Y7S83OGQ6xSGMbzPdLxyOR3OA+4I X-Received: by 2002:a05:6a20:e415:b0:bf:7cbb:18d0 with SMTP id nh21-20020a056a20e41500b000bf7cbb18d0mr16362480pzb.17.1676131763031; Sat, 11 Feb 2023 08:09:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676131763; cv=none; d=google.com; s=arc-20160816; b=BJNeOjwPlsj1ZuYaLjAQZ5L224NwOet8txWlcsYcO7Yd3V6O8Zf0IBGYh7JZcYyX0h 1p8MgMkahYm2UnP2oace/1LVYhubti2/WU/GyzIz2NjI+AoKnzZvKaCexm1Duuc8GwAF aqhaY7esGm1oytvtQPGJhenSwcvJ0+Hk2KvDnoYc2isw2+J1jlS3EJHj2rCndkNw2swI ICE4i/2gI/UtnYg9JJqnpkCPi8UxeKobY8keg+3mZmJ7S0iq7hRYQd2IWFOf19VH06Kh WqYAJ5ap1YPJfTIDin+PpCiDvmeFIq1wpesZV6hrN1wQdkzxQuS/EIJugFOcAamHC8j5 9l3A== 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=fsPtGG1iOaZNdIlQwFdMnxXjYPLDNeP8HeFz7/nLj1+Mtlcgh7YQegm48yuQv6U3Dc RNXlzvrg7n9BavonTihsQ+0JxUc/bmLowrQMVJCMZf6u5y+Ic7X2ZW26PFKN2CytmK5V oMQuM7THOtrqif44HEQ0/LwJxd9aH+71/i2aSD++TGg21nx+xzN49K9HpEEsx2xeuqj1 VQysBZpzjp02jS5+bqUoIOej1TXYmUWsn85miEodQuuWTvG7aMgM7Ozd6iuJ41p2XHp7 eHwr3Ymwxrhe81yHK8dgIv8IPF7uiUy6RSyG1daqkndfz0zx2Kh41yMq4bQA3PNXf3JV 8BTg== 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 t69-20020a638148000000b004fb352ad07esi7194587pgd.647.2023.02.11.08.09.10; Sat, 11 Feb 2023 08:09:23 -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 S229707AbjBKQE7 (ORCPT + 99 others); Sat, 11 Feb 2023 11:04:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229655AbjBKQE5 (ORCPT ); Sat, 11 Feb 2023 11:04:57 -0500 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD1C62B0B6; Sat, 11 Feb 2023 08:04:34 -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 1pQsMY-0004LV-1h; Sat, 11 Feb 2023 17:04:31 +0100 Date: Sat, 11 Feb 2023 16:02:55 +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 v5 04/12] dt-bindings: arm: mediatek: sgmiisys: add MT7981 SoC Message-ID: <7273678366079b93ee19c4c6f6ea9bc13cd8dcfb.1676128246.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?1757551539271951815?= X-GMAIL-MSGID: =?utf-8?q?1757551539271951815?= 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>; + }; + };