Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1034686pxf; Thu, 25 Mar 2021 22:35:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSTuhd13j7GOdK8B8CM+p/qybJ0X14icJdZ2ws7VEzw8Eu8Tfh6WgkmKfCyha9ezaIu2xS X-Received: by 2002:a17:906:7194:: with SMTP id h20mr13352926ejk.154.1616736921718; Thu, 25 Mar 2021 22:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616736921; cv=none; d=google.com; s=arc-20160816; b=jxhZrstZiWe7v67q5BQ3rkMIf64tlYGdrg8eFGhuXBVQV3CvWogoR3LEQYI/qWbhcY vStQT7VFx77B7aFWb4NMT905CIHctVUIbObLJph5nYvu860FXNJ6bRUrlQD3xjdsuB/l Ge23GRnBkOy+FWt/TIy3eff/TV7pnq7A94F9WUOhAX4VTM3g1NO/wViepayVrzIKc3RN 1nycwR0xAx7IVOgT+rQVWyNkbFjdUHRC4HRoEJHWIVcKasuJ2VBtsiep6s5OMIWBGQcL g0gBHcZWEj77PNA/5v9KbioPo8XOnhE+10mdDpqYKHCdSQozKZLcYfDGgsacueZXy0aq JzdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=8d3dIdNCbdJWcGJMvMj4HnBGxxDVIsB7BROmN+qX1tk=; b=r5sIociG3nVVzlS6jA9Xj3vAJr0rEH7vsMXB0QanrDJZY/j3l3d8rdvMS57w5qkdCt usYYfJY1oUIcF97yzpyA6Ez/c5taRBeLU9/pquCnTgsQii2V7eOScBiWelHLmWjBzYi7 F/dbJYs3QZYWfYsKvIm5pDqqsfF902Jls/p1Tj2Jwfh9OuQ+pUAwELScappx5UEUM5T9 T9spfjoPrH9i0zrJrbITvy+qOp4hqowp/ndvcq5mUAbvzCaxtAIuXHN82ex6qkLByIz9 1iJTFimyX8VP2GE/ucr27Eu8b93JkER9ApuDplIaxkqo/75ARhPYoelwX7S1Ol/HMxsW KBEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b="gbtSW/uw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l19si5721870ejz.43.2021.03.25.22.34.58; Thu, 25 Mar 2021 22:35:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b="gbtSW/uw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229869AbhCZF25 (ORCPT + 99 others); Fri, 26 Mar 2021 01:28:57 -0400 Received: from smtp2.axis.com ([195.60.68.18]:6449 "EHLO smtp2.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229761AbhCZF2t (ORCPT ); Fri, 26 Mar 2021 01:28:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1616736529; x=1648272529; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=8d3dIdNCbdJWcGJMvMj4HnBGxxDVIsB7BROmN+qX1tk=; b=gbtSW/uw639nWQvx887Kg2gzjsGRbcKNMyfkjxkFaImtD1RnV3Sln2bC nXm9O1SEEbwJiMu1nx6mKnpmumsAdqrXEpG3tj+K9qumHy039CaTvqkl5 4i2DHOr8DIqt3eUhKZyJKDvjihuSrIT6df/LyKde0KcuYwUs4IiSCOgG2 shI/GeGuc80s0B3J4imHmCLM+01U9bbvPPGgixGept2KGGGLETey0x81F /Zf/BP2KNAdGn2szzvUW5KH6bzyGKo6t5aRYjNPU3YKd7h45yaWzba19o IW1QwberW7BT3qLT+ftJG2fHHe0NIIA+lxibG4fKTJXfMPXL9OOVOv3PE Q==; From: Hermes Zhang To: , , CC: , , , , , Subject: [PATCH v2 0/2] New multiple GPIOs LED driver Date: Fri, 26 Mar 2021 13:27:59 +0800 Message-ID: <20210326052801.17666-1-chenhui.zhang@axis.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hermes Zhang changes v2: - use max_brightness(=2^gpio number) instead of LED_FULL - alloc priv at once - move driver code to new simple folder - update commit message for dt-binding commit - move dt-binding commit before driver code Hermes Zhang (2): dt-binding: leds: Document leds-multi-gpio bindings leds: leds-multi-gpio: Add multiple GPIOs LED driver .../bindings/leds/leds-multi-gpio.yaml | 50 ++++++ drivers/leds/Kconfig | 3 + drivers/leds/Makefile | 3 + drivers/leds/simple/Kconfig | 23 +++ drivers/leds/simple/Makefile | 3 + drivers/leds/simple/leds-multi-gpio.c | 144 ++++++++++++++++++ 6 files changed, 226 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-multi-gpio.yaml create mode 100644 drivers/leds/simple/Kconfig create mode 100644 drivers/leds/simple/Makefile create mode 100644 drivers/leds/simple/leds-multi-gpio.c -- 2.20.1