From patchwork Mon Jan 25 04:43:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qingfang Deng X-Patchwork-Id: 12042901 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8998BC433DB for ; Mon, 25 Jan 2021 04:45:01 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4452422C9C for ; Mon, 25 Jan 2021 04:45:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4452422C9C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=WcwSGc1JKrHrKns6vnuQhu69WRsA7JE2ZJSofPBtkFc=; b=qs1FSc5/bYHJeN0HMERj66/ZeV n4Ln2LvDhkdVM17W6gIpKnfZgzl1hLB3YqhfkX2tCbiMY5nakaDzdOqh+b0Uv7UN4micnCnoZdBx6 OAVG7JNHpab8t7FbP2NpLHKfO/HsHN5Ni1M0PEYRyKciFjd1AcTLGK2CCPrYAMrm4Xgxm/sRQhuTv jpodbD5VZYErSwcWrQ6ykCrXvCmgwKrcJypDbbPF92COrRoiDMnN12llYpaMVUtOl6FQH2N47S2nw 4CaqOLfsu7u3MRA2tDrraR6jRh2s+BhPyA+oL+RRGrnMgEY6u0GhO0m9j7+MfUM4Xy+9gYoj3DCyH zUq9Fuzw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l3tj3-0003Jh-KD; Mon, 25 Jan 2021 04:43:41 +0000 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l3tj0-0003JK-I9; Mon, 25 Jan 2021 04:43:39 +0000 Received: by mail-pj1-x1029.google.com with SMTP id l18so1693084pji.3; Sun, 24 Jan 2021 20:43:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CjKIlCnAp40LXXxyE/ljdpUidkTMFHjswfBhcPJLNKE=; b=VtI1egLQ+tTQjQ5Tm7aJkEIjjZs60jUHxCHW3mSwKzC1nChsvZnb8tZekBZYwd71eb XP8va3jFniMofiApITFRgf87GCMYrAGcBZx7YQfvNjazFadZXiD/l9lPVHoqb0bcaaGu akG0Tkum04+Xl7YXFw1PNdVIU2okgZp1zHhYRw+6hRVhxZnpbOuSqyiwrp7FZx31soqO NQ84m1csamiGXIP/AzGz5o/3CQQEi6XIKC1UOnw2r882Iu8oXRxrYXItJ9pY+ZeuxI61 o6wSZhgLE8pQMIP2mFeZaV44qfnknDZvQ6Xjen8RfTVyrFKRFK4uEfp3dUxnYnbY4c9m +04w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CjKIlCnAp40LXXxyE/ljdpUidkTMFHjswfBhcPJLNKE=; b=lDRj3CelbebLxi5I7+zdQ+pSjkVKBDhGK7HtKmhmhMxEj2beNwj5cDMu7g9EMc0Hru L+8UUXJKhCG0x4oKtmi4K396ZkgbvqMPZwKlZsptZfl5if4I/uWj5sGnpQxTcO/PUs04 kMY1Kg4aKmt5sAMoKEj1BwLzuQpP04b9GmVvHImLlbTm1cwoep/pzRpd9Y9EDQlp8Yoh N/3fGPBa2eq5jyoAsn54P7uJVM2D8HHXRACRJfxzJOXcOcvAQvoLVejkMemtE/RNcUSE P1cAxTjztnUJwLWMICXkAH6VLYvFni52rYzhFnGtm0r0oJTvs1R/6gGnLmlZdE8JZKcL qPFg== X-Gm-Message-State: AOAM5327L/TI87pBh8CKbKRva0G25Evf0BGK8eYu9vhsgqf/rq6bTXGp HsdCUvvVVylC0GapLy2KCvs= X-Google-Smtp-Source: ABdhPJxbu3zuYr6d4RIC2ayqOy95V7a1SqBzIS32F4SdMgpijq7017S96q5Cz87Dr6A7fv32F6tAEA== X-Received: by 2002:a17:90a:8595:: with SMTP id m21mr4717423pjn.111.1611549816841; Sun, 24 Jan 2021 20:43:36 -0800 (PST) Received: from container-ubuntu.lan ([171.211.26.203]) by smtp.gmail.com with ESMTPSA id h4sm11913369pfo.187.2021.01.24.20.43.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jan 2021 20:43:35 -0800 (PST) From: DENG Qingfang To: Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Rob Herring , Matthias Brugger , Sean Wang , Landen Chao , Philipp Zabel , Russell King , Linus Walleij , Bartosz Golaszewski , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v2 0/2] dsa: add MT7530 GPIO support Date: Mon, 25 Jan 2021 12:43:20 +0800 Message-Id: <20210125044322.6280-1-dqfext@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210124_234338_631675_B4327982 X-CRM114-Status: UNSURE ( 9.75 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Ren=C3=A9_van_Dorst?= , Frank Wunderlich Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org MT7530's LED controller can be used as GPIO controller. Add support for it. DENG Qingfang (2): dt-bindings: net: dsa: add MT7530 GPIO controller binding net: dsa: mt7530: MT7530 optional GPIO support .../devicetree/bindings/net/dsa/mt7530.txt | 6 + drivers/net/dsa/mt7530.c | 110 ++++++++++++++++++ drivers/net/dsa/mt7530.h | 20 ++++ 3 files changed, 136 insertions(+)