Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp279390rwd; Wed, 31 May 2023 23:25:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5iP4yi09j/VncQhiI6wfqX/lcfmciS9MeQiI2RTWxanGTL/8JWqeEEk3w7xfa6VIOq8M23 X-Received: by 2002:a05:6808:199e:b0:394:643b:cd77 with SMTP id bj30-20020a056808199e00b00394643bcd77mr7163431oib.44.1685600708316; Wed, 31 May 2023 23:25:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685600708; cv=none; d=google.com; s=arc-20160816; b=Do03InOvLbXtkTViGnV6DxLjmY8BNgYnpLHK/BV8oNunAA32IZt0z6jIkfDdcTsRsL tR79qyyEupCRMAY9WmM9sN9N9G0qkahiAh8MkXdyN19RTnf6o2BLDc5JViG5g0ZuMC0x BCS4ky2NQhFRn0fnoV4cbZqAsQrVoi9gbD0xCh42PMKHYdGB14mlnJxTvA4m+HodvlrN L8vCiBl9bDXk+58IFwRED8ZjztsaxiT1gJkIdjgJqQALCEwcMe0rwdZhbBPre3dPCnSf SjGM+974uaCIVBCDSZpE4t49PaWrkP5ZRz7yBczdsJokOXQKKmZ2Jm+d5SQxlrVF91VK WP7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=/hxz5MV6khDdaorENFAjCEBVfceC+DA8Wcg+2EUsxQc=; b=UG7H6wNiNcZCqt3Ry+bHjywXtZbtadVFR+1QJkF2tGD8pI6eCysPwlLPYACN4RIagE CsOtRKmSefMALQL3IeAN3zKNGY8guuTgvC4UiI9JVIwDp2w5ucAjF5woGTczaGwlawwf CTexm3bS1Z5Z97fG6QmKKHnKDEm0H3Lil+STiEAxyO8vStWGcnbbVI5mbXJ75IXcsl/g icEScXqeZmoWwzJ2859AfvY3Y8RlZhVPu1q9EA9NvcMgWEfUCEiUMwszHszGqd3HfL/k mi7QTJUl5WawabDBqlSDwb75AtuVl+v1/LRQnCMrrf1XCRtmejGawXjdfHIS6GL1TadQ M2xg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e3-20020a170902b78300b001a97fd670d5si1116894pls.367.2023.05.31.23.24.56; Wed, 31 May 2023 23:25:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231804AbjFAF42 (ORCPT + 99 others); Thu, 1 Jun 2023 01:56:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231639AbjFAF4F (ORCPT ); Thu, 1 Jun 2023 01:56:05 -0400 Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F9FFE67 for ; Wed, 31 May 2023 22:55:12 -0700 (PDT) Received: from [192.168.0.2] (ip5f5aef03.dynamic.kabel-deutschland.de [95.90.239.3]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 5E01D61E4052B; Thu, 1 Jun 2023 07:53:39 +0200 (CEST) Message-ID: Date: Thu, 1 Jun 2023 07:53:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v1 03/43] soc: Add SoC driver for Cirrus ep93xx Content-Language: en-US To: Nikita Shubin Cc: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Joel Stanley , Conor Dooley , Heiko Stuebner , Yinbo Zhu , Hitomi Hasegawa , =?UTF-8?Q?Jonathan_Neusch=c3=a4fer?= , Walker Chen , Emil Renner Berthing , Alexander Gordeev , Vasily Gorbik , Michael Peters , Kris Bahnsen , linux-kernel@vger.kernel.org References: <20230424123522.18302-1-nikita.shubin@maquefel.me> <20230601053546.9574-4-nikita.shubin@maquefel.me> From: Paul Menzel In-Reply-To: <20230601053546.9574-4-nikita.shubin@maquefel.me> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Nikita, Thank you for your patch. Some small nit picks. Am 01.06.23 um 07:33 schrieb Nikita Shubin: > This adds an SoC driver for the ep93xx. Currently there > is only one thing not fitting into any other framework, > and that is the swlock setting. If you reflow for 75 characters per line, this would fit into two lines. > It's used for clock settings and restart. What datasheet did you use, and on what board did you test this? > Signed-off-by: Nikita Shubin > Tested-by: Alexander Sverdlin > Acked-by: Alexander Sverdlin > Reviewed-by: Linus Walleij > --- […] > drivers/soc/Kconfig | 1 + > drivers/soc/Makefile | 1 + > drivers/soc/cirrus/Kconfig | 11 +++ > drivers/soc/cirrus/Makefile | 2 + > drivers/soc/cirrus/soc-ep93xx.c | 134 ++++++++++++++++++++++++++++++ > include/linux/soc/cirrus/ep93xx.h | 16 +++- > 6 files changed, 161 insertions(+), 4 deletions(-) > create mode 100644 drivers/soc/cirrus/Kconfig > create mode 100644 drivers/soc/cirrus/Makefile > create mode 100644 drivers/soc/cirrus/soc-ep93xx.c > > diff --git a/drivers/soc/Kconfig b/drivers/soc/Kconfig > index 4e176280113a..6149f0447b61 100644 > --- a/drivers/soc/Kconfig > +++ b/drivers/soc/Kconfig > @@ -30,5 +30,6 @@ source "drivers/soc/ti/Kconfig" > source "drivers/soc/ux500/Kconfig" > source "drivers/soc/versatile/Kconfig" > source "drivers/soc/xilinx/Kconfig" > +source "drivers/soc/cirrus/Kconfig" > > endmenu > diff --git a/drivers/soc/Makefile b/drivers/soc/Makefile > index 3b0f9fb3b5c8..7a8a154b8d96 100644 > --- a/drivers/soc/Makefile > +++ b/drivers/soc/Makefile > @@ -36,3 +36,4 @@ obj-y += ti/ > obj-$(CONFIG_ARCH_U8500) += ux500/ > obj-$(CONFIG_PLAT_VERSATILE) += versatile/ > obj-y += xilinx/ > +obj-$(CONFIG_EP93XX_SOC) += cirrus/ > diff --git a/drivers/soc/cirrus/Kconfig b/drivers/soc/cirrus/Kconfig > new file mode 100644 > index 000000000000..bc82c0422325 > --- /dev/null > +++ b/drivers/soc/cirrus/Kconfig > @@ -0,0 +1,11 @@ > +# SPDX-License-Identifier: GPL-2.0 > + > +if ARCH_EP93XX > + > +config EP93XX_SOC > + bool "Cirrus EP93xx chips SoC" > + default y if !EP93XX_SOC_COMMON > + help > + Support Soc for Cirrus EP93xx chips. Above (and more common in the whole SOC directory) you spell it SoC. > + > +endif > diff --git a/drivers/soc/cirrus/Makefile b/drivers/soc/cirrus/Makefile > new file mode 100644 > index 000000000000..ed6752844c6f > --- /dev/null > +++ b/drivers/soc/cirrus/Makefile > @@ -0,0 +1,2 @@ > +# SPDX-License-Identifier: GPL-2.0 > +obj-y += soc-ep93xx.o > diff --git a/drivers/soc/cirrus/soc-ep93xx.c b/drivers/soc/cirrus/soc-ep93xx.c > new file mode 100644 > index 000000000000..64842e9e2316 > --- /dev/null > +++ b/drivers/soc/cirrus/soc-ep93xx.c > @@ -0,0 +1,134 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Soc driver for Cirrus EP93xx chips. Ditto. > + * Copyright (C) 2022 Nikita Shubin > + * > + * Based on a rewrite of arch/arm/mach-ep93xx/core.c > + * Copyright (C) 2006 Lennert Buytenhek > + * Copyright (C) 2007 Herbert Valerio Riedel > + * > + * Thanks go to Michael Burian and Ray Lehtiniemi for their key > + * role in the ep93xx linux community If you know their email addresses, you could add those too. Maybe also add a dot/period at the end. > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > + > +#define EP93XX_SYSCON_DEVCFG 0x80 > + > +#define EP93XX_SWLOCK_MAGICK 0xaa > +#define EP93XX_SYSCON_SWLOCK 0xc0 > +#define EP93XX_SYSCON_SYSCFG 0x9c > +#define EP93XX_SYSCON_SYSCFG_REV_MASK (0xf0000000) > +#define EP93XX_SYSCON_SYSCFG_REV_SHIFT (28) […] Kind regards, Paul