From patchwork Mon Feb 7 23:06:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Apitzsch?= X-Patchwork-Id: 541301 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D402CC433F5 for ; Tue, 8 Feb 2022 01:06:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237800AbiBHBFN (ORCPT ); Mon, 7 Feb 2022 20:05:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245543AbiBGXJn (ORCPT ); Mon, 7 Feb 2022 18:09:43 -0500 Received: from smtprelay05.ispgateway.de (smtprelay05.ispgateway.de [80.67.18.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82BBBC0612A4; Mon, 7 Feb 2022 15:09:43 -0800 (PST) Received: from [92.206.166.137] (helo=note-book.lan) by smtprelay05.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nHD6w-0001JC-Rm; Tue, 08 Feb 2022 00:07:54 +0100 From: =?utf-8?q?Andr=C3=A9_Apitzsch?= To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-leds@vger.kernel.org, Pavel Machek Cc: Rob Herring , Matthias Brugger , Linus Walleij , =?utf-8?q?Andr=C3=A9_Apitzsch?= Subject: [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add ocs prefix Date: Tue, 8 Feb 2022 00:06:36 +0100 Message-Id: <20220207230638.56730-2-git@apitzsch.eu> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220207230638.56730-1-git@apitzsch.eu> References: <20211117091405.7412-1-git@apitzsch.eu> <20220207230638.56730-1-git@apitzsch.eu> MIME-Version: 1.0 X-Df-Sender: YW5kcmVAYXBpdHpzY2guZXU= Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Add the prefix for Orient Chip Technology. Signed-off-by: André Apitzsch --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 294093d45a23..9ffffa9773ca 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -854,6 +854,8 @@ patternProperties: description: NXP Semiconductors "^oceanic,.*": description: Oceanic Systems (UK) Ltd. + "^ocs,.*": + description: Orient Chip Technology Co., Ltd. "^oct,.*": description: Octavo Systems LLC "^okaya,.*": From patchwork Mon Feb 7 23:06:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Apitzsch?= X-Patchwork-Id: 540983 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA766C43217 for ; Tue, 8 Feb 2022 01:06:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237553AbiBHBFN (ORCPT ); Mon, 7 Feb 2022 20:05:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245537AbiBGXJn (ORCPT ); Mon, 7 Feb 2022 18:09:43 -0500 Received: from smtprelay05.ispgateway.de (smtprelay05.ispgateway.de [80.67.18.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 042BDC061355; Mon, 7 Feb 2022 15:09:42 -0800 (PST) Received: from [92.206.166.137] (helo=note-book.lan) by smtprelay05.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nHD75-0001JC-EC; Tue, 08 Feb 2022 00:08:03 +0100 From: =?utf-8?q?Andr=C3=A9_Apitzsch?= To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-leds@vger.kernel.org, Pavel Machek Cc: Rob Herring , Matthias Brugger , Linus Walleij , =?utf-8?q?Andr=C3=A9_Apitzsch?= Subject: [PATCH v2 2/3] dt-bindings: leds: sgm3140: Document ocp8110 compatible Date: Tue, 8 Feb 2022 00:06:37 +0100 Message-Id: <20220207230638.56730-3-git@apitzsch.eu> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220207230638.56730-1-git@apitzsch.eu> References: <20211117091405.7412-1-git@apitzsch.eu> <20220207230638.56730-1-git@apitzsch.eu> MIME-Version: 1.0 X-Df-Sender: YW5kcmVAYXBpdHpzY2guZXU= Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Signed-off-by: André Apitzsch --- Documentation/devicetree/bindings/leds/leds-sgm3140.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/leds/leds-sgm3140.yaml b/Documentation/devicetree/bindings/leds/leds-sgm3140.yaml index f68259619488..1c345cf16d08 100644 --- a/Documentation/devicetree/bindings/leds/leds-sgm3140.yaml +++ b/Documentation/devicetree/bindings/leds/leds-sgm3140.yaml @@ -18,7 +18,9 @@ description: | properties: compatible: - const: sgmicro,sgm3140 + enum: + - ocs,ocp8110 + - sgmicro,sgm3140 enable-gpios: maxItems: 1 From patchwork Mon Feb 7 23:06:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Apitzsch?= X-Patchwork-Id: 541300 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09248C4332F for ; Tue, 8 Feb 2022 01:06:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238351AbiBHBFP (ORCPT ); Mon, 7 Feb 2022 20:05:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238462AbiBGXJs (ORCPT ); Mon, 7 Feb 2022 18:09:48 -0500 Received: from smtprelay05.ispgateway.de (smtprelay05.ispgateway.de [80.67.18.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B181C061355; Mon, 7 Feb 2022 15:09:47 -0800 (PST) Received: from [92.206.166.137] (helo=note-book.lan) by smtprelay05.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nHD78-0001JC-EZ; Tue, 08 Feb 2022 00:08:06 +0100 From: =?utf-8?q?Andr=C3=A9_Apitzsch?= To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-leds@vger.kernel.org, Pavel Machek Cc: Rob Herring , Matthias Brugger , Linus Walleij , =?utf-8?q?Andr=C3=A9_Apitzsch?= Subject: [PATCH v2 3/3] leds: sgm3140: Add ocs,ocp8110 compatible Date: Tue, 8 Feb 2022 00:06:38 +0100 Message-Id: <20220207230638.56730-4-git@apitzsch.eu> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220207230638.56730-1-git@apitzsch.eu> References: <20211117091405.7412-1-git@apitzsch.eu> <20220207230638.56730-1-git@apitzsch.eu> MIME-Version: 1.0 X-Df-Sender: YW5kcmVAYXBpdHpzY2guZXU= Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Orient-Chip's ocp8110 has the same pin configuration as the sgm3140. The data sheet can be found at: https://cdn.datasheetspdf.com/pdf-down/O/C/P/OCP8110-OrientChip.pdf Signed-off-by: André Apitzsch --- drivers/leds/flash/leds-sgm3140.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/leds/flash/leds-sgm3140.c b/drivers/leds/flash/leds-sgm3140.c index f4f831570f11..d3a30ad94ac4 100644 --- a/drivers/leds/flash/leds-sgm3140.c +++ b/drivers/leds/flash/leds-sgm3140.c @@ -290,6 +290,7 @@ static int sgm3140_remove(struct platform_device *pdev) } static const struct of_device_id sgm3140_dt_match[] = { + { .compatible = "ocs,ocp8110" }, { .compatible = "sgmicro,sgm3140" }, { /* sentinel */ } };