From patchwork Wed Dec 9 12:03:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 11961221 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=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, 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 64305C433FE for ; Wed, 9 Dec 2020 12:04:41 +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 248FF23B6C for ; Wed, 9 Dec 2020 12:04:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 248FF23B6C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.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:References:In-Reply-To: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:List-Owner; bh=J+HkCtv7Huazl17hZbJ2vLRdLODSEEiBmDBc9UnR66Y=; b=EsYdrZbQkHfyWx/8oF6kAF0A6 X801W5DbOSVy1HlbkTcdjNP7qr1DUeUSFnqfYjGJwRYfv4Iayh/QsBmkVESdVi3dqAwWhQDEnYioI N4xORz1XrFmjMVKiAVPbZpxNv+VuAuZoW+pK0ecb5TVlFB7NsWwA6z1y/HsP+iHmpXTGUYVLyFN8o cZR1faUmww8FXi5pbPxUcNC5x5hE0ua9aUaIWY5hWaa2AWMot443zYzgOuqM87dtGzUdHBNeItZKj Pt+t37QIft2Wa6LaufSDIgItBXvHQt/vxXWwR1P1KZiqr+l/vcFIKLYlKwB37XpdRMX6op8UTRNSe +s+mwdEOQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmyBy-0003db-5L; Wed, 09 Dec 2020 12:03:34 +0000 Received: from mail-ed1-x542.google.com ([2a00:1450:4864:20::542]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmyBs-0003b8-H7 for linux-arm-kernel@lists.infradead.org; Wed, 09 Dec 2020 12:03:30 +0000 Received: by mail-ed1-x542.google.com with SMTP id b73so1236929edf.13 for ; Wed, 09 Dec 2020 04:03:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jhTebHHB1yKIF7cssKlkVjUKOAUnXogHo6Up4bbqoQg=; b=0hyznWuWZqKpynL5fX4S7bsgyztK44TwnE8qPYF8Memni4zOyv2rFO2SNKtLh7V15T PcUw5jQKJ1/acoYMnFM8pwd9K6M0M7DjeoRp9beNN953P2wKibwzg/jPuljhmk+zUY4P RiP0w78x9veBsdW1Ppfz1Zg7hu3EDKZ83OYZvXBjVANwOVdcWpF5Uqwy/44qSx32wr1+ 2cXhJ2LnjHoRwq52o2FLe2TzbAkuhha+3EVhi1x8zg9S9i90k5oDoyc3BH3zlRiv67Bp wYy/kZfSRKYpGNbssaWSY1ch6WVVRhf7AcP5GvmcqhXtjZB4XVd2RP42roXYatZPdCr6 +9lQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=jhTebHHB1yKIF7cssKlkVjUKOAUnXogHo6Up4bbqoQg=; b=Z+ORCPh8yNRWBayKtRFmuLZyxc9gMfgNfJVfIotTz8Zw1AAgcpdFAiVp4LXrzBDgNV dX1hoAZ3UZK8brp3L8AqHFE4MbWioxbXoB4hxEL1yhaEyJ7jREgFNTnzJYhM4fkF+chG L4XGOOMR3NpMtFHntpBvbBDfHuPAyOMux0Z6JQ53CU0hsQOp1yJL0YuorD18Fr0TcZbs Jmfsf51bkCcv8VW9XVle/uZa2PDWQMSUwDQ0Z6j//5hfXDRtY7QUN9Jun/B/d/Ep+grR H3MW+EFadMQI5yc+t3hnbEMQus0ItkYQHy2g+N6pngAsF6BU8czPo/cGyobKgxBWmcmA Sx7Q== X-Gm-Message-State: AOAM530KCH/hgNsBNZZOut5F6RL99yAZ7+EAoA4pckIUuTH45u2nAVXa HjNAi6HqRvP4O/PoyXL+HeEjbw== X-Google-Smtp-Source: ABdhPJwRn7OBn73W+KHDERa+We/tGcp650qVwbLdX3kts9uoyWDBr0xqdxk8aNcWE436bWZmB40b0Q== X-Received: by 2002:a50:9ee6:: with SMTP id a93mr1692284edf.174.1607515407524; Wed, 09 Dec 2020 04:03:27 -0800 (PST) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id c23sm1426548eds.88.2020.12.09.04.03.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Dec 2020 04:03:26 -0800 (PST) From: Fabien Parent To: Rob Herring , Matthias Brugger Subject: [PATCH v2 2/2] arm64: dts: mediatek: mt8183-evb: add PWM support Date: Wed, 9 Dec 2020 13:03:21 +0100 Message-Id: <20201209120322.137610-2-fparent@baylibre.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201209120322.137610-1-fparent@baylibre.com> References: <20201209120322.137610-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201209_070328_619442_DF2AF055 X-CRM114-Status: GOOD ( 13.65 ) 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: Fabien Parent , linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable the pwm driver and set the pinctrl for PWM A line. Signed-off-by: Fabien Parent --- V2: * rename pwm0 to pwm1 since disp-pwm has been merged in v5.11 as pwm0 * rename the pio node and labels to match the coding standard of this dts arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts index cba2d8933e79..3249c959f76f 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts @@ -344,6 +344,12 @@ pins_spi{ bias-disable; }; }; + + pwm_pins_1: pwm1 { + pins_pwm { + pinmux = ; + }; + }; }; &spi0 { @@ -392,3 +398,9 @@ &spi5 { &uart0 { status = "okay"; }; + +&pwm1 { + status = "okay"; + pinctrl-0 = <&pwm_pins_1>; + pinctrl-names = "default"; +};