Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3899599rwb; Mon, 21 Nov 2022 00:39:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf65mSqpIeQxkv05FTtRsqSZe/pjQQrXBnXwINE9enrAK7PCL+Ma9fsd1EQ1S8l7eLt4tbfM X-Received: by 2002:a17:902:eb86:b0:188:c395:1748 with SMTP id q6-20020a170902eb8600b00188c3951748mr642983plg.155.1669019952824; Mon, 21 Nov 2022 00:39:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669019952; cv=none; d=google.com; s=arc-20160816; b=e2AUfEoFzH9NNp0lVD3Yjp2fngoxiXvoUVXLGfuWgEjLK+avJOH0Wj9OaylsHYyOcb HYkB7cADoE8Ez4tblm/IsgBsvXxoYniUi89fZpVtAOmQQG7EqrAeYHY4zw9w1CcJ8P+U Okllb1nBNd2LRTjOuRHFAs3a6Pr5TGxFkj06TZBtqsu8YRWCrmSp+QnE3G4I2uHK8I9w 6rDDAHJ0FMBc9AkIf0r5YQYB+/OrWRV5G176hzgJ3rPSqg4VsuaiQdfwMP4p7BYVP+BG TExlcl7KwtvZlkL28iZIACI3HIY4MtWNtYSSXfuwzGp5u9QoOaPyKt78pu+WRgu3x2E3 yS/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=wYa6qiy8lMPys5blH9J/G1eMKnRjWk2O1ZKygOJRkTQ=; b=DmX8GgISP4bwSVQ/Bv5rxRGQ6Xjy4iQVlv1E+W8VDmD/yQqwZgwBkmxe6umq2qtoN2 8QAXF2Oen3YXuZ6ksnWpcbRDxwc9Jtw/S2aikkGQcC6Ooo2QYAeNEjSf/3sXtIV6DUBY IerHEiEeHGmQEcgCy3BDWB8xP/nOIX8G4H6GST9hj9HHrI5aC0ci5JOVJYVctSZU3RTI 9pDjhZhBlZaeMc+Cbl7togrIIFZzHDkH8wDpx4rihP+n/pSUZlPvjr3mx0uaMkfI0tRU 4EBTwgCoaivXaLxT1AzKuNutKgS8g07W7/JHgrEGh+qJuapiRLX8pAFeA/Lu16ifIHO/ HE8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Cj2/VIzR"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gi9-20020a17090b110900b002186fd880a9si9401664pjb.169.2022.11.21.00.39.01; Mon, 21 Nov 2022 00:39:12 -0800 (PST) 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=@linaro.org header.s=google header.b="Cj2/VIzR"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229907AbiKUI1F (ORCPT + 91 others); Mon, 21 Nov 2022 03:27:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbiKUI1D (ORCPT ); Mon, 21 Nov 2022 03:27:03 -0500 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 545406253 for ; Mon, 21 Nov 2022 00:27:02 -0800 (PST) Received: by mail-lj1-x233.google.com with SMTP id l8so13640408ljh.13 for ; Mon, 21 Nov 2022 00:27:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wYa6qiy8lMPys5blH9J/G1eMKnRjWk2O1ZKygOJRkTQ=; b=Cj2/VIzR/21o/tDbTWZPg8AGCS4nhfSg7B+uN9/AR/5LGg0FRaKRyalpThYZxC53mJ pnbm+WJ9fCqM1NC8ka3B5R0z2fGv7B3oc/AMH+IuYEistzWxn6NkPDevW0qDkJLQuXyZ bYo8jbLfTX6skcVDVIqtgCNxIT6bzhM3f/7GortQZEwVdTwtRwQF/6vEMDST+ioPEA0v kxFNTuOyCF++tItPtJImlhbwQy9qjFTkL4RnpKEPpzwir3xS3iBMNqf4BFRCi3tSOt+T CjEGYpiI5z3UAwO7fSltILV2sIZ0weSNBtrk2EW++azDJJtPkoBgb0OV6y5E0LEU+c3k qCaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wYa6qiy8lMPys5blH9J/G1eMKnRjWk2O1ZKygOJRkTQ=; b=Vg+mwksbaXIk5W0WL6aUIJ5Q4fZVW1dXFnSFBWpOAkWXr1YZaljTiSHvjsyoN0lxad lNLzhnXJ9WNWJR1hQGbkjaN02Vg9KBca/QgVviXCSskr/5VuMWHHJF2ekV7+qJidfQkw SU9lR8eRDmdUn8jZHEpFbzeKS1A20H8bc0PpVg2xan9LD3O+BGlspsN/LceYeIAus9zZ JEqjkaHyD8xKLeN4Z07BMLxQLOHLpFTPuKbt+Nd+jKjBuXg8rab7WxiedH9EDEECwbIP ilonAZcsciEm5DagU5Wo/7g0N6XpQWGgyGjKAChnjIISlkJf73jBQiyGt7zFSAl/mm3C esWg== X-Gm-Message-State: ANoB5pnzV7bMKqpOvkIrcxYktTOyiS9jBwdNhLK5DN+vCmDI+7Lk0BtC lmRDBu2mx7blrATADNhIgEr9Aw== X-Received: by 2002:a2e:b5ae:0:b0:277:3df:90d0 with SMTP id f14-20020a2eb5ae000000b0027703df90d0mr384156ljn.234.1669019220719; Mon, 21 Nov 2022 00:27:00 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id 9-20020a2eb949000000b0026dcf0cbb97sm1379191ljs.137.2022.11.21.00.26.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Nov 2022 00:27:00 -0800 (PST) Message-ID: <795deac4-71fe-d40b-a3b6-855eb3875ad1@linaro.org> Date: Mon, 21 Nov 2022 09:26:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH 1/8] dt-bindings: power: supply: Add DT schema for Qualcomm SMBCHG Content-Language: en-US To: Yassine Oudjana Cc: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Alejandro Tafalla , Konrad Dybcio , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Yassine Oudjana References: <20221120154625.57095-1-y.oudjana@protonmail.com> From: Krzysztof Kozlowski In-Reply-To: <20221120154625.57095-1-y.oudjana@protonmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 20/11/2022 16:46, Yassine Oudjana wrote: >>> + interrupts: >>> + items: >>> + - description: Charger error >>> + - description: Charger inhibited >>> + - description: Charger precharge safety timer timeout >>> + - description: Charger charge safety timer timeout >>> + - description: Charger pre to fast charging switch threshold reached >>> + - description: Charger recharge threshold reached >>> + - description: Charger taper threshold reached >>> + - description: Charger charge termination threshold reached >>> + - description: Battery hot >>> + - description: Battery warm >>> + - description: Battery cold >>> + - description: Battery cool >>> + - description: Battery overvoltage >>> + - description: Battery low >>> + - description: Battery missing >>> + - description: Battery thermistor missing # unconfirmed >>> + - description: USB input undervolt >>> + - description: USB input overvolt >>> + - description: USB input source detected >>> + - description: OTG regulator failure >>> + - description: OTG regulator overcurrent >>> + - description: Automatic input current limiting done >>> + - description: USB ID pin changed >>> + - description: DC input undervolt >>> + - description: DC input overvolt >>> + - description: Power OK >>> + - description: Temperature shutdown >>> + - description: Watchdog timeout >>> + - description: Flash failure >>> + - description: OTST2 # unknown >>> + - description: OTST3 # unknown >> >> It seems you listed register interrupts, not physical pins. This should >> be interrupt lines. > > I'm not sure what I'm supposed to do here. I couldn't find an interrupt-lines > property used anywhere so that's not what you meant, right? Are these physical interrupt lines this device has, register offsets or virtual interrupts (e.g. passed via irq_chip)? Definitely not the first and rather offsets for qpnpint_irq_domain_translate. Devicetree is not for describing register layout of devices. IOW, register layout does not change on different boards, because the device is exactly the same, so there is no point to put it into DTS. Best regards, Krzysztof