From patchwork Mon Sep 7 08:32:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11760199 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C516813B1 for ; Mon, 7 Sep 2020 08:33:27 +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 9207A208C7 for ; Mon, 7 Sep 2020 08:33:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="2TKlErgj"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="O7ge+z+D" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9207A208C7 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-amlogic-bounces+patchwork-linux-amlogic=patchwork.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=CvX0UdLFPLizkS9jVXPwWfckkP6HvYdsD9f6CH8QWd8=; b=2TKlErgjvvVOvo3jj/RgX0nIg mgu5iif923SmuNGxe2bTsLlW2bGU/SszpkiHL82lPKpbCsn7PvJaLuoFs8n6ya4e/QD3RwQ2Nn207 l+ctycshwsqYALjE9GQdBmVCnZ2nnjZpBLCA3rMZ9A5ZcIREyzWH7ilXePsKTAgdH3GjQ0wzjBUOe SVcoT0Eg7CYFdgqZMOy6ZM1uw1sM3zsgtTs83mr7pkXQww1okjEtrknd5/THVlbugdmNKe3zi0iM8 aair1iP0cOqBS7x+BA8Y4Y68u3VttGEmD4CwvFi7fv1ZB3yMPaEZzefFmkzfxU0vwu75XpA1B79PO tdqX5kx/Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFCaR-0003bY-KH; Mon, 07 Sep 2020 08:33:15 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFCaJ-0003Xd-Vd for linux-amlogic@lists.infradead.org; Mon, 07 Sep 2020 08:33:09 +0000 Received: by mail-wm1-x344.google.com with SMTP id w2so13521312wmi.1 for ; Mon, 07 Sep 2020 01:33:07 -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=BskRtsfSrtTPxUTZWhMJwYdJ0y7cfpBILFNcmq3oTKY=; b=O7ge+z+DXSflA2nuhw8jVKX1cOoi2X7CTELrpMw2/JGMs2hKuKOPfL7/7V5uAs9yUi ZdLkBakj3/HuYnaFmYJlAyO2c51F1xS4YVRtdYc3lyIvtBnHcL0FlfjOgxXtZuJWv6Kw C0pEd8mu+v/Go3GuN8jjGNyaYN41uj0AjePn5n2D2nbp4KeAtJFuLLMFu//SynsnmINp JKTl66vaA43c/AoDvFjnciRhInMhoDn4pJedefiCPEK9ZNYCTJkUsyygkpqCWm5xZIRC fisfxfJJOeoH9KjVRQmZ1dlYqAL3EQ1Wmv/HGEkSJXd3dWu2meUCd+jRcuYkRXdN2jG0 qhlQ== 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=BskRtsfSrtTPxUTZWhMJwYdJ0y7cfpBILFNcmq3oTKY=; b=Irvoh5l6rvu7b9KqIhmHmCKKUu6T4FvLG86e/R9qfYgFRTGVH+Zk2sXCITN/tYHszu GH+0UJt0Nhg4TKN/1rtXKvHpgsuaAK/TPHlPv0/otmZ5+dbIYCT8M1d/0Fd5TDr2MkC/ iD/+ujJ/4X3US2hhTfuxCt8rqQ5tP0EVLMuuD2fTpq9yy39bxvabSDI7yeVleuydR/XY I7fplXig/c70NcNsga4rFgwv3AimffFJNmbszAh6ZW+7S/mBYsRDAYkBBP/WqOIiUf+v tIMlAcSidwrw++co8gspMP8xnz8XnrBQopQM1i7D/HbMoPhnSQNByycTxF2F/czd67zg px/g== X-Gm-Message-State: AOAM531V9eYvAWASXctc9CfE03Rrva5EEbBA+NaN2ltEsnv+tbX7ESEG 4623J8BNBQrQpUBgWiTs1dI7/Q== X-Google-Smtp-Source: ABdhPJwLZwS9A3Au5pjUdBGSVp1oaVkRMPuW6y501Mdqjo5E2ZTDunW08wCkhCnOFN3MICg6WGnM+w== X-Received: by 2002:a05:600c:410e:: with SMTP id j14mr20714139wmi.13.1599467586730; Mon, 07 Sep 2020 01:33:06 -0700 (PDT) Received: from bender.baylibre.local ([2a01:e35:2ec0:82b0:5405:9623:e2f1:b2ac]) by smtp.gmail.com with ESMTPSA id o5sm25205111wmc.33.2020.09.07.01.33.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2020 01:33:06 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 1/3] arm64: dts: meson-axg: add VPU and PWRC nodes Date: Mon, 7 Sep 2020 10:32:58 +0200 Message-Id: <20200907083300.14412-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200907083300.14412-1-narmstrong@baylibre.com> References: <20200907083300.14412-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200907_043308_056135_C479BA7F X-CRM114-Status: GOOD ( 14.98 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:344 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org This add the display VPU node and the power controller PWRC node. Signed-off-by: Neil Armstrong Acked-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index b9efc8469265..4a93e3fecd90 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi @@ -12,6 +12,7 @@ #include #include #include +#include / { compatible = "amlogic,meson-axg"; @@ -187,6 +188,7 @@ "timing-adjustment"; rx-fifo-depth = <4096>; tx-fifo-depth = <2048>; + power-domains = <&pwrc PWRC_AXG_ETHERNET_MEM_ID>; status = "disabled"; }; @@ -1117,6 +1119,46 @@ clocks = <&xtal>; clock-names = "xtal"; }; + + pwrc: power-controller { + compatible = "amlogic,meson-axg-pwrc"; + #power-domain-cells = <1>; + amlogic,ao-sysctrl = <&sysctrl_AO>; + resets = <&reset RESET_VIU>, + <&reset RESET_VENC>, + <&reset RESET_VCBUS>, + <&reset RESET_VENCL>, + <&reset RESET_VID_LOCK>; + reset-names = "viu", "venc", "vcbus", + "vencl", "vid_lock"; + clocks = <&clkc CLKID_VPU>, + <&clkc CLKID_VAPB>; + clock-names = "vpu", "vapb"; + /* + * VPU clocking is provided by two identical clock paths + * VPU_0 and VPU_1 muxed to a single clock by a glitch + * free mux to safely change frequency while running. + * Same for VAPB but with a final gate after the glitch free mux. + */ + assigned-clocks = <&clkc CLKID_VPU_0_SEL>, + <&clkc CLKID_VPU_0>, + <&clkc CLKID_VPU>, /* Glitch free mux */ + <&clkc CLKID_VAPB_0_SEL>, + <&clkc CLKID_VAPB_0>, + <&clkc CLKID_VAPB_SEL>; /* Glitch free mux */ + assigned-clock-parents = <&clkc CLKID_FCLK_DIV4>, + <0>, /* Do Nothing */ + <&clkc CLKID_VPU_0>, + <&clkc CLKID_FCLK_DIV4>, + <0>, /* Do Nothing */ + <&clkc CLKID_VAPB_0>; + assigned-clock-rates = <0>, /* Do Nothing */ + <250000000>, + <0>, /* Do Nothing */ + <0>, /* Do Nothing */ + <250000000>, + <0>; /* Do Nothing */ + }; }; }; @@ -1563,6 +1605,22 @@ }; }; + vpu: vpu@ff900000 { + compatible = "amlogic,meson-axg-vpu"; + reg = <0x0 0xff900000 0x0 0x100000>, + <0x0 0xff63c000 0x0 0x1000>; + reg-names = "vpu", "hhi"; + interrupts = ; + power-domains = <&pwrc PWRC_AXG_VPU_ID>; + #address-cells = <1>; + #size-cells = <0>; + + /* DPI output port */ + dpi_port: port@2 { + reg = <2>; + }; + }; + gic: interrupt-controller@ffc01000 { compatible = "arm,gic-400"; reg = <0x0 0xffc01000 0 0x1000>, From patchwork Mon Sep 7 08:32:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11760201 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C3C57112E for ; Mon, 7 Sep 2020 08:33:35 +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 8F724208C7 for ; Mon, 7 Sep 2020 08:33:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DL6FEA89"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="JxENpTaS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8F724208C7 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-amlogic-bounces+patchwork-linux-amlogic=patchwork.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=qDMKa2TvfT/WV3BLLKUcCCovM81xsyMq5hTpnt6vklI=; b=DL6FEA89nbiMsQ0WEij4ksMIg epnruqgv6NYuHECowdjA5cl59VbGvxJvQc9gxzPfpVSzf2orSbYN4BvD5I/wNRcr1hxmDRNAoz159 IzGevPkMt/U4pMe0FPTTMWWKoUR3KZ1i14C4uTPAhlNyWWz4S8nUKGQMXkdfXD/WNeEhJweCo4u1j EefCadXIgXehbr175+n/peT81HBYmZMdznK+keyWzwhqrHE5Dn6eSdEhYZIzIYYOsnav21gz0MeH7 mIclVoCvR0oCajjN1YDgJcWsH5y5xFcccmGaxYlWrjST2Mw/L+Z1k+NpHgpV3UriKpj03qPQuZh6W Bpqk9EWZQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFCaZ-0003ea-41; Mon, 07 Sep 2020 08:33:23 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFCaL-0003YT-1I for linux-amlogic@lists.infradead.org; Mon, 07 Sep 2020 08:33:11 +0000 Received: by mail-wr1-x444.google.com with SMTP id z4so14855750wrr.4 for ; Mon, 07 Sep 2020 01:33:08 -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=O6qLbu0TtBTfYgth1hWlAemiGy5RB2khWzOLpHhAyBI=; b=JxENpTaSzdENzNRSzGCLWUGLeF/XmOTECCoSk1vC7uO9L8B2ykKPDu6K64peit6pOx 0NZvd7zEhkh1fXOsvxqTJKFnXnbgSD7qe6VT0SFEn531G+cEYazGPu5V4ViroD7XgF3p zU7y4SaS8J8ulJhY+h1hnwANDAcAxWHmR0lFgh83Crj3bdd/xNPFtG7aujyKaERRvuSp D0PrVnkrL/4KB9Luno+bGiWUcjTE6jSYNFx34Pz5B0MgMfCeR5nSSTL65snHqc+qTtk6 mP/QJMlkNIIZ1by97c1xVA68Be+jZk11dvGB/Vvmv7xKg74HgrSY0+Ux5uZHcJbTrXym THFg== 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=O6qLbu0TtBTfYgth1hWlAemiGy5RB2khWzOLpHhAyBI=; b=OnM42A+HevGDG2ZJhKXipsr+8MuldKwvU4RumLQJd0Xe5RZXP3kB8PSSW5AHE8jXu3 NndqerxFWu16BJj4qMFQrOaLL+9BplceR3Qddq8p0vcAVKysYytDAsLUUsKKQPLXh0Pc 5F2uPMZnD0mHj93IhABblL553dcC6ZEQ8wX/PTPZxigbrcWJQGrcjueoPgcotxhFwuDe cTYjWYu/e3ShNxNb+jZyxvRiZv48j79C+aLHBzDSrdJZYPmYAoKeDl80jZkbMZQJWlr5 Y/Yf8qIagQkQ8D1tWw0hYJV4f82SzMrmKrfCaJgp+WlFgLeSplOVGTuRFzYXN5tkkti3 uS2w== X-Gm-Message-State: AOAM531oG1WiDC511qvx56VkcfmXZOKGuJKLxnCf4KBhjmhJOX2t8Zy3 48/wlywPel/aAzqOOUKNlg+kcK2hpXnRuN1K X-Google-Smtp-Source: ABdhPJyLgypVdwA1Lo6t3FhgX081NBLm9msKduMOXHwEixOYFiNCnVa+gMazKFjvp9LbLHgOFoeoWQ== X-Received: by 2002:adf:f3c4:: with SMTP id g4mr20609544wrp.168.1599467587962; Mon, 07 Sep 2020 01:33:07 -0700 (PDT) Received: from bender.baylibre.local ([2a01:e35:2ec0:82b0:5405:9623:e2f1:b2ac]) by smtp.gmail.com with ESMTPSA id o5sm25205111wmc.33.2020.09.07.01.33.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2020 01:33:07 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 2/3] arm64: dts: meson-axg: add MIPI DSI Nodes Date: Mon, 7 Sep 2020 10:32:59 +0200 Message-Id: <20200907083300.14412-3-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200907083300.14412-1-narmstrong@baylibre.com> References: <20200907083300.14412-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200907_043309_160852_AFA99046 X-CRM114-Status: GOOD ( 13.28 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:444 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org This adds the nodes for : - MIPI DSI+PCIe analog phy - MIPI D-PHY - Synopsys MIPI-DSI Transceiver Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index 4a93e3fecd90..f1501b19f617 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi @@ -13,6 +13,7 @@ #include #include #include +#include / { compatible = "amlogic,meson-axg"; @@ -1111,6 +1112,8 @@ sysctrl: system-controller@0 { compatible = "amlogic,meson-axg-hhi-sysctrl", "simple-mfd", "syscon"; + #address-cells = <2>; + #size-cells = <2>; reg = <0 0 0 0x400>; clkc: clock-controller { @@ -1159,6 +1162,12 @@ <250000000>, <0>; /* Do Nothing */ }; + + mipi_pcie_analog_dphy: phy { + compatible = "amlogic,axg-mipi-pcie-analog-phy"; + #phy-cells = <0>; + status = "disabled"; + }; }; }; @@ -1171,6 +1180,19 @@ #mbox-cells = <1>; }; + mipi_dphy: phy@ff640000 { + compatible = "amlogic,axg-mipi-dphy"; + reg = <0x0 0xff640000 0x0 0x100>; + clocks = <&clkc CLKID_MIPI_DSI_PHY>; + clock-names = "pclk"; + resets = <&reset RESET_MIPI_PHY>; + reset-names = "phy"; + phys = <&mipi_pcie_analog_dphy>; + phy-names = "analog"; + #phy-cells = <0>; + status = "disabled"; + }; + audio: bus@ff642000 { compatible = "simple-bus"; reg = <0x0 0xff642000 0x0 0x2000>; @@ -1618,6 +1640,10 @@ /* DPI output port */ dpi_port: port@2 { reg = <2>; + + dpi_out: endpoint { + remote-endpoint = <&mipi_dsi_in>; + }; }; }; @@ -1647,6 +1673,40 @@ #reset-cells = <1>; }; + mipi_dsi: dsi@7000 { + compatible = "amlogic,meson-axg-dw-mipi-dsi"; + reg = <0x0 0x6000 0x0 0x400>; + resets = <&reset RESET_MIPI_HOST>; + reset-names = "top"; + clocks = <&clkc CLKID_MIPI_DSI_HOST>, + <&clkc CLKID_GP0_PLL>; + clock-names = "pclk", "px_clk"; + phys = <&mipi_dphy>; + phy-names = "dphy"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + /* VPU VENC Input */ + mipi_dsi_venc_port: port@0 { + reg = <0>; + + mipi_dsi_in: endpoint { + remote-endpoint = <&dpi_out>; + }; + }; + + /* DSI Output */ + mipi_dsi_panel_port: port@1 { + reg = <1>; + }; + }; + }; + gpio_intc: interrupt-controller@f080 { compatible = "amlogic,meson-axg-gpio-intc", "amlogic,meson-gpio-intc"; From patchwork Mon Sep 7 08:33:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11760203 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1AFB2618 for ; Mon, 7 Sep 2020 08:33: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 DA727208C7 for ; Mon, 7 Sep 2020 08:33:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="U8Xa8oro"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="JPOB01GQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DA727208C7 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-amlogic-bounces+patchwork-linux-amlogic=patchwork.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=LJYDZGuPS2HjQJ76mYXhawzmQD8uUgkX2cwKYzE9lCc=; b=U8Xa8oroxJ9fkI15iCSKFvC3O MQ1y4+56KyRAzpEwVkk01OlSflUU4I46x0XVtciyLcu3f6a9lNvHP8qZiYspQfESDczTJPCSD5hGd av6w0wHgCdJLraDgsKjfo6sqXzT08/ha9xxwedjlsQBJaBTuPIvkRHdyL/pbIrLmAWj3rz2lTF1xf OQETEtz5s5gK9u8V/FpQz+OkvNcf82o15Mvkga29UCZC9ce2ymFpzpNupjHJEurMv17HOeUYGOJK+ x48Hbf4LXtP7JhFJl0Bvup+yYHuUrfLEGnhKb4ee8RhMlXXkrRIhMKOI+M8gDIvk7rb+3LOz2Uz9+ pQTqYo/nw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFCad-0003gz-J8; Mon, 07 Sep 2020 08:33:27 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFCaM-0003ZS-GZ for linux-amlogic@lists.infradead.org; Mon, 07 Sep 2020 08:33:12 +0000 Received: by mail-wm1-x344.google.com with SMTP id b79so13318390wmb.4 for ; Mon, 07 Sep 2020 01:33:10 -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=Tf/pPuP/quD6UX7EbsHW6QHRSABL9O5KfoCfXcuWE28=; b=JPOB01GQC1EyMKgIY9XWJHIybEP5Kk0Mpazg12h1ld+lYOavG/ORNCQ5E+DVx8sZkV yeSp/Iza0lKp0ly4OCn1zK5IbdKv75HP7DeNlJCa8yDUt4Ylwgl+7ekFHntm05cdt2iB NUorJTBx29g9kSLL3BY6M3iRw9AjeoA0xpaTMVG64YqKLc9yT7srFA0fjlBgvqa0KeMa 9+14TezNRNDJoZ8/56DGplnxQ0InDL3adAX/vCps1gwkD21czgLgyRev9+CqMQl2KkV1 jC2pwhNvoQ4zAVN2g2rOZxx2xbdAKiwK62uIzX34TvxfaJl/VCk2q7BeXg69nOaATQU+ x4oQ== 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=Tf/pPuP/quD6UX7EbsHW6QHRSABL9O5KfoCfXcuWE28=; b=tvaX6P0YQJ3fAG0iTMDTOdE/QW1DcnjxxNJBbNhv4Rct/gzKS6E88bQo3StkCU40Jh AqpXOFt53lM1yJcZKNAHG1GPQOLhv3noid13mQKQeo/mLM926LP44AwRE6e/t/TOcgic 222u5WASGtyWBBESvW3ib3cj6QzrFyMlz9nfwRYfWqhKHn03muc5jgxeoUUOdCs2qw0k 3zYM3d/B11+QAZBpLXnlN4g8yQknk5CCjzcK+wUVLRAyJmQbHgWhfTv3Cz4NymtJWCem 4DM2HYlyI5V2C2KQPnk2OA2epzBaj1MNdGViINctnzfrkAPQr0K4OtBsOal+FoOThmGF f8Kw== X-Gm-Message-State: AOAM533i/yoBRQjdD3CSVuUDlKvHwEhHipBlOZ2XbC7VK33gVcUqcarz VnKBLLRjZdn7zQdyGzhaMmdOnw== X-Google-Smtp-Source: ABdhPJzlXWWJxUL+NR0WVb8iGxSGFRhnUwwKhX4IAQt9btsq140rrTUEi09a9mEZEaHQVqchSMIfZQ== X-Received: by 2002:a1c:62d4:: with SMTP id w203mr18358593wmb.146.1599467589332; Mon, 07 Sep 2020 01:33:09 -0700 (PDT) Received: from bender.baylibre.local ([2a01:e35:2ec0:82b0:5405:9623:e2f1:b2ac]) by smtp.gmail.com with ESMTPSA id o5sm25205111wmc.33.2020.09.07.01.33.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2020 01:33:08 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 3/3] arm64: dts: meson-axg-s400: add MIPI DSI panel nodes Date: Mon, 7 Sep 2020 10:33:00 +0200 Message-Id: <20200907083300.14412-4-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200907083300.14412-1-narmstrong@baylibre.com> References: <20200907083300.14412-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200907_043310_676503_AF870369 X-CRM114-Status: GOOD ( 13.02 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:344 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org This adds the nodes for : - Backlight of the tl070wsh30 panel - MIPI-DSI attributes - TDO TL070WSH30 TFT-LCD panel Signed-off-by: Neil Armstrong --- .../arm64/boot/dts/amlogic/meson-axg-s400.dts | 49 ++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts index cb1360ae1211..abfad67ca06b 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts +++ b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts @@ -7,6 +7,7 @@ #include "meson-axg.dtsi" #include +#include / { compatible = "amlogic,s400", "amlogic,a113d", "amlogic,meson-axg"; @@ -116,6 +117,16 @@ reg = <0x0 0x0 0x0 0x40000000>; }; + panel_backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&pwm_ab 1 78125 PWM_POLARITY_INVERTED>; + enable-gpios = <&gpio GPIOZ_5 GPIO_ACTIVE_HIGH>; + power-supply = <&vcc_5v>; + brightness-levels = <0 255>; + num-interpolated-steps = <255>; + default-brightness-level = <250>; + }; + main_12v: regulator-main_12v { compatible = "regulator-fixed"; regulator-name = "12V"; @@ -434,6 +445,42 @@ }; }; + +&mipi_dsi { + status = "okay"; + + assigned-clocks = <&clkc CLKID_GP0_PLL>; + assigned-clock-rates = <283500000>; + + panel@0 { + compatible = "tdo,tl070wsh30"; + reset-gpios = <&gpio GPIOZ_6 GPIO_ACTIVE_LOW>; + power-supply = <&vcc_3v3>; + backlight = <&panel_backlight>; + reg = <0>; + + port { + mipi_in_panel: endpoint { + remote-endpoint = <&mipi_out_panel>; + }; + }; + }; +}; + +&mipi_pcie_analog_dphy { + status = "okay"; +}; + +&mipi_dphy { + status = "okay"; +}; + +&mipi_dsi_panel_port { + mipi_out_panel: endpoint { + remote-endpoint = <&mipi_in_panel>; + }; +}; + &pdm { pinctrl-0 = <&pdm_dclk_a14_pins>, <&pdm_din0_pins>, <&pdm_din1_pins>, <&pdm_din2_pins>, <&pdm_din3_pins>; @@ -443,7 +490,7 @@ &pwm_ab { status = "okay"; - pinctrl-0 = <&pwm_a_x20_pins>; + pinctrl-0 = <&pwm_a_x20_pins>, <&pwm_b_z_pins>; pinctrl-names = "default"; };