From patchwork Mon Jun 13 09:51:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Potin Lai X-Patchwork-Id: 12879246 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 E0832C43334 for ; Mon, 13 Jun 2022 09:55:28 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cP3sPFqDdbUqhdAcM68cNpCxg17HWFZMOxuapphyfWA=; b=hVAjEPiMVpAMwI N93s/Rwr4LwjlJ+cFD8lY8ENEQMMzJC1zJiSk9ZhH0GnbYNNS/1mf99wL6J3QxqRxLebHg00mln1J Yx+Y6eY5kvN+dqKF9QjU3wVcdl/wQOuGwVPqtHBTSF3/0CDkRUqXipRiqbtqhUiZlqQMzrgbyowg2 vBQm6O9KhM/bb8OqD+iE5FbDi0mAeObysD7OddUnsHa/tig3I6pEI+2NqgLSya3t8C61ki3O5fPdX Ibq1JpIwxuufX2U10gCaIk0VPzc3cCH7/+oyyNX44LP5M+Z9H5x1i1yES1BTQMaNh4J10rY0fMPaP QGYgvp64UUqitxTrIhNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0gmA-002gCP-3e; Mon, 13 Jun 2022 09:54:26 +0000 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0gln-002fx7-5k for linux-arm-kernel@lists.infradead.org; Mon, 13 Jun 2022 09:54:04 +0000 Received: by mail-pg1-x530.google.com with SMTP id s135so5066682pgs.10 for ; Mon, 13 Jun 2022 02:54:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/cXVElxHAcvgbTqkcDPEZcgMxgzQCWHYrFhvr/zy9d8=; b=fY6zN5C+bBWs5V8Mu3xSpbjQPxb5GNgJwzl0WAfablo8FG8nwL3VJfXEB9Z5f4garM HecCZm+crzpugtGg0XDvPayO9KSCf1zck8RMhSckWz41R1jDpBPCr8yCITFF3Dlc9qFg KMvkm4qFzFC6enlW1HkV0zr1MUDNbt+X8oHj0VBPzOhFYGCMjyWxHSRchgBvOXa9kpNY x53pqaylUrni+sLBr3pPvBOv+2RdqRhou023bztWj9pHXDQi4nJa2Yf0Qo/BhN6ZeuGJ EwWsQra/5hlM9r7Tt4NK/NsbM2/QNMim6ikGa87b9JlTUwPiiXjpgxc2arZBdeQFMTDr XGig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/cXVElxHAcvgbTqkcDPEZcgMxgzQCWHYrFhvr/zy9d8=; b=Da7mkOU/vzXX1gsNxpQ7u7MWPbVAnhqlxmYB9ZFJLoY2QuHJbtamKqhgjCQ8Pzwide 5aujHR7o7Wa7RxKyMc8VKAUIWZ/0VP0qJYVsPh2pLE/C00ISQLv4zuS/+1p9opFBnHcI XtbchhCs3RvBunYPc3FTjWK0fj5Xa8CKGeJZxYsj5L1aNuUBPuXaMsFbNc4kgEGATsWk mE/FjJXnYkCoKhwygIp4hM4i4oGK7yQiPCEdK+PI0W5cxSZ60LY8QrP+LGZ/GKIRyVRr G2dViBJWnJOPQlmgboIEoG9OLH8MJ22WvIm4RAdYDRaWSFZJepAg6kXVGyWW7BVaFDPm KdTA== X-Gm-Message-State: AOAM5336zYex0Mzt4SIOUHejGoZVJyEWJGH9Ybn3VwDv3E3UoHpQFMq7 kueA0oegE5NUwP2SK/6mKhU= X-Google-Smtp-Source: ABdhPJyGCEMsQN9qDf3iwARJOkhFXJADJBx5omweDUlEcjVMzYEnFVPENmPbWF1LT76ms1Ryy4fHOQ== X-Received: by 2002:a05:6a00:23c6:b0:51b:f8e3:2e5c with SMTP id g6-20020a056a0023c600b0051bf8e32e5cmr45996931pfc.43.1655114040629; Mon, 13 Jun 2022 02:54:00 -0700 (PDT) Received: from potin-quanta.dhcpserver.local (125-228-123-29.hinet-ip.hinet.net. [125.228.123.29]) by smtp.gmail.com with ESMTPSA id 19-20020a170902e9d300b001639f038250sm4639754plk.220.2022.06.13.02.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 02:54:00 -0700 (PDT) From: Potin Lai To: Rob Herring , Joel Stanley , Andrew Jeffery Cc: Patrick Williams , Potin Lai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, Potin Lai Subject: [PATCH 1/4] ARM: dts: aspeed: bletchley: change LED sys_log_id to active low Date: Mon, 13 Jun 2022 17:51:47 +0800 Message-Id: <20220613095150.21917-2-potin.lai.pt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220613095150.21917-1-potin.lai.pt@gmail.com> References: <20220613095150.21917-1-potin.lai.pt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220613_025403_256497_674596FD X-CRM114-Status: GOOD ( 11.68 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org change LED sys_log_id to active low base on DVT schematic. Signed-off-by: Potin Lai --- arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts index 41d2b1535d9a..d34bfa50620e 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts @@ -59,7 +59,7 @@ compatible = "gpio-leds"; sys_log_id { default-state = "off"; - gpios = <&front_leds 0 GPIO_ACTIVE_HIGH>; + gpios = <&front_leds 0 GPIO_ACTIVE_LOW>; }; }; From patchwork Mon Jun 13 09:51:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Potin Lai X-Patchwork-Id: 12879252 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 58B58C433EF for ; Mon, 13 Jun 2022 09:57:15 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/z9ohxiaD4UV58EoMMLQgFqknlvnCVKHiyCSzsNpKEg=; b=hcO5W/ENxbucT7 mYUl9gbKJp5U2O+qKmyji+7JyXRmH8SJvSzhAU+M9jOpUAeYFN5lBOtqSzPvBy7sJkQBlWo9+Gspl +6LLR26t9bIkit2Ub4W7DEvGIscQTukJm0n6odRZ7m3xeDjE8wZ0UblIeXwoKKB7w49yzFP9G32Wf mMaNrU6XveaRYMECm0/npmh3MQ9eXsZDPkseqjh3+5r3uACSxfpZHvR3O+/Q/4oNB+AhZIs9lDfnQ dp5Sf+K6jphuCoX6QzXeLrymmLgeiDTUi5jGOsqwrfejQGxAceInewwTlLVMTXlsGvHZG5udgkxsF fRFYtZLiYNaB6iXc4j1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0gnm-002gvy-3m; Mon, 13 Jun 2022 09:56:06 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0glq-002fxl-F3 for linux-arm-kernel@lists.infradead.org; Mon, 13 Jun 2022 09:54:08 +0000 Received: by mail-pl1-x634.google.com with SMTP id o6so4680488plg.2 for ; Mon, 13 Jun 2022 02:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YNhd/FL425kRzxrVXJkEkRoau5KOg53TFkVnNDFPTbE=; b=Z7e+Rur4inXUcXgthnaZ2pFOzXXfJ4X9KNFxNHhLbA5Qgu72efS6R7e+aLk46rVlvU LzIIcs0bLiuAz75WUXtqcngkZtE35Yi+nB3KDs/BczEiMc0P2S1XEFu8LxmXJa4QH/DX i/yv0BZL9zlbn+i0dsx/u9YGmKY0I75MmH2TWYrbU4VdlxWIbpuWfQghvNTe3SYgD217 eCOQ+F+7nfqe5tDizUYOyZVEdNBeT75E6/TpI/XSKM3m+TG/11YpBoxmNonTeXmgRTzx +KcySB4bijDlaHEBcS+qRXOrxsArCUoW9dvnRtJV3SVJ5YiiNqIYfD7Fz+6hPHDnP8DA JKuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YNhd/FL425kRzxrVXJkEkRoau5KOg53TFkVnNDFPTbE=; b=NtpazINeOPvV2wjuKvKuXhVqmhhhdexLAnl63VWUwBERAoeFY18kDvisExPG8/61Oo 2nmP0QM//JARHTGWTGMDKuHZMAmqAAfsGJoYasG2zIm2HCZtD5n9NZlepB2KFadTkA9y 9Yz1Cj0FHepk8jfS7ieTkZ0qDhJ21a2wofRNsP7A/p9B9quEjdxWwu/w/D0/JXuOhIrC wWXm+17Rj/sW5L9mnEBEjM88Pvo2ygEWuOOB/yLFO/Gdwt0jlGY5OMIosooNrwFZRtiD qPMY4kLBeW7OuM2eU7AoIXAxywSepsd3BVQPQfEcgKeLdo/fs5pJaggf+spzWgosy6Xo bsMg== X-Gm-Message-State: AOAM530x5qcahHeDo6bSqQh0/WRC6qPsNRYESa3Bj5d9rGB1quWtgpDB hPXupRuCFvrq7sJ02MPLmFk= X-Google-Smtp-Source: ABdhPJznuSGMGqWN1zmUDGm+Kr7nnDXOF2Q4rVuh1OdEp2S2Y4/rSDjXL8ek0riyUPHc6euHt2GqeQ== X-Received: by 2002:a17:902:d481:b0:167:770b:67c with SMTP id c1-20020a170902d48100b00167770b067cmr40584528plg.77.1655114042596; Mon, 13 Jun 2022 02:54:02 -0700 (PDT) Received: from potin-quanta.dhcpserver.local (125-228-123-29.hinet-ip.hinet.net. [125.228.123.29]) by smtp.gmail.com with ESMTPSA id 19-20020a170902e9d300b001639f038250sm4639754plk.220.2022.06.13.02.54.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 02:54:02 -0700 (PDT) From: Potin Lai To: Rob Herring , Joel Stanley , Andrew Jeffery Cc: Patrick Williams , Potin Lai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, Potin Lai Subject: [PATCH 2/4] ARM: dts: aspeed: bletchley: disable GPIOV2 pull-down Date: Mon, 13 Jun 2022 17:51:48 +0800 Message-Id: <20220613095150.21917-3-potin.lai.pt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220613095150.21917-1-potin.lai.pt@gmail.com> References: <20220613095150.21917-1-potin.lai.pt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220613_025406_566451_D50D2428 X-CRM114-Status: GOOD ( 10.25 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The external pull-up cannot drive GPIOV2, so disable GPIOV2 internal pull-down resistor by the request form HW team. Signed-off-by: Potin Lai --- arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts index d34bfa50620e..ee33cc3efae4 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts @@ -860,6 +860,9 @@ }; &gpio0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpiov2_unbiased_default>; + gpio-line-names = /*A0-A7*/ "","","","","","","","", /*B0-B7*/ "FUSB302_SLED1_INT_N","FUSB302_SLED2_INT_N", @@ -950,3 +953,10 @@ &ehci0 { status = "okay"; }; + +&pinctrl { + pinctrl_gpiov2_unbiased_default: gpiov2 { + pins = "AD14"; + bias-disable; + }; +}; From patchwork Mon Jun 13 09:51:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Potin Lai X-Patchwork-Id: 12879254 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 0C9E1C43334 for ; Mon, 13 Jun 2022 09:58:13 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZhN70Mxsi59pKP9huFQsSxt0okpPQ2dnHm0tLWDGRxw=; b=V0hODZScdoLYAK YqLPtEu5RomXA/5JEM5v0UHFTH1qm6gQeifz9lVEB+buLt+LnA9wIS+xxkSalmLGYXEtE122486cr mlbphjldwiDVAeuMEJ9FNzf+YH+VNeoVlIH7jIuR4LMPZ9ZGwGO2bWaSez5MkZvS8Zjgy3hrGVJWi A6TzlccPp8wOpNwNRbjdFDgF8jijyWpzK5VsV+jAj6Hf2ZMdRSqSn69kcFs4JtMJXg+v0NTFjQ6n4 R7T6VHKsyclHklFRTg87Xc8ttbn/pNEz1+yTXgI8hJGyHDn74fUqz1OOVStpkFk3UDSO21WP1MPBf b11o3raWPZ+otYppVPww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0go8-002hCD-Ed; Mon, 13 Jun 2022 09:56:28 +0000 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0glq-002fzm-Ki for linux-arm-kernel@lists.infradead.org; Mon, 13 Jun 2022 09:54:08 +0000 Received: by mail-pl1-x62c.google.com with SMTP id u18so4677850plb.3 for ; Mon, 13 Jun 2022 02:54:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=u0NPneZZ9r0x4Kp8TclBRmjdl0tXAndSbSU1SBOWrP4=; b=aZRWYoBcDfcD6fB9QGEddxaw1as+HrnOVFyOdoq0/lJ7Xsy3XmVMhiUC3Dck89rqxg dQEXNHsXxoZsBMoNRVv/Mk7nL7nRICE9qlEhypAdGv8JP+CiPFz7fsrMRSrmRVzBYhqV 69k+OEhlN2HJIPP1Ntll+fh/tLs49QUl1L6nLH2l20o8Nkj2Exs1Pz39AN71391pNTeO Hh7BqBYYNWMDgd6BQkDsfORl4SaQaI2Nd1QlXAcIlstHkWFbf2sQALiDom25ttP6/EyA eo5QbnAOlicF6qcgGrJXJryjxKq85Xfe16a0lq44zoMpuYlj7+9bhRsk34LL0bqjmxAu xyvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=u0NPneZZ9r0x4Kp8TclBRmjdl0tXAndSbSU1SBOWrP4=; b=hGLmFzgAQ5uqeIG3KbshKeFNI+Fw1A/vBxKqozEmCTM45CgAT+/9CGVc6+91g/M1Ta 86YItF81h01tVcZ2au6DQ5G0up5TM6nbXoeOQgTCHO/CjzbPZ+vI7y97vwGUOqZMtLdY fLimW31E+MiBEm9pI/IyeF4x27vg/CwIZg9gLVOiffLOsUTpFGUf9tlAdbIJI+KVnqza P8sz/ByKtYmACJ6kHnZTA4bE2Y+b2P1LJ7LnIuOvZbX5lAVHuCChePZD5bycCFccVDXy Ol+/fP0AuhmF5q2d6Lkj3N58AVNoRMtVUBYNMrS4AXOZB0MmPmQOlJNd0oMXNDtPraW1 RxRQ== X-Gm-Message-State: AOAM532NyZ4OdTnRJinTNL8TH45fMDIzAKL3YxfDtnCt4FdOfyquD4y9 XL/cuTQcQ2Hs5qX12esRrZbvo9CcpcdyehFl X-Google-Smtp-Source: ABdhPJyD4dRXQpY85ssRFCE8v1mSl/0QR8h2yF5BwpSNP0u5z+9EM62TKZRSwpmafayM8jgnpOo6gw== X-Received: by 2002:a17:902:e845:b0:163:ebca:a025 with SMTP id t5-20020a170902e84500b00163ebcaa025mr58149773plg.81.1655114044566; Mon, 13 Jun 2022 02:54:04 -0700 (PDT) Received: from potin-quanta.dhcpserver.local (125-228-123-29.hinet-ip.hinet.net. [125.228.123.29]) by smtp.gmail.com with ESMTPSA id 19-20020a170902e9d300b001639f038250sm4639754plk.220.2022.06.13.02.54.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 02:54:04 -0700 (PDT) From: Potin Lai To: Rob Herring , Joel Stanley , Andrew Jeffery Cc: Patrick Williams , Potin Lai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, Potin Lai Subject: [PATCH 3/4] ARM: dts: aspeed: bletchley: bind presence-sledX pins via gpio-keys Date: Mon, 13 Jun 2022 17:51:49 +0800 Message-Id: <20220613095150.21917-4-potin.lai.pt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220613095150.21917-1-potin.lai.pt@gmail.com> References: <20220613095150.21917-1-potin.lai.pt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220613_025406_764577_CAF68E91 X-CRM114-Status: GOOD ( 10.25 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Bind presence-sledX pins via gpio-keys driver to monitor and export GPIO pin values on DBUS using phosphor-gpio-presence service. Signed-off-by: Potin Lai --- .../dts/aspeed-bmc-facebook-bletchley.dts | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts index ee33cc3efae4..7b6de9b51547 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts @@ -190,6 +190,41 @@ gpios = <&sled6_leds 1 GPIO_ACTIVE_LOW>; }; }; + + gpio-keys { + compatible = "gpio-keys"; + + presence-sled1 { + label = "presence-sled1"; + gpios = <&gpio0 ASPEED_GPIO(H, 2) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + presence-sled2 { + label = "presence-sled2"; + gpios = <&gpio0 ASPEED_GPIO(H, 3) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + presence-sled3 { + label = "presence-sled3"; + gpios = <&gpio0 ASPEED_GPIO(H, 4) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + presence-sled4 { + label = "presence-sled4"; + gpios = <&gpio0 ASPEED_GPIO(H, 5) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + presence-sled5 { + label = "presence-sled5"; + gpios = <&gpio0 ASPEED_GPIO(H, 6) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + presence-sled6 { + label = "presence-sled6"; + gpios = <&gpio0 ASPEED_GPIO(H, 7) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; }; &mac2 { From patchwork Mon Jun 13 09:51:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Potin Lai X-Patchwork-Id: 12879259 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 87BE4C433EF for ; Mon, 13 Jun 2022 09:58:34 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iQIOFdCWZu9LY6wY1f57Cmy/Se9OWmnuHdLJIX/DnqM=; b=ylWGBokENRDK5C MXE2ovYwLyUJK74Z9ouBboMG5KZIGii/C+puy+lhim/bQnW8K1/l4tEiW/ztO3gzTja16jwUchxyU 2/HsIHfGlldpb9FfqCpoxwNGdOSYFtARMwGKeYNCPOurQf5lBHO3RLsgjBr6o36u7eLCt1q8kp8PS qVDjRxS/Ms8Wuk76PXJH7uN+XcpPtvJND9zIaGSBD2ooIHRz4uV3ScIZRJAvnC5X0y96ZnPfxnhrA FAEtmtWiaiFQxvnB8vXyzNRRbIBBa7XOos53ceqcQsEyKELFjDRUlwjns2gly2UwterH1NBXZSE0n KqsWJr2Shsi+0Y7K1oRw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0got-002hmB-IK; Mon, 13 Jun 2022 09:57:15 +0000 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0gls-002g1E-Fc for linux-arm-kernel@lists.infradead.org; Mon, 13 Jun 2022 09:54:11 +0000 Received: by mail-pj1-x1029.google.com with SMTP id gd1so5173050pjb.2 for ; Mon, 13 Jun 2022 02:54:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=erc0cF0H69wNUT+Fr3YuZFhUNW2gCbs/AEVN/v4U6VE=; b=qEH2xUwt6QE+bDHotqWVLLYfc+6yrZjyHxzXPLyeUfRXD5Zzzaxh9lLTofaAc4EP0U lbj+KyYoi+7cnBpus7ALuZ67EHXdxxlKghYCoZyfL0RLL3AWsjxDfaXNX+U9nD6uaxfr J3VGgciJXyMaYrurVsPoufT94gGlVA3JNfgNQmsB9Gn/cVFdgZA7BGjAS8AmUKRD8LJh 4sAHKg1hApMuoylXtEFyiNndh3XhAvNbeXr89nHQ+5/D62hmZMCYHveJCfyvqEcMO0eq WliT9Mv69nv8DdXG6gg3/JuyZEnsVq+lN8gitIcSKv1+R2Doafq08kjeQPvcx8LBwO6U n1fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=erc0cF0H69wNUT+Fr3YuZFhUNW2gCbs/AEVN/v4U6VE=; b=meQHOAmDJlWAw+QKTAsGYbEyGQ9fOstawuquLRvZM0TMYByIYlyd1docfpY19pqkzz Ot3rfBlOQvCrCHDrHszYtOoTkeVdOLfUBD2QWbkoKg5U7LUu0eMmzxYvEKhS4ACZ1fXi Hfy+eptq1j/4DyZV1ue2QsB4B4gcoDG19+HCMEeJyKw6u00iuUT0Cc7v8PpgFXswSWCD xH5g4LCUNaU+9EmTVhv0w4xjVJD2Pcjd1xuAlqESv0n1ZfdI86YdK2C7u3eyf0n16gSz v6yesSUZOqzPV+1LayELZoz8F1u8qZMZ0fGqgllo2GpdSANa7GGS8qM7ZOT87CeOrWaY t7ug== X-Gm-Message-State: AOAM531OZlccK0nm5djNzrrx9wrP+92G9CNUgLsJ/l3Q3MXf3weMLyvm AwZ5I2NNB2EX44DnvITb3vo= X-Google-Smtp-Source: ABdhPJwgoF4t8LjwUPn6oaVyQHoakaWUU1XeGOYjr2dzzXgmP4s+IQ6ppGbNq4FSt7nL1UhQ/pW6Yg== X-Received: by 2002:a17:902:f64c:b0:156:4349:7e9b with SMTP id m12-20020a170902f64c00b0015643497e9bmr58999092plg.139.1655114046570; Mon, 13 Jun 2022 02:54:06 -0700 (PDT) Received: from potin-quanta.dhcpserver.local (125-228-123-29.hinet-ip.hinet.net. [125.228.123.29]) by smtp.gmail.com with ESMTPSA id 19-20020a170902e9d300b001639f038250sm4639754plk.220.2022.06.13.02.54.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 02:54:06 -0700 (PDT) From: Potin Lai To: Rob Herring , Joel Stanley , Andrew Jeffery Cc: Patrick Williams , Potin Lai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, Potin Lai Subject: [PATCH 4/4] ARM: dts: aspeed: bletchley: update fusb302 nodes Date: Mon, 13 Jun 2022 17:51:50 +0800 Message-Id: <20220613095150.21917-5-potin.lai.pt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220613095150.21917-1-potin.lai.pt@gmail.com> References: <20220613095150.21917-1-potin.lai.pt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220613_025408_597786_35075B10 X-CRM114-Status: GOOD ( 11.84 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 1. Add interrupt pin of fusb302 on each sled. 2. Add vbus-supply property in each fusb302 node. 3. Fix BMC power-role at source and data-role at host. 4. Disable PD to avoid "HARD Reset" due to incompatible PD ver. Signed-off-by: Potin Lai --- .../dts/aspeed-bmc-facebook-bletchley.dts | 150 ++++++++++++------ 1 file changed, 102 insertions(+), 48 deletions(-) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts index 7b6de9b51547..9fdb3d17596b 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts @@ -225,6 +225,60 @@ linux,code = ; }; }; + + vbus_sled1: vbus_sled1 { + compatible = "regulator-fixed"; + regulator-name = "vbus_sled1"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&sled1_ioexp 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + vbus_sled2: vbus_sled2 { + compatible = "regulator-fixed"; + regulator-name = "vbus_sled2"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&sled2_ioexp 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + vbus_sled3: vbus_sled3 { + compatible = "regulator-fixed"; + regulator-name = "vbus_sled3"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&sled3_ioexp 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + vbus_sled4: vbus_sled4 { + compatible = "regulator-fixed"; + regulator-name = "vbus_sled4"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&sled4_ioexp 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + vbus_sled5: vbus_sled5 { + compatible = "regulator-fixed"; + regulator-name = "vbus_sled5"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&sled5_ioexp 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + vbus_sled6: vbus_sled6 { + compatible = "regulator-fixed"; + regulator-name = "vbus_sled6"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&sled6_ioexp 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; }; &mac2 { @@ -336,17 +390,17 @@ compatible = "fcs,fusb302"; reg = <0x22>; + interrupt-parent = <&gpio0>; + interrupts = ; + vbus-supply = <&vbus_sled1>; + connector { compatible = "usb-c-connector"; label = "USB-C"; - power-role = "dual"; - try-power-role = "sink"; - data-role = "dual"; - source-pdos = ; - sink-pdos = ; - op-sink-microwatt = <10000000>; + power-role = "source"; + data-role = "host"; + pd-disable; + typec-power-opmode = "default"; }; }; @@ -422,17 +476,17 @@ compatible = "fcs,fusb302"; reg = <0x22>; + interrupt-parent = <&gpio0>; + interrupts = ; + vbus-supply = <&vbus_sled2>; + connector { compatible = "usb-c-connector"; label = "USB-C"; - power-role = "dual"; - try-power-role = "sink"; - data-role = "dual"; - source-pdos = ; - sink-pdos = ; - op-sink-microwatt = <10000000>; + power-role = "source"; + data-role = "host"; + pd-disable; + typec-power-opmode = "default"; }; }; @@ -508,17 +562,17 @@ compatible = "fcs,fusb302"; reg = <0x22>; + interrupt-parent = <&gpio0>; + interrupts = ; + vbus-supply = <&vbus_sled3>; + connector { compatible = "usb-c-connector"; label = "USB-C"; - power-role = "dual"; - try-power-role = "sink"; - data-role = "dual"; - source-pdos = ; - sink-pdos = ; - op-sink-microwatt = <10000000>; + power-role = "source"; + data-role = "host"; + pd-disable; + typec-power-opmode = "default"; }; }; @@ -594,17 +648,17 @@ compatible = "fcs,fusb302"; reg = <0x22>; + interrupt-parent = <&gpio0>; + interrupts = ; + vbus-supply = <&vbus_sled4>; + connector { compatible = "usb-c-connector"; label = "USB-C"; - power-role = "dual"; - try-power-role = "sink"; - data-role = "dual"; - source-pdos = ; - sink-pdos = ; - op-sink-microwatt = <10000000>; + power-role = "source"; + data-role = "host"; + pd-disable; + typec-power-opmode = "default"; }; }; @@ -680,17 +734,17 @@ compatible = "fcs,fusb302"; reg = <0x22>; + interrupt-parent = <&gpio0>; + interrupts = ; + vbus-supply = <&vbus_sled5>; + connector { compatible = "usb-c-connector"; label = "USB-C"; - power-role = "dual"; - try-power-role = "sink"; - data-role = "dual"; - source-pdos = ; - sink-pdos = ; - op-sink-microwatt = <10000000>; + power-role = "source"; + data-role = "host"; + pd-disable; + typec-power-opmode = "default"; }; }; @@ -766,17 +820,17 @@ compatible = "fcs,fusb302"; reg = <0x22>; + interrupt-parent = <&gpio0>; + interrupts = ; + vbus-supply = <&vbus_sled6>; + connector { compatible = "usb-c-connector"; label = "USB-C"; - power-role = "dual"; - try-power-role = "sink"; - data-role = "dual"; - source-pdos = ; - sink-pdos = ; - op-sink-microwatt = <10000000>; + power-role = "source"; + data-role = "host"; + pd-disable; + typec-power-opmode = "default"; }; };