Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp1004567lko; Tue, 13 Jul 2021 14:56:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDlRTG6pyqajqMCgvv6EfZMbNlFUTuoBq5u7FbatzjchvOifvtaHFw9AYAew+J60XPFF6n X-Received: by 2002:a5e:8406:: with SMTP id h6mr4903375ioj.193.1626213366734; Tue, 13 Jul 2021 14:56:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626213366; cv=none; d=google.com; s=arc-20160816; b=pOUyKgiviD5/B5ImLIOxf03NMYiRW4BlnZOWgsJJ0GvFo7WcX5eYqF9pdIK+SVUT/8 NjcFDNubpkSVKWkeK7qJL8upWpqkGUzcl5+gVKS7E2iQxP5flxsz5rMMjWerbKLFiiuM JgFs+pjXLL2bRdvPTJdAovu9rKii5U2uc7/6o4uO4a+qYXatRIPKk7v8+wVQ890NLzlE Eu4gSWS5wwrwLnQZHT0arnOBlX9gcW1UkyhTkzt0CNFHAOjFbAEpFJQ8q4XHoztQSiuQ ge5wp5t4Vy8d/oLv4sFYNuIr3LJQQtxhaa0UEwE/ZJ+/mdSdEcEJDOgNLmj7DCly5FG7 J+3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=vQR14mDYGRZudVO/vm+/uumKq9eJAAdAbt89gWEA6Es=; b=EOup0Bzqr7E7Jbx3S1wSQg9SrqArL39LZrJIjqpZxrceIHD4DyU6o9iIYUE4+q+AFE /E4vDU+zeLaIAI820Xz1mDbscbShS0GD3OjIv24L/uUScSfwhF2253yA8CbwB9p4xbhu 5NLFOMl2B+LPbq8dvKKwdX7CmKwVemb457E3ty/O/Kpp9i66tWSUZzpmIsCZeS6l89De rjA9GRJPBOsKm6Jsi+qtchOFfelZl7JklylpraSRgiv6y3naiIYF8Hhk7tWb889oj6Hq n34W2rwaGtz9t8sj+g8E2P8g9pvDhy0aGvg3wF4etWmsFudQp1LZZgBP5IIHiiUUY3DW 4uvg== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c24si154107ioh.15.2021.07.13.14.55.53; Tue, 13 Jul 2021 14:56:06 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236349AbhGMV5r (ORCPT + 99 others); Tue, 13 Jul 2021 17:57:47 -0400 Received: from mail-io1-f51.google.com ([209.85.166.51]:35660 "EHLO mail-io1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234947AbhGMV5r (ORCPT ); Tue, 13 Jul 2021 17:57:47 -0400 Received: by mail-io1-f51.google.com with SMTP id d9so29084594ioo.2; Tue, 13 Jul 2021 14:54:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=vQR14mDYGRZudVO/vm+/uumKq9eJAAdAbt89gWEA6Es=; b=C9blk4kmjAJVcUVvKgqgOPij8/i7RV0N/U8NdPHW6ORDv+ugdFL0v3kWtAhmurGJuG Tra8gn2vjryUNg6Bbq9G09I1FhDSaicFamf03Xs77fvoa7gvx/n2X8WlQchmqUNDuzqy 9LYwXxzRtT8UosBzhYCDBkGJPzPbHIg4puzWpq7nBSCe+J6K3efO9qdnAOsXnHGMIarJ b49msbR53l5i5BjWeIh07H8SMFeviUM1cosUF8VjFozOr/TnpVL+m5kRlYSPQgGUZjEW 5pLt3ksBCeeZEuvDCQh2KC/JlycePxOKmzl5/Dht4btUQOGYNNF3FlBgxA6waByHF7r9 LSNQ== X-Gm-Message-State: AOAM531Cx8hqLHVP5dTWQry5zGrUmEUQJ2kV4f+UBfCJbCxdF8vXSX6i UU/wlO3xzHnNPY77nEGMiA== X-Received: by 2002:a02:ad08:: with SMTP id s8mr6042037jan.40.1626213296380; Tue, 13 Jul 2021 14:54:56 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id i2sm113580ilq.83.2021.07.13.14.54.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jul 2021 14:54:55 -0700 (PDT) Received: (nullmailer pid 911660 invoked by uid 1000); Tue, 13 Jul 2021 21:54:52 -0000 Date: Tue, 13 Jul 2021 15:54:52 -0600 From: Rob Herring To: Mauro Carvalho Chehab Cc: Greg Kroah-Hartman , linuxarm@huawei.com, mauro.chehab@huawei.com, Lee Jones , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: Re: [PATCH v12 7/9] mfd: hi6421-spmi-pmic: move driver from staging Message-ID: <20210713215452.GA904937@robh.at.kernel.org> References: <0648370f8e83af64b56e06fb6c32196bb8cee151.1625477735.git.mchehab+huawei@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0648370f8e83af64b56e06fb6c32196bb8cee151.1625477735.git.mchehab+huawei@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 05, 2021 at 11:38:48AM +0200, Mauro Carvalho Chehab wrote: > This driver is ready for mainstream. So, move it out of staging. > > Signed-off-by: Mauro Carvalho Chehab > --- > .../mfd/hisilicon,hi6421-spmi-pmic.yaml | 134 ++++++++++++++++++ > MAINTAINERS | 7 + > drivers/mfd/Kconfig | 16 +++ > drivers/mfd/Makefile | 1 + > drivers/mfd/hi6421-spmi-pmic.c | 66 +++++++++ > drivers/staging/Kconfig | 2 - > drivers/staging/Makefile | 1 - > drivers/staging/hikey9xx/Kconfig | 19 --- > drivers/staging/hikey9xx/Makefile | 3 - > drivers/staging/hikey9xx/TODO | 5 - > drivers/staging/hikey9xx/hi6421-spmi-pmic.c | 66 --------- > .../hikey9xx/hisilicon,hi6421-spmi-pmic.yaml | 134 ------------------ > 12 files changed, 224 insertions(+), 230 deletions(-) > create mode 100644 Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml > create mode 100644 drivers/mfd/hi6421-spmi-pmic.c > delete mode 100644 drivers/staging/hikey9xx/Kconfig > delete mode 100644 drivers/staging/hikey9xx/Makefile > delete mode 100644 drivers/staging/hikey9xx/TODO > delete mode 100644 drivers/staging/hikey9xx/hi6421-spmi-pmic.c > delete mode 100644 drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml > > diff --git a/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml > new file mode 100644 > index 000000000000..a2963bea87ea > --- /dev/null > +++ b/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml > @@ -0,0 +1,134 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mfd/hisilicon,hi6421-spmi-pmic.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: HiSilicon 6421v600 SPMI PMIC > + > +maintainers: > + - Mauro Carvalho Chehab > + > +description: | > + HiSilicon 6421v600 should be connected inside a MIPI System Power Management > + (SPMI) bus. It provides interrupts and power supply. > + > + The GPIO and interrupt settings are represented as part of the top-level PMIC > + node. > + > + The SPMI controller part is provided by > + Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml > + > +properties: > + $nodename: > + pattern: "pmic@[0-9a-f]" > + > + compatible: > + const: hisilicon,hi6421v600-spmi > + > + reg: > + maxItems: 1 > + > + '#interrupt-cells': > + const: 2 > + > + interrupt-controller: true > + > + interrupts: > + maxItems: 1 > + description: GPIO used for IRQs > + > + regulators: > + type: object additionalProperties: false > + > + properties: > + '#address-cells': > + const: 1 > + > + '#size-cells': > + const: 0 > + > + patternProperties: > + '^ldo[0-9]+@[0-9a-f]$': Doesn't match the example. Adding the above will highlight that. There's not a reg property, so you shouldn't have unit-addresses. > + type: object > + > + $ref: "/schemas/regulator/regulator.yaml#" Add: unevaluatedProperties: false > + > +required: > + - compatible > + - reg > + - regulators > + > +additionalProperties: false > + > +examples: > + - | > + /* pmic properties */ > + > + pmic: pmic@0 { > + compatible = "hisilicon,hi6421v600-spmi"; > + reg = <0 0>; > + > + #interrupt-cells = <2>; > + interrupt-controller; > + interrupts = <&gpio28 0 0>; > + > + regulators { > + #address-cells = <1>; > + #size-cells = <0>; > + > + ldo3: LDO3 { > + regulator-name = "ldo3"; > + regulator-min-microvolt = <1500000>; > + regulator-max-microvolt = <2000000>; > + regulator-boot-on; > + }; > + > + ldo4: LDO4 { > + regulator-name = "ldo4"; > + regulator-min-microvolt = <1725000>; > + regulator-max-microvolt = <1900000>; > + regulator-boot-on; > + }; > + > + ldo9: LDO9 { > + regulator-name = "ldo9"; > + regulator-min-microvolt = <1750000>; > + regulator-max-microvolt = <3300000>; > + regulator-boot-on; > + }; > + > + ldo15: LDO15 { > + regulator-name = "ldo15"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <3000000>; > + regulator-always-on; > + }; > + > + ldo16: LDO16 { > + regulator-name = "ldo16"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <3000000>; > + regulator-boot-on; > + }; > + > + ldo17: LDO17 { > + regulator-name = "ldo17"; > + regulator-min-microvolt = <2500000>; > + regulator-max-microvolt = <3300000>; > + }; > + > + ldo33: LDO33 { > + regulator-name = "ldo33"; > + regulator-min-microvolt = <2500000>; > + regulator-max-microvolt = <3300000>; > + regulator-boot-on; > + }; > + > + ldo34: LDO34 { > + regulator-name = "ldo34"; > + regulator-min-microvolt = <2600000>; > + regulator-max-microvolt = <3300000>; > + }; > + }; > + };