From mboxrd@z Thu Jan 1 00:00:00 1970 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=-8.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 DC504C3A5A6 for ; Sat, 31 Aug 2019 15:01:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 AE31C22D37 for ; Sat, 31 Aug 2019 15:01:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AFrF46VY"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="B3bTo9nm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AE31C22D37 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-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=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nXEcydFEdjzToIcGjmzmhyrAPBdS24VLPZB6adMSIRI=; b=AFrF46VYR9n9n/ ApXap/M1mQP3z3HpeJyRLoJW0I43eXDvSNk3fTwFuGu988f9o8wqtsX7fsBiecApBzcmwzrU40du0 bBWWsSUZoDIvzymgK5lAaVINjzRACjL94R2KJZxju288z0zT04HClyzqpsu5R6s9sues5MHWJDWRU MaOEcAlWtPhRm+5/Gt87CD91lLfny3fBNWur/YLRNiZjsxTW/Tow83Kct4yYPllmzXwAi21L0XPId BRWprHFajo2sY4Thrg6X0sLUT8c5uDyO8ZTZZhVqLLzAQGNu5M50ox6tEigYymvWvWZELnRppKrzB bpmyF4OY4VWeI0zXQdfg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i44so-0002wN-8P; Sat, 31 Aug 2019 15:01:42 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i44sk-0002ta-0T for linux-arm-kernel@lists.infradead.org; Sat, 31 Aug 2019 15:01:39 +0000 Received: by mail-pg1-x544.google.com with SMTP id n4so5042059pgv.2 for ; Sat, 31 Aug 2019 08:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=pgmHg3ukoYkhaRQ72n0KiU687Zs7MhjBlJ4ipL0qwQE=; b=B3bTo9nmMR/i7oh0IaQJj8OJoTDX+qoEGfM41Dt+zLDGc70vkBAsDR6WZJxYKyTByR ToqEQBhAvFzUGcgZYhC06n26Dv3l5QCPzWBTSZ7jb38S47K+8Ow0peFxgaasP+Fz2JKG /Xs4NfxIEhsZCMMcDQz0BBRKp9aJ2nq9R/odVV+jl+tDkopQs2p9N2JXnhi8626PsZiT JKloU3LculAz8V+r9ktvuT31bx+7GtcIuN1aDVs+g4sAIn/cqmDwxzDeyW21Z4GON4hz T7AIB3kalcAWUpCo78XZiuS0ACwNaYRjDOQmCLAGMe2ZUpdUd5gOEL9xIQ+CNCPoyOtK ELEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=pgmHg3ukoYkhaRQ72n0KiU687Zs7MhjBlJ4ipL0qwQE=; b=MaLEkSYFLgOBu7eXS96IfyTobH5+04C/bf2+pqv8+uNxDdf+5u6Og5PmaX3HnhuKmH BvXFarpY+8d/HjxWsSKsJR6z2Z/X9sjZTO7nhYvmax7uvLNoRhwFv8vrsS6hIQN+8P24 pMDkKE23Mh94P6f7fdnIayu6HfLosuUInmZIAB5ygNZ8n9NxAxEEIAIHzzu1XF5PQb8N 5kOz24Yfv0aQOYHxJZz6ZjX8cwit+LuUrWlDyDuFK7gD7Qvl1VptyvjVFjGfb5VA0H5a rZc8iWO3lAr2IlZJQmPqv+WMCC2Yy+n3m/NvecVMfdwjtkgCv1ZaeoIA5slC5bJoDTKs OGqA== X-Gm-Message-State: APjAAAVfIo1B+fa0C7K8t8tNf5wZkfRFWSzIVDBVnN6bWyrkvkjfIVnx wK2anRpYk2k77ommVZ5rzc0= X-Google-Smtp-Source: APXvYqzxO5TxxgJX3+CZnA8sNzId2Ur3EJ1lJTqlYglz6V20PPBYoElyIToU51GXQcMExZzVIgyYcg== X-Received: by 2002:aa7:96dc:: with SMTP id h28mr24787013pfq.86.1567263697149; Sat, 31 Aug 2019 08:01:37 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id t70sm9610914pjb.2.2019.08.31.08.01.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 31 Aug 2019 08:01:36 -0700 (PDT) Date: Sat, 31 Aug 2019 08:01:35 -0700 From: Guenter Roeck To: Ivan Mikhaylov Subject: Re: [PATCH v4 4/4] aspeed/watchdog: Add access_cs0 option for alt-boot Message-ID: <20190831150135.GA7230@roeck-us.net> References: <20190828102402.13155-1-i.mikhaylov@yadro.com> <20190828102402.13155-5-i.mikhaylov@yadro.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190828102402.13155-5-i.mikhaylov@yadro.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190831_080138_084310_05D70C8E X-CRM114-Status: GOOD ( 20.97 ) 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: Mark Rutland , devicetree@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-aspeed@lists.ozlabs.org, Andrew Jeffery , openbmc@lists.ozlabs.org, Alexander Amelkin , linux-kernel@vger.kernel.org, Rob Herring , Joel Stanley , Wim Van Sebroeck , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Aug 28, 2019 at 01:24:02PM +0300, Ivan Mikhaylov wrote: > The option for the ast2400/2500 to get access to CS0 at runtime. > > Signed-off-by: Ivan Mikhaylov Reviewed-by: Guenter Roeck > --- > .../ABI/testing/sysfs-class-watchdog | 34 +++++++++++++++++++ > 1 file changed, 34 insertions(+) > > diff --git a/Documentation/ABI/testing/sysfs-class-watchdog b/Documentation/ABI/testing/sysfs-class-watchdog > index 6317ade5ad19..675f9b537661 100644 > --- a/Documentation/ABI/testing/sysfs-class-watchdog > +++ b/Documentation/ABI/testing/sysfs-class-watchdog > @@ -72,3 +72,37 @@ Description: > It is a read/write file. When read, the currently assigned > pretimeout governor is returned. When written, it sets > the pretimeout governor. > + > +What: /sys/class/watchdog/watchdog1/access_cs0 > +Date: August 2019 > +Contact: Ivan Mikhaylov , > + Alexander Amelkin > +Description: > + It is a read/write file. This attribute exists only if the > + system has booted from the alternate flash chip due to > + expiration of a watchdog timer of AST2400/AST2500 when > + alternate boot function was enabled with 'aspeed,alt-boot' > + devicetree option for that watchdog or with an appropriate > + h/w strapping (for WDT2 only). > + > + At alternate flash the 'access_cs0' sysfs node provides: > + ast2400: a way to get access to the primary SPI flash > + chip at CS0 after booting from the alternate > + chip at CS1. > + ast2500: a way to restore the normal address mapping > + from (CS0->CS1, CS1->CS0) to (CS0->CS0, > + CS1->CS1). > + > + Clearing the boot code selection and timeout counter also > + resets to the initial state the chip select line mapping. When > + the SoC is in normal mapping state (i.e. booted from CS0), > + clearing those bits does nothing for both versions of the SoC. > + For alternate boot mode (booted from CS1 due to wdt2 > + expiration) the behavior differs as described above. > + > + This option can be used with wdt2 (watchdog1) only. > + > + When read, the current status of the boot code selection is > + shown. When written with any non-zero value, it clears > + the boot code selection and the timeout counter, which results > + in chipselect reset for AST2400/AST2500. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel