From patchwork Thu Sep 10 14:00:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 1361597 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sartura.hr Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=sartura-hr.20150623.gappssmtp.com header.i=@sartura-hr.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=bq0Y1ff1; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BnLC75l6Fz9sTH for ; Fri, 11 Sep 2020 00:01:07 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 101BA823A6; Thu, 10 Sep 2020 16:00:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sartura.hr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=sartura-hr.20150623.gappssmtp.com header.i=@sartura-hr.20150623.gappssmtp.com header.b="bq0Y1ff1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E7571823B6; Thu, 10 Sep 2020 16:00:21 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8A14682319 for ; Thu, 10 Sep 2020 16:00:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sartura.hr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=robert.marko@sartura.hr Received: by mail-ej1-x644.google.com with SMTP id j11so8932468ejk.0 for ; Thu, 10 Sep 2020 07:00:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ezax845onFTn9+d1Dy4mgKiesrLxGx3dHJ8DRIo3Ud8=; b=bq0Y1ff1OaW1X+tcogTwDDdDxK6B7Uoze9bMti4yP667S7Yw8ns9JozaCcGI552M6Q EjppS3EAQaF6r6Ri1s53LRzqpNAlgZM0PqbeHQSIrNJP6eVY/G5nEdu73IU5te4gDFyG GZE1Df1RI7dzPyTkiUeohzKdgCsqrrgpYUTV3K7NkF5y3EV/bDbg3Es6K1YZinaGaWe7 5WCHaSviUc7MKpHO9yU6kJPFmS8KPI6jYmvPuGcM4U3rNmDDcN7WmWu1917UwFdtdERC ow0mOSAlC9nXAvX8tX+2xJt7kPJGLbVHmKwLbBPnsNJNdERRn0eVxo3JYfPDzKQDxN0h AbaA== 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=Ezax845onFTn9+d1Dy4mgKiesrLxGx3dHJ8DRIo3Ud8=; b=J0XvfsAmD1X175yh8Kx7Fs4A3gqVFxJMKViYJrJly4O1/FYBAVe52nOkc6gFDJy5os MgbxQodj0e0wFjkJ1L7MFOnqsIGRcgK87Qgjc4ynnMvN9pOrInjh4yBxvTsBOfF0SVmV Yh7QO4CZhp2Ytxw5iiUqNfD1MrDnz5bJ9CDLqyV4wUmPNsJcqeFQukMrvHd+DPeAGEfK BIM6alD5goQEVQ5LlTOCxNDA1Ri8oh9nSmxE6CSJIBKFH6OxmPw7rspY5BB0mJfllnl1 MjI6yS+UoUSpXPs3oB3YDOGtKkuk4GFCqzGaF1f2PeUB5dEVG7qt12sA2pb2j24hLWe9 sUbw== X-Gm-Message-State: AOAM533nNYffVD+8CIlCkDkt1LBtZFzZHJbodnu0iZsvdNmkS9rXMqhz gM0+b70fp2rhJi9ym23UutUtSt9hIjFRHW3VRu0ZZxRZ+svV7UGlEOu6djyALVL+fzxtD+rB0MQ n0ZEbAsEj9Zf67VS4aQN6iwLQevQDPHKft887HIOkySBGkxVdXzW51FGWezbhkrfxN+TbkHDJ X-Google-Smtp-Source: ABdhPJwLEc/6rR802Xc7iBt1dDjg6d3sWUOwPG2FaTgRIBPiPT43C0mLCSTe+0CUm/3SIU4lozWpow== X-Received: by 2002:a17:906:88d:: with SMTP id n13mr9246223eje.75.1599746418789; Thu, 10 Sep 2020 07:00:18 -0700 (PDT) Received: from localhost.localdomain (dh207-97-133.xnet.hr. [88.207.97.133]) by smtp.googlemail.com with ESMTPSA id w8sm7305304ejo.117.2020.09.10.07.00.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 07:00:18 -0700 (PDT) From: Robert Marko To: u-boot@lists.denx.de Cc: Robert Marko , Luka Perkov Subject: [PATCH v3 5/8] IPQ40xx: Add reset controller support Date: Thu, 10 Sep 2020 16:00:03 +0200 Message-Id: <20200910140006.87531-6-robert.marko@sartura.hr> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200910140006.87531-1-robert.marko@sartura.hr> References: <20200910140006.87531-1-robert.marko@sartura.hr> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Since we have a driver for the reset controller, lets add the necessary node. Signed-off-by: Robert Marko Cc: Luka Perkov --- arch/arm/Kconfig | 1 + arch/arm/dts/qcom-ipq4019.dtsi | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index ee378f03f4..68d6d1afd6 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -767,6 +767,7 @@ config ARCH_IPQ40XX select DM select DM_GPIO select DM_SERIAL + select DM_RESET select MSM_SMEM select PINCTRL select CLK diff --git a/arch/arm/dts/qcom-ipq4019.dtsi b/arch/arm/dts/qcom-ipq4019.dtsi index dd69d0a5b2..7b15df38d8 100644 --- a/arch/arm/dts/qcom-ipq4019.dtsi +++ b/arch/arm/dts/qcom-ipq4019.dtsi @@ -11,6 +11,7 @@ #include #include #include +#include / { #address-cells = <1>; @@ -58,6 +59,14 @@ u-boot,dm-pre-reloc; }; + reset: gcc-reset@1800000 { + compatible = "qcom,gcc-reset-ipq4019"; + reg = <0x1800000 0x60000>; + #clock-cells = <1>; + #reset-cells = <1>; + u-boot,dm-pre-reloc; + }; + pinctrl: qcom,tlmm@1000000 { compatible = "qcom,tlmm-ipq4019"; reg = <0x1000000 0x300000>;