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=-14.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham 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 5EAB1C2D0E4 for ; Wed, 25 Nov 2020 01:31:52 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (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 531FA206D5 for ; Wed, 25 Nov 2020 01:31:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="sxDho5Lp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 531FA206D5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4CgjzS0cqVzDqZn for ; Wed, 25 Nov 2020 12:31:48 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::744; helo=mail-qk1-x744.google.com; envelope-from=bjwyman@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=sxDho5Lp; dkim-atps=neutral Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Cgjxq2px6zDqWR for ; Wed, 25 Nov 2020 12:30:18 +1100 (AEDT) Received: by mail-qk1-x744.google.com with SMTP id q22so1596376qkq.6 for ; Tue, 24 Nov 2020 17:30:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=mqCgPJhFcU3RCQh2YBCYKNOFFV+XSZP1KATpOOoq5aI=; b=sxDho5LpQDyTzLOM+wseh89L3TVY9lJ3nSopGQ011kp8Px0nbmqFuJbXPADvefNMYQ GNQMpYfqNv/8O6n/sj5nDS21n6ONogOg8xq91fZ7vZQIjWBO93t6pyadBlCcHgZytlvz Ch0oTs/sRstsWFvvhtcDq8xVfBgNVW+/hJ10YotLpLZaZ9ddc84K6NfZC8P7s2flChgK /o2XcJKvDnrT4+W1cjitDgyG4QDi/jwEYf5kkn/rCRvGhdj49Ml7NvLfThcpooRaq5ZT YvQMFJxVspp3jxb96slWt3fybn4YWvhTBEy6v6wDArjYnhFm+mRugWZn2D1sUL7P7B/f Ys0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=mqCgPJhFcU3RCQh2YBCYKNOFFV+XSZP1KATpOOoq5aI=; b=ajdHun9anWqhrSzQsAfW+ZW0VFwJOU9xkkrOzuZPGYs74ycLb0tvcLBGnIX0GJsqtz j9xyhn28XyPh1TQx7JpSJTgPZ6QIity1rih7T9F0PPWkFiLyF4/tr+eCiFS8NNMwkSAN Wa+bavv0MOTP+TIwPZPtRGj6Tr6xA2zyJbbfOX683b9rY6h6ak13buAwsBlFcCA+els2 JkUjIYJ+oXgsXmHrGeQNTClxxIBCjkgUm+wz4cULn5OQKTm/pe0OzXidMVzdnCi6xPPM U2qxMT50BwlgrHITczATrljWsXCF77BOiWvi1cBSVZgNSZLKnzqwwf1KFHicLk1kfBKZ 8cDg== X-Gm-Message-State: AOAM5310njVAXRx1vtuExs9/Go7//hq6QaKedXnN0UjkKyDM4ovjDkpj 7836/NATrwyD4HpYNip9HOOzVBzwRD2cAg== X-Google-Smtp-Source: ABdhPJy7rMOimB9S3Bj52fV8SRDSNGIx1l9efz6/dZqcRd8DWpq2c3vKKgH5As8egZpPMb4lB7aYcw== X-Received: by 2002:a05:620a:15db:: with SMTP id o27mr1127866qkm.21.1606267814661; Tue, 24 Nov 2020 17:30:14 -0800 (PST) Received: from [192.168.4.31] (199-48-94-80.rochmnaa.metronetinc.net. [199.48.94.80]) by smtp.gmail.com with ESMTPSA id t63sm968763qka.128.2020.11.24.17.30.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Nov 2020 17:30:13 -0800 (PST) Subject: Re: [PATCH linux dev-5.8] ARM: dts: aspeed: rainier: Add gpio-keys-polled for fans To: Matthew Barth , eajames@linux.ibm.com, openbmc@lists.ozlabs.org, joel@jms.id.au References: <20201125011640.2346086-1-msbarth@linux.ibm.com> From: Brandon Wyman Message-ID: <84bbd720-610c-2e29-fe53-6490708b9d6c@gmail.com> Date: Tue, 24 Nov 2020 19:30:12 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20201125011640.2346086-1-msbarth@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" On 2020-11-24 19:16, Matthew Barth wrote: > Add a gpio-keys-polled section for the fan presence signals from the > PCA9552 on i2c bus 7. Reviewed-by: Brandon Wyman > Signed-off-by: Matthew Barth > --- > arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts | 43 ++++++++++++++++++++ > 1 file changed, 43 insertions(+) > > diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts > index 4692c5e8f919..e83355b8e13a 100644 > --- a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts > +++ b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts > @@ -96,6 +96,49 @@ ps3-presence { > }; > }; > > + gpio-keys-polled { > + compatible = "gpio-keys-polled"; > + #address-cells = <1>; > + #size-cells = <0>; > + poll-interval = <1000>; > + > + fan0-presence { > + label = "fan0-presence"; > + gpios = <&pca0 6 GPIO_ACTIVE_LOW>; > + linux,code = <6>; > + }; > + > + fan1-presence { > + label = "fan1-presence"; > + gpios = <&pca0 7 GPIO_ACTIVE_LOW>; > + linux,code = <7>; > + }; > + > + fan2-presence { > + label = "fan2-presence"; > + gpios = <&pca0 8 GPIO_ACTIVE_LOW>; > + linux,code = <8>; > + }; > + > + fan3-presence { > + label = "fan3-presence"; > + gpios = <&pca0 9 GPIO_ACTIVE_LOW>; > + linux,code = <9>; > + }; > + > + fan4-presence { > + label = "fan4-presence"; > + gpios = <&pca0 10 GPIO_ACTIVE_LOW>; > + linux,code = <10>; > + }; > + > + fan5-presence { > + label = "fan5-presence"; > + gpios = <&pca0 11 GPIO_ACTIVE_LOW>; > + linux,code = <11>; > + }; > + }; > + > i2c2mux: i2cmux { > compatible = "i2c-mux-gpio"; > #address-cells = <1>;