From patchwork Mon Dec 13 09:40:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 12695856 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 88B85C433FE for ; Mon, 13 Dec 2021 09:46:53 +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:MIME-Version: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:In-Reply-To:References: List-Owner; bh=m86kMmWaxQM86QkeoeeA8JK1bWyDoHN/4nOALRJF1pE=; b=V2oEMidQlC8Jfo vf8eXYsrst9EsbxI2H+N8lz9cxyqNOcLB+uCvWW4LIEmXYdjG7TwwQpNCKEm06LceDEu/M8/1xbEr 6EylIRaQuJPGxNftRfpEWt8falMBCeZ3JDIfVqUFlUdEZL0FR/C1oPE7IfhN7BADvMkpJPFcGTutw INRlm/K+1/Zx0c8ii3bGMBqxDPbTCFtQYL1Ts47NS98aeBjUUdpEO3La+Q/hmeBcBLAyQbWWJtehB nLVqJ4fLe8kBUZuxr4l6MfR3qHj4TWMkeKGIOIvBXjCD/ka04LYAWVMzeaofaTOh0hhAU1mGRv7Un g0EwNgoABYdsvxx9FRmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwhsw-008iny-18; Mon, 13 Dec 2021 09:44:45 +0000 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwhpD-008hRh-Eb for linux-arm-kernel@lists.infradead.org; Mon, 13 Dec 2021 09:40:53 +0000 Received: by mail-pg1-x532.google.com with SMTP id 200so5244738pgg.3 for ; Mon, 13 Dec 2021 01:40:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yJJIkvkgCUgy0Bnr8sTa1h8wUIUSrsU0wq9uYf92fAg=; b=OHbCXvqdFWCy9fI4cOobFHeTChcJafP95KYGGeBIpuKnVw1/g/9jYkJURh3vXQLC4D nglaglCvZb91mNE3cMKDjf00t5sBoEoN9yoU1lxG336RlYI4pzXsBmvCO/i0UD69MUXD v0yGSrCAnjaK9vxeLkUTrr6SwSD1Sdk/fCnQc= 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:mime-version :content-transfer-encoding; bh=yJJIkvkgCUgy0Bnr8sTa1h8wUIUSrsU0wq9uYf92fAg=; b=clK3Q9bAt8nLz6sGVcZlg3dha9ZzObBuWJ1i/IZUdL+EB5kyfYFkxez40Ay3/AddU5 P9PpwnIGcCbl/nRl3U5HEZUA5SHKXdylIH4GAfTjsRFVg2avy2nBsT+zaX+HlVUap6bV lzkZhyrpn47eZUjlWZpyS5jTvRiyI+5IB4ePq3M6BjTpLz7v1D0rv68q1/bmDVkQxuTJ awIHJOHwTGaORPnGe2Qh4cxxVSHplxRoiqn/LJWxCak9N+4XJ16ZT0C9tnGQAtb4bkS3 EBkJFugx7T9TD81X9rSXCeUtWVIdLObNWTi/YDRvirwszgoi8WKMjK6cttuK5zUVNV04 h1FQ== X-Gm-Message-State: AOAM5331IuPoUYHMUzcCX/PWUkHLcZRzf60Liv5adauJtVCEZIzHd7sR L/kzrfffNiXG+WLG5z2TDn2Flg== X-Google-Smtp-Source: ABdhPJyGmBG0e9IkI3PggZ6vlLRHWZbOsipMG905x7iNuc3pYZ+ygr1loGaIeGk7ZlbjomoAKYRe4A== X-Received: by 2002:a63:8849:: with SMTP id l70mr8316939pgd.433.1639388449926; Mon, 13 Dec 2021 01:40:49 -0800 (PST) Received: from shiro.work (p864106-ipngn200510sizuokaden.shizuoka.ocn.ne.jp. [180.9.58.106]) by smtp.googlemail.com with ESMTPSA id d195sm10237609pga.41.2021.12.13.01.40.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 01:40:49 -0800 (PST) From: Daniel Palmer To: linus.walleij@linaro.org, brgl@bgdev.pl, linux-gpio@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Palmer Subject: [PATCH v3 0/5] gpio: msc313: Add gpio support for ssd20xd Date: Mon, 13 Dec 2021 18:40:31 +0900 Message-Id: <20211213094036.1787950-1-daniel@0x0f.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211213_014051_651997_825F2FFA X-CRM114-Status: GOOD ( 14.60 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Linus and Bartosz, As suggested by Linus I have dropped the DTS commits that were in the series to add a usage of this code to a target. If possible can you take the first 4 commits for the GPIO driver for me? The final DTS commit will go via our tree. Original blurb: This is a little series to add a compatible string for the Sigmastar SSD201 and SSD202D to the msc313 gpio driver, add the specific offsets for the pins on these chips. Changes since v2: - No code changes, dropped the UnitV2 DTS bits. I'll send a new series for that later. Changes since v1: - Add a fix for the led binding to squash the warning about the activity trigger in the unitv2 dts. - Fix up the regulator node names so they pass dtb check Daniel Palmer (5): dt-bindings: gpio: msc313: Add compatible for ssd20xd dt-bindings: gpio: msc313: Add offsets for ssd20xd gpio: msc313: Code clean ups gpio: msc313: Add support for SSD201 and SSD202D ARM: dts: mstar: Set gpio compatible for ssd20xd .../bindings/gpio/mstar,msc313-gpio.yaml | 4 +- .../boot/dts/mstar-infinity2m-ssd20xd.dtsi | 5 + drivers/gpio/gpio-msc313.c | 266 +++++++++++++++++- include/dt-bindings/gpio/msc313-gpio.h | 71 +++++ 4 files changed, 341 insertions(+), 5 deletions(-)