Loading arch/arm64/boot/dts/qcom/lito.dtsi +47 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ #include <dt-bindings/clock/qcom,rpmh.h> #include <dt-bindings/clock/qcom,videocc-lito.h> #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/soc/qcom,rpmh-rsc.h> / { model = "Qualcomm Technologies, Inc. Lito"; Loading Loading @@ -484,6 +485,16 @@ interrupt-parent = <&intc>; }; pdc: interrupt-controller@b220000 { compatible = "qcom,lito-pdc"; reg = <0xb220000 0x30000>; qcom,pdc-ranges = <0 480 42>, <42 612 28>, <70 63 1>, <71 641 15>, <86 522 52>; #interrupt-cells = <2>; interrupt-parent = <&intc>; interrupt-controller; }; timer { compatible = "arm,armv8-timer"; interrupts = <1 1 0xf08>, Loading Loading @@ -856,6 +867,42 @@ #clock-cells = <1>; #reset-cells = <1>; }; apps_rsc: rsc@18200000 { label = "apps_rsc"; compatible = "qcom,rpmh-rsc"; reg = <0x18200000 0x10000>, <0x18210000 0x10000>, <0x18220000 0x10000>; reg-names = "drv-0", "drv-1", "drv-2"; interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; qcom,tcs-offset = <0xd00>; qcom,drv-id = <2>; qcom,tcs-config = <ACTIVE_TCS 2>, <SLEEP_TCS 3>, <WAKE_TCS 3>, <CONTROL_TCS 1>; system_pm { compatible = "qcom,system-pm"; }; }; disp_rsc: rsc@af20000 { label = "disp_rsc"; compatible = "qcom,rpmh-rsc"; reg = <0xaf20000 0x10000>; reg-names = "drv-0"; interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>; qcom,tcs-offset = <0x1c00>; qcom,drv-id = <0>; qcom,tcs-config = <ACTIVE_TCS 0>, <SLEEP_TCS 1>, <WAKE_TCS 1>, <CONTROL_TCS 0>; }; }; #include "lito-pinctrl.dtsi" Loading drivers/irqchip/qcom-pdc.c +3 −2 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. */ #include <linux/err.h> Loading @@ -18,7 +18,7 @@ #include <linux/slab.h> #include <linux/types.h> #define PDC_MAX_IRQS 126 #define PDC_MAX_IRQS 138 #define CLEAR_INTR(reg, intr) (reg & ~(1 << intr)) #define ENABLE_INTR(reg, intr) (reg | (1 << intr)) Loading Loading @@ -311,3 +311,4 @@ static int qcom_pdc_init(struct device_node *node, struct device_node *parent) IRQCHIP_DECLARE(pdc_sdm845, "qcom,sdm845-pdc", qcom_pdc_init); IRQCHIP_DECLARE(pdc_kona, "qcom,kona-pdc", qcom_pdc_init); IRQCHIP_DECLARE(pdc_lito, "qcom,lito-pdc", qcom_pdc_init); Loading
arch/arm64/boot/dts/qcom/lito.dtsi +47 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ #include <dt-bindings/clock/qcom,rpmh.h> #include <dt-bindings/clock/qcom,videocc-lito.h> #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/soc/qcom,rpmh-rsc.h> / { model = "Qualcomm Technologies, Inc. Lito"; Loading Loading @@ -484,6 +485,16 @@ interrupt-parent = <&intc>; }; pdc: interrupt-controller@b220000 { compatible = "qcom,lito-pdc"; reg = <0xb220000 0x30000>; qcom,pdc-ranges = <0 480 42>, <42 612 28>, <70 63 1>, <71 641 15>, <86 522 52>; #interrupt-cells = <2>; interrupt-parent = <&intc>; interrupt-controller; }; timer { compatible = "arm,armv8-timer"; interrupts = <1 1 0xf08>, Loading Loading @@ -856,6 +867,42 @@ #clock-cells = <1>; #reset-cells = <1>; }; apps_rsc: rsc@18200000 { label = "apps_rsc"; compatible = "qcom,rpmh-rsc"; reg = <0x18200000 0x10000>, <0x18210000 0x10000>, <0x18220000 0x10000>; reg-names = "drv-0", "drv-1", "drv-2"; interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; qcom,tcs-offset = <0xd00>; qcom,drv-id = <2>; qcom,tcs-config = <ACTIVE_TCS 2>, <SLEEP_TCS 3>, <WAKE_TCS 3>, <CONTROL_TCS 1>; system_pm { compatible = "qcom,system-pm"; }; }; disp_rsc: rsc@af20000 { label = "disp_rsc"; compatible = "qcom,rpmh-rsc"; reg = <0xaf20000 0x10000>; reg-names = "drv-0"; interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>; qcom,tcs-offset = <0x1c00>; qcom,drv-id = <0>; qcom,tcs-config = <ACTIVE_TCS 0>, <SLEEP_TCS 1>, <WAKE_TCS 1>, <CONTROL_TCS 0>; }; }; #include "lito-pinctrl.dtsi" Loading
drivers/irqchip/qcom-pdc.c +3 −2 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. */ #include <linux/err.h> Loading @@ -18,7 +18,7 @@ #include <linux/slab.h> #include <linux/types.h> #define PDC_MAX_IRQS 126 #define PDC_MAX_IRQS 138 #define CLEAR_INTR(reg, intr) (reg & ~(1 << intr)) #define ENABLE_INTR(reg, intr) (reg | (1 << intr)) Loading Loading @@ -311,3 +311,4 @@ static int qcom_pdc_init(struct device_node *node, struct device_node *parent) IRQCHIP_DECLARE(pdc_sdm845, "qcom,sdm845-pdc", qcom_pdc_init); IRQCHIP_DECLARE(pdc_kona, "qcom,kona-pdc", qcom_pdc_init); IRQCHIP_DECLARE(pdc_lito, "qcom,lito-pdc", qcom_pdc_init);