From patchwork Wed May 19 16:18:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12267879 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=-17.1 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=unavailable 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 6F93DC433ED for ; Wed, 19 May 2021 16:20:53 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 E29BF61244 for ; Wed, 19 May 2021 16:20:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E29BF61244 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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc: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=p+JU4mFTcDqz7eeTxOvzwM9CKljGOdoI2NPgS5Ab57Y=; b=VgRehyOo+4FaQIvFy618z0N29z 4DFMjrByHo1jMfssRhrrrjFetu1uiCLNi0/J1TJgpghCjIsYQNO3G/KVm2DB6lSJMn5HiXGDC4wQI 0sFNKcIKiCJQRB3obNWQwzvsVxYDWb6+STL8ppMD7pqsTy7nrFIWm2SXuoAmJg79GzSZ8Fv1Atlop ZitbfOV+K8Nie9xVgFGfk1DhaJnakj11kJgUP2O4VVbEo3dj3bDDV16jItTmL518dFO2613oNU83C xiguJ4gVzOdFiyNoOHfarC1wn+wlw65BigRAWb+Ne7YHu46VpcFkXxiJZjkbjUoRnvsgE5Sp7S+3o u8dbvGNA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ljOuT-004Ufr-JY; Wed, 19 May 2021 16:19:02 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljOuO-004Ueu-Na for linux-arm-kernel@desiato.infradead.org; Wed, 19 May 2021 16:18:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=llPfZ8AOPilzKmViev4XTbmhiuGiojY0tKb8nEMUYB4=; b=q7szZM2bwlzDUDzrPMtpFWNQSr Rjk9/ywHJnOgkmh0PCDqW+THpVgJW1VAwRjP9YG6fQpxcFEKNRhoxDCUfaaIC1bBTk1InZfT5lokj WvslQ6ZeaJOKJI6v3bvEZePODqezfFqNcyPSIZ5EjaWIrGOVi0TK4FMAvY2yDVpTjAYQ0wzZxgq8R AId0y2XsvWRyjQZFXTP2Psn27o5s+qeTGmKsFjHDJ0Y5G7WOS+ypMsyIWvWdHlQSqJHHN8QzzL0r+ nsNlQBxGs7NUeGAx9kcCGWId0KvdeV6Q7Te5iQuOpdgZNUyZPxY+1PkbtfNlBl0RUPtkzvzeIYv5p vIK7lyDQ==; Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljOuL-00FcWo-34 for linux-arm-kernel@lists.infradead.org; Wed, 19 May 2021 16:18:55 +0000 Received: by mail-wr1-x42a.google.com with SMTP id z17so14624520wrq.7 for ; Wed, 19 May 2021 09:18:51 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=llPfZ8AOPilzKmViev4XTbmhiuGiojY0tKb8nEMUYB4=; b=YpumUkT2zhUhb1gcFON7vhnOA6X+5Sc0KNC5HjSjNRgyCNI122racDg6XFNc5l6psP G1TV099JaWISOPvAoo6zW4/kbkKFp7KMqc1WKIIRRB1lgp2AIUmW8kKHa5F65Zj0Su0x peumpe9ZTdBGm1CCLnpKK0jpgmMlHbROIf108f3gXbrEO5MxZR4kVnsNXyFusDdb3Gjh ZEzpZTUW1T7g23c9FbHRQwg0PyFj8FSB2u2aaKjmlhXtTqD5pAUmBfhr32A4WDZRJMQO pQs38URDfHtMqlVagVLQfPW1H//NtNp2LhulTCU27QoB7Ktdpiygp30XGBL5p3nMqA3/ +6lA== 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=llPfZ8AOPilzKmViev4XTbmhiuGiojY0tKb8nEMUYB4=; b=h8N0jcT7M/FjfSwtHmSvKQMF6IH0qTvBz1pco96Agwt9EZdxsahpuz+ELT9RT9oeQT IizzYHXFdgh9IVittDIV86H0krF2nZ+OoFSlf19SUox13sOZgMgQ4tEQfE4ntf+cUxoL AE/aAYwPW4bGL8Zla4By2zqM1XmeJTJfOIWQDZrd+bfCHVdefFvJJvuVnNkMuujeYxk2 AZUx9H9BRVkEkEPPfbqcfLYnvD4EQU29GNVZJWBy0/hY+LEFTrmHTM/mkwGfqzM0PHlZ 0OWjl0yq8in7iKAXiRTAzrQWutMWBbBUXnaJ+3fwc1gnpI2jGw9Io2Bbd3JQehUFu2lz MdJQ== X-Gm-Message-State: AOAM533mzU+yhX+Jq2hVU8RzSJ4v5NRyKxPQryxniN4vnOrflAMTJ5MK IPsdJqPLEP0QUwaYy0ufS9zI/A== X-Google-Smtp-Source: ABdhPJy53K9D1kmFCUpC/PIf+b5cYVmChTkcnu+yAIk6l/+kiu3PmLWiqS1kjyM5UzZgnnvapssAuA== X-Received: by 2002:adf:f9ce:: with SMTP id w14mr15784947wrr.387.1621441130604; Wed, 19 May 2021 09:18:50 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id m9sm5638547wmq.40.2021.05.19.09.18.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 09:18:50 -0700 (PDT) From: Fabien Parent To: Rob Herring , Matthias Brugger Cc: mkorpershoek@baylibre.com, Fabien Parent , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 1/3] dt-bindings: arm: mediatek: mmsys: convert to YAML format Date: Wed, 19 May 2021 18:18:44 +0200 Message-Id: <20210519161847.3747352-1-fparent@baylibre.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210519_091853_212675_683A077D X-CRM114-Status: GOOD ( 16.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert the mmsys bindings to the YAML format. Signed-off-by: Fabien Parent Reviewed-by: Rob Herring Reviewed-by: Enric Balletbo i Serra --- .../bindings/arm/mediatek/mediatek,mmsys.txt | 31 ---------- .../bindings/arm/mediatek/mediatek,mmsys.yaml | 57 +++++++++++++++++++ 2 files changed, 57 insertions(+), 31 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt deleted file mode 100644 index 78c50733985c..000000000000 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt +++ /dev/null @@ -1,31 +0,0 @@ -Mediatek mmsys controller -============================ - -The Mediatek mmsys system controller provides clock control, routing control, -and miscellaneous control in mmsys partition. - -Required Properties: - -- compatible: Should be one of: - - "mediatek,mt2701-mmsys", "syscon" - - "mediatek,mt2712-mmsys", "syscon" - - "mediatek,mt6765-mmsys", "syscon" - - "mediatek,mt6779-mmsys", "syscon" - - "mediatek,mt6797-mmsys", "syscon" - - "mediatek,mt7623-mmsys", "mediatek,mt2701-mmsys", "syscon" - - "mediatek,mt8167-mmsys", "syscon" - - "mediatek,mt8173-mmsys", "syscon" - - "mediatek,mt8183-mmsys", "syscon" -- #clock-cells: Must be 1 - -For the clock control, the mmsys controller uses the common clk binding from -Documentation/devicetree/bindings/clock/clock-bindings.txt -The available clocks are defined in dt-bindings/clock/mt*-clk.h. - -Example: - -mmsys: syscon@14000000 { - compatible = "mediatek,mt8173-mmsys", "syscon"; - reg = <0 0x14000000 0 0x1000>; - #clock-cells = <1>; -}; diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml new file mode 100644 index 000000000000..a419da33e10b --- /dev/null +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/arm/mediatek/mediatek,mmsys.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: MediaTek mmsys controller + +maintainers: + - Matthias Brugger + +description: + The MediaTek mmsys system controller provides clock control, routing control, + and miscellaneous control in mmsys partition. + +properties: + $nodename: + pattern: "^syscon@[0-9a-f]+$" + + compatible: + oneOf: + - items: + - enum: + - mediatek,mt2701-mmsys + - mediatek,mt2712-mmsys + - mediatek,mt6765-mmsys + - mediatek,mt6779-mmsys + - mediatek,mt6797-mmsys + - mediatek,mt8167-mmsys + - mediatek,mt8173-mmsys + - mediatek,mt8183-mmsys + - const: syscon + - items: + - const: mediatek,mt7623-mmsys + - const: mediatek,mt2701-mmsys + - const: syscon + + reg: + maxItems: 1 + + "#clock-cells": + const: 1 + +required: + - compatible + - reg + - "#clock-cells" + +additionalProperties: false + +examples: + - | + mmsys: syscon@14000000 { + compatible = "mediatek,mt8173-mmsys", "syscon"; + reg = <0x14000000 0x1000>; + #clock-cells = <1>; + }; From patchwork Wed May 19 16:18:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12267881 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=-17.1 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 A794FC433B4 for ; Wed, 19 May 2021 16:21:02 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 643616135C for ; Wed, 19 May 2021 16:21:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 643616135C 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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=C7b6W8QJMSqYaWe5zAWT3sQ5nojhf/hrEx0fBeaAP/8=; b=f6xLZKIqeN/VKjWgk3N2AAc7y CH41O0jDjUQ2mW70aNRa11bZVnGeHVRfO2LIbIX6tWXcIpD0y8AlUpDxIEUiwc/j4ZdjHCHFjO92U SMaSjUUW0FK2a8JHbUuCYszWEqa8qhaqjHFCev6yubd16N5GrM3znsxh/gqt7TIEf6hSoGNTGG7k9 CaQu2mPqNcRCtHAf/92YYTuV4VYcKbxFU4yD/+MG2aLV087D8VdxF3JJ5DUKc88dHXp1AtSSk+Auv OAvkJhiASY4DQhc9yrTbjcgyMHBzQQL65bZgSymgus2A4UDUIBJ9ION4Q5W38E7ujlxiqKcXN3BL1 y0LKsZdiw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ljOuf-004UiB-1L; Wed, 19 May 2021 16:19:13 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljOuP-004Uf2-Rk for linux-arm-kernel@desiato.infradead.org; Wed, 19 May 2021 16:18:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=IK1c2c887ldeHFDtRUuiF3rS58kRAch51Vir1cevvPg=; b=RWCapoYComHhVrh6JwUXsvokFO +OGf9+q8qFPHX1rt6PGTl/YYL9lnp5gYNn5r7epWbHWIT9DEqV0riAj8PgGnUks3UVpkp5EUBcDFP xFy5DOsT0jCt1i48VkeNXF8mw5jxFKN3omPVWK0TQqGlmkoGXOaoQpj1rZPfYGoNp1pVryFxOyekD Hvoy9/enmLJB618iEUdp/YOnG75ecIiR/PaGB1TL3jU/n+FN0PaeQllbYpuaPXCbzTFfPw9QSSVBC lrTMw/FYnDNr+Bb2BRF1bZejU9V4Ar4rhsSKjORcvGOx8YT9j8oIku824bZdpPFlbBxsTCliS2dYZ /DN6PczQ==; Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljOuL-00FcWq-VP for linux-arm-kernel@lists.infradead.org; Wed, 19 May 2021 16:18:56 +0000 Received: by mail-wr1-x42e.google.com with SMTP id y14so12558220wrm.13 for ; Wed, 19 May 2021 09:18:53 -0700 (PDT) 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=IK1c2c887ldeHFDtRUuiF3rS58kRAch51Vir1cevvPg=; b=K6MirXc9/5vCvyi9STHJmzXDt9RpokogkyAfdnSgHs3AAJAzvHmZE7QZ8j8QxVyboH S/tMTUceHg3f/UXIY96B8GEV6s2mKGqJK9mEM55xS1k6QBRI79c9KD5Jltx73rFn0EBe 0OIa3f+eqhmcx3uc09oSBD0nx9TwBWgPsUCmMV6I5g4aTkwdqxfYPkCdhrzxb5elLnZB uU5ETdguVMaxxwrtJTyf32yfAL7ch2NWgDDatUtPBTurFNufFoPIvykqCsulhgS8tU/A jNo+3PdmvyI6y2W37zitaXu7RuwJ4+2VETSnqsL9chlDob9/14B3S4e4/hjA8EU7OIGi xLBg== 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=IK1c2c887ldeHFDtRUuiF3rS58kRAch51Vir1cevvPg=; b=pUi5zq3DlYdM/s5fHKUeLBgUHU5c8AbRUVNk3K1c53SoelJ268x9FbLvoCgnPbqX6M leUrTEoOwn9FNiU487X1Xk/zTlJ8ywPwb4ENbNlCRHwbXZsP2vuw1JA39GpU56Q0FFlR UxBbvpvpKToGzvmF0/enT4FRZQEKjM0rnPjFyUZ9/spoT8CPqOk7pofeEhN7Hn3xFdeb CYj1VZy7T/RLy1NUIFe2RprUTDhDsgeREpeD8dafOgSFnKwBy1GaC4JlHJTzwXXSk9x5 gW33Ws0Q+qXFgViEq3R58TDfF7m9I0R4V3sfgJLdJTqpALb7DfqE+REWJG0jiEj4ZBBA oeSA== X-Gm-Message-State: AOAM533OPhoN+jli5TDjMgDdbUz7H75chuKRpDCBYqliTGvAB0P17BYc sGA+rKOy4y9zdEQsVbJ8tBu0dg== X-Google-Smtp-Source: ABdhPJy4iXKMJIhEbcGAigZSDUzS3P3TsrklSNmpMykJhQ0xtLB1Ke5727ARrMPIKqi47rGUH6fe+A== X-Received: by 2002:adf:dc8a:: with SMTP id r10mr11005109wrj.119.1621441131973; Wed, 19 May 2021 09:18:51 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id m9sm5638547wmq.40.2021.05.19.09.18.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 09:18:51 -0700 (PDT) From: Fabien Parent To: Rob Herring , Matthias Brugger Cc: mkorpershoek@baylibre.com, Fabien Parent , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 2/3] dt-bindings: arm: mediatek: mmsys: add MT8365 SoC binding Date: Wed, 19 May 2021 18:18:45 +0200 Message-Id: <20210519161847.3747352-2-fparent@baylibre.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210519161847.3747352-1-fparent@baylibre.com> References: <20210519161847.3747352-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210519_091854_029057_A01595F9 X-CRM114-Status: GOOD ( 11.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the MMSYS binding documentation for the MT8365 SoC. Signed-off-by: Fabien Parent Reviewed-by: Rob Herring --- .../devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml index a419da33e10b..2d4ff0ce387b 100644 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml @@ -29,6 +29,7 @@ properties: - mediatek,mt8167-mmsys - mediatek,mt8173-mmsys - mediatek,mt8183-mmsys + - mediatek,mt8365-mmsys - const: syscon - items: - const: mediatek,mt7623-mmsys From patchwork Wed May 19 16:18:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12267883 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=-17.1 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=unavailable 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 6CA03C433ED for ; Wed, 19 May 2021 16:21:02 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 002C76135A for ; Wed, 19 May 2021 16:21:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 002C76135A 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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=F6v68YfRWE1ywCyuiRTGAwL4/l3we8R0Jb3tXAStUio=; b=S1cMSbkbU2GasJGturhhpACf4 RPMBHelCGse6Ypcm+FxtbKwUJXg3T9pVtPzlbyefge7gg2vGvDR/5zNOcE5MjO4gYRaWw9WObFZtF Edqz0OQFok30dVN0LJQhyHVVxwYKGqaI65sqtxYOAHmOvVXaBjwzduwPQi9NOaQFNzC9yuhOOJkj+ 6PisrwRcanAxgTrin895SMvBcjQteWhKHklNKK1o85AnmgrlwwWTjdu8Wd0Dmfi5DFwShjc8y/WQG n6vDwzBTGHi76aEPDZmD+rcE9AeyQQtGiw45yScRyq6UcXchwstDw5b9Aoq5Q30g4D+yGYo6Dd9RY xfMqgvSCg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ljOux-004Um0-2j; Wed, 19 May 2021 16:19:31 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljOuQ-004UfB-47 for linux-arm-kernel@desiato.infradead.org; Wed, 19 May 2021 16:18:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=1tDzYjlDgxmjzjobVmYcSz4r7xXPp8M3cZtPHLcuKcM=; b=V4M9X8XrpOLlHOfHyVUxOpjrF/ /kHCt/1ON2xaXo4yndVBMSRSN4AP1w9w9uo7RyOPZrcac1dZ5BVO7R5WZD1c2uw2V6kGprLL/7p8m hjrUjTv9tLN0+FpGwBr9Vg0Pr8aec6jLC239G6RSyKiopvVNRJGqEGJMzQ/s2fZ6rAeRe9wL4CWvU tvj+HWFdsx+hnjfLHyX97Mva8X8eUb6LY7U7aNzzyhT4kYr4E37ZprDwWZx/4g9i37jo2jJ5wDkka K2DZT+nIHockXFtEW7KQGhWaxbZggIsb5Mz3nb2KlHuJDULr5useeiEisoSk4TM5+xBqQLJ24hM7q ihxuVOSg==; Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljOuN-00FcXK-8H for linux-arm-kernel@lists.infradead.org; Wed, 19 May 2021 16:18:56 +0000 Received: by mail-wm1-x333.google.com with SMTP id f6-20020a1c1f060000b0290175ca89f698so3772477wmf.5 for ; Wed, 19 May 2021 09:18:54 -0700 (PDT) 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=1tDzYjlDgxmjzjobVmYcSz4r7xXPp8M3cZtPHLcuKcM=; b=VEjoOzDCPyBnjHP/G+BRd8AKbPY6qS8lTWusp2nzrpszqPBx3pksX3LvcjKvTFtI4h x+kr1EYslL8oMYIPdVG1M1ncBdLkReUq/bcmfEmLyVrfvRxJhyfS+5jQFQvVPVImSk01 Wt2NDHNbIn5QIHUDYnWOSogfESFmWpESmHZgpgVvgnw/msKDXXkj9ulWEB4UE6IYkswJ oMW6al367zYMbFEfHtWTxi2BvY25srwWc1GkULdPeNSTq8HhFesYmbiryAbr6Bbr8eDk ArNWLn54QKUA0Q0mRTPPRYMOE55ypC7xQnpYMudhPpYBfCzdjAA3RVF8ImwGYDCH+I0Z rgOA== 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=1tDzYjlDgxmjzjobVmYcSz4r7xXPp8M3cZtPHLcuKcM=; b=SFuzwaM/K4XwD4nxUmSS1M5cWJXaCepE8NBueW/DGxP9wxFv7gRgh6o5a/z5rYPhkX yclOO4V+S7WPvRj0iFzKEa8Ypd+0SI7hSlHciLoYDyIKRhJOZJDfV2unZ+zlvNnUKC/H 4yfJnXCCYESE1kvoSxMfJ3gyhRFG+TTaraBNqpD2nurJ6LRMxgFPVysb9yzSiJp+k3zd 3mFGrsjEt/lFBZC82F8B3Ze4fHaH7oY9oh0USspcBlLYBBUpxRbxH2kRtbpnteo9PAFT Vj/ZMw8LeQxd3F6wYiIDGlF7XTK9AJGJDS0CgO+EMGD6LkGHkUuDbkL8y3jZObcz8Vuo sn7A== X-Gm-Message-State: AOAM533n/jC3aSPLR1Bn3+0Ci60HzXtFho+YZyeAugsnPATlWlXfjUS1 uPRfkOgkPQZW/1fmBgCIjJuKVA== X-Google-Smtp-Source: ABdhPJx339v7qsUtnr6FF5kKHb2G5akgAZXS2RG7+qV4roVMKFwgXBX6GCtrEbz0xlJFj1y+X7Zepg== X-Received: by 2002:a1c:65c2:: with SMTP id z185mr143143wmb.2.1621441133512; Wed, 19 May 2021 09:18:53 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id m9sm5638547wmq.40.2021.05.19.09.18.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 09:18:53 -0700 (PDT) From: Fabien Parent To: Matthias Brugger Cc: mkorpershoek@baylibre.com, Fabien Parent , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 3/3] soc: mediatek: mmsys: add MT8365 support Date: Wed, 19 May 2021 18:18:46 +0200 Message-Id: <20210519161847.3747352-3-fparent@baylibre.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210519161847.3747352-1-fparent@baylibre.com> References: <20210519161847.3747352-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210519_091855_315163_7D812E95 X-CRM114-Status: GOOD ( 17.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add DSI mmsys connections for the MT8365 SoC. Signed-off-by: Fabien Parent --- drivers/soc/mediatek/mt8365-mmsys.h | 60 +++++++++++++++++++++++++++++ drivers/soc/mediatek/mtk-mmsys.c | 11 ++++++ 2 files changed, 71 insertions(+) create mode 100644 drivers/soc/mediatek/mt8365-mmsys.h diff --git a/drivers/soc/mediatek/mt8365-mmsys.h b/drivers/soc/mediatek/mt8365-mmsys.h new file mode 100644 index 000000000000..2475aeb79791 --- /dev/null +++ b/drivers/soc/mediatek/mt8365-mmsys.h @@ -0,0 +1,60 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef __SOC_MEDIATEK_MT8365_MMSYS_H +#define __SOC_MEDIATEK_MT8365_MMSYS_H + +#define MT8365_DISP_REG_CONFIG_DISP_OVL0_MOUT_EN 0xf3c +#define MT8365_DISP_REG_CONFIG_DISP_RDMA0_SOUT_SEL 0xf4c +#define MT8365_DISP_REG_CONFIG_DISP_DITHER0_MOUT_EN 0xf50 +#define MT8365_DISP_REG_CONFIG_DISP_RDMA0_SEL_IN 0xf54 +#define MT8365_DISP_REG_CONFIG_DISP_RDMA0_RSZ0_SEL_IN 0xf60 +#define MT8365_DISP_REG_CONFIG_DISP_COLOR0_SEL_IN 0xf64 +#define MT8365_DISP_REG_CONFIG_DISP_DSI0_SEL_IN 0xf68 + +#define MT8365_RDMA0_SOUT_COLOR0 0x1 +#define MT8365_DITHER_MOUT_EN_DSI0 0x1 +#define MT8365_DSI0_SEL_IN_DITHER 0x1 +#define MT8365_RDMA0_SEL_IN_OVL0 0x0 +#define MT8365_RDMA0_RSZ0_SEL_IN_RDMA0 0x0 +#define MT8365_DISP_COLOR_SEL_IN_COLOR0 0x0 +#define MT8365_OVL0_MOUT_PATH0_SEL BIT(0) + +static const struct mtk_mmsys_routes mt8365_mmsys_routing_table[] = { + { + DDP_COMPONENT_OVL0, DDP_COMPONENT_RDMA0, + MT8365_DISP_REG_CONFIG_DISP_OVL0_MOUT_EN, + MT8365_OVL0_MOUT_PATH0_SEL + }, + { + DDP_COMPONENT_OVL0, DDP_COMPONENT_RDMA0, + MT8365_DISP_REG_CONFIG_DISP_RDMA0_SEL_IN, + MT8365_RDMA0_SEL_IN_OVL0 + }, + { + DDP_COMPONENT_RDMA0, DDP_COMPONENT_COLOR0, + MT8365_DISP_REG_CONFIG_DISP_RDMA0_SOUT_SEL, + MT8365_RDMA0_SOUT_COLOR0 + }, + { + DDP_COMPONENT_COLOR0, DDP_COMPONENT_CCORR, + MT8365_DISP_REG_CONFIG_DISP_COLOR0_SEL_IN, + MT8365_DISP_COLOR_SEL_IN_COLOR0 + }, + { + DDP_COMPONENT_DITHER, DDP_COMPONENT_DSI0, + MT8365_DISP_REG_CONFIG_DISP_DITHER0_MOUT_EN, + MT8365_DITHER_MOUT_EN_DSI0 + }, + { + DDP_COMPONENT_DITHER, DDP_COMPONENT_DSI0, + MT8365_DISP_REG_CONFIG_DISP_DSI0_SEL_IN, + MT8365_DSI0_SEL_IN_DITHER + }, + { + DDP_COMPONENT_RDMA0, DDP_COMPONENT_COLOR0, + MT8365_DISP_REG_CONFIG_DISP_RDMA0_RSZ0_SEL_IN, + MT8365_RDMA0_RSZ0_SEL_IN_RDMA0 + }, +}; + +#endif /* __SOC_MEDIATEK_MT8365_MMSYS_H */ diff --git a/drivers/soc/mediatek/mtk-mmsys.c b/drivers/soc/mediatek/mtk-mmsys.c index 080660ef11bf..44aff822d035 100644 --- a/drivers/soc/mediatek/mtk-mmsys.c +++ b/drivers/soc/mediatek/mtk-mmsys.c @@ -13,6 +13,7 @@ #include "mtk-mmsys.h" #include "mt8167-mmsys.h" #include "mt8183-mmsys.h" +#include "mt8365-mmsys.h" static const struct mtk_mmsys_driver_data mt2701_mmsys_driver_data = { .clk_driver = "clk-mt2701-mm", @@ -52,6 +53,12 @@ static const struct mtk_mmsys_driver_data mt8183_mmsys_driver_data = { .num_routes = ARRAY_SIZE(mmsys_mt8183_routing_table), }; +static const struct mtk_mmsys_driver_data mt8365_mmsys_driver_data = { + .clk_driver = "clk-mt8365-mm", + .routes = mt8365_mmsys_routing_table, + .num_routes = ARRAY_SIZE(mt8365_mmsys_routing_table), +}; + struct mtk_mmsys { void __iomem *regs; const struct mtk_mmsys_driver_data *data; @@ -157,6 +164,10 @@ static const struct of_device_id of_match_mtk_mmsys[] = { .compatible = "mediatek,mt8183-mmsys", .data = &mt8183_mmsys_driver_data, }, + { + .compatible = "mediatek,mt8365-mmsys", + .data = &mt8365_mmsys_driver_data, + }, { } };