From patchwork Sun Oct 3 06:53:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: INAGAKI Hiroshi X-Patchwork-Id: 1535738 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=lYxN54E+; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=BqCQ1VHD; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HMZTD5hZLz9t0k for ; Sun, 3 Oct 2021 17:59:12 +1100 (AEDT) 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:MIME-Version: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=f29yVKNagGFtMheYoG0drzcVhtL6iF0u+nTrkAMnCSI=; b=lYxN54E+3xdApV vfbRJBzinb3bbA9+AIjzf/OeYuEJS6AaspDNpOQ0FB1x+pypQyFhJpw8Ze6WzBmPxSY0McRp0CDLT qcmcUsnDfu4EgiALm2T7o6hh5DwkMCa2Q7isOSYyJ+DITDcrnMOuOGMwMrxaRsPyjZOH3YFuZSpm4 7eXo9VIekD2Y8lmaLHVnPEQNpZ9yBFvD4igpoHT3pei/oBr2N2H7Spu7Sk8Vh7EddXNAWsL3Xw473 Tg7yQOmiWIJHr/fb+1cGRLDs0JnFJ8YjECddBDf1Hs5YB+PxnEslGLspCG2z741m8gNImjkziQFwF wYvIp8FR49979Ot1VRTg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mWvOi-003ILf-TT; Sun, 03 Oct 2021 06:54:57 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mWvOF-003II4-B0 for openwrt-devel@lists.openwrt.org; Sun, 03 Oct 2021 06:54:29 +0000 Received: by mail-pj1-x1033.google.com with SMTP id r7so9311001pjo.3 for ; Sat, 02 Oct 2021 23:54:25 -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 :mime-version:content-transfer-encoding; bh=yqX5cloWafgUsgnxGfhidXEGqZgz2E37ugaDc36tJZQ=; b=BqCQ1VHD7AlvPW5Ea+/97I8AwEXsjlrw+YEN1vpVLnWXdsxhylQjPUi79xyyYus+aR 6ohifEItk30nOTRtyA2gbc9cuiSCiwy89HIJMR3QsEwTz/sOmVm3yrnzhIP08MywaZlU 8rvDQJV0o35h8nHtIqlyYwIn3Ma53C9+wCK0ANisF7EhYmsCzXIHZUvpTEV3QccguKX9 BGm7x68aSW/ueRpIt8cBham8LcKHET9BCr79ITtFOgEwihr0qSSuJYhiIlY8qETlEOE2 ZtwhsGXLV8K6mEt24ZiWxUFnF8Hr6gDsviJlf+eGgVhQdsmepUi3PZvtAhmEIHFk2Hus u8eg== 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:mime-version:content-transfer-encoding; bh=yqX5cloWafgUsgnxGfhidXEGqZgz2E37ugaDc36tJZQ=; b=UZuLx8E6DGQORfANfHHPttF1dFSDhJDuUSnSCFOQaid5mNuBtKBnDxSJcQ7DNYXJUq ZBzqk7It3BX/QKkIWt4evlYx5WYZ3aFZHu7AA4oEo7J3jPGZf6r7eJdtGRvQMq71tkvI J+1Ls3v6H4F80YIk/fS0Io3KY5Y7th9joUSsBwths6fEJ/JcV6CfH+1qytaZx6zAfqri Ud02nvZnZVW4nD5OmPA6ugz+4o7Qd77nvSXm0+Q7rufklGpMJzrK2KF9/J+PSChtLe8t vq/6yi8QKlskKRREFAMpXtOB0RlUA8w12bDVg5yIL28LqaB726Igvi2Dao3laWyzcMhY u7zw== X-Gm-Message-State: AOAM5332T+PdKqFb2F4g41GEkjSpUQ7Y9CBKpe0xcI1CpAuY6J9ifCSY 4tL/bEcx+PE7DvCjJfHx2GZCMluPbhI= X-Google-Smtp-Source: ABdhPJxyWYolfPNL/z0EJAtZOBQMP5vO1KIMStPI/rVfExLUUcQ59NnWmbaX3glr0cXzIcZHAtcqUg== X-Received: by 2002:a17:90a:1942:: with SMTP id 2mr29819003pjh.195.1633244064972; Sat, 02 Oct 2021 23:54:24 -0700 (PDT) Received: from localhost.localdomain ([240b:12:500:6500:2014:3ca1:3cc:a40f]) by smtp.gmail.com with ESMTPSA id e10sm635554pfd.174.2021.10.02.23.54.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Oct 2021 23:54:24 -0700 (PDT) From: INAGAKI Hiroshi To: openwrt-devel@lists.openwrt.org Cc: INAGAKI Hiroshi Subject: [PATCH 1/3] realtek: enable pca953x driver for target Date: Sun, 3 Oct 2021 15:53:47 +0900 Message-Id: <20211003065350.1437-2-musashino.open@gmail.com> X-Mailer: git-send-email 2.33.0.windows.2 In-Reply-To: <20211003065350.1437-1-musashino.open@gmail.com> References: <20211003065350.1437-1-musashino.open@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211002_235427_403637_1F0168D0 X-CRM114-Status: GOOD ( 10.92 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The system status LED on Panasonic Switch-M8eG PN28080K is connected to a PCA9539PW. To use the LED as a status LED of OpenWrt while booting, enable the pca953x driver and built-in to the kernel. Signed-off-by: INAGAKI Hiroshi --- target/linux/realtek/config-5.10 | 3 +++ target/linux/realtek/config-5.4 | 3 +++ 2 files changed, 6 insertions(+) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1033 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [musashino.open[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The system status LED on Panasonic Switch-M8eG PN28080K is connected to a PCA9539PW. To use the LED as a status LED of OpenWrt while booting, enable the pca953x driver and built-in to the kernel. Signed-off-by: INAGAKI Hiroshi --- target/linux/realtek/config-5.10 | 3 +++ target/linux/realtek/config-5.4 | 3 +++ 2 files changed, 6 insertions(+) diff --git a/target/linux/realtek/config-5.10 b/target/linux/realtek/config-5.10 index 1b050fc081..810bacbefa 100644 --- a/target/linux/realtek/config-5.10 +++ b/target/linux/realtek/config-5.10 @@ -69,6 +69,8 @@ CONFIG_GENERIC_TIME_VSYSCALL=y CONFIG_GPIOLIB=y CONFIG_GPIOLIB_IRQCHIP=y CONFIG_GPIO_GENERIC=y +CONFIG_GPIO_PCA953X=y +# CONFIG_GPIO_PCA953X_IRQ is not set CONFIG_GPIO_REALTEK_OTTO=y CONFIG_GPIO_RTL8231=y CONFIG_GRO_CELLS=y @@ -161,6 +163,7 @@ CONFIG_RATIONAL=y CONFIG_REALTEK_PHY=y CONFIG_REALTEK_SOC_PHY=y CONFIG_REGMAP=y +CONFIG_REGMAP_I2C=y CONFIG_REGMAP_MMIO=y CONFIG_RESET_CONTROLLER=y CONFIG_RTL838X=y diff --git a/target/linux/realtek/config-5.4 b/target/linux/realtek/config-5.4 index 5e29879798..8a353dfc32 100644 --- a/target/linux/realtek/config-5.4 +++ b/target/linux/realtek/config-5.4 @@ -72,6 +72,8 @@ CONFIG_GENERIC_SCHED_CLOCK=y CONFIG_GENERIC_SMP_IDLE_THREAD=y CONFIG_GENERIC_TIME_VSYSCALL=y CONFIG_GPIOLIB=y +CONFIG_GPIO_PCA953X=y +# CONFIG_GPIO_PCA953X_IRQ is not set CONFIG_GPIO_RTL8231=y CONFIG_GPIO_RTL838X=y CONFIG_REALTEK_SOC_PHY=y @@ -161,6 +163,7 @@ CONFIG_POWER_RESET_SYSCON=y CONFIG_PSB6970_PHY=y CONFIG_REALTEK_PHY=y CONFIG_REGMAP=y +CONFIG_REGMAP_I2C=y CONFIG_REGMAP_MMIO=y CONFIG_RESET_CONTROLLER=y CONFIG_RTL838X=y