From patchwork Fri Nov 20 15:21:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11921109 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=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 18973C5519F for ; Fri, 20 Nov 2020 15:22:09 +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 9F0642245D for ; Fri, 20 Nov 2020 15:22:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="v88bD3l6"; 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="B1o8QfhU" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9F0642245D 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=epJxdCVFDEtpfOmWLdtuO49BD51P1STUrgvkyrIwmmA=; b=v88bD3l6xqfU993FPJRzygJe4 0KPGtpTPpjxXGC1W7rTEtynRIDsO0oS7vz99RNZ6xIoIsB/rp5wvY5SvO0AVG8JMmd1QCSD/Dbi26 B4eGHGd/CWJWeamnOrqtjQsM9ntZfjeSnALUzebGALQF0JX0qF0S8/nNBzRgxaYAnPoGwcFEQTkwI H1RLs9MFChXU/vF20KjtOnG2XoGLWlsBzA1SMUDxpuTcMpiV7f/5eXbxwmEietyvC51ilBMRbpgEK nH9TfTZAgf/cVrOhGeTxL4BnHov3pJFKPrsJP+y49aqombm+mId+ttOpbJx8/Z5Kx/SexL4CfyV9E aDDF8LFrg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kg8EI-0004Em-CU; Fri, 20 Nov 2020 15:21:42 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kg8ED-0004Ce-Bs for linux-arm-kernel@lists.infradead.org; Fri, 20 Nov 2020 15:21:38 +0000 Received: by mail-wm1-x341.google.com with SMTP id c9so10693197wml.5 for ; Fri, 20 Nov 2020 07:21:37 -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=jm+LFDsAuAlmnsLcsYBo3X+JB70zBAzOQ+j9Y6X8SV8=; b=B1o8QfhUaAkuDIE7zaKnwLdUJFGU9EpmJ/AXRnkr8n1lQGNN7X3z0DIbbN4eAWvudC 8TIIDQu6AeNW1hSPtPgSlUHoxholmvzgWme/IKqlQ4aAP9xohTrtxRFsZb4PfttaW7dH SUKggtOCIaIDPmjLGlhq/w7xRED2gzY/nWNWXNs9bZhxsUv8UBHh8NwuBa3bytOz1MZU wU8S5J3Yc9Bgvv4iW/ju59WMnxzIx4yhYncmn8xBeJAlAalEdNORAQcwDTjLjAqEIlbt VaNB4M7kVv0CWrERBdHTGZ6VzuvOBiJ1qNXyYbWAZ8w0OAs8vP0H/lAXnUHhHTckDUOE jOlA== 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=jm+LFDsAuAlmnsLcsYBo3X+JB70zBAzOQ+j9Y6X8SV8=; b=mv2s6B3aRU6Rae6C+LtOnR8GYD1fnVclrPVfOe++0QGSkORyAWh7NE98I3c8o5Upoh DLpo+fiE6XE+sTojtLlzkWYwbI20tVxeb8n2RDGXgKrfV4TIXdVf2BbbdzvOIKtK8UH9 QBWOgs3yiQ+2AF3dq8bec7qPuCYcwQDmkR1dglcdro+sxMpmXH9G468bnpzkqml66QYQ +gYnuDpiRsBjuESSHuBKRIBuPBWN1uTFXkzAMDFl+wy8+fD/rv0kQ0atNPTR4LUVxUwn amXhKBxK0iENWcjB02hZpiJhS6giB1a2KBI6e52E0IOM2kctrcWp8iTPXmFf4gduhqGE omew== X-Gm-Message-State: AOAM530fmzH7OjjeEWvet2RtfAK+DMpjOww8rWwYRKbFpdPxTk4AJeIa zUrUIff1r0vw3GAyeUGh0pRQIw== X-Google-Smtp-Source: ABdhPJxW9wpHe9bTMR1XYCVyzhK/t1cjxnWRn6ytW2lmjiPCB6+Pbl5traLKq5nBRBvk8p66drVzvQ== X-Received: by 2002:a7b:c950:: with SMTP id i16mr2987010wml.136.1605885696147; Fri, 20 Nov 2020 07:21:36 -0800 (PST) Received: from localhost.localdomain ([2a01:e35:2ec0:82b0:419f:dca4:d17a:66a7]) by smtp.gmail.com with ESMTPSA id j71sm4773757wmj.10.2020.11.20.07.21.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2020 07:21:35 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 1/2] arm64: dts: meson-axg: add PWRC node Date: Fri, 20 Nov 2020 16:21:30 +0100 Message-Id: <20201120152131.3918814-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120152131.3918814-1-narmstrong@baylibre.com> References: <20201120152131.3918814-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201120_102137_502863_DB155F58 X-CRM114-Status: GOOD ( 16.42 ) 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: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds the power controller PWRC node and the corresponding ethernet power domain. Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index b9efc8469265..288667699ec0 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 @@ ethmac: ethernet@ff3f0000 { "timing-adjustment"; rx-fifo-depth = <4096>; tx-fifo-depth = <2048>; + power-domains = <&pwrc PWRC_AXG_ETHERNET_MEM_ID>; status = "disabled"; }; @@ -1117,6 +1119,46 @@ clkc: clock-controller { 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 */ + }; }; }; From patchwork Fri Nov 20 15:21:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11921113 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 B8D90C2D0E4 for ; Fri, 20 Nov 2020 15:23:11 +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 2CA5222252 for ; Fri, 20 Nov 2020 15:23:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="sTqFMLwN"; 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="n/pMuteV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2CA5222252 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=UHZZgAUxQuY2QD4F64g4x37huCizGuRES9YoupFntAQ=; b=sTqFMLwN9gZXZlryy3hABTQzQ aehZlgmtslD8BU0PwK5olmtJGL1IQwB36JPev5lj3G1y7wa+paOCxhPkoAcB0YOosQ4VAi1oU51Bz RUV3jKSkaRH7IRdRTZqCn2Bh2Z0wV0bUj51HnRi/3Ytvc2FA2u+ybvyfK0jfjOoqH+A3BeVy/3Dgm DxeL7iPNyDwp0WUn3a3PEBkruOXQoCqLwHNf8fW8sU6R6lmijnP/TYcESw/VmfLwpRyy5m0/tlMMx qnvvy73vSlIo61xIVC06odMkJmO/88CLFFnyzC5OqMTfuc1bmg4jnMlvq6tWMFJlAJPmejsDtI4BZ HIKzcItoA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kg8EQ-0004Gk-Dg; Fri, 20 Nov 2020 15:21:50 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kg8EE-0004DW-W6 for linux-arm-kernel@lists.infradead.org; Fri, 20 Nov 2020 15:21:40 +0000 Received: by mail-wm1-x341.google.com with SMTP id a3so10122406wmb.5 for ; Fri, 20 Nov 2020 07:21:38 -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=2IvsaRxlkYaeGWO/XxLo0cfwTuBt8jqtHYtt1Lx83QU=; b=n/pMuteVeHKykxWI2lEN0TRBOQ6ovm1raNNcPAFBwcqTfjnSdvg+bchGqVWcVB5YbC kJ2swqbQTQ8WFJgWJ0b73gRr6mUkCXhvSMOPszqsytGEALQRuHwjvtdz2vYKL/oLiYMj Set3jDoAE5bs4+zxPan7AvweVcoFnc1cm9WC+lM+Yr2SNcezK7lG1MaECUiyIt1hwUjj aAoJrUx5e1A45jjK/EEjEdrWdQChXlrsc+PnYh47MD0gJGfAPnf8HpzcYtfzhddGKrkf 0N3oGYxd4VQ83dn6Pe9XcEkXAzN3PwhTM4NzkkykSZsvMIYKAtlcIAkdsGBD+PNpsrLE 6aNA== 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=2IvsaRxlkYaeGWO/XxLo0cfwTuBt8jqtHYtt1Lx83QU=; b=NP7uNPeCCntJnEZhG/yDOQyLY8xpJN0zpp2SXuWvEjG+iNxY6b9eAGGPrCWOTRLahT z/Y19qwWKvmMrZ5YxJu66lumhIy9RRkuSZsDpGplQzHEdb39suRd8/Y3RhXJAwK7b6+6 d0xA/Ekh0QbScLXIUHMwXCJ9I6L12u+F3MvZ1Ivj6mWVUKFbDLa24dLfSZLF3NDN5w36 WJUbyt3M51yKPEk4UQ5Pode9phaT+WBjGryZwQTMzkvkr6CQeG8WbYGmfpFL84viThLZ EQHb9TWYL3bXMp4rmFMbvqYxtu7D9tqqdwjjWzdsKUX+W86AWccUbgMFYNfytgmKvhFt 2fSw== X-Gm-Message-State: AOAM532pRF4FwNVSSXbGg9w2jhxEk+ITuotK4KnxtjDYFDBbrQBvXmTE 3L67sbuQAQ/4WKEntkwgFn+yVQ== X-Google-Smtp-Source: ABdhPJzmbNpSp/WrsvW76hP3Zm8gdpqSmlrivsFnrRZ1fWnnF6WYbhJ+LXtWLcMxtrkwfrtJwnV2mA== X-Received: by 2002:a1c:1b12:: with SMTP id b18mr10454975wmb.119.1605885697955; Fri, 20 Nov 2020 07:21:37 -0800 (PST) Received: from localhost.localdomain ([2a01:e35:2ec0:82b0:419f:dca4:d17a:66a7]) by smtp.gmail.com with ESMTPSA id j71sm4773757wmj.10.2020.11.20.07.21.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2020 07:21:37 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 2/2] arm64: dts: meson-axg: add MIPI DSI PHY nodes Date: Fri, 20 Nov 2020 16:21:31 +0100 Message-Id: <20201120152131.3918814-3-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120152131.3918814-1-narmstrong@baylibre.com> References: <20201120152131.3918814-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201120_102139_127668_F9436BA8 X-CRM114-Status: GOOD ( 13.30 ) 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: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds the nodes for : - MIPI DSI+PCIe analog phy - MIPI D-PHY Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index 288667699ec0..d811708f8f67 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi @@ -1159,6 +1159,12 @@ pwrc: power-controller { <250000000>, <0>; /* Do Nothing */ }; + + mipi_pcie_analog_dphy: phy { + compatible = "amlogic,axg-mipi-pcie-analog-phy"; + #phy-cells = <0>; + status = "disabled"; + }; }; }; @@ -1171,6 +1177,19 @@ mailbox: mailbox@ff63c404 { #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>;