Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1639732rwo; Wed, 2 Aug 2023 18:39:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlF3Jzc8Po2PFFv64Gx4jLYK4uiRIrLCPMv9f0L59sKJTJUFqprptx/VkYzXuHqjPcnJMjye X-Received: by 2002:a17:906:31d4:b0:99c:22e9:fbe3 with SMTP id f20-20020a17090631d400b0099c22e9fbe3mr6455835ejf.60.1691026764214; Wed, 02 Aug 2023 18:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691026764; cv=none; d=google.com; s=arc-20160816; b=TacW2i0A1QK6T0UanSqhvb3/hUc7yy6IAyWkI4pe1Dm4c77FXHmWMDJFYisbSmHz7j 69L57KKFJr72F7/TTC9J1nboO1vPOe57OQbI7ekf2wMdxXNI4+1qOOiX6Azu9D2B8Aeq 4VO6N4zyVEJ8C+KKtP0js9gy12m7V96sPdDp5wuIX/gXMG0MJU0ZUxUaBUe2nBQLYG0h aYMrwLAYvhO+yTXENnZgFJu/pGsQRYhNPd5CTlHHVQmnqeWnnvazQo5c/dJC31MJ8v2n PqaVC9WXHs7tt4wdHmhBGwSmTcLHzIeFXqEKnk8k7wR7u6r1Twmev4hWGpPjFPvvxxf+ 2WXQ== 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:dkim-signature; bh=jzX1qRMc+szTuNA37rYW+DyrgQvWQuJWj82kcWPuDXI=; fh=r/yeRNprvKfWeCfCOZJ/G/Do+j6yn6+seuxqxnOS008=; b=RbmXoEqRrhBLyk0vt6qXujjjq6siyAHPmd/cxy3dn0uCqvRPh6I7h+yzroSs45SfSu dKB+Kk4P81110aO3j19kcYlH12li82BpcRQ0dLuqaK2FRMsiVk4Mp6xC/4hwaoSdqWW6 eddeFgXOP/8dZ5sdfU8nefQl7tHJVJ+crw9Pu1EsLcFlAGRb5syFRpBM2ipbKsHDjrAF 3WdW0J+xi80o70+nr0avfxV9h43mIWJFVzRf6v3hFByIuJcG6N0abjh4jwKetCEFpRqT NpRcfBqGz1shCkkE2tAyzi7s2bHiIrUY/iEWkAwPnV9rQmUJ+l0+gweY6mNfEgnuZr2V FTig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gKq34UVV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v25-20020a1709060b5900b00992d2e267edsi10706979ejg.735.2023.08.02.18.39.00; Wed, 02 Aug 2023 18:39:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gKq34UVV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232378AbjHCAd7 (ORCPT + 99 others); Wed, 2 Aug 2023 20:33:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229832AbjHCAd6 (ORCPT ); Wed, 2 Aug 2023 20:33:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AB8E1982; Wed, 2 Aug 2023 17:33:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D422161B6B; Thu, 3 Aug 2023 00:33:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99E3AC433C8; Thu, 3 Aug 2023 00:33:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691022836; bh=VZfLIkHg/Fv53y9K+d8bMvfkrphMsv+1OEZOJrz/KwY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gKq34UVVJaybD8lmbevKl8jMO3tjQMTL29Wc7NjsCqwHIlZs47tcN8k4vmNOWy6MQ 7uAXl7Sg/BEnjwTiOS6QUoprir590zKsx8bLnxRCiTdoYPmmDdZkqsGcRrk+5u2WS7 4ao4jqOhY7+L+huDXu9eomIakTHBQyQ6s26gwFk7oq/BrvavWax3CwUntiPGFHDP99 7mPDfokImSBIqI24zbN60qNNrv+2SdkA2fwA7cryusvw33mPKe6Oce/wwZy8WhLwhW Prq1QpqE0hqq4F3+UVKcU5OmcEiZrd3HAd4Valak6P3UdHBKlCR4yIrMHARGiFM1fn FLu1o+Jz0wB4Q== Received: (nullmailer pid 1590584 invoked by uid 1000); Thu, 03 Aug 2023 00:33:54 -0000 Date: Wed, 2 Aug 2023 18:33:54 -0600 From: Rob Herring To: TY Chang Cc: Linus Walleij , Krzysztof Kozlowski , Conor Dooley , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/7] dt-bindings: pinctrl: realtek: add RTD1315E pinctrl binding Message-ID: <20230803003354.GA1586526-robh@kernel.org> References: <20230726090409.16606-1-tychang@realtek.com> <20230726090409.16606-6-tychang@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230726090409.16606-6-tychang@realtek.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 26, 2023 at 05:04:07PM +0800, TY Chang wrote: > Add device tree bindings for RTD1315E. > > Signed-off-by: TY Chang > --- > .../pinctrl/realtek,rtd1315e-pinctrl.yaml | 165 ++++++++++++++++++ > 1 file changed, 165 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pinctrl/realtek,rtd1315e-pinctrl.yaml > > diff --git a/Documentation/devicetree/bindings/pinctrl/realtek,rtd1315e-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/realtek,rtd1315e-pinctrl.yaml > new file mode 100644 > index 000000000000..b8fb6335ed65 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pinctrl/realtek,rtd1315e-pinctrl.yaml > @@ -0,0 +1,165 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +# Copyright 2023 Realtek Semiconductor Corporation > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pinctrl/realtek,rtd1315e-pinctrl.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Realtek DHC RTD1315E Pin Controller > + > +maintainers: > + - TY Chang > + > +description: | > + Binding for Realtek DHC RTD1315E SoC pin control. > + > +properties: > + compatible: > + const: realtek,rtd13xxe-pinctrl Don't use wildcards in compatible strings. > + > + reg: > + maxItems: 1 > + > +patternProperties: > + '^.*$': > + if: > + type: object For new bindings, define a suffix (e.g. "-pins") for the node name. > + then: > + allOf: > + - $ref: pincfg-node.yaml# > + - $ref: pinmux-node.yaml# > + > + properties: > + pins: > + items: > + enum: [ gpio_0, gpio_1, emmc_rst_n, emmc_dd_sb, emmc_clk, emmc_cmd, > + gpio_6, gpio_7, gpio_8, gpio_9, gpio_10, gpio_11, gpio_12, > + gpio_13, gpio_14, gpio_15, gpio_16, gpio_17, gpio_18, gpio_19, > + gpio_20, emmc_data_0, emmc_data_1, emmc_data_2, usb_cc2, gpio_25, > + gpio_26, gpio_27, gpio_28, gpio_29, gpio_30, gpio_31, gpio_32, > + gpio_33, gpio_34, gpio_35, hif_data, hif_en, hif_rdy, hif_clk, > + gpio_dummy_40, gpio_dummy_41, gpio_dummy_42, gpio_dummy_43, > + gpio_dummy_44, gpio_dummy_45, gpio_46, gpio_47, gpio_48, gpio_49, > + gpio_50, usb_cc1, emmc_data_3, emmc_data_4, ir_rx, ur0_rx, ur0_tx, > + gpio_57, gpio_58, gpio_59, gpio_60, gpio_61, gpio_62, gpio_dummy_63, > + gpio_dummy_64, gpio_dummy_65, gpio_66, gpio_67, gpio_68, gpio_69, > + gpio_70, gpio_71, gpio_72, gpio_dummy_73, emmc_data_5, emmc_data_6, > + emmc_data_7, gpio_dummy_77, gpio_78, gpio_79, gpio_80, gpio_81, > + ur2_loc, gspi_loc, hi_width, sf_en, arm_trace_dbg_en, > + ejtag_aucpu_loc, ejtag_acpu_loc, ejtag_vcpu_loc, ejtag_scpu_loc, > + dmic_loc, vtc_dmic_loc, vtc_tdm_loc, vtc_i2si_loc, tdm_ai_loc, > + ai_loc, spdif_loc, hif_en_loc, scan_switch, wd_rset, boot_sel, > + reset_n, testmode ] > + > + function: > + enum: [ gpio, nf, emmc, ao, gspi_loc0, gspi_loc1, uart0, uart1, > + uart2_loc0, uart2_loc1, i2c0, i2c1, i2c4, i2c5, pcie1, > + etn_led, etn_phy, spi, pwm0_loc0, pwm0_loc1, pwm1_loc0, > + pwm1_loc1, pwm2_loc0, pwm2_loc1, pwm3_loc0, pwm3_loc1, > + spdif_optical_loc0, spdif_optical_loc1, usb_cc1, usb_cc2, > + sd, dmic_loc0, dmic_loc1, ai_loc0, ai_loc1, tdm_ai_loc0, > + tdm_ai_loc1, hi_loc0, hi_m, vtc_i2so, vtc_i2si_loc0, > + vtc_i2si_loc1, vtc_dmic_loc0, vtc_dmic_loc1, vtc_tdm_loc0, > + vtc_tdm_loc1, dc_fan, pll_test_loc0, pll_test_loc1, > + ir_rx, uart2_disable, gspi_disable, hi_width_disable, > + hi_width_1bit, sf_disable, sf_enable, scpu_ejtag_loc0, > + scpu_ejtag_loc1, scpu_ejtag_loc2, scpu_ejtag_loc3, > + acpu_ejtag_loc0, acpu_ejtag_loc1, acpu_ejtag_loc2, > + vcpu_ejtag_loc0, vcpu_ejtag_loc1, vcpu_ejtag_loc2, > + aucpu_ejtag_loc0, aucpu_ejtag_loc1, aucpu_ejtag_loc2, > + gpu_ejtag, iso_tristate, dbg_out0, dbg_out1, standby_dbg, > + spdif, arm_trace_debug_disable, arm_trace_debug_enable, > + aucpu_ejtag_disable, acpu_ejtag_disable, vcpu_ejtag_disable, > + scpu_ejtag_disable, vtc_dmic_loc_disable, vtc_tdm_disable, > + vtc_i2si_disable, tdm_ai_disable, ai_disable, spdif_disable, > + hif_disable, hif_enable, test_loop, pmic_pwrup ] > + > + > + drive-strength: > + enum: [4, 8] > + > + bias-pull-down: true > + > + bias-pull-up: true > + > + bias-disable: true > + > + input-schmitt-enable: true > + > + input-schmitt-disable: true > + > + drive-push-pull: true > + > + power-source: > + description: | > + Valid arguments are described as below: > + 0: power supply of 1.8V > + 1: power supply of 3.3V > + enum: [0, 1] > + > + realtek,pdrive: > + description: | > + An integer describing the level to adjust PMOS output driving capability. > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 0 > + maximum: 7 > + > + realtek,ndrive: > + description: | > + An integer describing the level to adjust NMOS output driving capability. > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 0 > + maximum: 7 > + > + realtek,dcycle: > + description: | > + An integer describing the level to adjust output duty cycle. > + Valid arguments are described as below: > + 0: 0ns > + 2: + 0.25ns > + 3: + 0.5ns > + 4: -0.25ns > + 5: -0.5ns > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [ 0, 2, 3, 4, 5 ] > + > + required: > + - pins > + > + additionalProperties: false > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + pinctrl@4e000 { > + compatible = "realtek,rtd13xxe-pinctrl"; > + reg = <0x4e000 0x130>; > + > + emmc_pins_hs200 { Don't use '_' in node names. > + pins = "emmc_clk", > + "emmc_cmd", > + "emmc_data_0", > + "emmc_data_1", > + "emmc_data_2", > + "emmc_data_3", > + "emmc_data_4", > + "emmc_data_5", > + "emmc_data_6", > + "emmc_data_7"; > + function = "emmc"; > + realtek,pdrive = <0x2>; > + realtek,ndrive = <0x2>; > + }; > + > + i2c_pins_0 { > + pins = "gpio_12", > + "gpio_13"; > + function = "i2c0"; > + drive-strength = <4>; > + }; > + }; > -- > 2.41.0 >