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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 96182ECAAA1 for ; Tue, 6 Sep 2022 13:45:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:Cc:To:From:Date:References: In-Reply-To:Message-Id:Mime-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=I8DIW26Tqs41AaCXta5Hws/6u+mADDtA+cpLvKxgytc=; b=vLZ3XS+fW6Xrbx jbRP3r0AKzLqAWad5MC6pPJB3jf0IPh0v4H29ofctSwg+AVp8VL4fUpGBUy7oFdbX9r7pLlMEP7YV soLu7cSVF2wbFKvOnPf+2S7C00/0aCB0b0nEUGgRVH9SnX2bOoptFAzFE4o+ZqktiaHDi9HHCrnBo 6+axjnxgQfBtyEitlxIeAbub6exj4kiGv/YEr/PPB9+jy9/3NW9HPTO1NG8uQfY6YR6PAiWKIrO36 aeGvU1hajj+g0ap5IkiOMLdpLJBq/ujxZ9df4UVQkVx4Gc/T7Y50nNfss3a1l2zH/GtcBarU+gjN7 ZlF/wlufeApU7otgc8kA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVYrX-00Dw7C-1u; Tue, 06 Sep 2022 13:43:37 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVYp2-00Dugw-Cp for linux-arm-kernel@lists.infradead.org; Tue, 06 Sep 2022 13:41:03 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id AC4CF5C00E9; Tue, 6 Sep 2022 09:40:59 -0400 (EDT) Received: from imap47 ([10.202.2.97]) by compute2.internal (MEProxy); Tue, 06 Sep 2022 09:40:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=cc:cc:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1662471659; x=1662558059; bh=hm ETg07QBgLYqlBFCF6cd3D9OyAgefzmdWPH2ymqdXY=; b=lV8m4FUPjwTcqUKp3U l4KWUYHpKC6ES/Oq0YirqpysOvejJZfD3Wz6DxDIUOKxPiwEDhP7a+pXVlmawgsT J860vB57TaSym/SyTxU7BGLieTzgT0pELqeIXR0VWPnSmYHOKfhmznAlmgnRNpd/ Buitv9ZOp8kBwnKJNmNqO04QS8aEEm/nZ8+4akq03Rvg4w4GPmx9RsxGUQjDptEc 8x/gEUJHYNQGEt+7EkAQFt7DB6XrGSb1QGheBUVd0R67O7BrulvTIVdssF6k4I9O i+6sp1vHLoVWoLg2CDeFzrSWOiuRy/YSsVSSt2x4miXhFOfCoQHGYZscuy2dl2O7 3Eyg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1662471659; x=1662558059; bh=hmETg07QBgLYqlBFCF6cd3D9OyAg efzmdWPH2ymqdXY=; b=AP/PvmR3Hdlpkt/At17981fk8jOoa6E73FsspiH7v6vo 4qkBw4lsatebD/D0axYsVgysWva+U351FElef+B+0lvZ9zw65HIYdOr3lBYqe84s Cmk5ShwkBoTCyQsxcqgNzg5FFdCuzKqoz355xUGvURYHC+RfA5cQ+vuLg5tJzG8w oq66yEVNgXeHLKKKAGnCAs4pXYYukWW5+0N6yB2uD8R8ePfc9shLlOHXF/sFS9nk MPgu8wSxlFiATBfvKMU/Vd3EARiHJiNpDrNkFgY4pXJITOgVfOWABUBDoQuenJo0 59qds2cS9HnqF3Kicm62f+8wZqhDO94SrXF7kodOkQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdelkedgieekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedfufhv vghnucfrvghtvghrfdcuoehsvhgvnhesshhvvghnphgvthgvrhdruggvvheqnecuggftrf grthhtvghrnhepleevgfegffehvedtieevhfekheeftedtjeetudevieehveevieelgffh ieevieeunecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomh epshhvvghnsehsvhgvnhhpvghtvghrrdguvghv X-ME-Proxy: Feedback-ID: i51094778:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 70B06A6007C; Tue, 6 Sep 2022 09:40:59 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-927-gf4c98c8499-fm-20220826.002-gf4c98c84 Mime-Version: 1.0 Message-Id: In-Reply-To: References: Date: Tue, 06 Sep 2022 15:40:38 +0200 From: "Sven Peter" To: "Russell King" , "Arnd Bergmann" , "Lee Jones" , "Linus Walleij" Cc: "Alyssa Rosenzweig" , "Andy Shevchenko" , asahi@lists.linux.dev, "Bartosz Golaszewski" , devicetree@vger.kernel.org, "Hector Martin" , "Jonathan Corbet" , "Krzysztof Kozlowski" , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, "open list:GPIO SUBSYSTEM" , "Petr Mladek" , "Rasmus Villemoes" , "Rob Herring" , "Sergey Senozhatsky" , "Steven Rostedt" Subject: Re: [PATCH 6/7] gpio: Add new gpio-macsmc driver for Apple Macs X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220906_064100_547811_88D86145 X-CRM114-Status: GOOD ( 12.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Sep 6, 2022, at 15:19, Russell King wrote: > From: Hector Martin > > This driver implements the GPIO service on top of the SMC framework > on Apple Mac machines. In particular, these are the GPIOs present in the > PMU IC which are used to control power to certain on-board devices. > > Although the underlying hardware supports various pin config settings > (input/output, open drain, etc.), this driver does not implement that > functionality and leaves it up to the firmware to configure things > properly. We also don't yet support interrupts/events. This is > sufficient for device power control, which is the only thing we need to > support at this point. More features will be implemented when needed. > > To our knowledge, only Apple Silicon Macs implement this SMC feature. > > Signed-off-by: Hector Martin > Signed-off-by: Russell King (Oracle) Reviewed-by: Sven Peter _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel