From patchwork Fri Jul 26 07:20:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 169782 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp12647857ilk; Fri, 26 Jul 2019 00:21:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYvK3GWNX4Rb7BgXNuGG5hrxjpPOTGGRq6EiIBcGXA82/3FagFFYlIuyO6XYSL/X/a31V3 X-Received: by 2002:a17:902:fe14:: with SMTP id g20mr89762182plj.54.1564125686619; Fri, 26 Jul 2019 00:21:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564125686; cv=none; d=google.com; s=arc-20160816; b=usYPm3EuNYyd072+wS7UzFihsnhaPJaOCue+VFG5XAtigjPlXy5Kjkkpi7luvj8c+D tQmDgK1oHjksRcH1CJxCZCCD42bvjdJ09PpYXkPCm4plVwcLNFgfqq6f9Pmih5Sp4p/P nLS+PTisSoVA09lD27qxXMbH2L85BaMZ4SVgN1voTajHjEfg3oJg1pomdWSc2DBVQ7II lEHlDvmb85AB1oa9h5rDlhDFgHhfDuQXnrtG9zo7Qk1QC+vT0xZ/Q4QDLlSCf8UUjujm NRJSZ6bEXwL09/saq4HMIPLqrWcJEyIpOWX5ROercaVezUqqGHaAixCPneoxO/YjrXCp 3NZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=bryuP5AdFGVr6HHrw1EtAVKw7WCYNq7V2nl1DGECvfA=; b=FH+bAT0MR0neuIxvVaExK4FNProDv7lhonD059wJHTYNth8qWQOgFVf/K0MruoVrZY XuyHHWp9IogwFKMAG+/hqLaophHXlT88gQw10UfpyKxPLTMPBNItDU+IzgmzcYx5wu9x zpxMfUWCnkAMwk7JT3qJLhu9oGuHpSQCUHFZzXTpDPqGLcO8sjdUs1xjRvp0yCfy43Rt CKH5AdTT2pJgFtCDDCrleu0VIs/niYbQM7lXBlFGVyNMN/FQcx44zwR7tix6WTF1FeCf Xws8pIUAMz6x/nwatQPno0ZSqh6H+SXrEsUeGlE3RSyolQhICBBZI2sYaDyqJWsdRq9b BZug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gps6OGJT; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u1si16185011pga.381.2019.07.26.00.21.26; Fri, 26 Jul 2019 00:21:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-spi-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 header.s=google header.b=gps6OGJT; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726393AbfGZHV0 (ORCPT + 1 other); Fri, 26 Jul 2019 03:21:26 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:43216 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726351AbfGZHVZ (ORCPT ); Fri, 26 Jul 2019 03:21:25 -0400 Received: by mail-pg1-f195.google.com with SMTP id f25so24321419pgv.10 for ; Fri, 26 Jul 2019 00:21:25 -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 :in-reply-to:references; bh=bryuP5AdFGVr6HHrw1EtAVKw7WCYNq7V2nl1DGECvfA=; b=gps6OGJTOEXQrFDHI9KKDyeJAzkYfi0TmbZdKCbEVIfNPXO1MGIyvHCxKJZKZ2908D 8XhglJ9iu97qcWacqggfiZbM3MgPQAxKVysMA1FLX022aoa88vdKAroM1s8uWc2h0PT0 Kpn0ecFWdL5evyDt/j6yMWM6Q8Zng4FpW/EpDk/7uSf7lrykUAdOTdU5J+vuOry7coOp guNCY1bzr+id756TYU4TSqeXOb4oOORc+SXP1I6ZwkiyJoYwtMbjooqI2nfXC9f5jwVi uINDC8XBa8bXnc5pzc8jVs3S/HmX9owAqK91YB8T0EPBFtqSV2efYSE6gkZN9fd9bKVg 5COw== 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:in-reply-to:references; bh=bryuP5AdFGVr6HHrw1EtAVKw7WCYNq7V2nl1DGECvfA=; b=cteFTCm1rnTpYL7oRFJ9qV7YHg9cskxFlaSb9i/C+c/qvCfGACANPz4iIcCs8HdLCJ VmxslIdMOKW5mbcIlFo9h0A9CSNBcq0wDUSz/SSl02vcn5LZqgmta9xBjXMf70v7mdS1 9wO2/K6D52Lp4eioC3YhzGZzW+JjzcWf4dJ7Gn1zJgcv1osEnQnXH/abXXvjuixY4wte hcSQVXBd1VZHcAMxI3Bqw2byrA12DK4xpUgUQb7Tf12Ig8iIvxguQ6u7fYdEme2lpGlr QUgPf49QIr9AlUfBPftGs+a8WaxBFzra2E0PPfe1Az5EhRV2ij2UZUZhfshcr+jGmvqc TJ3A== X-Gm-Message-State: APjAAAVwV7x5Wt+fuu4UEbFHjLtGwQDbPim/R7iY0LDsfjoQpkNxAog8 C63moNx3W67lTcM/MFO1hE0adQ== X-Received: by 2002:a17:90a:1aa4:: with SMTP id p33mr98101963pjp.27.1564125684991; Fri, 26 Jul 2019 00:21:24 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id o12sm39216152pjr.22.2019.07.26.00.21.21 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Jul 2019 00:21:24 -0700 (PDT) From: Baolin Wang To: broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, orsonzhai@gmail.com, zhang.lyra@gmail.com Cc: weicx@spreadst.com, sherry.zong@unisoc.com, baolin.wang@linaro.org, vincent.guittot@linaro.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] spi: sprd: adi: Remove redundant address bits setting Date: Fri, 26 Jul 2019 15:20:48 +0800 Message-Id: <3cb57b8aadb7747a9f833e9b4fe8596ba738d9f6.1564125131.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org The ADI default transfer address bits is 12bit on Spreadtrum SC9860 platform, thus there is no need to set again, remove it. Signed-off-by: Baolin Wang --- drivers/spi/spi-sprd-adi.c | 3 --- 1 file changed, 3 deletions(-) -- 1.7.9.5 diff --git a/drivers/spi/spi-sprd-adi.c b/drivers/spi/spi-sprd-adi.c index df5960b..11880db 100644 --- a/drivers/spi/spi-sprd-adi.c +++ b/drivers/spi/spi-sprd-adi.c @@ -380,9 +380,6 @@ static void sprd_adi_hw_init(struct sprd_adi *sadi) const __be32 *list; u32 tmp; - /* Address bits select default 12 bits */ - writel_relaxed(0, sadi->base + REG_ADI_CTRL0); - /* Set all channels as default priority */ writel_relaxed(0, sadi->base + REG_ADI_CHN_PRIL); writel_relaxed(0, sadi->base + REG_ADI_CHN_PRIH); From patchwork Fri Jul 26 07:20:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 169784 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp12648014ilk; Fri, 26 Jul 2019 00:21:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0WgDrPdIpu+zlyFrLZ/hokCgJe2iMlQWvq6YgMdQJ6B8gCjWeVEW0SqnL4SBGAjOezQPB X-Received: by 2002:a63:5550:: with SMTP id f16mr73303794pgm.426.1564125694551; Fri, 26 Jul 2019 00:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564125694; cv=none; d=google.com; s=arc-20160816; b=qthZBRRy6JHswUT5F71XJySpznBcEi2e1JGVLtXkzAyFKK2iebZTyVbNHa570pRd8D ln3RlvnV12EdWfvPzEdN89vmuvS4+te/HkYh1NwS6PEW+fOWh7MLyiKhgOb6W+tZvPFZ vasUfN3MIS+2tF+30nh9WjlGGgt0osJ6jGeSa36XdPD7VM+Yq62+rNQZeQMYR3kXwcy0 FaryUI1xOtxEN4v9TJLSM8Py9+UvqxSB8sK9RL90dYAFTxgppwAZkErWTA/BJjFFjPJp Qqv2OlYJoI+CdqhNGwobKeteGvpgnvfn2gKto+Gqz9hRi3rWFOR8ULWKElDa3vVCz+nE o/wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=QHmeFCcRm+yEbC4xEQQF9vpwOjMBYA4nCsJn8Kx1Tas=; b=A+IVYCTbkP+5dMIIUg5zg3+uNDULxDjAuOlzztkUzkjwArL01vbkpAMWnvSTwr5FRn 7ibjkHyH3KVRcbiXRBRUlii97F4TGyEQ5LkDidLuuwHh+vVfHTByoZnzI88b5/aJTX/c 4pX9pJMvV1KnIuyyBW2nAEeX7UiFHwUNPgpMVwHg/9UB6vCLewjyMn9riMccO1lw+RWD qkSDU8eCSLK1FthzUcof02zWAC8x7CC397tPY1CNHRenGakV06plpgCOxTPWqudEindR oJtLcMUmfhMMRLMwgN5z6SCTmwzVo2cbVTG4aWJA7CT48g3XRUZEhfY8UqikrrWfwRr7 gDVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HEXG5Ymx; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5si17643434pgm.427.2019.07.26.00.21.34; Fri, 26 Jul 2019 00:21:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-spi-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 header.s=google header.b=HEXG5Ymx; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726457AbfGZHVe (ORCPT + 1 other); Fri, 26 Jul 2019 03:21:34 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:35761 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726455AbfGZHVd (ORCPT ); Fri, 26 Jul 2019 03:21:33 -0400 Received: by mail-pf1-f194.google.com with SMTP id u14so24086167pfn.2 for ; Fri, 26 Jul 2019 00:21:33 -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 :in-reply-to:references; bh=QHmeFCcRm+yEbC4xEQQF9vpwOjMBYA4nCsJn8Kx1Tas=; b=HEXG5YmxiIOHcEwSXuU2aCFlJXGEIpwbgt9Eh0I6hqlvTMAmY7bs1PThjJXaPsx4nR tWs/sU+uR+oSelP7fi0/rRv7U1cRNZp4b2VO9fyt9qVNr6vU+mWNc7E1ZBjHpXq0t8KY NOnuWuN12MIHXJAMMZ0X/rufu/0PYNPAzj5JmbEfoMTeygNVm0nCYHbRm+tdrikzPdRB 8FuZEKx+S8364wt6kjASzDF9MDTeIEHFUHfTix6p9j/NTXD0VO5lp4jT0ksN4YWb28Lq rdyJK9BJQ9DPemvO9/oD50LIn7mvO3y4rbX6qG10CFupU/m8ZEPspljP/x9QbE+2NS3X PcWA== 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:in-reply-to:references; bh=QHmeFCcRm+yEbC4xEQQF9vpwOjMBYA4nCsJn8Kx1Tas=; b=p6j9L/6pvZ0SuZEgq6bo0fLxB06jhgWGYXLSD19HQrJt9ZSG+lqYid8iRdBJnWc18c aEQfCO/ZfZrGfH4NIGd1TzxJgj6xNW2RBIWj++YeS7CVt6OY2elkzZrMvGu/CVPAxOgY wVZ7mNSpvJckhPAA9rvA0n5pCwo91Y7eYZabWdonrCTGu7zBFAt0joVA3+L6z3pekwVx 0udpTD1AMfa2ANZ0l7irdC0U6ajkjyd1wYOqjHe+910b3ysvz8fG46MuRUWgGEV7pz77 tcHUaB1V7pJCRVkutrsJaeNxJ5X9AuQHw/GWZsuHj9ytQ/vlo/pai0boLpW27BRxgk+Z T8Mw== X-Gm-Message-State: APjAAAV6I4EcpptIwg42BE0boSVgBdyndgE0+naZLbXQETkX5rrIUk+d ojM/+5Q/U9eHJsU8mpR97I+VEA== X-Received: by 2002:a17:90a:2506:: with SMTP id j6mr62610508pje.129.1564125692965; Fri, 26 Jul 2019 00:21:32 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id o12sm39216152pjr.22.2019.07.26.00.21.29 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Jul 2019 00:21:32 -0700 (PDT) From: Baolin Wang To: broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, orsonzhai@gmail.com, zhang.lyra@gmail.com Cc: weicx@spreadst.com, sherry.zong@unisoc.com, baolin.wang@linaro.org, vincent.guittot@linaro.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] spi: sprd: adi: Add a reset reason for factory test mode Date: Fri, 26 Jul 2019 15:20:50 +0800 Message-Id: <8ae5651e876b527920ff878721a8a8ef47b099ac.1564125131.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org From: Sherry Zong Add a new reset flag to indicate that the system need enter factory test mode after restarting system. Signed-off-by: Sherry Zong Signed-off-by: Baolin Wang --- drivers/spi/spi-sprd-adi.c | 3 +++ 1 file changed, 3 insertions(+) -- 1.7.9.5 diff --git a/drivers/spi/spi-sprd-adi.c b/drivers/spi/spi-sprd-adi.c index 0b3f23a..509ce69 100644 --- a/drivers/spi/spi-sprd-adi.c +++ b/drivers/spi/spi-sprd-adi.c @@ -98,6 +98,7 @@ #define HWRST_STATUS_AUTODLOADER 0xa0 #define HWRST_STATUS_IQMODE 0xb0 #define HWRST_STATUS_SPRDISK 0xc0 +#define HWRST_STATUS_FACTORYTEST 0xe0 /* Use default timeout 50 ms that converts to watchdog values */ #define WDG_LOAD_VAL ((50 * 1000) / 32768) @@ -339,6 +340,8 @@ static int sprd_adi_restart_handler(struct notifier_block *this, reboot_mode = HWRST_STATUS_SPRDISK; else if (!strncmp(cmd, "tospanic", 8)) reboot_mode = HWRST_STATUS_SECURITY; + else if (!strncmp(cmd, "factorytest", 11)) + reboot_mode = HWRST_STATUS_FACTORYTEST; else reboot_mode = HWRST_STATUS_NORMAL; From patchwork Fri Jul 26 07:20:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 169787 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp12648212ilk; Fri, 26 Jul 2019 00:21:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnQBX7GdjMRs5+nphOHvl000cxznuub7Q8XphzxmAvPZ+zWaCVgv2qc6TwcqrHE1Cor0fn X-Received: by 2002:a63:b1d:: with SMTP id 29mr90096890pgl.103.1564125706113; Fri, 26 Jul 2019 00:21:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564125706; cv=none; d=google.com; s=arc-20160816; b=tDsvtcnnLqYHVRIXhqwnUA6Y9U7KnVUnEbm7bKSgLXt0wBE0HLUGbzLWwxlWkkVpLf vDO7zopD/XaiIQt0Qe7VaHBsg7WKDQvQnGiXSx/Gli3Y/wUFv4pjP4uT65SzvTzXwhPX L8Uzq1CP2WiFEiIoAc7PWSzGMxsIEgIi0NjJ1N1obHSOlJQ/Nhmhgz82t4HAdrw12B59 mR9s4ShGovMAUS27KON97d62QAzkZKiND5GIkxD6aPHzIJZqMJVRcEyfzfeAuGpze+WK ce/YNUfw8ycd91ZLTM8wS7MPtUYb+S1926X0RvEp/RNgblY79wqsiaZRSMv38Bi982qy RAQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=UKHcPnP1X/YH0KxOMapb8zoNNla2jhYhzX+lsHS5cTM=; b=Iw4+Y74FX14tQU506/zOcJrnlWm6nrHk3pKsdCKS5X5bnKAhC0tXsU0bdI/OA3s9zI rGkWGqD7z9L33SJx83KhnStpqbCVKm/oy3hdo/EVnV7R3v62BAH2h7EsARTvk/LoS2xn /AgJtSfiPPuRWQhNrEjs+DWV4IZKglmy8ZjsnobmybDEfu5+G/c5S5ELdVFkVpL1azwu jZgdfq4+Caa+0P+O1lb3WfCvTozh0KbZOYm5giY9TvdcwwY1unxHwtR4eH1FuVNN73dW lJkeQPIHQYTvJ6SEv6XMV+enf/Sk5EP7nGBbCj9Ol139PONeZaNULwJk1RDaTy9vPquI db1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="E/8yDjb7"; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si18447977pgg.155.2019.07.26.00.21.46; Fri, 26 Jul 2019 00:21:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-spi-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 header.s=google header.b="E/8yDjb7"; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726489AbfGZHVp (ORCPT + 1 other); Fri, 26 Jul 2019 03:21:45 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:34168 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726443AbfGZHVo (ORCPT ); Fri, 26 Jul 2019 03:21:44 -0400 Received: by mail-pf1-f194.google.com with SMTP id b13so24068360pfo.1 for ; Fri, 26 Jul 2019 00:21:44 -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 :in-reply-to:references; bh=UKHcPnP1X/YH0KxOMapb8zoNNla2jhYhzX+lsHS5cTM=; b=E/8yDjb7ZXAoXz4rohf7xtU4fhLLX5e2g+HPtRaZkv3EEOnRi93Lc23PAFcSQlkXjb J3Wa6rERdfomrw2OTiK4FH5qYxtfwCfuIP5rQTWocufBjT6s+yyn1isAdW1mS7TBlhF9 zqljjj5O16ddI36qYavzuNIlDPSDILRII6NiiRPPmJihn6ZmtXZXEsUy2qxRn9toErIe 4pfyj+dW/0gFmCbyCGfQd+hC89i8hZK+dH8qwarrCFKd4U4csbslNRiqS39I2iAeb36O DbPPLxMS6drd93OWQxQEkAus7EIMyOpygAFaoynlbckmOxeAGcmfGvzwBIlPb3h08hLh 3cYA== 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:in-reply-to:references; bh=UKHcPnP1X/YH0KxOMapb8zoNNla2jhYhzX+lsHS5cTM=; b=ay9neEl55h+ee6VWB/tOhTShTVv7Xp+9flsPBU6Zewz4cdPkMzihTUmxqJsg68ky7U zQp2asyBOhiWCWGXgDV0rum/K6Ye0x24rZSJQBhgw0O+YjOxQoXUpMXY5WsqhXTduKuX JAdupYhqMYR1YlPdXie3MaG22VV+POinef+uhk8HLzZX1ltrD6tlasktrO6HrVR4UdAD dmN1RgDdWfEaB/Phmcj/DaqOvzBTgekZk4Aa7P9qC8sRBMTPb42X86VhlhKYLwoN1I22 HByBA/sI2aXVnIiffbDEoZoHwqFlhfjBy2FuI8cGAU3sO3CjjpCJwzobsHJGKZqRSS9t HNiQ== X-Gm-Message-State: APjAAAWzur4fiB663QyFovRyzvcBJ4qpZjQqe0uKzqW6Y5s8AFfeb413 whnh2wx+p8KYQg3xPig2G6tTuQ== X-Received: by 2002:a63:b747:: with SMTP id w7mr36749242pgt.205.1564125704234; Fri, 26 Jul 2019 00:21:44 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id o12sm39216152pjr.22.2019.07.26.00.21.40 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Jul 2019 00:21:43 -0700 (PDT) From: Baolin Wang To: broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, orsonzhai@gmail.com, zhang.lyra@gmail.com Cc: weicx@spreadst.com, sherry.zong@unisoc.com, baolin.wang@linaro.org, vincent.guittot@linaro.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] dt-bindings: spi: sprd: Change the hwlock support to be optional Date: Fri, 26 Jul 2019 15:20:53 +0800 Message-Id: <23d51f5d9c9cc647ad0c5a1fb950d3d9fb9c1303.1564125131.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org No need to add hardware spinlock proctection due to add multiple msater channel, so change it to be optional in documentation. Signed-off-by: Baolin Wang --- .../devicetree/bindings/spi/spi-sprd-adi.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) -- 1.7.9.5 diff --git a/Documentation/devicetree/bindings/spi/spi-sprd-adi.txt b/Documentation/devicetree/bindings/spi/spi-sprd-adi.txt index 8de589b..2567c82 100644 --- a/Documentation/devicetree/bindings/spi/spi-sprd-adi.txt +++ b/Documentation/devicetree/bindings/spi/spi-sprd-adi.txt @@ -25,18 +25,23 @@ data by ADI software channels at the same time, or two parallel routine of setti ADI registers will make ADI controller registers chaos to lead incorrect results. Then we need one hardware spinlock to synchronize between the multiple subsystems. +The new version ADI controller supplies multiple master channels for different +subsystem accessing, that means no need to add hardware spinlock to synchronize, +thus change the hardware spinlock support to be optional to keep backward +compatibility. + Required properties: - compatible: Should be "sprd,sc9860-adi". - reg: Offset and length of ADI-SPI controller register space. -- hwlocks: Reference to a phandle of a hwlock provider node. -- hwlock-names: Reference to hwlock name strings defined in the same order - as the hwlocks, should be "adi". - #address-cells: Number of cells required to define a chip select address on the ADI-SPI bus. Should be set to 1. - #size-cells: Size of cells required to define a chip select address size on the ADI-SPI bus. Should be set to 0. Optional properties: +- hwlocks: Reference to a phandle of a hwlock provider node. +- hwlock-names: Reference to hwlock name strings defined in the same order + as the hwlocks, should be "adi". - sprd,hw-channels: This is an array of channel values up to 49 channels. The first value specifies the hardware channel id which is used to transfer data triggered by hardware automatically, and the second