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 C51DEC38142 for ; Mon, 23 Jan 2023 08:39:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230360AbjAWIjm (ORCPT ); Mon, 23 Jan 2023 03:39:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231389AbjAWIji (ORCPT ); Mon, 23 Jan 2023 03:39:38 -0500 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DF071CAFC; Mon, 23 Jan 2023 00:39:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1674463177; x=1705999177; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=PeloGGyqNdF2kMvTG+QJgjifrzSH/LMehnXbS4DzgKg=; b=i4bseUqJ58c054QjbxvplSoSSoqhPCSJjWbpAtOWoZOP7RmpcR3tAxcq vbA+nvgstGcccXyxtDR29dKmfZt/ET3xyE6ppZjE8fnrccbjXNsIa6RpA /u9OuNV14qcrk71I3IYHQ0hg+b3pSfmnxhhIdXsWA95ixFzh6ikro4T1S n2zx6UOfI3cw6Bdzd2r6Uy3xGGwsv9SVN1Ba1fBJG0B8189sPbYpziZev 8AMOOZZ5IbL6DM23PRVdl/gsbrQYK406dhqkZvI5NPO0PfjbmHfv+VGiz Ho02aKmDVLzjUaZOI/6qjCzfbZtURXhvwuuvoO9b4SGR8eUoPNpkLIC+2 Q==; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AsSeDk3xxUYWS+CU6/hQ7cZKQKfX//n/FV+YF+Tt7qEdLJ58QR5OPev12caVyDgmkF9suay8+ucp/9dVmuCFJKGzUJHZIX1yd7i5uiZ8PW2wg8JKew2xatk0RGYJdurX60hIuMUBNGW8TYJUHoKozLIHKTEZGSPHDcnUmnUkPo1ZC4iZX1TOJwGu9dpbSbHQburn44tY+CutdWw7AXtkkfafWi+XnSOKI5d1MLkF8/JgaW7nxbAYCqfy8wxEYjGDy7xlGcdLGNH1aXotqmiz6z7mpM56xK4JLndDZ7yi5pLtECOi5RpCSk3iFafF2h1HhoDMPbhYulL4MnQTDqjeWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PeloGGyqNdF2kMvTG+QJgjifrzSH/LMehnXbS4DzgKg=; b=RkQ72YHP+dXzSCMPHUARzCjbEUYMWPk1GIeUmvzOVTAtn7Kwf7Z35wgAuh4QW+om7YxXwNOHw3HVEw8i3YeRZfdznhtFycCIfDe993v2EfQBZikLdz1b2LwoIxBSXTg5Y8JSBx5TBj6Q+cV4VbcHO7ebC9kuSiQy5P+pj03mebEWF2cQGoj4nsVhmpnmS/ztlV6FJYaGexf4RmdgY6XSpMVu/fr1YpwoioO3kD74ieH86vSgnkvTeDn+F07CuvAEqXI1iSam85DIjRZe2U58ffBHnHpu3lr9Ar0tXiIJ++Xc84FZ2QSU8FHYWWIqRgl7N+1uoeUUBclsr9V5q0fvhg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=axis.com; dmarc=pass action=none header.from=axis.com; dkim=pass header.d=axis.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis365.onmicrosoft.com; s=selector2-axis365-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PeloGGyqNdF2kMvTG+QJgjifrzSH/LMehnXbS4DzgKg=; b=WPdkBn9C1Xc8Z20GyK2bTrUrmCRVFfm13B7KMSfYH2FFkj9iL+XHn78xkTMi0KJFOyrOMjqd4+aB5zI47afwXwhe4cRvFp2Ub8xeUVuBHU3xYAp0H1QCLHSuuw47U1kWnBovJBMlx/WIor7fUjQKGJQR73IbScAnRc3moPXdR6g= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=axis.com; Message-ID: <0b0c0030-3587-5501-c7b2-eccbbe4551e0@axis.com> Date: Mon, 23 Jan 2023 09:39:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v2 4/4] ASoC: dt-bindings: ti,ts3a227e.yaml: add jack-type Content-Language: en-US To: Krzysztof Kozlowski , Astrid Rost , Mark Brown , Liam Girdwood , Krzysztof Kozlowski , Rob Herring , Dylan Reid CC: , , , References: <20230120102555.1523394-1-astrid.rost@axis.com> <20230120102555.1523394-5-astrid.rost@axis.com> <2d05a943-3510-5ee9-9906-247a6344190a@linaro.org> From: Astrid Rost In-Reply-To: <2d05a943-3510-5ee9-9906-247a6344190a@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MM0P280CA0113.SWEP280.PROD.OUTLOOK.COM (2603:10a6:190:9::19) To DU0PR02MB9467.eurprd02.prod.outlook.com (2603:10a6:10:41b::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR02MB9467:EE_|DU2PR02MB10332:EE_ X-MS-Office365-Filtering-Correlation-Id: be671f4f-2cef-4e89-a0f9-08dafd1d58e8 X-LD-Processed: 78703d3c-b907-432f-b066-88f7af9ca3af,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WEwsdtkKeqn7Q65emE+APSI7JwZlW339hpQrq3fGhhynkIXSj9Em/c7E02esfXt96xcKUUJucydCy0SEMS7OoXSIn+69JDy+ljQpFxeq8e2C2YRyKfGlObQbU8n39vT3f/X6oyc9FKrsW+raA0nWRvY4YEVpuEJihhMLh8hDYRmB6Hb6j5+yC8Fxp8LSK9HZfMW+/rAQXjFjXKFehYpk8rpjbkUFTQget0Hy/mjrY+n3Va6A4WfDIXiL+wkRsGHxWfjQIdXRh9qJ0x81SrujMrxELkUXIuxvfc/Rh8rShAG4dUUs5Mov5mILkYZhCyj72xin5EAXgVAk/q2ldRnDRvimxeWXX8e58PUMfeR0SgyHd+UI0qbpO2rFPGLTkLhdyK8T0hsKpHZnq8EpOioG1CiW62hNcTMFq70wrJaW9jevlk+l2ygHfHsr/wPyrjnkalCjbyP6rmZJUtKAFsxT0K1sE6pzalGQ+TARdRYE0C75zx3pgGMFG19nqGJQveChEYnTAjnYNI4k56byr9pt9AURslWd6q47QQzdsrOCnx4FV+I0rPqk8QDpL9oa9A5MpPSuccE8dw31i84Ra/K6bt+jPgc3EBR/xc7ORRT4Go4mso6inhTsuqjE8R4fiBhaDRzxCTBPFVBXaJoKENKxmue4lTH3psc32Od8ATzEBCGhmBMcJOI45EUJolGBhruRnFOOmIcVHzJJoqnRE36Scc7xlC0/pkjFSwAl3GFLlfw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR02MB9467.eurprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(396003)(366004)(376002)(39850400004)(136003)(346002)(451199015)(2616005)(6506007)(6486002)(8676002)(66946007)(4326008)(66476007)(26005)(53546011)(478600001)(66556008)(186003)(6512007)(38100700002)(41300700001)(8936002)(5660300002)(2906002)(110136005)(31686004)(316002)(36756003)(31696002)(45980500001)(43740500002);DIR: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hWazVBbE16Q0UzTHp2WGZ4?= =?utf-8?B?ZnJGUTFNbkZwYk9jMEw1YjdON1FuQko0SXBjZ0tkaXRTL2VoRGptbytIY0Rs?= =?utf-8?B?REpKSkQwY3h2MS9WKzdOUEQzaERoZGFQWUphRDN5cDdCRGlha3NtN1BTVXlh?= =?utf-8?B?SGthMHNjY3VSUnJWWXhNMkFYNFNXaG9xQXBpTGRyNS9LVHZXNERjZjBHWEFn?= =?utf-8?B?SEgweVdhM0U4ZkRURjNEYnQ3ZklBeXZXRVBYOEFXTmRqdDJaMTVoRU1UUXVi?= =?utf-8?B?Zk5uakl6OVJ6WENCOXZiREoxRmhpQXJEbnN1aU13TFhuVWN3YmpBbFNrQng5?= =?utf-8?B?ZlBIQjZVZXdmaVExeisyTFhqSXZtelZiTG8yV1VMVHl5NURXY3l5OFMxY0FO?= =?utf-8?Q?iUr8tS7Oa9lEPmPRCJoHEVXnP?= X-MS-Exchange-CrossTenant-Network-Message-Id: be671f4f-2cef-4e89-a0f9-08dafd1d58e8 X-MS-Exchange-CrossTenant-AuthSource: DU0PR02MB9467.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jan 2023 08:39:31.5115 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: AlJBUDdw+YsmsbWCTDacJsyesbCPu36xakCaooQZRC4GeEkbwdjpqTeTGbkor51dSWUnCarC2tspFqhrniC6qg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR02MB10332 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Krzysztof, On 1/22/23 15:16, Krzysztof Kozlowski wrote: > On 20/01/2023 11:25, Astrid Rost wrote: >> Add jack-type: Bitmap value of snd_jack_type to allow combining >> card drivers to create a jack for it. > > Subject: drop "yaml". We do not filename extensions to subject prefix. > Nowhere. > yes, true. >> >> Signed-off-by: Astrid Rost >> --- >> Documentation/devicetree/bindings/sound/ti,ts3a227e.yaml | 8 ++++++++ >> 1 file changed, 8 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/sound/ti,ts3a227e.yaml b/Documentation/devicetree/bindings/sound/ti,ts3a227e.yaml >> index 785930658029..1d949b805f98 100644 >> --- a/Documentation/devicetree/bindings/sound/ti,ts3a227e.yaml >> +++ b/Documentation/devicetree/bindings/sound/ti,ts3a227e.yaml >> @@ -27,6 +27,14 @@ properties: >> interrupts: >> maxItems: 1 >> >> + jack-type: >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + description: Bitmap value of snd_jack_type to allow combining >> + card drivers to create a jack for it. Supported is > > Why the device would once support (allow) headphone and once not? Device > either always supports them or never... > If a device has two connectors (pink and green), one for the microphone and one for the headset. It would be easier to see from the available events, which is which. But of course it is possible to give it good names. My first approach was, that it returned all supported types, so no devicetree change needed. But by colleges agreed that it would be nice to remove unused flags. I am happy to remove it and someone who requires it can add it. >> + 1 SND_JACK_HEADPHONE >> + 2 SND_JACK_MICROPHONE > > minimum and maximum I do not understand this? It is a bitmap. I can put it as an enum: - 1 # SND_JACK_HEADPHONE - 2 # SND_JACK_MICROPHONE - 3 # SND_JACK_HEADPHONE | SND_JACK_MICROPHONE > >> + default: 3 >> + >> ti,micbias: >> $ref: /schemas/types.yaml#/definitions/uint32 >> description: Intended MICBIAS voltage (datasheet section 9.6.7). > > Best regards, > Krzysztof > Thank you for your comments Astrid