From patchwork Wed May 31 01:42:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 687382 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 82075C77B73 for ; Wed, 31 May 2023 01:42:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231417AbjEaBmz (ORCPT ); Tue, 30 May 2023 21:42:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231558AbjEaBmy (ORCPT ); Tue, 30 May 2023 21:42:54 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CF5410E for ; Tue, 30 May 2023 18:42:52 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4f3b5881734so6020601e87.0 for ; Tue, 30 May 2023 18:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685497370; x=1688089370; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xljCA29YsIP0+Y8LXCa8pJbogsbieLDmlx+5/VMZqTY=; b=SWqiVEQwq8FHaTqPlNJFfKiJZyzqNaGU/zfCjJgd7azcScFpxSZrpzGNhNCYs1uWlE 9WJdMY5CZH+/IU1R3GjgtRAjcPuRpyc+opEiJJ5d5LkoxYdZrugdFjWZYNaGWeaY1+l0 +tcEwi7LbSiyyekWSBEtRHzS3jsaM4l1YfcxykTLqQG4dAYGfxED3oQgnvWoxWfgmCCf 8xDbio3HFhtdOZWK+bTomv38VVj7v26vPGiK6iJMZEgu290vgZwWvoE8BmOaQQPMNH92 hr3ifiEDv3Bu3Uj/msaiFup9Kt/1p/jdk4rlQpg1m7o70S8kOVQEYrcWMJz6TWYqt0wM W/tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685497370; x=1688089370; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xljCA29YsIP0+Y8LXCa8pJbogsbieLDmlx+5/VMZqTY=; b=HzpRMR9fbEbF+CrnwyQsTqTdX07dQSICvUtQO2mszZ2EhOCcs9G1WNT0/8Maacws3C Hp4RUg6eDbRBjjEI5kBNbHXdObnXpRft5jUwtJrx4OLjlbVRhFhSiUhCuCGnJUCKEXz9 B/L+zXhVyADIQ5u3OIB71c3roMtaWFLTUE8/Ot4Iil3YY7YvXzUsfiMCT6Xoc9XrF9rw YGw80+osV3yCaEV0yScakaMkh4AkdtXThg4wYAUxav+BiOrVSUcmR/lcBsjc55yuZCsj XfKZQ0sFog84FE8Z8XMpywDqohY03Qs/WHUAmIXLEhveMiDlmjab9PBzZCR1Fm484FYA +7VA== X-Gm-Message-State: AC+VfDxSoU7YBoT0wAQBHymeO4pv/etaxcjmtvcdHYbnMV3X1zmxLYgc 44kmSbL6b2lMqaOmr1FMTPu/StDdSANBQ9Akpik= X-Google-Smtp-Source: ACHHUZ4MedO+Nhhc9D9iy3fSvGi45ICLjQmEmMfqx1wmxIVXvGC2pI5+Wp/ab5tm+1MKgPkT2OYXqg== X-Received: by 2002:ac2:4461:0:b0:4f0:345:6ceb with SMTP id y1-20020ac24461000000b004f003456cebmr1536886lfl.14.1685497370018; Tue, 30 May 2023 18:42:50 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id q20-20020ac25294000000b004f3945751b2sm515994lfm.43.2023.05.30.18.42.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 18:42:49 -0700 (PDT) From: Dmitry Baryshkov To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v3 0/4] ARM: dts: qcom: apq8074-dragonboard: enable resin device Date: Wed, 31 May 2023 04:42:44 +0300 Message-Id: <20230531014248.3824043-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for buttons, LEDs and coincell charger found on the APQ8074 dragonboard device. For PM8941 we don't have a defined field to store the reset reason. Support wrapping pwrkey and resin, but without writing the reset reason. Changes since v2: - Split non-pon patches to separate patchset - Changed schema to disallow reboot modes for pm8941-pon (Konrad) Changes since v1 (noted by Konrad): - Changed to use freshly defined qcom,pm8941-pon compat - Fixed indentiation for LEDs definition - Reverted the order of pinctrl fields - Moved status field to the last position - Removed unnecessary pinconf indirection Dmitry Baryshkov (4): dt-bindings: power: reset: qcom-pon: define pm8941-pon power: reset: qcom-pon: add support for pm8941-pon ARM: dts: qcom-pm8941: add resin support ARM: dts: qcom: apq8074-dragonboard: add resin .../bindings/power/reset/qcom,pon.yaml | 12 +++++++++- .../arm/boot/dts/qcom-apq8074-dragonboard.dts | 5 +++++ arch/arm/boot/dts/qcom-pm8941.dtsi | 22 ++++++++++++++----- drivers/power/reset/qcom-pon.c | 22 +++++++++++++------ 4 files changed, 48 insertions(+), 13 deletions(-)