From patchwork Thu Jun 16 10:29:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinliang Liu X-Patchwork-Id: 70171 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp185983qgy; Thu, 16 Jun 2016 03:31:23 -0700 (PDT) X-Received: by 10.98.102.133 with SMTP id s5mr4350118pfj.75.1466073083032; Thu, 16 Jun 2016 03:31:23 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ix8si22687494pac.124.2016.06.16.03.31.22; Thu, 16 Jun 2016 03:31:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754214AbcFPKbM (ORCPT + 30 others); Thu, 16 Jun 2016 06:31:12 -0400 Received: from mail-pf0-f171.google.com ([209.85.192.171]:33470 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752097AbcFPKbI (ORCPT ); Thu, 16 Jun 2016 06:31:08 -0400 Received: by mail-pf0-f171.google.com with SMTP id i123so15117986pfg.0 for ; Thu, 16 Jun 2016 03:31:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xykEMSiVxdlBARHIPdsak+N/PwMZPb2ZsGE3jlR67ns=; b=UCx7glynChS1bGwEWc+HnuilCiisqu4z7mUOrep9IV0mFXElG0tXOn1hDmS4nhMXRk S4htHs1F7gywuoiuViG0qtHmvVq7I+brj5Ly53mmio6GM6CjbNO0gmieqWwuPAFWvoDn mA5sVedSjKm2oebKTLiNGlsxXj+G6rj9f65Cs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xykEMSiVxdlBARHIPdsak+N/PwMZPb2ZsGE3jlR67ns=; b=TjlpMRE+4VBjeF41QjNVZc0OJ6bSUBd6xSMOy2P+Hu5vGET3wuKkUvRenmvZgJRscb fbQzjmPOQ33A+RT3EmaBhRYgOBOsHx4+zsPSiwph45zUeBZlE34Kg2RHiedQSt2fPGYg nOFewNK4748B9w6B27NbyiEO74lLlmXQZuUcvzUKNc1Ly/FirHbIV8mhZHGkzPOqrNyo FLiZkm3H9UpFvB3joUo2PGY8J01F2WmjR3nCafOZBbDXeEuT9wBVJG+uk7mSKheOxMQp slQ5MjWpR9VkuP6qiwM4g4++zanh3bSmlEbSvbzU5gacWi+ew9+AYvQqnlNbOcXOz6s3 mSJg== X-Gm-Message-State: ALyK8tLT+SW6eEi1OWQefXpv4y+DcKEofr+WLWIMGNF0ASIqlC+3Fh4Bb4Fkn99NoILrjYeM X-Received: by 10.98.152.210 with SMTP id d79mr4397162pfk.2.1466073062448; Thu, 16 Jun 2016 03:31:02 -0700 (PDT) Received: from HTSAT-OPENLAB-SERVER.localdomain ([116.25.56.103]) by smtp.gmail.com with ESMTPSA id i8sm59522305pao.26.2016.06.16.03.30.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Jun 2016 03:31:01 -0700 (PDT) From: Xinliang Liu To: p.zabel@pengutronix.de Cc: linux-kernel@vger.kernel.org, robh+dt@kernel.org, xuwei5@hisilicon.com, puck.chen@hisilicon.com, saberlily.xia@hisilicon.com, kong.kongxinwei@hisilicon.com, guodong.xu@linaro.org, Xinliang Liu Subject: [PATCH v2 2/3] arm64: dts: hi6220: Add media subsystem reset dts Date: Thu, 16 Jun 2016 18:29:59 +0800 Message-Id: <20160616103000.239669-3-xinliang.liu@linaro.org> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20160616103000.239669-1-xinliang.liu@linaro.org> References: <20160616103000.239669-1-xinliang.liu@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add media subsystem reset support. Signed-off-by: Chen Feng Signed-off-by: Xinliang Liu --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 2 ++ include/dt-bindings/reset/hisi,hi6220-resets.h | 8 ++++++++ 2 files changed, 10 insertions(+) -- 2.8.3 diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 189d21541f9c..c19b82799a34 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -5,6 +5,7 @@ */ #include +#include #include #include #include @@ -252,6 +253,7 @@ compatible = "hisilicon,hi6220-mediactrl", "syscon"; reg = <0x0 0xf4410000 0x0 0x1000>; #clock-cells = <1>; + #reset-cells = <1>; }; pm_ctrl: pm_ctrl@f7032000 { diff --git a/include/dt-bindings/reset/hisi,hi6220-resets.h b/include/dt-bindings/reset/hisi,hi6220-resets.h index ca08a7e5248e..322ec5335b65 100644 --- a/include/dt-bindings/reset/hisi,hi6220-resets.h +++ b/include/dt-bindings/reset/hisi,hi6220-resets.h @@ -64,4 +64,12 @@ #define PERIPH_RSDIST9_CARM_SOCDBG 0x507 #define PERIPH_RSDIST9_CARM_ETM 0x508 +#define MEDIA_G3D 0 +#define MEDIA_CODEC_VPU 2 +#define MEDIA_CODEC_JPEG 3 +#define MEDIA_ISP 4 +#define MEDIA_ADE 5 +#define MEDIA_MMU 6 +#define MEDIA_XG2RAM1 7 + #endif /*_DT_BINDINGS_RESET_CONTROLLER_HI6220*/